sass-template-common 0.4.10 → 0.4.12

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.
@@ -909,6 +909,7 @@ declare type HeaderProps = {
909
909
  static: boolean;
910
910
  sticky: boolean;
911
911
  };
912
+ childrenContentPosition?: 'before-headers' | 'after-headers';
912
913
  custom_styles?: CSSProperties;
913
914
  mobileIcon?: any;
914
915
  };
@@ -1114,6 +1115,7 @@ export declare type LibraryConfig = {
1114
1115
  VARIANT_tag?: 'op1' | 'op2';
1115
1116
  S3_ID_DIR?: string;
1116
1117
  CONFIG_comments?: boolean;
1118
+ CONFIG_blockDefaultTwitterHydrator?: boolean;
1117
1119
  CONFIG_hasSlugRoute?: boolean;
1118
1120
  CONFIG_slugAsSection?: boolean;
1119
1121
  CONFIG_shareOnlyWhatsApp?: boolean;
@@ -31,6 +31,7 @@ let ua = {
31
31
  VARIANT_tag: "op1",
32
32
  S3_ID_DIR: "0000000",
33
33
  CONFIG_comments: !1,
34
+ CONFIG_blockDefaultTwitterHydrator: !1,
34
35
  CONFIG_hasSlugRoute: !0,
35
36
  CONFIG_slugAsSection: !0,
36
37
  CONFIG_shareOnlyWhatsApp: !0,
@@ -8624,36 +8625,37 @@ const c1 = "_content_xlsy2_1", l1 = "_videoContent_xlsy2_39", d1 = "_articleSect
8624
8625
  childrenContentAux: qh,
8625
8626
  op2: Bh
8626
8627
  }, _5 = (e) => {
8627
- const { alertZone: t, children: n, sidebar: s, custom_styles: o = {} } = e;
8628
+ const { alertZone: t, children: n, sidebar: s, custom_styles: o = {} } = e, i = /* @__PURE__ */ f(
8629
+ "div",
8630
+ {
8631
+ className: [
8632
+ Kn.childrenContent,
8633
+ e.showAlertPop ? Kn.op2 : "",
8634
+ t?.data ? Kn.childrenContentAux : ""
8635
+ ].join(" "),
8636
+ style: e.showOnlyStickyHeader ? {
8637
+ ...o,
8638
+ "--hasAlertMargin": "3.6rem !important"
8639
+ } : o,
8640
+ id: "content-layout",
8641
+ children: [
8642
+ e.showAlertPop && /* @__PURE__ */ a(
8643
+ Go,
8644
+ {
8645
+ alertZone: t,
8646
+ forceShow: e.showAlertPop,
8647
+ id: "static-alert-chip"
8648
+ }
8649
+ ),
8650
+ n
8651
+ ]
8652
+ }
8653
+ );
8628
8654
  return /* @__PURE__ */ f(Z, { children: [
8655
+ e.childrenContentPosition === "before-headers" && i,
8629
8656
  /* @__PURE__ */ a(ch, { ...e }),
8630
8657
  !e.showOnlyStickyHeader && /* @__PURE__ */ a(Lh, { ...e }),
8631
- /* @__PURE__ */ f(
8632
- "div",
8633
- {
8634
- className: [
8635
- Kn.childrenContent,
8636
- e.showAlertPop ? Kn.op2 : "",
8637
- t?.data ? Kn.childrenContentAux : ""
8638
- ].join(" "),
8639
- style: e.showOnlyStickyHeader ? {
8640
- ...o,
8641
- "--hasAlertMargin": "3.6rem !important"
8642
- } : o,
8643
- id: "content-layout",
8644
- children: [
8645
- e.showAlertPop && /* @__PURE__ */ a(
8646
- Go,
8647
- {
8648
- alertZone: t,
8649
- forceShow: e.showAlertPop,
8650
- id: "static-alert-chip"
8651
- }
8652
- ),
8653
- n
8654
- ]
8655
- }
8656
- ),
8658
+ e.childrenContentPosition !== "before-headers" && i,
8657
8659
  /* @__PURE__ */ a(
8658
8660
  Um,
8659
8661
  {
@@ -11436,9 +11438,9 @@ async function Yg(e) {
11436
11438
  e.texts,
11437
11439
  s
11438
11440
  ), d = await Wg(d, u), d = Gg(d), d = Qg(d);
11439
- const m = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: h } = $(), p = t.config.articlepreview === At.fotoGaleria && t.hascontent?.hasgalleryimages;
11441
+ const m = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: h, CONFIG_blockDefaultTwitterHydrator: p } = $(), g = t.config.articlepreview === At.fotoGaleria && t.hascontent?.hasgalleryimages;
11440
11442
  return /* @__PURE__ */ f("div", { className: dn.content, children: [
11441
- i !== "liveblogs" && e.showHeaderImage ? p ? /* @__PURE__ */ a(
11443
+ i !== "liveblogs" && e.showHeaderImage ? g ? /* @__PURE__ */ a(
11442
11444
  W0,
11443
11445
  {
11444
11446
  commonServices: l,
@@ -11491,9 +11493,9 @@ async function Yg(e) {
11491
11493
  ),
11492
11494
  m.length > 0 && /* @__PURE__ */ f("div", { className: dn.noteSource, children: [
11493
11495
  /* @__PURE__ */ a(K0, {}),
11494
- /* @__PURE__ */ a("p", { children: e.texts.noteSource + (m.length === 1 ? "" : "s") + ": " + m.map((g) => g.name).join(", ") })
11496
+ /* @__PURE__ */ a("p", { children: e.texts.noteSource + (m.length === 1 ? "" : "s") + ": " + m.map((A) => A.name).join(", ") })
11495
11497
  ] }),
11496
- t && t.hascontent && t.hascontent.hasembeddedtwitter && /* @__PURE__ */ a("script", { async: !0, defer: !0, src: "https://platform.twitter.com/widgets.js" })
11498
+ !p && t && t.hascontent && t.hascontent.hasembeddedtwitter && /* @__PURE__ */ a("script", { async: !0, defer: !0, src: "https://platform.twitter.com/widgets.js" })
11497
11499
  ] });
11498
11500
  }
11499
11501
  const Kg = (e) => {
@@ -1,4 +1,4 @@
1
- (function(b,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],n):(b=typeof globalThis<"u"?globalThis:b||self,n(b["sass-template-common"]={},b["react/jsx-runtime"],b.React))})(this,(function(b,n,E){"use strict";function Zr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const Xa=Zr(E);let Kn={PUBLIC_API_HOST:"",PUBLIC_API_FRONT:"",PUBLIC_API_PATH:"",PUBLIC_API_PATH_VERSION:"",PUBLIC_X_SECURITY_TOKEN:"",PUBLIC_PUBLICATION_ID:"",PUBLIC_TAG_TYPE:"",PUBLIC_ENV:"",PUBLIC_LNG:"",PUBLIC_SERVICE_PREFIX:"",PUBLIC_IS_SUB_PUBLICATION:"",PUBLIC_USERNAME_OFFLINE:"",PUBLIC_PASSWORD_OFFLINE:"",PUBLIC_IS_OFFLINE:"",PUBLIC_OFFLINE_SITE:"",PUBLIC_WP_API_HOST:"",PUBLIC_X_SECURITY_WAF_TOKEN:"",DEPLOY_BUCKET:"",PUBLIC_ASSETS_URL:"",PUBLIC_BUILD_ID:"",DATE_TIMEZONE:"America/Mexico_City",VARIANT_header:"op2",VARIANT_footer:"op2",VARIANT_section:"op1",VARIANT_videos:"op2",VARIANT_autor:"op1",VARIANT_tag:"op1",S3_ID_DIR:"0000000",CONFIG_comments:!1,CONFIG_hasSlugRoute:!0,CONFIG_slugAsSection:!0,CONFIG_shareOnlyWhatsApp:!0,CONFIG_blockDefaultSectionRoute:!1,ANALYTICS_ga4:void 0,ANALYTICS_marfeel:void 0,ANALYTICS_gtm:void 0,ANALYTICS_comscore:void 0,COGNITO_AUTH_PREFIX:"ASTRO_",COGNITO_CLIENT_ID:"",COGNITO_DOMAIN:"",COGNITO_REDIRECT_URI:"",CAPTCHA_PROJECT:"",CAPTCHA_KEY:"",COMMENTS_CAPTCHA_API_KEY:"",CAPTCHA_KEY_V2:"",SHOW_TAG_BY_SECTION:!1,SHOW_NEWS_MORE_NEWS:!0,SHOW_DEV_RANKING:!0,SHOW_NEWS_RELATED_NEWS:!0,MORE_NEWS_SSR:!1,NEWS_JOURNALIST_COMPONENT:"op1",USE_QUOTE_IN_QUERY_TAG_HOME:!0,FETCH_TAG_BASED_RELATED_NEWS:!0,MULTIPUBLICATION_FETCHES:void 0};function Xr(e={}){Kn={...Kn,...e}}function z(){return Kn}const Ra=()=>{const{ANALYTICS_comscore:e}=z();return e&&n.jsx("script",{id:"comscore",dangerouslySetInnerHTML:{__html:`var _comscore=_comscore||[];_comscore.push({c1:"2",c2:"${e}",options:{enableFirstPartyCookie:true,bypassUserConsentRequirementFor1PCookie:true}});(function(){var s=document.createElement("script"),el=document.getElementsByTagName("script")[0];s.defer=true;s.src="https://sb.scorecardresearch.com/cs/${e}/beacon.js";el.parentNode.insertBefore(s,el);})();`}})},Rr=(e,t)=>e&&t?{author:e?.authors[0]?.name??"",creator:e?.authors[0]?.name??"",section:e?.info?.section?.name??"",tags:t,hiddentags:String(e?.keywords?.hiddentags)??"",newsType:e?.info?.type??"",publishDate:new Date(e?.info?.date?.firstpublish??"").toISOString().split("T")[0]??""}:void 0,es=({id:e,dimensionValues:t={}})=>{const a=E.useMemo(()=>{const o={};return Object.keys(t).forEach(r=>{o[r]=r}),o},[t]),{ANALYTICS_ga4:s}=z();return s&&n.jsxs(n.Fragment,{children:[n.jsx("script",{defer:!0,src:"https://www.googletagmanager.com/gtag/js?"+s}),n.jsx("script",{id:"googleanalytics",defer:!0,dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || [];
1
+ (function(b,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],n):(b=typeof globalThis<"u"?globalThis:b||self,n(b["sass-template-common"]={},b["react/jsx-runtime"],b.React))})(this,(function(b,n,E){"use strict";function Zr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const Xa=Zr(E);let Kn={PUBLIC_API_HOST:"",PUBLIC_API_FRONT:"",PUBLIC_API_PATH:"",PUBLIC_API_PATH_VERSION:"",PUBLIC_X_SECURITY_TOKEN:"",PUBLIC_PUBLICATION_ID:"",PUBLIC_TAG_TYPE:"",PUBLIC_ENV:"",PUBLIC_LNG:"",PUBLIC_SERVICE_PREFIX:"",PUBLIC_IS_SUB_PUBLICATION:"",PUBLIC_USERNAME_OFFLINE:"",PUBLIC_PASSWORD_OFFLINE:"",PUBLIC_IS_OFFLINE:"",PUBLIC_OFFLINE_SITE:"",PUBLIC_WP_API_HOST:"",PUBLIC_X_SECURITY_WAF_TOKEN:"",DEPLOY_BUCKET:"",PUBLIC_ASSETS_URL:"",PUBLIC_BUILD_ID:"",DATE_TIMEZONE:"America/Mexico_City",VARIANT_header:"op2",VARIANT_footer:"op2",VARIANT_section:"op1",VARIANT_videos:"op2",VARIANT_autor:"op1",VARIANT_tag:"op1",S3_ID_DIR:"0000000",CONFIG_comments:!1,CONFIG_blockDefaultTwitterHydrator:!1,CONFIG_hasSlugRoute:!0,CONFIG_slugAsSection:!0,CONFIG_shareOnlyWhatsApp:!0,CONFIG_blockDefaultSectionRoute:!1,ANALYTICS_ga4:void 0,ANALYTICS_marfeel:void 0,ANALYTICS_gtm:void 0,ANALYTICS_comscore:void 0,COGNITO_AUTH_PREFIX:"ASTRO_",COGNITO_CLIENT_ID:"",COGNITO_DOMAIN:"",COGNITO_REDIRECT_URI:"",CAPTCHA_PROJECT:"",CAPTCHA_KEY:"",COMMENTS_CAPTCHA_API_KEY:"",CAPTCHA_KEY_V2:"",SHOW_TAG_BY_SECTION:!1,SHOW_NEWS_MORE_NEWS:!0,SHOW_DEV_RANKING:!0,SHOW_NEWS_RELATED_NEWS:!0,MORE_NEWS_SSR:!1,NEWS_JOURNALIST_COMPONENT:"op1",USE_QUOTE_IN_QUERY_TAG_HOME:!0,FETCH_TAG_BASED_RELATED_NEWS:!0,MULTIPUBLICATION_FETCHES:void 0};function Xr(e={}){Kn={...Kn,...e}}function z(){return Kn}const Ra=()=>{const{ANALYTICS_comscore:e}=z();return e&&n.jsx("script",{id:"comscore",dangerouslySetInnerHTML:{__html:`var _comscore=_comscore||[];_comscore.push({c1:"2",c2:"${e}",options:{enableFirstPartyCookie:true,bypassUserConsentRequirementFor1PCookie:true}});(function(){var s=document.createElement("script"),el=document.getElementsByTagName("script")[0];s.defer=true;s.src="https://sb.scorecardresearch.com/cs/${e}/beacon.js";el.parentNode.insertBefore(s,el);})();`}})},Rr=(e,t)=>e&&t?{author:e?.authors[0]?.name??"",creator:e?.authors[0]?.name??"",section:e?.info?.section?.name??"",tags:t,hiddentags:String(e?.keywords?.hiddentags)??"",newsType:e?.info?.type??"",publishDate:new Date(e?.info?.date?.firstpublish??"").toISOString().split("T")[0]??""}:void 0,es=({id:e,dimensionValues:t={}})=>{const a=E.useMemo(()=>{const o={};return Object.keys(t).forEach(r=>{o[r]=r}),o},[t]),{ANALYTICS_ga4:s}=z();return s&&n.jsxs(n.Fragment,{children:[n.jsx("script",{defer:!0,src:"https://www.googletagmanager.com/gtag/js?"+s}),n.jsx("script",{id:"googleanalytics",defer:!0,dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || [];
2
2
  function gtag(){dataLayer.push(arguments);}
3
3
  gtag('js', new Date());
4
4
 
@@ -146,7 +146,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
146
146
  c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4\r
147
147
  c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),n.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]}),Ql=["telegram"],Nn={facebook:e=>n.jsx(_n,{...e}),instagram:e=>n.jsx(Sn,{...e}),whatsapp:e=>n.jsx(jl,{...e}),tiktok:e=>n.jsx($l,{...e}),youtube:e=>n.jsx(Gl,{...e}),x:e=>n.jsx(at,{...e}),gnews:e=>n.jsx(Ol,{...e}),podcast:e=>n.jsx(Dl,{...e}),telegram:e=>n.jsx(Ml,{...e})},Hl=e=>{const{freeZone:t,socials:a,menu:s,customBlock:o,custom_styles:r={}}=e;return n.jsxs("footer",{className:Te.content,style:r,children:[n.jsxs("section",{className:Te.brandContent,children:[n.jsx(B,{href:"/","aria-label":"Ir a la home",children:n.jsx("span",{className:Te.logoStyled,children:e.logo})}),n.jsx("div",{className:Te.socialMedia,children:Object.keys(a).map(i=>a[i]?.show&&n.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[i].title+" link",className:Te.linkSocialNetwoks,href:a[i].url,children:Nn[i]({className:`${i==="instagram"?Te.socialInstagram:""}`})},i))})]}),n.jsxs("section",{className:Te.sectionContent,children:[n.jsx("div",{className:Te.section,children:s.filter(i=>!i.subitem).map((i,c)=>n.jsx(B,{block_subPublication:!0,href:i.link?i.link:void 0,target:i.target,className:`${Te.menuItem} footer-menu-item`,"aria-label":i.description,children:i.description},c))}),n.jsx("div",{className:Te.section,children:t&&t.map((i,c)=>n.jsx(B,{block_subPublication:!0,href:i.link?i?.link:void 0,target:i.target,className:Te.otherItems,children:i.description},c))})]}),o&&n.jsx(n.Fragment,{children:o}),n.jsxs("section",{className:Te.copyrigth,children:[n.jsx("p",{className:Te.copyrigthText,children:e.copyrigth}),n.jsx(B,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:n.jsx(Pl,{})})]})]})},fe={content:"_content_pnyq2_1",imageContent:"_imageContent_pnyq2_17",width1Autor:"_width1Autor_pnyq2_35",width2Autor:"_width2Autor_pnyq2_43",width3Autor:"_width3Autor_pnyq2_51",imageAutor:"_imageAutor_pnyq2_59",imageStyled:"_imageStyled_pnyq2_137",contentIconStyled:"_contentIconStyled_pnyq2_139",avatarContent:"_avatarContent_pnyq2_173",journalistSection:"_journalistSection_pnyq2_201",journalistInfo:"_journalistInfo_pnyq2_217",journalistInfoLink:"_journalistInfoLink_pnyq2_219",socialNetworkSection:"_socialNetworkSection_pnyq2_291",avatarStyled:"_avatarStyled_pnyq2_315",article:"_article_pnyq2_325",socialButton:"_socialButton_pnyq2_333",facebookStyled:"_facebookStyled_pnyq2_365",emailStyled:"_emailStyled_pnyq2_373",xStyled:"_xStyled_pnyq2_381",linkedinStyled:"_linkedinStyled_pnyq2_389",whatsappStyled:"_whatsappStyled_pnyq2_397",whatsappLink:"_whatsappLink_pnyq2_405",clipboardButton:"_clipboardButton_pnyq2_437",googleProfileButton:"_googleProfileButton_pnyq2_509"},In=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"})}),mt=e=>n.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[n.jsx("path",{d:"M23.9693 19.7768C22.9443 20.1795 22.3065 21.1785 22.3043 22.2887L22.278 32.7258C22.278 33.1474 21.8 33.4956 21.4127 33.4956H16.1736C15.7995 33.4956 15.293 33.1629 15.293 32.7302V14.8898C15.293 14.4081 15.7995 14.0455 16.2229 14.0466L20.9335 14.051C21.3842 14.051 21.7814 14.5105 21.8065 14.9254L21.8481 15.6185C22.9082 14.4994 24.2166 13.803 25.7055 13.6316C26.5599 13.5338 27.3957 13.5326 28.2555 13.625C31.5769 13.9821 34 16.8678 34 20.2318V32.5678C34 33.0283 33.5602 33.4911 33.1216 33.4911L28.3792 33.4945C27.9295 33.4945 27.4766 33.0484 27.4766 32.57L27.4646 22.2298C27.4646 21.7247 27.3847 21.1908 27.1101 20.7769C26.445 19.7735 25.1169 19.3263 23.9704 19.7757L23.9693 19.7768ZM23.5788 18.9414C25.118 18.2683 26.9143 18.8068 27.8606 20.1751C28.261 20.7536 28.3452 21.4099 28.4021 22.1107L28.4481 32.5522H33.0712V20.3442C33.0898 17.3717 30.9664 14.7964 28.0455 14.5539C27.2742 14.4905 26.5347 14.4816 25.7799 14.585C24.3621 14.7775 23.1084 15.5262 22.266 16.6764L20.9423 18.0125L20.9292 14.9911L16.2677 15V32.5522L21.4007 32.5544L21.4028 22.2342C21.4794 20.7858 22.2441 19.5254 23.5777 18.9414H23.5788Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}),n.jsx("path",{d:"M11.6141 33.4944L7.91316 33.5011C7.09486 33.5022 6.46473 32.847 6.46582 32.006L6.46801 15.4505C6.46801 14.6384 7.09158 14.0432 7.85627 14.0432L11.5211 14.041C12.3689 14.041 13.0023 14.6885 13.0023 15.5595L12.9925 32.1773C12.9925 32.9026 12.2978 33.4922 11.6152 33.4944H11.6141ZM11.6283 32.5544C11.8952 32.4932 12.067 32.3453 12.067 32.0605V15.5106C12.067 15.1835 11.8099 14.991 11.5233 14.991H7.85846C7.59809 14.9922 7.43728 15.1791 7.39789 15.4516V32.006C7.39789 32.2986 7.597 32.5511 7.88034 32.5511L11.6272 32.5555L11.6283 32.5544Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}),n.jsx("path",{d:"M13.4654 9.03032C13.5595 10.9582 12.2708 12.6836 10.4296 13.0318C9.25798 13.2532 8.14212 12.9372 7.26804 12.1385C6.08982 11.0639 5.67082 9.39631 6.27142 7.88227C6.82716 6.48392 8.16072 5.51164 9.71855 5.4994C10.8103 5.4905 11.7829 5.93103 12.5038 6.75536C13.0628 7.3939 13.4206 8.12701 13.4654 9.03032ZM11.5094 11.5022C12.9447 10.2807 12.8058 8.12256 11.4645 7.05572C10.7119 6.45611 9.73058 6.29925 8.80289 6.61519C7.48464 7.06573 6.74621 8.42403 6.98141 9.82461C7.19255 11.0861 8.2012 11.9661 9.44068 12.1218C10.2097 12.2186 10.9022 12.0184 11.5094 11.5022Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"})]}),xo=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"})]}),Lo=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"})]}),Bo=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"})}),qo=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"})}),Fl={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(Bo,{className:e}),solid:e=>n.jsx(In,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(at,{className:e}),solid:e=>n.jsx(at,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(Aa,{className:e}),solid:e=>n.jsx(pa,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(xo,{className:e}),solid:e=>n.jsx(Lo,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>n.jsx(mt,{className:e}),solid:e=>n.jsx(mt,{className:e})}}};function Po({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?n.jsxs("div",{className:fe.socialNetworkSection,children:[e.options?.map(a=>{const s=Fl[a];if(!s)return null;const o=e.variant==="outline"?s.icon.outline:s.icon.solid,r=s.url(t);return n.jsx(B,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${fe.socialButton} ${fe[`${a.toLowerCase()}Button`]??""} ${fe[`${a.toLowerCase()}Styled`]}`,children:o("")},a)}),n.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[fe.clipboardButton,"clipbtn-id"].join(" "),children:n.jsx(wa,{})}),n.jsx("button",{type:"button","aria-label":"share",className:[fe.clipboardButton,"sharebtn-id"].join(" "),children:n.jsx(qo,{})})]}):null}const Ve={content:"_content_xlsy2_1",videoContent:"_videoContent_xlsy2_39",articleSection:"_articleSection_xlsy2_53",title:"_title_xlsy2_83",article:"_article_xlsy2_53",correspondent:"_correspondent_xlsy2_149",iframeStyled:"_iframeStyled_xlsy2_167",contentFrame:"_contentFrame_xlsy2_187"},zl=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${Be(e.video.info.date.created)}`:e?.video.main.author;return n.jsx("div",{className:Ve.content,children:n.jsx(Nt,{children:n.jsxs("div",{className:Ve.videoContent,children:[n.jsx("p",{className:Ve.title,children:e.video.main.title}),e.type==="vy"&&n.jsx("iframe",{className:Ve.iframeStyled,src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&n.jsx("iframe",{className:Ve.iframeStyled,src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&n.jsx("div",{className:Ve.contentFrame,dangerouslySetInnerHTML:{__html:e.video.main.code}}),n.jsxs("div",{className:Ve.articleSection,children:[n.jsx("p",{className:Ve.article,children:qe(e.video.main.description)}),n.jsx("p",{className:Ve.correspondent,children:t()})]})]})})})},Ca={content:"_content_79djq_1",linkStyled:"_linkStyled_79djq_17"},Gt=e=>{const{currentPage:t,showNext:a,maxPages:s,pathname:o,query:r,block_subPublication:i}=e,c=(h,l,d)=>{let u="";const f=l.split("/");return f.indexOf("page")!==-1&&f.splice(u.indexOf("page")-1,f.length-1),f.forEach((g,m)=>{m!==0&&(u+=`/${g}`)}),h==="next"?u+=`/page/${t+1}${d?`?query=${d}`:""}`:u+=`/page/${t-1}${d?`?query=${d}`:""}`};return(t>1||a&&t<s)&&n.jsxs("section",{className:Ca.content,children:[t>1&&n.jsx(B,{block_subPublication:i,className:Ca.linkStyled,href:c("prev",o||"",r||""),children:e.texts.prevButtonText??"Anterior"}),a&&t<s&&n.jsx(B,{block_subPublication:i,className:Ca.linkStyled,href:c("next",o||"",r||""),children:e.texts.nextButtonText??"Siguiente"})]})},En={content:"_content_1tki3_1",contentGrid:"_contentGrid_1tki3_15",contentGrid4:"_contentGrid4_1tki3_33",contentGrid3:"_contentGrid3_1tki3_41"},Tn=e=>{const{grid:t=3}=e;return n.jsxs("section",{className:`${En.content}`,children:[n.jsx("div",{className:`${En.contentGrid} ${e.className?e.className:""} ${t===3?En.contentGrid3:En.contentGrid4} news-content`,children:e.children}),n.jsx(n.Fragment,{children:e.paginatorComponent})]})},Qt={content:"_content_3pssn_1",newsDescription:"_newsDescription_3pssn_29",image:"_image_3pssn_81"},Ge=e=>{const{main:t,authors:a,info:s,preview:o,share:r,isVideo:i,config:c,overImage:h="default",isTitle:l,priorityHigh:d=!1,isLarge:u,paths:f,keywords:g}=e;return n.jsxs("section",{className:Qt.content,style:{...e.customSectionCardStyles},children:[n.jsx(B,{"aria-label":e.main?.title?.section,className:Qt.image,title:t?.title?.section,href:s?.link?.url,target:s?.link?.target,children:n.jsx(Ee,{preview:o,isVideo:i,isLarge:u,priorityHigh:d})}),n.jsx("div",{className:Qt.newsDescription,children:n.jsx(ft,{main:t,authors:a,info:s,preview:o,share:r,config:c,overImage:h,isTitle:l,paths:f,keywords:g})})]})},st={content:"_content_1afla_1",boxInformation:"_boxInformation_1afla_23",titleGradient:"_titleGradient_1afla_59",sectionDescription:"_sectionDescription_1afla_115",articule:"_articule_1afla_165",linkStyled:"_linkStyled_1afla_231"},Ht=e=>{const{isVideo:t,info:a,main:s,overImage:o="default",titleGradient:r=!1}=e,{SHOW_TAG_BY_SECTION:i,SUB_PUBLICATION_PREFIX_IN_ROUTES:c}=z(),h=()=>{if(i&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const l=e.keywords.tags[0],d=l.name;return l.approved?n.jsx("h3",{children:n.jsx(B,{"aria-label":d,block_subPublication:c?.tema,className:st.sectionDescription,href:tt(l,e.paths),children:d})}):n.jsx("div",{className:st.sectionDescription,children:d})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(B,{className:st.sectionDescription,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return n.jsxs("section",{className:st.content,children:[n.jsx(B,{title:s?.title?.section,href:a.link.url,target:a.link.target,children:n.jsx(Ee,{preview:e.preview,isVideo:t})}),n.jsxs("div",{className:[st.boxInformation,r?st.titleGradient:""].join(" "),style:{width:o!=="default"?"90%":"",left:o==="left"?0:o==="right"?"calc(10% - 1px)":"auto",top:o!=="default"?"-1rem":""},children:[n.jsx(h,{}),n.jsx("h2",{className:st.articule,children:n.jsx(B,{className:st.linkStyled,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},Oo={content:"_content_63xzh_1",contentLayout:"_contentLayout_63xzh_9"},va=e=>n.jsx("div",{className:Oo.content,children:n.jsx(Nt,{className:`${Oo.contentLayout} ${e.className}`,children:e.children})}),Et={content:"_content_1qewa_1",before:"_before_1qewa_21",textContent:"_textContent_1qewa_43",title:"_title_1qewa_73",description:"_description_1qewa_91",linkStyled:"_linkStyled_1qewa_113"},Vl=e=>{const t=e.logo;return n.jsxs("section",{className:Et.content,children:[e.backgroundImgURL&&n.jsx("img",{className:Et.before,src:e.backgroundImgURL,alt:""}),n.jsxs("div",{className:`${Et.textContent} error-text-content`,children:[n.jsx(t,{}),n.jsx("p",{className:Et.title,children:e.title}),n.jsx("p",{className:Et.description,children:e.description}),n.jsx(B,{className:Et.linkStyled,href:"/",children:e.buttonText??"Inicio"})]})]})},Ft={content:"_content_14eky_1",contentLabel:"_contentLabel_14eky_15",label:"_label_14eky_25",required:"_required_14eky_43",input:"_input_14eky_55"},Wl=e=>n.jsxs("div",{className:Ft.content,children:[n.jsxs("div",{className:Ft.contentLabel,children:[n.jsx("label",{className:Ft.label,children:e.label}),e.required&&n.jsx("span",{className:Ft.required,children:"*"})]}),n.jsx("input",{className:Ft.input,...e})]}),zt={content:"_content_1ukl4_1",contentLabel:"_contentLabel_1ukl4_15",label:"_label_1ukl4_25",required:"_required_1ukl4_43",input:"_input_1ukl4_55"},Yl=e=>n.jsxs("div",{className:zt.content,children:[n.jsxs("div",{className:zt.contentLabel,children:[n.jsx("label",{className:zt.label,children:e.label}),e.required&&n.jsx("span",{className:zt.required,children:"*"})]}),n.jsxs("select",{className:zt.input,...e,children:[n.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((t,a)=>n.jsx("option",{value:t.value,children:t.label},a))]})]}),_a={content:"_content_ljg8f_1",label:"_label_ljg8f_15",input:"_input_ljg8f_33"},Kl=e=>n.jsxs("div",{className:_a.content,children:[n.jsx("label",{className:_a.label,children:e.label}),n.jsx("textarea",{className:_a.input,...e})]}),ot={boxInformation:"_boxInformation_1ah38_1",textBox:"_textBox_1ah38_59",contentBox:"_contentBox_1ah38_79",liveBox:"_liveBox_1ah38_99",dot:"_dot_1ah38_143",sectionDescription:"_sectionDescription_1ah38_193",articule:"_articule_1ah38_219",description:"_description_1ah38_273"},kn={content:"_content_va67u_1",description:"_description_va67u_45"},Do=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:kn.content,children:[n.jsx(Ee,{preview:e.preview,isLarge:!0,priorityHigh:!0}),t&&n.jsx("div",{className:kn.description,children:t})]})},Mo=e=>n.jsx(n.Fragment,{children:n.jsxs("div",{className:`${ot.boxInformation} sass-liveblog-header`,children:[n.jsx(Do,{preview:e.preview}),n.jsxs("div",{className:ot.textBox,children:[n.jsxs("div",{className:ot.contentBox,children:[e?.info?.section&&n.jsx(B,{className:ot.sectionDescription,href:e?.info?.section?.url,children:e?.info?.section?.name}),n.jsxs("div",{className:ot.liveBox,children:[n.jsx("span",{className:ot.dot}),n.jsx("p",{children:"EN VIVO"})]})]}),n.jsx("h1",{className:ot.articule,children:e.main?.title?.section}),e.config?.showsubtitle&&n.jsx("div",{className:ot.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),Un={content:"_content_35x7r_1",contentLine:"_contentLine_35x7r_33",contentText:"_contentText_35x7r_47",dateLink:"_dateLink_35x7r_73"},$o=e=>n.jsx("section",{className:Un.content,children:e.itemList[0]?.list.items.map((t,a)=>n.jsxs("div",{className:Un.contentLine,children:[n.jsx(B,{className:Un.dateLink,href:`#item-${a+1}`,children:ls(t.date)}),n.jsx("div",{className:Un.contentText,children:(e.itemList[0]?.list.integrated,t.title)})]},a))}),ce={content:"_content_1qe2s_1",contentInfo:"_contentInfo_1qe2s_21",imageContainer:"_imageContainer_1qe2s_37",imageStyled:"_imageStyled_1qe2s_55",contentIconStyled:"_contentIconStyled_1qe2s_77",name:"_name_1qe2s_129",email:"_email_1qe2s_147",description:"_description_1qe2s_179",contenSocialNetwork:"_contenSocialNetwork_1qe2s_203",socialIcon:"_socialIcon_1qe2s_223",socialIconFilled:"_socialIconFilled_1qe2s_233",faceBookIcon:"_faceBookIcon_1qe2s_249",socialIconLink:"_socialIconLink_1qe2s_267",socialIconStroke:"_socialIconStroke_1qe2s_283"},jo=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\r
148
148
  H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3\r
149
- h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})}),xn=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Jl=e=>!e||e.trim()===""?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),Go=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:s=!1}=e,o=a,r=t?.info?.image?.sizes?.[0]?.url??"",i=t?.info?.fullname??"",c=t?.info?.email??"",h=t?.addtional?.USER_SHOWEMAIL??!1,l=t?.addtional?.USER_SHOWBIO??!1,d=t?.addtional?.USER_MIBIO??"",u=xn(t?.addtional?.USER_USERFB??""),f=xn(t?.addtional?.USER_USERIG??""),g=xn(t?.addtional?.USER_USERTWT??""),m=xn(t?.addtional?.USER_USERLIN??""),p=()=>!h||!c||c.trim()===""?!1:Jl(c),A=w=>`mailto:${w.trim()}`;return n.jsx("section",{className:`${ce.content} ${e.className?e.className:""}`,children:n.jsxs("div",{className:ce.contentInfo,children:[r?n.jsx("div",{className:`${ce.imageContainer} sass-image-autor-wrapper`,children:n.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"",className:ce.imageStyled,src:await ue(r)})}):n.jsx("div",{className:`${ce.contentIconStyled} sass-image-autor-wrapper`,children:n.jsx(o,{})}),n.jsx("h1",{className:ce.name,children:i}),p()&&n.jsx("a",{href:A(c),className:ce.email,"aria-label":`Enviar correo electrónico a ${c}`,title:`Enviar correo a ${c}`,children:c}),l&&n.jsx("p",{className:ce.description,children:d}),n.jsxs("div",{className:ce.contenSocialNetwork,children:[u&&n.jsx("a",{href:u,target:"_blank",className:`${ce.socialIconLink} ${s?ce.socialIconFilled:ce.socialIconStroke}`,rel:"noreferrer",children:s?n.jsx(In,{className:ce.socialIcon}):n.jsx(_n,{className:ce.faceBookIcon})}),f&&n.jsx("a",{href:f,target:"_blank",className:ce.socialIconLink,rel:"noreferrer",children:n.jsx(Sn,{className:ce.socialIcon})}),g&&n.jsx("a",{href:g,target:"_blank",className:ce.socialIconLink,rel:"noreferrer",children:n.jsx(at,{className:ce.socialIcon})}),m&&n.jsx("a",{href:m,target:"_blank",className:`${ce.socialIconLink} ${s?ce.socialIconFilled:ce.socialIconStroke}`,rel:"noreferrer",children:s?n.jsx(jo,{className:ce.socialIcon}):n.jsx(mt,{className:ce.socialIcon})})]})]})})},me={content:"_content_hzla8_1",contentInfo:"_contentInfo_hzla8_25",contentAuthor:"_contentAuthor_hzla8_51",imageStyled:"_imageStyled_hzla8_65",contentIconStyled:"_contentIconStyled_hzla8_83",name:"_name_hzla8_127",email:"_email_hzla8_143",description:"_description_hzla8_163",contenSocialNetwork:"_contenSocialNetwork_hzla8_185",socialIcon:"_socialIcon_hzla8_205",socialIconFilled:"_socialIconFilled_hzla8_223",socialIconStroke:"_socialIconStroke_hzla8_247",blackIconFaceBook:"_blackIconFaceBook_hzla8_263"},Qo=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:s=!1}=e,o=a,r=t?.info?.image?.sizes?.[0]?.url??"",i=t?.info?.fullname??"",c=t?.info?.email??"",h=t?.addtional?.USER_SHOWEMAIL??!1,l=t?.addtional?.USER_SHOWBIO??!1,d=t?.addtional?.USER_MIBIO??"",u=t?.addtional?.USER_USERFB??"",f=t?.addtional?.USER_USERIG??"",g=t?.addtional?.USER_USERTWT??"",m=t?.addtional?.USER_USERLIN??"";return n.jsx("section",{className:me.content,children:n.jsxs("div",{className:me.contentInfo,children:[r?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:me.imageStyled,src:await ue(r)}):n.jsx("div",{className:me.contentIconStyled,children:n.jsx(o,{})}),n.jsxs("div",{className:me.contentAuthor,children:[n.jsx("h1",{className:me.name,children:i}),h&&n.jsx("p",{className:me.email,children:c}),l&&n.jsx("p",{className:me.description,children:d}),n.jsxs("div",{className:me.contenSocialNetwork,children:[u&&n.jsx("a",{href:u,target:"_blank",className:s?me.socialIconFilled:me.socialIconStroke,rel:"noreferrer",children:s?n.jsx(In,{className:`${me.blackIconFaceBook} ${me.socialIcon}`}):n.jsx(_n,{className:me.socialIcon})}),f&&n.jsx("a",{href:f,target:"_blank",rel:"noreferrer",children:n.jsx(Sn,{className:me.socialIcon})}),g&&n.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:n.jsx(at,{className:me.socialIcon})}),m&&n.jsx("a",{href:m,target:"_blank",className:s?me.socialIconFilled:me.socialIconStroke,rel:"noreferrer",children:s?n.jsx(jo,{className:me.socialIcon}):n.jsx(mt,{className:me.socialIcon})})]})]})]})})},Ho={content:"_content_1p4ec_1",bannerSection:"_bannerSection_1p4ec_49"},Sa=e=>n.jsxs("section",{className:Ho.content,children:[e.children,n.jsxs("div",{className:Ho.bannerSection,children:[e.bannerTop,n.jsx(vn,{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]})]}),De={content:"_content_a632w_1",header:"_header_a632w_59",videos:"_videos_a632w_111",videoContent:"_videoContent_a632w_125",articleSection:"_articleSection_a632w_139",contentLayoutVideoSection:"_contentLayoutVideoSection_a632w_169",sectionVideoList:"_sectionVideoList_a632w_185",iframeStyled:"_iframeStyled_a632w_331",contentFrame:"_contentFrame_a632w_343"},Ln={content:"_content_1s9as_1",linkImage:"_linkImage_1s9as_23",playStyled:"_playStyled_1s9as_37",newsDescription:"_newsDescription_1s9as_73"},Zl=async e=>{const t=Cn(),a={...e,main:{...e.main,title:{...e.main.title,article:qe(e.main.title.article,60)}}};return e&&e.info?n.jsxs("section",{className:Ln.content,children:[n.jsx("a",{className:Ln.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 ue(e.preview.sizes[0]?.url||"")}),n.jsx(t,{className:`${Ln.playStyled} saas-image-play-icon`})]})}),n.jsx("div",{className:Ln.newsDescription,children:n.jsx(ft,{...a,paths:e.paths})})]}):null},Xl=e=>{let t=[];return e.videoList&&e.videoList.length>0&&(t=e.videoList?.filter(a=>a.info.path!==e.video.info.path)??[]),n.jsx("div",{className:De.content,children:n.jsxs(Nt,{className:De.contentLayoutVideoSection,children:[n.jsxs("a",{className:De.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:De.videos,children:[n.jsxs("div",{className:De.videoContent,style:e.mainVideoStyles,children:[e.type==="vy"&&n.jsx("iframe",{className:De.iframeStyled,src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&n.jsx("iframe",{className:De.iframeStyled,src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0,allow:"autoplay; fullscreen",sandbox:"allow-scripts allow-same-origin allow-presentation allow-popups"}),e.type==="ve"&&n.jsx("div",{className:De.contentFrame,dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),n.jsx("div",{className:De.articleSection,children:n.jsx(ft,{isTitle:!0,cutSubtitle:!1,...Ct({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description,!0),paths:e.paths})})]}),n.jsxs("div",{className:De.sectionVideoList,style:e.listVideoStyles,children:[e.banner&&n.jsx(we,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&n.jsx("h2",{className:`${De.relatedTitle} saas-video-related-title`,children:e.relatedName}),Array.isArray(t)&&t.map((a,s)=>E.createElement(Zl,{...Ct(a,!0,!1,!1),key:s,paths:e.paths}))]})]})]})})},We={content:"_content_17oas_1",titleContent:"_titleContent_17oas_47",title:"_title_17oas_47",startLine:"_startLine_17oas_175",line:"_line_17oas_185",bottomLine:"_bottomLine_17oas_197",childrenContent:"_childrenContent_17oas_235",readMore:"_readMore_17oas_261"},ge=E.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:s=!1}=e,o=a?n.jsx("h1",{className:We.title,children:e.title}):n.jsx("h2",{className:We.title,children:e.title});return n.jsxs("section",{className:We.content,children:[e.title&&n.jsxs("div",{className:[We.titleContent,e.className??""].join(" "),"data-after":`${s}`,children:[n.jsx("hr",{className:We.startLine}),e.titleUrl?n.jsx(B,{href:e.titleUrl,children:o}):o,n.jsx("hr",{className:We.line}),e.titleUrl&&n.jsx(B,{className:We.readMore,href:e.titleUrl?.toString()??""})]}),e.title&&n.jsx("hr",{className:[We.bottomLine,e.className??""].join(" ")}),n.jsx("div",{className:We.childrenContent,ref:t,children:e.children})]})}),Na=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"})}),Bn=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"})}),he={drawerStyled:"_drawerStyled_19j18_1",sidebarCustom:"_sidebarCustom_19j18_11",accordionStyled:"_accordionStyled_19j18_47",accordionHeading:"_accordionHeading_19j18_69",accordionSummeryStyled:"_accordionSummeryStyled_19j18_87",linkStyled:"_linkStyled_19j18_143",subLinkStyled:"_subLinkStyled_19j18_191",inputContent:"_inputContent_19j18_235",buttonContent:"_buttonContent_19j18_237",inputStyled:"_inputStyled_19j18_257",buscar:"_buscar_19j18_289",buttonStyled:"_buttonStyled_19j18_347",accordionDetailsStyled:"_accordionDetailsStyled_19j18_377",footerSlider:"_footerSlider_19j18_407",socialMedia:"_socialMedia_19j18_429",copyRights:"_copyRights_19j18_469",icon:"_icon_19j18_491"},Rl=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:s,searchKeyWord:o,custom_styles:r={}})=>{const{PUBLIC_SERVICE_PREFIX:i,PUBLIC_IS_SUB_PUBLICATION:c,SUB_PUBLICATION_PREFIX_IN_ROUTES:h}=z(),l=h?.buscar&&i!=="false"&&c!=="false"?"/"+i:"";return n.jsxs("aside",{className:he.drawerStyled,id:"sidebar-expandable",style:{...r,"--header-icons":"var(--search-input-icons)"},children:[n.jsx("input",{type:"checkbox",id:"side-bar-state"}),n.jsxs("section",{className:he.sidebarCustom,children:[n.jsx("div",{className:he.buttonContent,children:n.jsx("label",{className:he.buttonStyled,htmlFor:"side-bar-state",children:n.jsx(It,{className:he.icon})})}),n.jsx("div",{className:he.inputContent,children:n.jsxs("form",{className:he.inputStyled,action:l+"/buscar",method:"GET",children:[n.jsx("input",{className:he.buscar,type:"text",name:"query",placeholder:o+"..."}),n.jsx("button",{type:"submit",style:{background:"transparent",border:"none",outline:"none",padding:0,margin:0},children:n.jsx(Na,{color:"var(--search-input-icons)"})})]})}),n.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[n.jsxs("div",{children:[s,e.map((d,u)=>n.jsxs("div",{className:he.accordionStyled,children:[n.jsx("input",{type:"checkbox",style:{display:"none"},id:"accordion_"+u}),n.jsx("h3",{className:he.accordionHeading,children:Array.isArray(d.subitem)?n.jsxs("label",{className:he.accordionSummeryStyled,htmlFor:"accordion_"+u,children:[d.link?n.jsx(B,{block_subPublication:!0,className:`${he.linkStyledAccordion} ${he.linkStyled}`,href:d.link?d.link:void 0,target:d.target,children:d.description}):n.jsx("div",{children:d.description}),n.jsx(Bn,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):n.jsx(B,{block_subPublication:!0,className:he.linkStyled,href:d.link?d.link:void 0,target:d.target,children:d.description})}),Array.isArray(d.subitem)&&n.jsx("div",{className:he.accordionDetailsStyled,style:{"--max-height":d.subitem.length*45+"px"},children:d.subitem.map((f,g)=>n.jsx(B,{block_subPublication:!0,className:he.subLinkStyled,href:f.link?f.link:void 0,target:f.target,children:f.description},g))})]},u))]}),n.jsxs("div",{className:he.footerSlider,children:[n.jsx("div",{className:he.socialMedia,children:Object.keys(t).map(d=>t[d]?.show&&n.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":t[d].title+" link",className:he.linkSocialNetwork,href:t[d].url,children:Nn[d]({className:he.icon})},d))}),n.jsx("p",{className:he.copyRights,children:a})]})]})]})]})},Fo=e=>n.jsx("svg",{width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.jsx("path",{d:"M1.5 18H25.5C26.325 18 27 17.325 27 16.5C27 15.675 26.325 15 25.5 15H1.5C0.675 15 0 15.675 0 16.5C0 17.325 0.675 18 1.5 18ZM1.5 10.5H25.5C26.325 10.5 27 9.825 27 9C27 8.175 26.325 7.5 25.5 7.5H1.5C0.675 7.5 0 8.175 0 9C0 9.825 0.675 10.5 1.5 10.5ZM0 1.5C0 2.325 0.675 3 1.5 3H25.5C26.325 3 27 2.325 27 1.5C27 0.675 26.325 0 25.5 0H1.5C0.675 0 0 0.675 0 1.5Z",fill:e.color})}),Vt={content:"_content_3cj5t_1",chipStyled:"_chipStyled_3cj5t_33",headLine:"_headLine_3cj5t_33",live:"_live_3cj5t_49",closeLiveStyled:"_closeLiveStyled_3cj5t_173"},zo=e=>{const{alertZone:t,id:a="close-alert"}=e,s=()=>n.jsx(B,{className:Vt.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:Vt.content,style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[n.jsxs("div",{className:Vt.live,children:[n.jsx("div",{className:Vt.chipStyled,children:t?.entity?.description}),e.forceShow&&n.jsx(s,{}),n.jsx("label",{htmlFor:a,children:n.jsx(It,{className:Vt.closeLiveStyled})})]}),n.jsx(s,{})]})]})},Ye={content:"_content_5xbcx_1",linkStyled:"_linkStyled_5xbcx_27",linkSocialNetwork:"_linkSocialNetwork_5xbcx_55",title:"_title_5xbcx_107",tabs:"_tabs_5xbcx_129",socialNetwork:"_socialNetwork_5xbcx_145",icon:"_icon_5xbcx_165",facebook:"_facebook_5xbcx_177",youtube:"_youtube_5xbcx_185",x:"_x_5xbcx_193",instagram:"_instagram_5xbcx_201",gnews:"_gnews_5xbcx_209",tiktok:"_tiktok_5xbcx_217",whatsapp:"_whatsapp_5xbcx_225"},Vo=e=>{const{cintillo:t,tapeTitle:a,socials:s}=e,o="",r=t?.findIndex(i=>i.link===o)??0;return(Array.isArray(t)||e.socialIcons)&&n.jsxs("section",{className:Ye.content,children:[Array.isArray(t)&&n.jsxs("div",{className:`${Ye.tabs} header-page-tape-content`,children:[a!==""&&n.jsx("p",{className:Ye.title,children:`${a}`}),t&&t[r]&&n.jsx(B,{block_subPublication:!0,className:Ye.linkStyled,target:t[r]?.target,href:t[r]?.link,style:{color:t[r]?.link===o?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[r]?.link===o?"700":"400"},children:t[r]?.description},r),t&&t.map((i,c)=>{if(c!==r)return n.jsx(B,{block_subPublication:!0,className:Ye.linkStyled,href:i?.link,style:{color:i?.link===o?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===o?"700":"400"},children:i?.description},c)})]}),n.jsx("div",{className:Ye.socialNetwork,children:Object.keys(s).map(i=>s[i]?.show&&n.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":s[i].title+" link",className:Ye.linkSocialNetwork,href:s[i].url,children:Nn[i]({className:[Ye.icon,Ye[i]??""].join(" ")})},i))})]})},ke={headerStyled:"_headerStyled_16ogi_1",headerContent:"_headerContent_16ogi_27",iconContent:"_iconContent_16ogi_49",menuButton:"_menuButton_16ogi_67",logoStyled:"_logoStyled_16ogi_131",buttonSection:"_buttonSection_16ogi_187",buttonSectionSearch:"_buttonSectionSearch_16ogi_217",headLineContent:"_headLineContent_16ogi_261",headLineTitle:"_headLineTitle_16ogi_287",headLine:"_headLine_16ogi_261",hasAlertZone:"_hasAlertZone_16ogi_393"},ed=e=>{const{alertZone:t,custom_styles:a={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:s}=z();return n.jsxs("header",{className:ke.headerStyled,style:a,id:"saas-header-sticky",children:[e.socialIcons&&e.headerTape?.sticky&&n.jsx(Vo,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),n.jsxs("div",{className:`${ke.headerContent} center-mobile-header-icon`,children:[n.jsx(ba,{id:"button-app",className:ke.menuButton,toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:n.jsx(Fo,{className:ke.startIcon,color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27})}),n.jsxs("div",{className:ke.iconContent,children:[n.jsx(B,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:E.createElement("span",{className:ke.logoStyled},e.icon)}),e.mobileIcon?n.jsx(B,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky header-mobile-icon",style:{display:"flex"},children:E.createElement("span",{className:ke.logoStyled},e.mobileIcon())}):null]}),!e.showAlertPop&&t?.data&&n.jsxs("div",{className:ke.headLineContent,children:[n.jsx("div",{className:`${ke.headLineTitle} headLineTitle`,children:t.entity.description?`${t.entity.description}`:""}),n.jsx(B,{className:ke.headLine,href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:qe(t.data[0]?.main.title.home??"",120)})]}),n.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:[ke.buttonSection,t?.data?ke.hasAlertZone:"","search-button"].join(" "),children:[n.jsx(B,{block_subPublication:s?.buscar,href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:`${ke.buttonSectionSearch} search-button-icon`,style:{display:"flex"},children:n.jsx(Na,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&n.jsx(zo,{alertZone:t,forceShow:e.showAlertPop})]})},Ke={ul:"_ul_dtv5r_1",li:"_li_dtv5r_19",liBefore:"_liBefore_dtv5r_35",ulContent:"_ulContent_dtv5r_57",contentModal:"_contentModal_dtv5r_111",linkStyled:"_linkStyled_dtv5r_135",itemLink:"_itemLink_dtv5r_185"},td=e=>{const{items:t}=e;return n.jsx("ul",{className:Ke.ul,children:t.map((a,s)=>n.jsxs("li",{className:`${Ke.liBefore} ${Ke.li}`,children:[a.link?n.jsxs(B,{block_subPublication:!0,"aria-label":a.description,className:Ke.linkStyled,href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&n.jsx(Bn,{})]}):n.jsxs("span",{"aria-label":a.description,className:Ke.linkStyled,children:[a.description,Array.isArray(a.subitem)&&n.jsx(Bn,{})]}),Array.isArray(a.subitem)&&n.jsx("ul",{className:Ke.ulContent,children:n.jsx("div",{className:Ke.contentModal,children:a.subitem.map((o,r)=>n.jsx("li",{className:Ke.li,children:n.jsx(B,{block_subPublication:!0,className:Ke.itemLink,"aria-label":o.description,href:o.link?o.link:void 0,target:o.target,children:o.description})},r))})})]},s))})},be={headerStyled:"_headerStyled_1yeov_1",headerContent:"_headerContent_1yeov_45",menuButtonSection:"_menuButtonSection_1yeov_65",menuButton:"_menuButton_1yeov_65",buttonSection:"_buttonSection_1yeov_167",buttonSectionSearch:"_buttonSectionSearch_1yeov_201",hasAlertZone:"_hasAlertZone_1yeov_223",buttonText:"_buttonText_1yeov_261",logoContent:"_logoContent_1yeov_281",logoStyled:"_logoStyled_1yeov_297",headLineContent:"_headLineContent_1yeov_345",headLineTitle:"_headLineTitle_1yeov_375",menuSection:"_menuSection_1yeov_407",headLine:"_headLine_1yeov_345",line:"_line_1yeov_511"},nd=e=>{const{menu:t,alertZone:a,custom_styles:s={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:o}=z();return n.jsxs("header",{className:be.headerStyled,id:"saas-header-static",style:{...s,top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&n.jsx(Vo,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),n.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:[be.headerContent,a?.data?be.hasAlertZone:""].join(" "),children:[n.jsx("div",{className:`${be.menuButtonSection} sass-header-menu-button`,children:n.jsxs(ba,{className:be.menuButton,id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[n.jsx(Fo,{color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27}),n.jsx("p",{className:be.buttonText,style:{lineHeight:0},children:e.menuText})]})}),n.jsx("div",{className:be.logoContent,children:n.jsx(B,{href:"/","aria-label":"Home",className:"header-logo-link",children:E.createElement("span",{className:`${be.logoStyled}`},e.icon)})}),n.jsxs("div",{className:`${be.buttonSection} sass-header-right-button-section`,children:[n.jsx(B,{block_subPublication:o?.buscar,href:e.searchLink?e.searchLink:"/buscar",className:be.buttonSectionSearch,"aria-label":e.searchKeyWord,children:n.jsx(Na,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?n.jsxs("div",{className:be.headLineContent,children:[n.jsx("p",{className:`${be.headLineTitle} headLineTitle`,children:a.entity.description?`${a.entity.description}`:""}),n.jsx(B,{className:be.headLine,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:qe(a.data[0]?.main.title.home??"",120)})]}):n.jsx("div",{className:be.line}),n.jsx("div",{className:be.menuSection,style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&n.jsx(td,{items:t})})]})]})},Ia={childrenContent:"_childrenContent_13giv_1",childrenContentAux:"_childrenContentAux_13giv_23",op2:"_op2_13giv_49"},ad=e=>{const{alertZone:t,children:a,sidebar:s,custom_styles:o={}}=e;return n.jsxs(n.Fragment,{children:[n.jsx(ed,{...e}),!e.showOnlyStickyHeader&&n.jsx(nd,{...e}),n.jsxs("div",{className:[Ia.childrenContent,e.showAlertPop?Ia.op2:"",t?.data?Ia.childrenContentAux:""].join(" "),style:e.showOnlyStickyHeader?{...o,"--hasAlertMargin":"3.6rem !important"}:o,id:"content-layout",children:[e.showAlertPop&&n.jsx(zo,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]}),n.jsx(Rl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:s,socials:e.socials,copyrigth:e.copyrigth,custom_styles:e.custom_styles})]})},Tt={content:"_content_1ntb2_1",tags:"_tags_1ntb2_19",chipStyled:"_chipStyled_1ntb2_39",tagLink:"_tagLink_1ntb2_93",tagStyled:"_tagStyled_1ntb2_105"},Wo=e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=z();return n.jsx("section",{className:Tt.content,children:Array.isArray(e.tags)&&n.jsxs("div",{className:Tt.tags,children:[n.jsx("p",{className:Tt.tagStyled,children:e.title?e.title:"Tags:"}),e.tags.map((a,s)=>a.approved?n.jsx(B,{block_subPublication:t?.tema,href:tt(a,e.paths),children:n.jsx("div",{className:`${Tt.chipStyled} ${Tt.tagLink}`,children:a.name})},s):n.jsx("div",{className:Tt.chipStyled,children:a.name},s))]})})},Qe={contentBox:"_contentBox_75ed7_1",content:"_content_75ed7_1",imageStyled:"_imageStyled_75ed7_43",contentIconStyled:"_contentIconStyled_75ed7_57",avatarContent:"_avatarContent_75ed7_97",journalistSection:"_journalistSection_75ed7_111",journalistInfo:"_journalistInfo_75ed7_123",socialNetworkSection:"_socialNetworkSection_75ed7_161",article:"_article_75ed7_187"},Yo=async e=>{const{autor:t}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=z(),s=t?.addtional?.USER_SHOWBIO??!1,o=t?.info?.name??"",r=t?.info?.fullname??"",i=t?.info?.image?.sizes?.[0]?.url??"",c=t?.addtional?.USER_MIBIO??"",h=t?.addtional?.USER_USERFB??"",l=t?.addtional?.USER_USERIG??"",d=t?.addtional?.USER_USERTWT??"",u=t?.addtional?.USER_USERLIN??"";return s&&n.jsx("section",{className:Qe.contentBox,children:n.jsxs("div",{className:Qe.content,children:[n.jsxs("div",{className:Qe.avatarContent,children:[n.jsx(B,{block_subPublication:a?.autor,className:Qe.journalistInfo,href:`/${e.paths.autor}/${o}`,children:i?n.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor-image",className:Qe.imageStyled,src:await ue(i)}):n.jsx("div",{className:Qe.contentIconStyled,children:e.autorIcon})}),n.jsxs("section",{className:Qe.journalistSection,children:[n.jsx("h3",{className:Qe.journalistInfo,children:n.jsx(B,{block_subPublication:a?.autor,href:`/${e.paths.autor}/${o}`,children:r})}),n.jsxs("section",{className:Qe.socialNetworkSection,children:[h&&n.jsx("a",{href:h,target:"_blank","aria-label":c,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"})})}),l&&n.jsx("a",{href:l,target:"_blank","aria-label":c,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)"})})})]})}),d&&n.jsx("a",{href:d,target:"_blank","aria-label":c,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"})})}),u&&n.jsx("a",{href:u,target:"_blank","aria-label":c,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"})]})})]})]})]}),s&&n.jsx("p",{className:Qe.article,dangerouslySetInnerHTML:{__html:`${c} <a aria-label="${o}" href="/${e.paths.autor}/${o}">${e.texts.authorViewMore??"Ver más"}</a>`}})]})})},rt={content:"_content_1po76_1",imageStyled:"_imageStyled_1po76_39",contentIconStyled:"_contentIconStyled_1po76_41",contentCard:"_contentCard_1po76_61",contentInfo:"_contentInfo_1po76_139",fullName:"_fullName_1po76_151",LearnMoreLink:"_LearnMoreLink_1po76_165"},Ko=async e=>{const{news:t,texts:a}=e;return t.config?.showauthor&&n.jsx("div",{className:rt.content,children:Array.isArray(t.authors)&&t.authors?.map(async s=>n.jsxs("div",{className:rt.contentCard,children:[s.image?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:rt.imageStyled,src:await ue(s.image.sizes[0]?.url||"")},s.fullname):n.jsx("div",{className:rt.contentIconStyled,children:e.autorIcon},s.fullname),n.jsxs("div",{className:rt.contentInfo,children:[s.internaluser?n.jsx("a",{className:rt.fullName,href:`/${e.paths.autor}/${s.name}`,children:s.fullname}):n.jsx("p",{className:rt.fullName,children:s.fullname}),s.internaluser&&n.jsx("a",{className:rt.LearnMoreLink,href:`/${e.paths.autor}/${s.name}`,children:a.JournalistGroupLink})]})]},`author-${s.firstname}`))})},pe={content:"_content_1xbot_1",urlTag:"_urlTag_1xbot_23",contentInfo:"_contentInfo_1xbot_75",imageStyled:"_imageStyled_1xbot_109",name:"_name_1xbot_119",description:"_description_1xbot_129",imageContainer:"_imageContainer_1xbot_155",contenSocialNetwork:"_contenSocialNetwork_1xbot_297",socialIcon:"_socialIcon_1xbot_317",faceBookIcon:"_faceBookIcon_1xbot_327",socialFacebookIcon:"_socialFacebookIcon_1xbot_337",socialIconLink:"_socialIconLink_1xbot_345",socialIconStroke:"_socialIconStroke_1xbot_353",contentInfoWithoutImg:"_contentInfoWithoutImg_1xbot_361"},qn=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},sd=async e=>{const t=e.img?await ue(e.img):"",a=qn(e.social?.facebook??""),s=qn(e.social?.instagram??""),o=qn(e.social?.twitter??""),r=qn(e.social?.linkedin??"");return n.jsx("section",{className:`${pe.content} ${e.className}`,children:n.jsxs("div",{className:`${pe.contentInfo} ${t?"":pe.contentInfoWithoutImg}`,children:[e.img&&n.jsx("div",{className:`${pe.imageContainer} sass-image-tag-wrapper`,children:n.jsx("img",{fetchPriority:"low",loading:"lazy",className:pe.imageStyled,src:t})}),n.jsx("h1",{className:pe.name,children:e.tag}),e.description&&n.jsx("div",{className:pe.description,dangerouslySetInnerHTML:{__html:e.description}}),e.url&&n.jsx("a",{className:pe.urlTag,href:e.url,children:e.url}),n.jsxs("div",{className:pe.contenSocialNetwork,children:[a&&n.jsx("a",{href:a,target:"_blank",className:`${pe.socialFacebookIcon} ${pe.socialIconStroke}`,rel:"noreferrer",children:n.jsx(_n,{className:pe.faceBookIcon})}),s&&n.jsx("a",{href:s,target:"_blank",className:pe.socialIconLink,rel:"noreferrer",children:n.jsx(Sn,{className:pe.socialIcon})}),o&&n.jsx("a",{href:o,target:"_blank",className:pe.socialIconLink,rel:"noreferrer",children:n.jsx(at,{className:pe.socialIcon})}),r&&n.jsx("a",{href:r,target:"_blank",className:`${pe.socialIconLink} ${pe.socialIconStroke}`,rel:"noreferrer",children:n.jsx(mt,{className:pe.socialIcon})})]})]})})},Ue={content:"_content_qiw8s_1",contentNews:"_contentNews_qiw8s_19",linkTitle:"_linkTitle_qiw8s_53",tag:"_tag_qiw8s_69",tagmx:"_tagmx_qiw8s_109",titular:"_titular_qiw8s_139",correspondent:"_correspondent_qiw8s_169",correspondentLink:"_correspondentLink_qiw8s_191",description:"_description_qiw8s_213"},kt=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=z(),s=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${Be(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return Be(e.info?.date?.modified)},o=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const i=e.keywords.tags[0],c=i.name;return i.approved?n.jsxs("h3",{children:[" ",n.jsx(B,{"aria-label":c,className:Ue.tagmx,block_subPublication:a?.tema,href:tt(i,e.paths),children:c})]}):n.jsx("div",{className:Ue.tagmx,children:c})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(B,{className:Ue.tagmx,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},r=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const i=e.keywords.tags[0],c=i.name;return i.approved?n.jsx("h3",{children:n.jsx(B,{"aria-label":c,className:Ue.tag,block_subPublication:a?.tema,href:tt(i,e.paths),children:c})}):n.jsx("div",{className:Ue.tag,children:c})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(B,{className:Ue.tag,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return n.jsxs("section",{className:`${Ue.content} destacado-super-content`,children:[n.jsx(B,{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(Ee,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),n.jsxs("div",{className:Ue.contentNews,style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[n.jsx(o,{}),n.jsxs("div",{style:{position:"relative"},children:[n.jsx(r,{}),n.jsx(B,{className:Ue.linkTitle,href:e?.info?.link?.url,target:e?.info?.link?.target,children:n.jsx("h1",{className:Ue.titular,style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&n.jsx("div",{className:Ue.description,dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&n.jsx(n.Fragment,{children:e.authors[0]?.internaluser?n.jsx(B,{block_subPublication:a?.autor,href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:Ue.correspondent,children:s()}):n.jsx("p",{className:Ue.correspondentLink,children:s()})})]})]})},Jo=e=>{const{main:t,authors:a,info:s,preview:o,isVideo:r,config:i,itemReverseOrder:c,imageSize:h,showSuper:l}=e;return n.jsxs("section",{className:yl.content,children:[l?n.jsx("section",{style:{...e.customSectionCardStyles},children:n.jsx(kt,{main:t,authors:a,info:s,preview:o,isVideo:r,config:i,paths:e.paths})}):n.jsx(Ge,{...e,main:t,authors:a,info:s,preview:o,isVideo:r,config:i,priorityHigh:!0}),e.banners&&n.jsx(we,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&n.jsx(Io,{block:e.block,itemReverseOrder:c,priorityHigh:!0,imageSize:h,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})]})},Ea={content:"_content_wuf93_1",firstSection:"_firstSection_wuf93_19",secondSection:"_secondSection_wuf93_31"},od=({content:e,customLargeSection:t,customSmallSection:a,paths:s})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&n.jsxs("section",{className:Ea.content,children:[n.jsx("div",{style:t,className:Ea.firstSection,children:n.jsx(kt,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})}),n.jsx("div",{style:a,className:Ea.secondSection,children:e.map((r,i)=>i>0&&E.createElement(kt,{...r,key:i,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:s}))})]})},Zo={content:"_content_14pjb_1",firstSection:"_firstSection_14pjb_15"},rd=({content:e,customLargeSection:t,customSlimSection:a,paths:s})=>Array.isArray(e)&&e.length>0&&n.jsx("section",{className:Zo.content,children:e.map((o,r)=>r===0?n.jsx("div",{style:t,className:Zo.firstSection,children:n.jsx(kt,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})},r):n.jsx("section",{style:a,children:E.createElement(kt,{...o,key:r,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})},r))}),gt={content:"_content_1ko3z_1",sectionDescription:"_sectionDescription_1ko3z_25",title:"_title_1ko3z_65",subtitle:"_subtitle_1ko3z_105",linkStyled:"_linkStyled_1ko3z_145"},Xo=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=z(),s=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],r=o.name;return o.approved?n.jsx("h3",{children:n.jsx(B,{"aria-label":r,className:gt.sectionDescription,block_subPublication:a?.tema,href:tt(o,e.paths),children:r})}):n.jsx("div",{className:gt.sectionDescription,children:r})}else if(e.mainNew.info?.section?.url)return n.jsx("h3",{children:n.jsx(B,{className:gt.sectionDescription,href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return n.jsxs("div",{className:gt.content,children:[n.jsx(s,{}),n.jsx(B,{className:gt.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:gt.subtitle,children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&n.jsx(B,{href:e.goTo.url,className:gt.linkStyled,children:e.goTo.description})]})},Ta={headerSection:"_headerSection_itzkx_1",headerSectionLink:"_headerSectionLink_itzkx_23",newsContent:"_newsContent_itzkx_33"},Ro=e=>{const{content:t,title:a,isVideo:s}=e;if(!t||!t[0]||t.length===0)return;const o=e.slot_id&&e.slot_id!=="Nota_1",r={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:o?t[0].main.title.home:t[0].main.title.section}}},i=t.slice(1);return r&&i&&n.jsxs(ge,{title:a,titleUrl:e.titleUrl,children:[n.jsxs("div",{className:Ta.headerSection,children:[n.jsx(Xo,{mainNew:r,goTo:e.goTo,paths:e.paths}),n.jsx(B,{className:Ta.headerSectionLink,href:r?.info?.link?.url,target:r?.info?.link?.target,children:n.jsx(Ee,{preview:r.preview})})]}),n.jsxs("div",{className:Ta.newsContent,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,h)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:o?c.main.title.home:c.main.title.section}}};return n.jsx("div",{style:{order:h},children:n.jsx(Ge,{...l,isVideo:s,paths:e.paths})},h)})]})]})},Je={content:"_content_1ubl0_1",autorContent:"_autorContent_1ubl0_15",image:"_image_1ubl0_47",contentIcon:"_contentIcon_1ubl0_49",boxInformationContent:"_boxInformationContent_1ubl0_93",autorName:"_autorName_1ubl0_105",time:"_time_1ubl0_169",comment:"_comment_1ubl0_195",title:"_title_1ubl0_213"},Pn=async e=>{const{data:t,autorIcon:a}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:s}=z(),o=a,r=()=>t?.config?.showtime?`${Be(t.info?.date?.modified)}`:"",i=n.jsxs("div",{className:Je.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:Je.image,src:await ue(t?.authors[0]?.image?.sizes[0]?.url||""),alt:t?.authors[0]?.fullname}):n.jsx("div",{className:Je.contentIcon,children:n.jsx(o,{})}),n.jsx("p",{className:Je.autorName,children:qe(t?.authors[0]?.fullname??"Redacción",18)}),n.jsx("p",{className:Je.time,children:r()})]});return n.jsxs("div",{className:Je.content,children:[t?.authors[0]?.internaluser?n.jsx(B,{block_subPublication:s?.autor,href:t.authors[0]?.internaluser?`/${e.paths.autor}/${t?.authors[0]?.name}`:"#",children:i}):i,n.jsxs("div",{className:Je.boxInformationContent,children:[n.jsx(B,{className:Je.title,href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),n.jsx("p",{className:Je.comment,children:qe(t?.main?.subtitle?.striped||"")})]})]})},Ut={content:"_content_1i9xs_1",boxPosition:"_boxPosition_1i9xs_15",contentFlex:"_contentFlex_1i9xs_41",bannerContent:"_bannerContent_1i9xs_57",bannerContentAux:"_bannerContentAux_1i9xs_79"};function id(e){const t=new Array(e.length),a=e.length/2;for(let s=0;s<e.length;s++)s%2===0?t[Math.floor(s/2)]=e[s]:t[a+Math.floor(s/2)]=e[s];return t}const cd=e=>{const{isOpinion:t=!1}=e,a=r=>n.jsx("div",{className:Ut.boxPosition+" banner-context",style:{order:2},children:n.jsx("div",{className:Ut.bannerContentAux,children:n.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},r),s=[];for(let r=0;r<e.news.length;r++){const i=e.news[r];r===2&&s.push(a(r)),i&&s.push(n.jsx("div",{className:Ut.boxPosition,style:{order:r},children:n.jsx(Pn,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${r}`))}const o=s.length%2===0?id(s):s;return n.jsx("section",{style:e.customStyles,children:n.jsx(ge,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:n.jsxs("div",{className:Ut.content,children:[n.jsx("div",{className:Ut.contentFlex,children:o}),n.jsx("div",{className:Ut.bannerContent,children:e.halfPageBanner})]})})})},er={content:"_content_g09lr_1",title:"_title_g09lr_19"},ld=e=>{const{showTitle:t=!0}=e;return n.jsxs("div",{className:er.content,children:[t&&n.jsx("p",{className:er.title,children:"Editorial"}),n.jsx(ft,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},xt={content:"_content_1hn45_1",newsContent:"_newsContent_1hn45_15",boxPosition:"_boxPosition_1hn45_33",bannerContent:"_bannerContent_1hn45_45",bannerContentAux:"_bannerContentAux_1hn45_65"},dd=e=>{const{news:t}=e;return Array.isArray(t)&&n.jsxs("div",{className:xt.content,children:[n.jsxs("div",{className:xt.newsContent,children:[e.bannerArray&&e.bannerArray.map((a,s)=>n.jsx("div",{className:xt.boxPosition+" banner-context",style:{order:2+5*s},children:n.jsx("div",{className:xt.bannerContentAux,children:n.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},s)),t.map((a,s)=>n.jsx("div",{className:xt.boxPosition,style:{order:s},children:n.jsx(Ge,{...a,share:e.share,paths:e.paths})},s))]}),n.jsx("div",{className:xt.bannerContent,children:e.halfPageBanner})]})},hd=e=>n.jsxs(n.Fragment,{children:[n.jsx(ko,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),n.jsx(Uo,{...e})]}),On={newsContent:"_newsContent_smaec_1",newsContentWithLines:"_newsContentWithLines_smaec_15",newsContentWithoutLines:"_newsContentWithoutLines_smaec_25",contentSeparator:"_contentSeparator_smaec_35"},tr=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?On.contentSeparator:"",s=[];let o=0,r=1;for(let i=0;i<t.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(s.push(n.jsx("section",{className:a(o),children:e.banners?.some(d=>d.key===`${e.slot_id}_${r}`)&&n.jsx(we,{banners:e.banners,name:`${e.slot_id}_${r}`})},o)),o++,r++);const c=e.isVideo?Ct(t[i],e.showVideoTime,e.showVideosubtitle,e.showVideoAuthor):t[i];if(!c)continue;const h=e.slot_id&&e.slot_id!=="Nota_1",l={...c,main:{...c.main,title:{...c.main.title,section:h?c.main.title.home:c.main.title.section}}};s.push(n.jsx("section",{className:a(o),children:n.jsx(Ge,{...l,isVideo:e.isVideo,paths:e.paths})},o)),o++}return s.length===2&&s.push(n.jsx("div",{},o)),n.jsx("div",{className:`${e.hasLines?On.newsContentWithLines:On.newsContentWithoutLines} ${On.newsContent}`,children:s})},ka=e=>n.jsx(ge,{title:e.title,titleUrl:e.titleUrl,children:n.jsx(tr,{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})}),nr={newsContent:"_newsContent_1ofh5_1",contentSeparator:"_contentSeparator_1ofh5_15"},ar=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx("div",{className:`${nr.newsContent} ${e.hasLines?nr.contentSeparator:""}`,children:t?.map((s,o)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...s,main:{...s.main,title:{...s.main.title,section:r?s.main.title.home:s.main.title.section}}};return n.jsx("section",{children:n.jsx(Ge,{...i,share:e.share,paths:e.paths})},o)})})})},Ua={newsContent:"_newsContent_1x5ie_1",contentSeparator:"_contentSeparator_1x5ie_15",newsContentWhitoutLine:"_newsContentWhitoutLine_1x5ie_57"},sr=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx("div",{className:`${Ua.newsContent} ${e.hasLines?Ua.contentSeparator:Ua.newsContentWhitoutLine}`,children:t.map((s,o)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...s,main:{...s.main,title:{...s.main.title,section:r?s.main.title.home:s.main.title.section}}};return n.jsx("section",{children:n.jsx(Ge,{...i,share:e.share,paths:e.paths})},o)})})})},xa={headerSection:"_headerSection_1qe16_5",headerSectionLink:"_headerSectionLink_1qe16_31",newsContent:"_newsContent_1qe16_57"},or=e=>{const{content:t,title:a,isVideo:s=!0}=e;if(!t||t.length===0)return;const o=t[0],r=e.slot_id&&e.slot_id!=="Nota_1",i=t.slice(1);return o&&i&&n.jsxs(ge,{title:a,titleUrl:e.titleUrl,children:[n.jsxs("div",{className:xa.headerSection,children:[n.jsx(Xo,{goTo:e.goTo,mainNew:Ct(o),paths:e.paths}),n.jsx(B,{className:xa.headerSectionLink,href:o?.info?.link.url,target:o?.info?.link.target,"aria-label":"Video",children:n.jsx(Ee,{preview:{sizes:o?.main?.image.sizes,description:o?.main?.image.description},isVideo:s,isLarge:!0})})]}),n.jsxs("div",{className:xa.newsContent,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,h)=>{const l=Ct(c),d={...l,main:{...l.main,title:{...l.main.title,section:r?l.main.title.home:l.main.title.section}}};return n.jsx("div",{style:{order:h},children:E.createElement(Ge,{...d,isVideo:s,key:h,paths:e.paths})},h)})]})]})},Wt={content:"_content_gxvaq_1",linkImage:"_linkImage_gxvaq_59",sectionDescription:"_sectionDescription_gxvaq_83",dateText:"_dateText_gxvaq_123",textContent:"_textContent_gxvaq_145"},ud=async e=>{const{showNewsLikeTitle:t=!1}=e;return e&&e.info?n.jsxs("section",{className:Wt.content,style:{"--heightImageOverwrite":"100%"},children:[n.jsx(B,{className:Wt.linkImage,target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:n.jsx(Ee,{preview:e.preview})}),n.jsxs("div",{className:Wt.textContent,children:[n.jsx(B,{className:Wt.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:Wt.dateText,children:Be(e?.info?.date?.modified)})]})]}):null},rr={content:"_content_1y9s7_1",contentSeparator:"_contentSeparator_1y9s7_13"},La={newsContent:"_newsContent_f0o15_1",contentSeparator:"_contentSeparator_f0o15_15",hasLinesBlock:"_hasLinesBlock_f0o15_79"},ir=e=>{if(!e.content||e.content.length===0)return;const t=e.slot_id&&e.slot_id!=="Nota_1";return n.jsx(ge,{title:e.title,children:n.jsx("div",{className:`${rr.content} ${e.hasLines?rr.contentSeparator:""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,s)=>{const o={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return n.jsx("section",{className:e.hasLines?La.hasLinesBlock:"",children:E.createElement(ud,{...o,key:s,showNewsLikeTitle:e.showNewsLikeTitle})},s)})})})},cr=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,cardWidth: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:o?r.main.title.home:r.main.title.section}}};return n.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:n.jsx(Ht,{...c,paths:e.paths})},i)})})})},it={content:"_content_10utx_1",imageStyled:"_imageStyled_10utx_27",contentIcon:"_contentIcon_10utx_45",boxInformation:"_boxInformation_10utx_87",comment:"_comment_10utx_101",title:"_title_10utx_131",authorName:"_authorName_10utx_173"},fd=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=z(),{data:a}=e;return n.jsxs("div",{className:it.content,children:[Array.isArray(a.authors)&&a?.authors[0]?.image?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:it.imageStyled,src:await ue(a?.authors[0]?.image?.sizes[0]?.url||""),alt:a?.authors[0]?.fullname}):n.jsx("div",{className:it.contentIcon,children:e.autorIcon}),n.jsxs("div",{className:it.boxInformation,children:[n.jsx("p",{className:it.authorName,children:a?.authors[0]?.internaluser?n.jsx(B,{block_subPublication:t?.autor,href:a.authors[0]?.internaluser?`/${e.paths.autor}/${a?.authors[0]?.name}`:"#",children:a?.authors[0]?.fullname??"Redacción"}):a?.authors[0]?.fullname??"Redacción"}),n.jsx("p",{className:it.title,children:n.jsx(B,{className:it.linkStyled,href:a?.info?.link?.url,target:a?.info?.link?.target,children:qe(a?.main?.title?.home,40)})}),n.jsx("p",{className:it.comment,children:a?.main?.subtitle?.striped})]})]})},lr=e=>{const t=e.slot_id&&e.slot_id!=="Nota_1";return n.jsx(ge,{titleUrl:e.titleUrl,title:e.title,children:n.jsx(ut,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,s)=>{const o={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return n.jsx(fd,{autorIcon:e.autorIcon,data:o,paths:e.paths},s)})})})},Ze={content:"_content_nslah_1",newsContentSection:"_newsContentSection_nslah_9",itemContent:"_itemContent_nslah_19",ItemCustomContent:"_ItemCustomContent_nslah_31"},Dn=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return n.jsx("div",{className:Ze.ItemCustomContent});case"columnistasnacionales":return n.jsx("div",{className:Ze.ItemCustomContent,children:n.jsx(Pn,{data:t,autorIcon:e.autorIcon,paths:e.paths})});case"columnistaslocales":return n.jsx("div",{className:Ze.ItemCustomContent,children:n.jsx(Pn,{data:t,autorIcon:e.autorIcon,paths:e.paths})});case"columnistas":return n.jsx("div",{className:Ze.ItemCustomContent,children:n.jsx(Pn,{data:t,autorIcon:e.autorIcon,paths:e.paths})});default:return n.jsx("div",{className:Ze.ItemCustomContent,children:n.jsx(Ge,{...t,paths:e.paths})})}},md=e=>{const{data:t,currentPage:a,banners:s,slug:o,ranking:r,pathname:i,texts:c={}}=e,h=[3,8,13],l={3:1,8:2,13:3};switch(e.option){case"op1":return n.jsx(Sa,{ranking:r,readestTitle:c.readestTitle??"",paths:e.paths,bannerTop:n.jsx(we,{banners:s??[],name:"right_1"}),banner:n.jsx(we,{banners:s??[],name:"right_2"}),children:n.jsx("section",{className:Ze.content,children:t.length>0?n.jsx(Tn,{className:[Ze.newsContentSection,"padding-0"].join(" "),paginatorComponent:n.jsx(Gt,{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((d,u)=>n.jsxs(E.Fragment,{children:[h.includes(u+1)&&n.jsx("div",{className:Ze.itemContent+" banner-context",children:n.jsx(we,{banners:s??[],name:`block_2_${l[u+1]}`})}),n.jsx(Dn,{autorIcon:e.autorIcon,item:d,option:o,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(Tn,{className:"padding-0",paginatorComponent:n.jsx(Gt,{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((d,u)=>n.jsxs(E.Fragment,{children:[h.includes(u+1)&&n.jsx("div",{className:Ze.itemContent,children:n.jsx(we,{banners:s??[],name:`block_2_${l[u+1]}`})}),n.jsx(Dn,{autorIcon:e.autorIcon,item:d,option:o,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,{})}},dr={content:"_content_1oabr_1",contactInfoContent:"_contactInfoContent_1oabr_13"},gd=e=>{const{data:t}=e;return n.jsx("section",{className:dr.content,children:t.map((a,s)=>n.jsx("div",{className:dr.contactInfoContent,dangerouslySetInnerHTML:{__html:a.body.rendered}},s))})},Yt={tagContent:"_tagContent_biapt_1",contentLayout2:"_contentLayout2_biapt_19",complementContent:"_complementContent_biapt_35",commentsSeparator:"_commentsSeparator_biapt_47",contentHeader:"_contentHeader_biapt_107"},pd={content:"_content_1noi7_1"},Ad=({children:e,className:t=""})=>n.jsx("div",{className:`content-layout-2 ${pd.content} ${t}`,children:e}),Kt={container:"_container_1b383_1",note:"_note_1b383_17",commercial:"_commercial_1b383_97",commercialContent:"_commercialContent_1b383_131",complement:"_complement_1b383_163"},wd=e=>n.jsxs("section",{className:Kt.container,children:[n.jsx("div",{className:Kt.note,children:e.children}),n.jsx("div",{className:Kt.commercial,children:n.jsxs("div",{className:Kt.commercialContent,children:[e.slug==="liveblogs"&&n.jsx($o,{itemList:e.itemList}),e.bannerTop,n.jsx(vn,{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:Kt.complement,children:e.complement})]}),yd=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("header",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-image-description-display":"none",...e.headerSectionStyles?.liveblogs},children:n.jsx(Mo,{...t,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return n.jsx("header",{className:Yt.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(ft,{...t,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths})})}},Xe={content:"_content_1tboy_1",contentWithinCard:"_contentWithinCard_1tboy_13",contentDate:"_contentDate_1tboy_25",dateInfo:"_dateInfo_1tboy_39",dot:"_dot_1tboy_59",contentTitle:"_contentTitle_1tboy_75",contentTextList:"_contentTextList_1tboy_93",contentButton:"_contentButton_1tboy_129",linkStyled:"_linkStyled_1tboy_141"},bd={content:"_content_12i3e_1"},Cd=e=>n.jsx("section",{className:bd.content,id:e.id,children:e.children}),vd=async(e,t,a)=>{if(!a)return e;const s=/(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g,o=[...e.matchAll(s)];let r=e;for(const i of o){const c=i[1],h=i[2]??"";let l;if(a.forEach(C=>{Array.isArray(C)&&!l&&(l=C.find(T=>h.replaceAll("/","|").includes(T?.info.link.internal||"")))}),!l){const C=c.replace(/class=["']([^"']*ck-related-news[^"']*)["']/,'class="$1-empty"');r=r.replace(c,C);continue}const d=l.preview?.sizes?.[0],u=d?await ue(d.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 C=>{const T=await ue(C.url);return C.width<200?`<source srcset="${T}" media="(width < 750px)"/>`:`<source srcset="${T}" media="(width >= 750px)"/>`})||[])).reduce((C,T)=>C+=T,""),w=c.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),S=w?w[0]:"",v=`
149
+ h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})}),xn=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Jl=e=>!e||e.trim()===""?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),Go=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:s=!1}=e,o=a,r=t?.info?.image?.sizes?.[0]?.url??"",i=t?.info?.fullname??"",c=t?.info?.email??"",h=t?.addtional?.USER_SHOWEMAIL??!1,l=t?.addtional?.USER_SHOWBIO??!1,d=t?.addtional?.USER_MIBIO??"",u=xn(t?.addtional?.USER_USERFB??""),f=xn(t?.addtional?.USER_USERIG??""),g=xn(t?.addtional?.USER_USERTWT??""),m=xn(t?.addtional?.USER_USERLIN??""),p=()=>!h||!c||c.trim()===""?!1:Jl(c),A=w=>`mailto:${w.trim()}`;return n.jsx("section",{className:`${ce.content} ${e.className?e.className:""}`,children:n.jsxs("div",{className:ce.contentInfo,children:[r?n.jsx("div",{className:`${ce.imageContainer} sass-image-autor-wrapper`,children:n.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"",className:ce.imageStyled,src:await ue(r)})}):n.jsx("div",{className:`${ce.contentIconStyled} sass-image-autor-wrapper`,children:n.jsx(o,{})}),n.jsx("h1",{className:ce.name,children:i}),p()&&n.jsx("a",{href:A(c),className:ce.email,"aria-label":`Enviar correo electrónico a ${c}`,title:`Enviar correo a ${c}`,children:c}),l&&n.jsx("p",{className:ce.description,children:d}),n.jsxs("div",{className:ce.contenSocialNetwork,children:[u&&n.jsx("a",{href:u,target:"_blank",className:`${ce.socialIconLink} ${s?ce.socialIconFilled:ce.socialIconStroke}`,rel:"noreferrer",children:s?n.jsx(In,{className:ce.socialIcon}):n.jsx(_n,{className:ce.faceBookIcon})}),f&&n.jsx("a",{href:f,target:"_blank",className:ce.socialIconLink,rel:"noreferrer",children:n.jsx(Sn,{className:ce.socialIcon})}),g&&n.jsx("a",{href:g,target:"_blank",className:ce.socialIconLink,rel:"noreferrer",children:n.jsx(at,{className:ce.socialIcon})}),m&&n.jsx("a",{href:m,target:"_blank",className:`${ce.socialIconLink} ${s?ce.socialIconFilled:ce.socialIconStroke}`,rel:"noreferrer",children:s?n.jsx(jo,{className:ce.socialIcon}):n.jsx(mt,{className:ce.socialIcon})})]})]})})},me={content:"_content_hzla8_1",contentInfo:"_contentInfo_hzla8_25",contentAuthor:"_contentAuthor_hzla8_51",imageStyled:"_imageStyled_hzla8_65",contentIconStyled:"_contentIconStyled_hzla8_83",name:"_name_hzla8_127",email:"_email_hzla8_143",description:"_description_hzla8_163",contenSocialNetwork:"_contenSocialNetwork_hzla8_185",socialIcon:"_socialIcon_hzla8_205",socialIconFilled:"_socialIconFilled_hzla8_223",socialIconStroke:"_socialIconStroke_hzla8_247",blackIconFaceBook:"_blackIconFaceBook_hzla8_263"},Qo=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:s=!1}=e,o=a,r=t?.info?.image?.sizes?.[0]?.url??"",i=t?.info?.fullname??"",c=t?.info?.email??"",h=t?.addtional?.USER_SHOWEMAIL??!1,l=t?.addtional?.USER_SHOWBIO??!1,d=t?.addtional?.USER_MIBIO??"",u=t?.addtional?.USER_USERFB??"",f=t?.addtional?.USER_USERIG??"",g=t?.addtional?.USER_USERTWT??"",m=t?.addtional?.USER_USERLIN??"";return n.jsx("section",{className:me.content,children:n.jsxs("div",{className:me.contentInfo,children:[r?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:me.imageStyled,src:await ue(r)}):n.jsx("div",{className:me.contentIconStyled,children:n.jsx(o,{})}),n.jsxs("div",{className:me.contentAuthor,children:[n.jsx("h1",{className:me.name,children:i}),h&&n.jsx("p",{className:me.email,children:c}),l&&n.jsx("p",{className:me.description,children:d}),n.jsxs("div",{className:me.contenSocialNetwork,children:[u&&n.jsx("a",{href:u,target:"_blank",className:s?me.socialIconFilled:me.socialIconStroke,rel:"noreferrer",children:s?n.jsx(In,{className:`${me.blackIconFaceBook} ${me.socialIcon}`}):n.jsx(_n,{className:me.socialIcon})}),f&&n.jsx("a",{href:f,target:"_blank",rel:"noreferrer",children:n.jsx(Sn,{className:me.socialIcon})}),g&&n.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:n.jsx(at,{className:me.socialIcon})}),m&&n.jsx("a",{href:m,target:"_blank",className:s?me.socialIconFilled:me.socialIconStroke,rel:"noreferrer",children:s?n.jsx(jo,{className:me.socialIcon}):n.jsx(mt,{className:me.socialIcon})})]})]})]})})},Ho={content:"_content_1p4ec_1",bannerSection:"_bannerSection_1p4ec_49"},Sa=e=>n.jsxs("section",{className:Ho.content,children:[e.children,n.jsxs("div",{className:Ho.bannerSection,children:[e.bannerTop,n.jsx(vn,{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]})]}),De={content:"_content_a632w_1",header:"_header_a632w_59",videos:"_videos_a632w_111",videoContent:"_videoContent_a632w_125",articleSection:"_articleSection_a632w_139",contentLayoutVideoSection:"_contentLayoutVideoSection_a632w_169",sectionVideoList:"_sectionVideoList_a632w_185",iframeStyled:"_iframeStyled_a632w_331",contentFrame:"_contentFrame_a632w_343"},Ln={content:"_content_1s9as_1",linkImage:"_linkImage_1s9as_23",playStyled:"_playStyled_1s9as_37",newsDescription:"_newsDescription_1s9as_73"},Zl=async e=>{const t=Cn(),a={...e,main:{...e.main,title:{...e.main.title,article:qe(e.main.title.article,60)}}};return e&&e.info?n.jsxs("section",{className:Ln.content,children:[n.jsx("a",{className:Ln.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 ue(e.preview.sizes[0]?.url||"")}),n.jsx(t,{className:`${Ln.playStyled} saas-image-play-icon`})]})}),n.jsx("div",{className:Ln.newsDescription,children:n.jsx(ft,{...a,paths:e.paths})})]}):null},Xl=e=>{let t=[];return e.videoList&&e.videoList.length>0&&(t=e.videoList?.filter(a=>a.info.path!==e.video.info.path)??[]),n.jsx("div",{className:De.content,children:n.jsxs(Nt,{className:De.contentLayoutVideoSection,children:[n.jsxs("a",{className:De.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:De.videos,children:[n.jsxs("div",{className:De.videoContent,style:e.mainVideoStyles,children:[e.type==="vy"&&n.jsx("iframe",{className:De.iframeStyled,src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&n.jsx("iframe",{className:De.iframeStyled,src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0,allow:"autoplay; fullscreen",sandbox:"allow-scripts allow-same-origin allow-presentation allow-popups"}),e.type==="ve"&&n.jsx("div",{className:De.contentFrame,dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),n.jsx("div",{className:De.articleSection,children:n.jsx(ft,{isTitle:!0,cutSubtitle:!1,...Ct({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description,!0),paths:e.paths})})]}),n.jsxs("div",{className:De.sectionVideoList,style:e.listVideoStyles,children:[e.banner&&n.jsx(we,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&n.jsx("h2",{className:`${De.relatedTitle} saas-video-related-title`,children:e.relatedName}),Array.isArray(t)&&t.map((a,s)=>E.createElement(Zl,{...Ct(a,!0,!1,!1),key:s,paths:e.paths}))]})]})]})})},We={content:"_content_17oas_1",titleContent:"_titleContent_17oas_47",title:"_title_17oas_47",startLine:"_startLine_17oas_175",line:"_line_17oas_185",bottomLine:"_bottomLine_17oas_197",childrenContent:"_childrenContent_17oas_235",readMore:"_readMore_17oas_261"},ge=E.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:s=!1}=e,o=a?n.jsx("h1",{className:We.title,children:e.title}):n.jsx("h2",{className:We.title,children:e.title});return n.jsxs("section",{className:We.content,children:[e.title&&n.jsxs("div",{className:[We.titleContent,e.className??""].join(" "),"data-after":`${s}`,children:[n.jsx("hr",{className:We.startLine}),e.titleUrl?n.jsx(B,{href:e.titleUrl,children:o}):o,n.jsx("hr",{className:We.line}),e.titleUrl&&n.jsx(B,{className:We.readMore,href:e.titleUrl?.toString()??""})]}),e.title&&n.jsx("hr",{className:[We.bottomLine,e.className??""].join(" ")}),n.jsx("div",{className:We.childrenContent,ref:t,children:e.children})]})}),Na=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"})}),Bn=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"})}),he={drawerStyled:"_drawerStyled_19j18_1",sidebarCustom:"_sidebarCustom_19j18_11",accordionStyled:"_accordionStyled_19j18_47",accordionHeading:"_accordionHeading_19j18_69",accordionSummeryStyled:"_accordionSummeryStyled_19j18_87",linkStyled:"_linkStyled_19j18_143",subLinkStyled:"_subLinkStyled_19j18_191",inputContent:"_inputContent_19j18_235",buttonContent:"_buttonContent_19j18_237",inputStyled:"_inputStyled_19j18_257",buscar:"_buscar_19j18_289",buttonStyled:"_buttonStyled_19j18_347",accordionDetailsStyled:"_accordionDetailsStyled_19j18_377",footerSlider:"_footerSlider_19j18_407",socialMedia:"_socialMedia_19j18_429",copyRights:"_copyRights_19j18_469",icon:"_icon_19j18_491"},Rl=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:s,searchKeyWord:o,custom_styles:r={}})=>{const{PUBLIC_SERVICE_PREFIX:i,PUBLIC_IS_SUB_PUBLICATION:c,SUB_PUBLICATION_PREFIX_IN_ROUTES:h}=z(),l=h?.buscar&&i!=="false"&&c!=="false"?"/"+i:"";return n.jsxs("aside",{className:he.drawerStyled,id:"sidebar-expandable",style:{...r,"--header-icons":"var(--search-input-icons)"},children:[n.jsx("input",{type:"checkbox",id:"side-bar-state"}),n.jsxs("section",{className:he.sidebarCustom,children:[n.jsx("div",{className:he.buttonContent,children:n.jsx("label",{className:he.buttonStyled,htmlFor:"side-bar-state",children:n.jsx(It,{className:he.icon})})}),n.jsx("div",{className:he.inputContent,children:n.jsxs("form",{className:he.inputStyled,action:l+"/buscar",method:"GET",children:[n.jsx("input",{className:he.buscar,type:"text",name:"query",placeholder:o+"..."}),n.jsx("button",{type:"submit",style:{background:"transparent",border:"none",outline:"none",padding:0,margin:0},children:n.jsx(Na,{color:"var(--search-input-icons)"})})]})}),n.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[n.jsxs("div",{children:[s,e.map((d,u)=>n.jsxs("div",{className:he.accordionStyled,children:[n.jsx("input",{type:"checkbox",style:{display:"none"},id:"accordion_"+u}),n.jsx("h3",{className:he.accordionHeading,children:Array.isArray(d.subitem)?n.jsxs("label",{className:he.accordionSummeryStyled,htmlFor:"accordion_"+u,children:[d.link?n.jsx(B,{block_subPublication:!0,className:`${he.linkStyledAccordion} ${he.linkStyled}`,href:d.link?d.link:void 0,target:d.target,children:d.description}):n.jsx("div",{children:d.description}),n.jsx(Bn,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):n.jsx(B,{block_subPublication:!0,className:he.linkStyled,href:d.link?d.link:void 0,target:d.target,children:d.description})}),Array.isArray(d.subitem)&&n.jsx("div",{className:he.accordionDetailsStyled,style:{"--max-height":d.subitem.length*45+"px"},children:d.subitem.map((f,g)=>n.jsx(B,{block_subPublication:!0,className:he.subLinkStyled,href:f.link?f.link:void 0,target:f.target,children:f.description},g))})]},u))]}),n.jsxs("div",{className:he.footerSlider,children:[n.jsx("div",{className:he.socialMedia,children:Object.keys(t).map(d=>t[d]?.show&&n.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":t[d].title+" link",className:he.linkSocialNetwork,href:t[d].url,children:Nn[d]({className:he.icon})},d))}),n.jsx("p",{className:he.copyRights,children:a})]})]})]})]})},Fo=e=>n.jsx("svg",{width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n.jsx("path",{d:"M1.5 18H25.5C26.325 18 27 17.325 27 16.5C27 15.675 26.325 15 25.5 15H1.5C0.675 15 0 15.675 0 16.5C0 17.325 0.675 18 1.5 18ZM1.5 10.5H25.5C26.325 10.5 27 9.825 27 9C27 8.175 26.325 7.5 25.5 7.5H1.5C0.675 7.5 0 8.175 0 9C0 9.825 0.675 10.5 1.5 10.5ZM0 1.5C0 2.325 0.675 3 1.5 3H25.5C26.325 3 27 2.325 27 1.5C27 0.675 26.325 0 25.5 0H1.5C0.675 0 0 0.675 0 1.5Z",fill:e.color})}),Vt={content:"_content_3cj5t_1",chipStyled:"_chipStyled_3cj5t_33",headLine:"_headLine_3cj5t_33",live:"_live_3cj5t_49",closeLiveStyled:"_closeLiveStyled_3cj5t_173"},zo=e=>{const{alertZone:t,id:a="close-alert"}=e,s=()=>n.jsx(B,{className:Vt.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:Vt.content,style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[n.jsxs("div",{className:Vt.live,children:[n.jsx("div",{className:Vt.chipStyled,children:t?.entity?.description}),e.forceShow&&n.jsx(s,{}),n.jsx("label",{htmlFor:a,children:n.jsx(It,{className:Vt.closeLiveStyled})})]}),n.jsx(s,{})]})]})},Ye={content:"_content_5xbcx_1",linkStyled:"_linkStyled_5xbcx_27",linkSocialNetwork:"_linkSocialNetwork_5xbcx_55",title:"_title_5xbcx_107",tabs:"_tabs_5xbcx_129",socialNetwork:"_socialNetwork_5xbcx_145",icon:"_icon_5xbcx_165",facebook:"_facebook_5xbcx_177",youtube:"_youtube_5xbcx_185",x:"_x_5xbcx_193",instagram:"_instagram_5xbcx_201",gnews:"_gnews_5xbcx_209",tiktok:"_tiktok_5xbcx_217",whatsapp:"_whatsapp_5xbcx_225"},Vo=e=>{const{cintillo:t,tapeTitle:a,socials:s}=e,o="",r=t?.findIndex(i=>i.link===o)??0;return(Array.isArray(t)||e.socialIcons)&&n.jsxs("section",{className:Ye.content,children:[Array.isArray(t)&&n.jsxs("div",{className:`${Ye.tabs} header-page-tape-content`,children:[a!==""&&n.jsx("p",{className:Ye.title,children:`${a}`}),t&&t[r]&&n.jsx(B,{block_subPublication:!0,className:Ye.linkStyled,target:t[r]?.target,href:t[r]?.link,style:{color:t[r]?.link===o?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[r]?.link===o?"700":"400"},children:t[r]?.description},r),t&&t.map((i,c)=>{if(c!==r)return n.jsx(B,{block_subPublication:!0,className:Ye.linkStyled,href:i?.link,style:{color:i?.link===o?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===o?"700":"400"},children:i?.description},c)})]}),n.jsx("div",{className:Ye.socialNetwork,children:Object.keys(s).map(i=>s[i]?.show&&n.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":s[i].title+" link",className:Ye.linkSocialNetwork,href:s[i].url,children:Nn[i]({className:[Ye.icon,Ye[i]??""].join(" ")})},i))})]})},ke={headerStyled:"_headerStyled_16ogi_1",headerContent:"_headerContent_16ogi_27",iconContent:"_iconContent_16ogi_49",menuButton:"_menuButton_16ogi_67",logoStyled:"_logoStyled_16ogi_131",buttonSection:"_buttonSection_16ogi_187",buttonSectionSearch:"_buttonSectionSearch_16ogi_217",headLineContent:"_headLineContent_16ogi_261",headLineTitle:"_headLineTitle_16ogi_287",headLine:"_headLine_16ogi_261",hasAlertZone:"_hasAlertZone_16ogi_393"},ed=e=>{const{alertZone:t,custom_styles:a={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:s}=z();return n.jsxs("header",{className:ke.headerStyled,style:a,id:"saas-header-sticky",children:[e.socialIcons&&e.headerTape?.sticky&&n.jsx(Vo,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),n.jsxs("div",{className:`${ke.headerContent} center-mobile-header-icon`,children:[n.jsx(ba,{id:"button-app",className:ke.menuButton,toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:n.jsx(Fo,{className:ke.startIcon,color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27})}),n.jsxs("div",{className:ke.iconContent,children:[n.jsx(B,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:E.createElement("span",{className:ke.logoStyled},e.icon)}),e.mobileIcon?n.jsx(B,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky header-mobile-icon",style:{display:"flex"},children:E.createElement("span",{className:ke.logoStyled},e.mobileIcon())}):null]}),!e.showAlertPop&&t?.data&&n.jsxs("div",{className:ke.headLineContent,children:[n.jsx("div",{className:`${ke.headLineTitle} headLineTitle`,children:t.entity.description?`${t.entity.description}`:""}),n.jsx(B,{className:ke.headLine,href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:qe(t.data[0]?.main.title.home??"",120)})]}),n.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:[ke.buttonSection,t?.data?ke.hasAlertZone:"","search-button"].join(" "),children:[n.jsx(B,{block_subPublication:s?.buscar,href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:`${ke.buttonSectionSearch} search-button-icon`,style:{display:"flex"},children:n.jsx(Na,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&n.jsx(zo,{alertZone:t,forceShow:e.showAlertPop})]})},Ke={ul:"_ul_dtv5r_1",li:"_li_dtv5r_19",liBefore:"_liBefore_dtv5r_35",ulContent:"_ulContent_dtv5r_57",contentModal:"_contentModal_dtv5r_111",linkStyled:"_linkStyled_dtv5r_135",itemLink:"_itemLink_dtv5r_185"},td=e=>{const{items:t}=e;return n.jsx("ul",{className:Ke.ul,children:t.map((a,s)=>n.jsxs("li",{className:`${Ke.liBefore} ${Ke.li}`,children:[a.link?n.jsxs(B,{block_subPublication:!0,"aria-label":a.description,className:Ke.linkStyled,href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&n.jsx(Bn,{})]}):n.jsxs("span",{"aria-label":a.description,className:Ke.linkStyled,children:[a.description,Array.isArray(a.subitem)&&n.jsx(Bn,{})]}),Array.isArray(a.subitem)&&n.jsx("ul",{className:Ke.ulContent,children:n.jsx("div",{className:Ke.contentModal,children:a.subitem.map((o,r)=>n.jsx("li",{className:Ke.li,children:n.jsx(B,{block_subPublication:!0,className:Ke.itemLink,"aria-label":o.description,href:o.link?o.link:void 0,target:o.target,children:o.description})},r))})})]},s))})},be={headerStyled:"_headerStyled_1yeov_1",headerContent:"_headerContent_1yeov_45",menuButtonSection:"_menuButtonSection_1yeov_65",menuButton:"_menuButton_1yeov_65",buttonSection:"_buttonSection_1yeov_167",buttonSectionSearch:"_buttonSectionSearch_1yeov_201",hasAlertZone:"_hasAlertZone_1yeov_223",buttonText:"_buttonText_1yeov_261",logoContent:"_logoContent_1yeov_281",logoStyled:"_logoStyled_1yeov_297",headLineContent:"_headLineContent_1yeov_345",headLineTitle:"_headLineTitle_1yeov_375",menuSection:"_menuSection_1yeov_407",headLine:"_headLine_1yeov_345",line:"_line_1yeov_511"},nd=e=>{const{menu:t,alertZone:a,custom_styles:s={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:o}=z();return n.jsxs("header",{className:be.headerStyled,id:"saas-header-static",style:{...s,top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&n.jsx(Vo,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),n.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:[be.headerContent,a?.data?be.hasAlertZone:""].join(" "),children:[n.jsx("div",{className:`${be.menuButtonSection} sass-header-menu-button`,children:n.jsxs(ba,{className:be.menuButton,id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[n.jsx(Fo,{color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27}),n.jsx("p",{className:be.buttonText,style:{lineHeight:0},children:e.menuText})]})}),n.jsx("div",{className:be.logoContent,children:n.jsx(B,{href:"/","aria-label":"Home",className:"header-logo-link",children:E.createElement("span",{className:`${be.logoStyled}`},e.icon)})}),n.jsxs("div",{className:`${be.buttonSection} sass-header-right-button-section`,children:[n.jsx(B,{block_subPublication:o?.buscar,href:e.searchLink?e.searchLink:"/buscar",className:be.buttonSectionSearch,"aria-label":e.searchKeyWord,children:n.jsx(Na,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?n.jsxs("div",{className:be.headLineContent,children:[n.jsx("p",{className:`${be.headLineTitle} headLineTitle`,children:a.entity.description?`${a.entity.description}`:""}),n.jsx(B,{className:be.headLine,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:qe(a.data[0]?.main.title.home??"",120)})]}):n.jsx("div",{className:be.line}),n.jsx("div",{className:be.menuSection,style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&n.jsx(td,{items:t})})]})]})},Ia={childrenContent:"_childrenContent_13giv_1",childrenContentAux:"_childrenContentAux_13giv_23",op2:"_op2_13giv_49"},ad=e=>{const{alertZone:t,children:a,sidebar:s,custom_styles:o={}}=e,r=n.jsxs("div",{className:[Ia.childrenContent,e.showAlertPop?Ia.op2:"",t?.data?Ia.childrenContentAux:""].join(" "),style:e.showOnlyStickyHeader?{...o,"--hasAlertMargin":"3.6rem !important"}:o,id:"content-layout",children:[e.showAlertPop&&n.jsx(zo,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]});return n.jsxs(n.Fragment,{children:[e.childrenContentPosition==="before-headers"&&r,n.jsx(ed,{...e}),!e.showOnlyStickyHeader&&n.jsx(nd,{...e}),e.childrenContentPosition!=="before-headers"&&r,n.jsx(Rl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:s,socials:e.socials,copyrigth:e.copyrigth,custom_styles:e.custom_styles})]})},Tt={content:"_content_1ntb2_1",tags:"_tags_1ntb2_19",chipStyled:"_chipStyled_1ntb2_39",tagLink:"_tagLink_1ntb2_93",tagStyled:"_tagStyled_1ntb2_105"},Wo=e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=z();return n.jsx("section",{className:Tt.content,children:Array.isArray(e.tags)&&n.jsxs("div",{className:Tt.tags,children:[n.jsx("p",{className:Tt.tagStyled,children:e.title?e.title:"Tags:"}),e.tags.map((a,s)=>a.approved?n.jsx(B,{block_subPublication:t?.tema,href:tt(a,e.paths),children:n.jsx("div",{className:`${Tt.chipStyled} ${Tt.tagLink}`,children:a.name})},s):n.jsx("div",{className:Tt.chipStyled,children:a.name},s))]})})},Qe={contentBox:"_contentBox_75ed7_1",content:"_content_75ed7_1",imageStyled:"_imageStyled_75ed7_43",contentIconStyled:"_contentIconStyled_75ed7_57",avatarContent:"_avatarContent_75ed7_97",journalistSection:"_journalistSection_75ed7_111",journalistInfo:"_journalistInfo_75ed7_123",socialNetworkSection:"_socialNetworkSection_75ed7_161",article:"_article_75ed7_187"},Yo=async e=>{const{autor:t}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=z(),s=t?.addtional?.USER_SHOWBIO??!1,o=t?.info?.name??"",r=t?.info?.fullname??"",i=t?.info?.image?.sizes?.[0]?.url??"",c=t?.addtional?.USER_MIBIO??"",h=t?.addtional?.USER_USERFB??"",l=t?.addtional?.USER_USERIG??"",d=t?.addtional?.USER_USERTWT??"",u=t?.addtional?.USER_USERLIN??"";return s&&n.jsx("section",{className:Qe.contentBox,children:n.jsxs("div",{className:Qe.content,children:[n.jsxs("div",{className:Qe.avatarContent,children:[n.jsx(B,{block_subPublication:a?.autor,className:Qe.journalistInfo,href:`/${e.paths.autor}/${o}`,children:i?n.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor-image",className:Qe.imageStyled,src:await ue(i)}):n.jsx("div",{className:Qe.contentIconStyled,children:e.autorIcon})}),n.jsxs("section",{className:Qe.journalistSection,children:[n.jsx("h3",{className:Qe.journalistInfo,children:n.jsx(B,{block_subPublication:a?.autor,href:`/${e.paths.autor}/${o}`,children:r})}),n.jsxs("section",{className:Qe.socialNetworkSection,children:[h&&n.jsx("a",{href:h,target:"_blank","aria-label":c,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"})})}),l&&n.jsx("a",{href:l,target:"_blank","aria-label":c,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)"})})})]})}),d&&n.jsx("a",{href:d,target:"_blank","aria-label":c,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"})})}),u&&n.jsx("a",{href:u,target:"_blank","aria-label":c,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"})]})})]})]})]}),s&&n.jsx("p",{className:Qe.article,dangerouslySetInnerHTML:{__html:`${c} <a aria-label="${o}" href="/${e.paths.autor}/${o}">${e.texts.authorViewMore??"Ver más"}</a>`}})]})})},rt={content:"_content_1po76_1",imageStyled:"_imageStyled_1po76_39",contentIconStyled:"_contentIconStyled_1po76_41",contentCard:"_contentCard_1po76_61",contentInfo:"_contentInfo_1po76_139",fullName:"_fullName_1po76_151",LearnMoreLink:"_LearnMoreLink_1po76_165"},Ko=async e=>{const{news:t,texts:a}=e;return t.config?.showauthor&&n.jsx("div",{className:rt.content,children:Array.isArray(t.authors)&&t.authors?.map(async s=>n.jsxs("div",{className:rt.contentCard,children:[s.image?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:rt.imageStyled,src:await ue(s.image.sizes[0]?.url||"")},s.fullname):n.jsx("div",{className:rt.contentIconStyled,children:e.autorIcon},s.fullname),n.jsxs("div",{className:rt.contentInfo,children:[s.internaluser?n.jsx("a",{className:rt.fullName,href:`/${e.paths.autor}/${s.name}`,children:s.fullname}):n.jsx("p",{className:rt.fullName,children:s.fullname}),s.internaluser&&n.jsx("a",{className:rt.LearnMoreLink,href:`/${e.paths.autor}/${s.name}`,children:a.JournalistGroupLink})]})]},`author-${s.firstname}`))})},pe={content:"_content_1xbot_1",urlTag:"_urlTag_1xbot_23",contentInfo:"_contentInfo_1xbot_75",imageStyled:"_imageStyled_1xbot_109",name:"_name_1xbot_119",description:"_description_1xbot_129",imageContainer:"_imageContainer_1xbot_155",contenSocialNetwork:"_contenSocialNetwork_1xbot_297",socialIcon:"_socialIcon_1xbot_317",faceBookIcon:"_faceBookIcon_1xbot_327",socialFacebookIcon:"_socialFacebookIcon_1xbot_337",socialIconLink:"_socialIconLink_1xbot_345",socialIconStroke:"_socialIconStroke_1xbot_353",contentInfoWithoutImg:"_contentInfoWithoutImg_1xbot_361"},qn=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},sd=async e=>{const t=e.img?await ue(e.img):"",a=qn(e.social?.facebook??""),s=qn(e.social?.instagram??""),o=qn(e.social?.twitter??""),r=qn(e.social?.linkedin??"");return n.jsx("section",{className:`${pe.content} ${e.className}`,children:n.jsxs("div",{className:`${pe.contentInfo} ${t?"":pe.contentInfoWithoutImg}`,children:[e.img&&n.jsx("div",{className:`${pe.imageContainer} sass-image-tag-wrapper`,children:n.jsx("img",{fetchPriority:"low",loading:"lazy",className:pe.imageStyled,src:t})}),n.jsx("h1",{className:pe.name,children:e.tag}),e.description&&n.jsx("div",{className:pe.description,dangerouslySetInnerHTML:{__html:e.description}}),e.url&&n.jsx("a",{className:pe.urlTag,href:e.url,children:e.url}),n.jsxs("div",{className:pe.contenSocialNetwork,children:[a&&n.jsx("a",{href:a,target:"_blank",className:`${pe.socialFacebookIcon} ${pe.socialIconStroke}`,rel:"noreferrer",children:n.jsx(_n,{className:pe.faceBookIcon})}),s&&n.jsx("a",{href:s,target:"_blank",className:pe.socialIconLink,rel:"noreferrer",children:n.jsx(Sn,{className:pe.socialIcon})}),o&&n.jsx("a",{href:o,target:"_blank",className:pe.socialIconLink,rel:"noreferrer",children:n.jsx(at,{className:pe.socialIcon})}),r&&n.jsx("a",{href:r,target:"_blank",className:`${pe.socialIconLink} ${pe.socialIconStroke}`,rel:"noreferrer",children:n.jsx(mt,{className:pe.socialIcon})})]})]})})},Ue={content:"_content_qiw8s_1",contentNews:"_contentNews_qiw8s_19",linkTitle:"_linkTitle_qiw8s_53",tag:"_tag_qiw8s_69",tagmx:"_tagmx_qiw8s_109",titular:"_titular_qiw8s_139",correspondent:"_correspondent_qiw8s_169",correspondentLink:"_correspondentLink_qiw8s_191",description:"_description_qiw8s_213"},kt=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=z(),s=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${Be(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return Be(e.info?.date?.modified)},o=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const i=e.keywords.tags[0],c=i.name;return i.approved?n.jsxs("h3",{children:[" ",n.jsx(B,{"aria-label":c,className:Ue.tagmx,block_subPublication:a?.tema,href:tt(i,e.paths),children:c})]}):n.jsx("div",{className:Ue.tagmx,children:c})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(B,{className:Ue.tagmx,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},r=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const i=e.keywords.tags[0],c=i.name;return i.approved?n.jsx("h3",{children:n.jsx(B,{"aria-label":c,className:Ue.tag,block_subPublication:a?.tema,href:tt(i,e.paths),children:c})}):n.jsx("div",{className:Ue.tag,children:c})}else if(e.info?.section?.url)return n.jsx("h3",{children:n.jsx(B,{className:Ue.tag,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return n.jsxs("section",{className:`${Ue.content} destacado-super-content`,children:[n.jsx(B,{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(Ee,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),n.jsxs("div",{className:Ue.contentNews,style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[n.jsx(o,{}),n.jsxs("div",{style:{position:"relative"},children:[n.jsx(r,{}),n.jsx(B,{className:Ue.linkTitle,href:e?.info?.link?.url,target:e?.info?.link?.target,children:n.jsx("h1",{className:Ue.titular,style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&n.jsx("div",{className:Ue.description,dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&n.jsx(n.Fragment,{children:e.authors[0]?.internaluser?n.jsx(B,{block_subPublication:a?.autor,href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:Ue.correspondent,children:s()}):n.jsx("p",{className:Ue.correspondentLink,children:s()})})]})]})},Jo=e=>{const{main:t,authors:a,info:s,preview:o,isVideo:r,config:i,itemReverseOrder:c,imageSize:h,showSuper:l}=e;return n.jsxs("section",{className:yl.content,children:[l?n.jsx("section",{style:{...e.customSectionCardStyles},children:n.jsx(kt,{main:t,authors:a,info:s,preview:o,isVideo:r,config:i,paths:e.paths})}):n.jsx(Ge,{...e,main:t,authors:a,info:s,preview:o,isVideo:r,config:i,priorityHigh:!0}),e.banners&&n.jsx(we,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&n.jsx(Io,{block:e.block,itemReverseOrder:c,priorityHigh:!0,imageSize:h,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})]})},Ea={content:"_content_wuf93_1",firstSection:"_firstSection_wuf93_19",secondSection:"_secondSection_wuf93_31"},od=({content:e,customLargeSection:t,customSmallSection:a,paths:s})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&n.jsxs("section",{className:Ea.content,children:[n.jsx("div",{style:t,className:Ea.firstSection,children:n.jsx(kt,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})}),n.jsx("div",{style:a,className:Ea.secondSection,children:e.map((r,i)=>i>0&&E.createElement(kt,{...r,key:i,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:s}))})]})},Zo={content:"_content_14pjb_1",firstSection:"_firstSection_14pjb_15"},rd=({content:e,customLargeSection:t,customSlimSection:a,paths:s})=>Array.isArray(e)&&e.length>0&&n.jsx("section",{className:Zo.content,children:e.map((o,r)=>r===0?n.jsx("div",{style:t,className:Zo.firstSection,children:n.jsx(kt,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})},r):n.jsx("section",{style:a,children:E.createElement(kt,{...o,key:r,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:s})},r))}),gt={content:"_content_1ko3z_1",sectionDescription:"_sectionDescription_1ko3z_25",title:"_title_1ko3z_65",subtitle:"_subtitle_1ko3z_105",linkStyled:"_linkStyled_1ko3z_145"},Xo=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=z(),s=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],r=o.name;return o.approved?n.jsx("h3",{children:n.jsx(B,{"aria-label":r,className:gt.sectionDescription,block_subPublication:a?.tema,href:tt(o,e.paths),children:r})}):n.jsx("div",{className:gt.sectionDescription,children:r})}else if(e.mainNew.info?.section?.url)return n.jsx("h3",{children:n.jsx(B,{className:gt.sectionDescription,href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return n.jsxs("div",{className:gt.content,children:[n.jsx(s,{}),n.jsx(B,{className:gt.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:gt.subtitle,children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&n.jsx(B,{href:e.goTo.url,className:gt.linkStyled,children:e.goTo.description})]})},Ta={headerSection:"_headerSection_itzkx_1",headerSectionLink:"_headerSectionLink_itzkx_23",newsContent:"_newsContent_itzkx_33"},Ro=e=>{const{content:t,title:a,isVideo:s}=e;if(!t||!t[0]||t.length===0)return;const o=e.slot_id&&e.slot_id!=="Nota_1",r={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:o?t[0].main.title.home:t[0].main.title.section}}},i=t.slice(1);return r&&i&&n.jsxs(ge,{title:a,titleUrl:e.titleUrl,children:[n.jsxs("div",{className:Ta.headerSection,children:[n.jsx(Xo,{mainNew:r,goTo:e.goTo,paths:e.paths}),n.jsx(B,{className:Ta.headerSectionLink,href:r?.info?.link?.url,target:r?.info?.link?.target,children:n.jsx(Ee,{preview:r.preview})})]}),n.jsxs("div",{className:Ta.newsContent,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,h)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:o?c.main.title.home:c.main.title.section}}};return n.jsx("div",{style:{order:h},children:n.jsx(Ge,{...l,isVideo:s,paths:e.paths})},h)})]})]})},Je={content:"_content_1ubl0_1",autorContent:"_autorContent_1ubl0_15",image:"_image_1ubl0_47",contentIcon:"_contentIcon_1ubl0_49",boxInformationContent:"_boxInformationContent_1ubl0_93",autorName:"_autorName_1ubl0_105",time:"_time_1ubl0_169",comment:"_comment_1ubl0_195",title:"_title_1ubl0_213"},Pn=async e=>{const{data:t,autorIcon:a}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:s}=z(),o=a,r=()=>t?.config?.showtime?`${Be(t.info?.date?.modified)}`:"",i=n.jsxs("div",{className:Je.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:Je.image,src:await ue(t?.authors[0]?.image?.sizes[0]?.url||""),alt:t?.authors[0]?.fullname}):n.jsx("div",{className:Je.contentIcon,children:n.jsx(o,{})}),n.jsx("p",{className:Je.autorName,children:qe(t?.authors[0]?.fullname??"Redacción",18)}),n.jsx("p",{className:Je.time,children:r()})]});return n.jsxs("div",{className:Je.content,children:[t?.authors[0]?.internaluser?n.jsx(B,{block_subPublication:s?.autor,href:t.authors[0]?.internaluser?`/${e.paths.autor}/${t?.authors[0]?.name}`:"#",children:i}):i,n.jsxs("div",{className:Je.boxInformationContent,children:[n.jsx(B,{className:Je.title,href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),n.jsx("p",{className:Je.comment,children:qe(t?.main?.subtitle?.striped||"")})]})]})},Ut={content:"_content_1i9xs_1",boxPosition:"_boxPosition_1i9xs_15",contentFlex:"_contentFlex_1i9xs_41",bannerContent:"_bannerContent_1i9xs_57",bannerContentAux:"_bannerContentAux_1i9xs_79"};function id(e){const t=new Array(e.length),a=e.length/2;for(let s=0;s<e.length;s++)s%2===0?t[Math.floor(s/2)]=e[s]:t[a+Math.floor(s/2)]=e[s];return t}const cd=e=>{const{isOpinion:t=!1}=e,a=r=>n.jsx("div",{className:Ut.boxPosition+" banner-context",style:{order:2},children:n.jsx("div",{className:Ut.bannerContentAux,children:n.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},r),s=[];for(let r=0;r<e.news.length;r++){const i=e.news[r];r===2&&s.push(a(r)),i&&s.push(n.jsx("div",{className:Ut.boxPosition,style:{order:r},children:n.jsx(Pn,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${r}`))}const o=s.length%2===0?id(s):s;return n.jsx("section",{style:e.customStyles,children:n.jsx(ge,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:n.jsxs("div",{className:Ut.content,children:[n.jsx("div",{className:Ut.contentFlex,children:o}),n.jsx("div",{className:Ut.bannerContent,children:e.halfPageBanner})]})})})},er={content:"_content_g09lr_1",title:"_title_g09lr_19"},ld=e=>{const{showTitle:t=!0}=e;return n.jsxs("div",{className:er.content,children:[t&&n.jsx("p",{className:er.title,children:"Editorial"}),n.jsx(ft,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},xt={content:"_content_1hn45_1",newsContent:"_newsContent_1hn45_15",boxPosition:"_boxPosition_1hn45_33",bannerContent:"_bannerContent_1hn45_45",bannerContentAux:"_bannerContentAux_1hn45_65"},dd=e=>{const{news:t}=e;return Array.isArray(t)&&n.jsxs("div",{className:xt.content,children:[n.jsxs("div",{className:xt.newsContent,children:[e.bannerArray&&e.bannerArray.map((a,s)=>n.jsx("div",{className:xt.boxPosition+" banner-context",style:{order:2+5*s},children:n.jsx("div",{className:xt.bannerContentAux,children:n.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},s)),t.map((a,s)=>n.jsx("div",{className:xt.boxPosition,style:{order:s},children:n.jsx(Ge,{...a,share:e.share,paths:e.paths})},s))]}),n.jsx("div",{className:xt.bannerContent,children:e.halfPageBanner})]})},hd=e=>n.jsxs(n.Fragment,{children:[n.jsx(ko,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),n.jsx(Uo,{...e})]}),On={newsContent:"_newsContent_smaec_1",newsContentWithLines:"_newsContentWithLines_smaec_15",newsContentWithoutLines:"_newsContentWithoutLines_smaec_25",contentSeparator:"_contentSeparator_smaec_35"},tr=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?On.contentSeparator:"",s=[];let o=0,r=1;for(let i=0;i<t.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(s.push(n.jsx("section",{className:a(o),children:e.banners?.some(d=>d.key===`${e.slot_id}_${r}`)&&n.jsx(we,{banners:e.banners,name:`${e.slot_id}_${r}`})},o)),o++,r++);const c=e.isVideo?Ct(t[i],e.showVideoTime,e.showVideosubtitle,e.showVideoAuthor):t[i];if(!c)continue;const h=e.slot_id&&e.slot_id!=="Nota_1",l={...c,main:{...c.main,title:{...c.main.title,section:h?c.main.title.home:c.main.title.section}}};s.push(n.jsx("section",{className:a(o),children:n.jsx(Ge,{...l,isVideo:e.isVideo,paths:e.paths})},o)),o++}return s.length===2&&s.push(n.jsx("div",{},o)),n.jsx("div",{className:`${e.hasLines?On.newsContentWithLines:On.newsContentWithoutLines} ${On.newsContent}`,children:s})},ka=e=>n.jsx(ge,{title:e.title,titleUrl:e.titleUrl,children:n.jsx(tr,{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})}),nr={newsContent:"_newsContent_1ofh5_1",contentSeparator:"_contentSeparator_1ofh5_15"},ar=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx("div",{className:`${nr.newsContent} ${e.hasLines?nr.contentSeparator:""}`,children:t?.map((s,o)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...s,main:{...s.main,title:{...s.main.title,section:r?s.main.title.home:s.main.title.section}}};return n.jsx("section",{children:n.jsx(Ge,{...i,share:e.share,paths:e.paths})},o)})})})},Ua={newsContent:"_newsContent_1x5ie_1",contentSeparator:"_contentSeparator_1x5ie_15",newsContentWhitoutLine:"_newsContentWhitoutLine_1x5ie_57"},sr=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx("div",{className:`${Ua.newsContent} ${e.hasLines?Ua.contentSeparator:Ua.newsContentWhitoutLine}`,children:t.map((s,o)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...s,main:{...s.main,title:{...s.main.title,section:r?s.main.title.home:s.main.title.section}}};return n.jsx("section",{children:n.jsx(Ge,{...i,share:e.share,paths:e.paths})},o)})})})},xa={headerSection:"_headerSection_1qe16_5",headerSectionLink:"_headerSectionLink_1qe16_31",newsContent:"_newsContent_1qe16_57"},or=e=>{const{content:t,title:a,isVideo:s=!0}=e;if(!t||t.length===0)return;const o=t[0],r=e.slot_id&&e.slot_id!=="Nota_1",i=t.slice(1);return o&&i&&n.jsxs(ge,{title:a,titleUrl:e.titleUrl,children:[n.jsxs("div",{className:xa.headerSection,children:[n.jsx(Xo,{goTo:e.goTo,mainNew:Ct(o),paths:e.paths}),n.jsx(B,{className:xa.headerSectionLink,href:o?.info?.link.url,target:o?.info?.link.target,"aria-label":"Video",children:n.jsx(Ee,{preview:{sizes:o?.main?.image.sizes,description:o?.main?.image.description},isVideo:s,isLarge:!0})})]}),n.jsxs("div",{className:xa.newsContent,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,h)=>{const l=Ct(c),d={...l,main:{...l.main,title:{...l.main.title,section:r?l.main.title.home:l.main.title.section}}};return n.jsx("div",{style:{order:h},children:E.createElement(Ge,{...d,isVideo:s,key:h,paths:e.paths})},h)})]})]})},Wt={content:"_content_gxvaq_1",linkImage:"_linkImage_gxvaq_59",sectionDescription:"_sectionDescription_gxvaq_83",dateText:"_dateText_gxvaq_123",textContent:"_textContent_gxvaq_145"},ud=async e=>{const{showNewsLikeTitle:t=!1}=e;return e&&e.info?n.jsxs("section",{className:Wt.content,style:{"--heightImageOverwrite":"100%"},children:[n.jsx(B,{className:Wt.linkImage,target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:n.jsx(Ee,{preview:e.preview})}),n.jsxs("div",{className:Wt.textContent,children:[n.jsx(B,{className:Wt.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:Wt.dateText,children:Be(e?.info?.date?.modified)})]})]}):null},rr={content:"_content_1y9s7_1",contentSeparator:"_contentSeparator_1y9s7_13"},La={newsContent:"_newsContent_f0o15_1",contentSeparator:"_contentSeparator_f0o15_15",hasLinesBlock:"_hasLinesBlock_f0o15_79"},ir=e=>{if(!e.content||e.content.length===0)return;const t=e.slot_id&&e.slot_id!=="Nota_1";return n.jsx(ge,{title:e.title,children:n.jsx("div",{className:`${rr.content} ${e.hasLines?rr.contentSeparator:""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,s)=>{const o={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return n.jsx("section",{className:e.hasLines?La.hasLinesBlock:"",children:E.createElement(ud,{...o,key:s,showNewsLikeTitle:e.showNewsLikeTitle})},s)})})})},cr=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,cardWidth: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:o?r.main.title.home:r.main.title.section}}};return n.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:n.jsx(Ht,{...c,paths:e.paths})},i)})})})},it={content:"_content_10utx_1",imageStyled:"_imageStyled_10utx_27",contentIcon:"_contentIcon_10utx_45",boxInformation:"_boxInformation_10utx_87",comment:"_comment_10utx_101",title:"_title_10utx_131",authorName:"_authorName_10utx_173"},fd=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=z(),{data:a}=e;return n.jsxs("div",{className:it.content,children:[Array.isArray(a.authors)&&a?.authors[0]?.image?n.jsx("img",{fetchPriority:"low",loading:"lazy",className:it.imageStyled,src:await ue(a?.authors[0]?.image?.sizes[0]?.url||""),alt:a?.authors[0]?.fullname}):n.jsx("div",{className:it.contentIcon,children:e.autorIcon}),n.jsxs("div",{className:it.boxInformation,children:[n.jsx("p",{className:it.authorName,children:a?.authors[0]?.internaluser?n.jsx(B,{block_subPublication:t?.autor,href:a.authors[0]?.internaluser?`/${e.paths.autor}/${a?.authors[0]?.name}`:"#",children:a?.authors[0]?.fullname??"Redacción"}):a?.authors[0]?.fullname??"Redacción"}),n.jsx("p",{className:it.title,children:n.jsx(B,{className:it.linkStyled,href:a?.info?.link?.url,target:a?.info?.link?.target,children:qe(a?.main?.title?.home,40)})}),n.jsx("p",{className:it.comment,children:a?.main?.subtitle?.striped})]})]})},lr=e=>{const t=e.slot_id&&e.slot_id!=="Nota_1";return n.jsx(ge,{titleUrl:e.titleUrl,title:e.title,children:n.jsx(ut,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,s)=>{const o={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return n.jsx(fd,{autorIcon:e.autorIcon,data:o,paths:e.paths},s)})})})},Ze={content:"_content_nslah_1",newsContentSection:"_newsContentSection_nslah_9",itemContent:"_itemContent_nslah_19",ItemCustomContent:"_ItemCustomContent_nslah_31"},Dn=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return n.jsx("div",{className:Ze.ItemCustomContent});case"columnistasnacionales":return n.jsx("div",{className:Ze.ItemCustomContent,children:n.jsx(Pn,{data:t,autorIcon:e.autorIcon,paths:e.paths})});case"columnistaslocales":return n.jsx("div",{className:Ze.ItemCustomContent,children:n.jsx(Pn,{data:t,autorIcon:e.autorIcon,paths:e.paths})});case"columnistas":return n.jsx("div",{className:Ze.ItemCustomContent,children:n.jsx(Pn,{data:t,autorIcon:e.autorIcon,paths:e.paths})});default:return n.jsx("div",{className:Ze.ItemCustomContent,children:n.jsx(Ge,{...t,paths:e.paths})})}},md=e=>{const{data:t,currentPage:a,banners:s,slug:o,ranking:r,pathname:i,texts:c={}}=e,h=[3,8,13],l={3:1,8:2,13:3};switch(e.option){case"op1":return n.jsx(Sa,{ranking:r,readestTitle:c.readestTitle??"",paths:e.paths,bannerTop:n.jsx(we,{banners:s??[],name:"right_1"}),banner:n.jsx(we,{banners:s??[],name:"right_2"}),children:n.jsx("section",{className:Ze.content,children:t.length>0?n.jsx(Tn,{className:[Ze.newsContentSection,"padding-0"].join(" "),paginatorComponent:n.jsx(Gt,{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((d,u)=>n.jsxs(E.Fragment,{children:[h.includes(u+1)&&n.jsx("div",{className:Ze.itemContent+" banner-context",children:n.jsx(we,{banners:s??[],name:`block_2_${l[u+1]}`})}),n.jsx(Dn,{autorIcon:e.autorIcon,item:d,option:o,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(Tn,{className:"padding-0",paginatorComponent:n.jsx(Gt,{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((d,u)=>n.jsxs(E.Fragment,{children:[h.includes(u+1)&&n.jsx("div",{className:Ze.itemContent,children:n.jsx(we,{banners:s??[],name:`block_2_${l[u+1]}`})}),n.jsx(Dn,{autorIcon:e.autorIcon,item:d,option:o,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,{})}},dr={content:"_content_1oabr_1",contactInfoContent:"_contactInfoContent_1oabr_13"},gd=e=>{const{data:t}=e;return n.jsx("section",{className:dr.content,children:t.map((a,s)=>n.jsx("div",{className:dr.contactInfoContent,dangerouslySetInnerHTML:{__html:a.body.rendered}},s))})},Yt={tagContent:"_tagContent_biapt_1",contentLayout2:"_contentLayout2_biapt_19",complementContent:"_complementContent_biapt_35",commentsSeparator:"_commentsSeparator_biapt_47",contentHeader:"_contentHeader_biapt_107"},pd={content:"_content_1noi7_1"},Ad=({children:e,className:t=""})=>n.jsx("div",{className:`content-layout-2 ${pd.content} ${t}`,children:e}),Kt={container:"_container_1b383_1",note:"_note_1b383_17",commercial:"_commercial_1b383_97",commercialContent:"_commercialContent_1b383_131",complement:"_complement_1b383_163"},wd=e=>n.jsxs("section",{className:Kt.container,children:[n.jsx("div",{className:Kt.note,children:e.children}),n.jsx("div",{className:Kt.commercial,children:n.jsxs("div",{className:Kt.commercialContent,children:[e.slug==="liveblogs"&&n.jsx($o,{itemList:e.itemList}),e.bannerTop,n.jsx(vn,{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:Kt.complement,children:e.complement})]}),yd=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("header",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-image-description-display":"none",...e.headerSectionStyles?.liveblogs},children:n.jsx(Mo,{...t,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return n.jsx("header",{className:Yt.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(ft,{...t,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths})})}},Xe={content:"_content_1tboy_1",contentWithinCard:"_contentWithinCard_1tboy_13",contentDate:"_contentDate_1tboy_25",dateInfo:"_dateInfo_1tboy_39",dot:"_dot_1tboy_59",contentTitle:"_contentTitle_1tboy_75",contentTextList:"_contentTextList_1tboy_93",contentButton:"_contentButton_1tboy_129",linkStyled:"_linkStyled_1tboy_141"},bd={content:"_content_12i3e_1"},Cd=e=>n.jsx("section",{className:bd.content,id:e.id,children:e.children}),vd=async(e,t,a)=>{if(!a)return e;const s=/(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g,o=[...e.matchAll(s)];let r=e;for(const i of o){const c=i[1],h=i[2]??"";let l;if(a.forEach(C=>{Array.isArray(C)&&!l&&(l=C.find(T=>h.replaceAll("/","|").includes(T?.info.link.internal||"")))}),!l){const C=c.replace(/class=["']([^"']*ck-related-news[^"']*)["']/,'class="$1-empty"');r=r.replace(c,C);continue}const d=l.preview?.sizes?.[0],u=d?await ue(d.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 C=>{const T=await ue(C.url);return C.width<200?`<source srcset="${T}" media="(width < 750px)"/>`:`<source srcset="${T}" media="(width >= 750px)"/>`})||[])).reduce((C,T)=>C+=T,""),w=c.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),S=w?w[0]:"",v=`
150
150
  <span data-src="${h}">
151
151
  <picture style='display: flex'>
152
152
  ${A}
@@ -257,5 +257,5 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
257
257
  ${I}
258
258
  <figcaption>${M}</figcaption>
259
259
  </figure>
260
- `}}catch(w){console.error("insertVideos error for",g,w),A=""}else A=f;s=u,a+=A,o.lastIndex=u}return a+=e.slice(s),a=zd(a),a}async function Zd(e){const{news:t,banners:a,newsRelatedResponses:s,newsRelatedListResponses:o,slug:r,itemList:i,socials:c,getVideos:h,commonServices:l}=e;let d=t?.body?.rendered??"";d=d.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),d=d.replace(/&nbsp;/g,""),d=Wd(d,a),d=Yd(d),d=await Vd(d),d=await Kd(d,e.texts,s),d=await Jd(d,h),d=Hd(d),d=Fd(d);const u=t.main.sources??[],{NEWS_JOURNALIST_COMPONENT:f}=z(),g=t.config.articlepreview===pt.fotoGaleria&&t.hascontent?.hasgalleryimages;return n.jsxs("div",{className:Mn.content,children:[r!=="liveblogs"&&e.showHeaderImage?g?n.jsx(ur,{commonServices:l,newsformated:t,internal:t.info.link.internal}):n.jsx(Do,{preview:t.preview}):null,n.jsx(we,{banners:a,name:"block_1"}),n.jsx("div",{className:Mn.journalistArticleContent,children:f==="op1"?n.jsx(xd,{autorIcon:e.autorIcon,socials:c,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):n.jsx(Qd,{autorIcon:e.autorIcon,socials:c,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),n.jsx(Bd,{summary:t.main.summary}),n.jsx("main",{className:Mn.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:d}}),n.jsx(Td,{texts:e.texts,itemList:i,banners:a,slug:r,getVideos:h,newsRelatedListResponses:o??[]}),u.length>0&&n.jsxs("div",{className:Mn.noteSource,children:[n.jsx(Pd,{}),n.jsx("p",{children:e.texts.noteSource+(u.length===1?"":"s")+": "+u.map(m=>m.name).join(", ")})]}),t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&n.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const Xd=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,cardWidth:200,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return n.jsx(Ht,{...c,titleGradient:!0,paths:e.paths},i)})})})},Rd=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return n.jsx(Ht,{...c,titleGradient:!0,paths:e.paths},i)})})})},e1=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return E.createElement(Ht,{...c,key:i,titleGradient:!0,paths:e.paths})})})})},$n=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},At={headerSection:"_headerSection_nhjex_1",title:"_title_nhjex_21",subtitle:"_subtitle_nhjex_45",newsContent:"_newsContent_nhjex_71",containerCards:"_containerCards_nhjex_87",image:"_image_nhjex_99",blockHeadContainer:"_blockHeadContainer_nhjex_111"},t1=e=>{const{content:t,title:a,isVideo:s}=e;if(!t||t.length===0)return;const o=t[0],r=t.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return o&&r&&n.jsxs(ge,{title:a,titleUrl:e.titleUrl,children:[n.jsx("div",{className:At.headerSection,children:n.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:At.image,href:o?.info?.link?.url,target:o?.info?.link?.target,children:[n.jsxs("div",{className:At.blockHeadContainer,children:[n.jsx("p",{className:At.title,children:o?.main?.title.home}),o?.main?.subtitle?.rendered&&n.jsx("p",{className:At.subtitle,children:o?.main?.subtitle?.striped})]}),n.jsx(Ee,{preview:o.preview})]})}),n.jsxs("div",{className:At.containerCards,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),n.jsx("div",{className:At.newsContent,children:Array.isArray(r)&&r.map((c,h)=>{const 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:h},children:n.jsx(Ge,{...l,isVideo:s,paths:e.paths})},h)})})]})]})},n1=({printEdition:e,title:t})=>e&&n.jsx(ge,{title:t,children:n.jsx("div",{className:"iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),wr={banner:e=>n.jsx(we,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>n.jsx(vn,{...e}),"Modulo 1x3":e=>n.jsx(ka,{...e}),"Modulo 1x4":e=>n.jsx(ar,{...e}),"Modulo 1x5":e=>n.jsx(sr,{...e}),"Destacado noticias":e=>n.jsx(Ro,{...e}),"Destacado full width":e=>n.jsx(t1,{...e}),"Destacado videos":e=>n.jsx(or,{...e}),"Carrusel card":e=>n.jsx(cr,{...e}),"Carrusel story":e=>n.jsx(Xd,{...e}),"Carrusel owl":e=>n.jsx(Rd,{...e}),"Modulo fotogaleria":e=>n.jsx(e1,{...e}),"Carrusel opinion":e=>n.jsx(lr,{...e}),"Modulo 1x3 card":e=>n.jsx(ir,{...e}),"Modulo iframe":e=>n.jsx(n1,{...e})};function Jt({component:e,slot_id:t,data:a,banners:s}){if(s)return wr[e]&&n.jsx("div",{className:"home-slot",style:$n(a),children:wr[e]({...a,banners:s,slot_id:t})})}function a1({children:e,stylesConfigEntry:t}){return n.jsx("div",{className:"home-slot",style:$n(t),children:e})}const yr={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return n.jsx(Jo,{...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(Jo,{...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(kt,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>n.jsx(rd,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>n.jsx(od,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},jn=({component:e,data:t,banners:a,rightOnlyBanner:s})=>n.jsx("div",{style:$n(t),children:yr[e]&&yr[e]({...t,rightOnlyBanner:s,banners:a})}),s1=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:s,config:o,banners:r,showTagBySection:i})=>{const c=[],l=t,d=Object.keys(e).length/l;for(let u=1;u<=d;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"||(e[g].blockSass[0]?.block==="Modulo iframe"?c.push(n.jsxs(ga,{id:e[g].blockSass[0].key,show:!!e[g].blockSass[0].value,order:(u-1)*l+(f-1),children:[n.jsx(Jt,{component:e[g].blockSass[0].block,banners:r,slot_id:g,data:{printEdition:e[g]?.blockSass[0].value,title:e[g]?.blockSass[0].title??"",titleUrl:e[g].blockSass[0].link??void 0}}),n.jsx(Fe,{children:n.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f)):c.push(n.jsxs(ga,{id:e[g].blockSass[0].key,show:!!e[g].content?.data,order:(u-1)*l+(f-1),children:[n.jsx(Jt,{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(s,{}),paths:o.paths,showTagBySection:i}}),n.jsx(Fe,{children:n.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f)))}return c},o1=({mainBlock:e,StylesConfigMain:t,config:a,banners:s})=>{const{PUBLIC_ENV:o}=z();if(o!=="local")return null;const r=e?.news?.data||[],i=(c,h)=>({...e?.news,...t[c],data:r.slice(0,h),paths:a.paths});return n.jsxs(n.Fragment,{children:[n.jsx(jn,{component:"Super",data:i("Super",1),banners:s}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:1})}),n.jsx(jn,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:s}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:1})}),n.jsx(jn,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:s}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:1})})]})},r1=e=>{const{config:t}=e,a=t.articlepreview;return!![pt.videoEmbedded,pt.videoYouTube,pt.iframe].includes(a)},i1=async e=>{const{custom_complement:t,ranking:a=[],banners:s,autor:o=[],news:r=[],newsRelatedResponses:i=[],newsRelatedListResponses:c=[],itemList:h=[],socials:l,getVideos:d}=e,u=e.slug==="liveblogs",{SHOW_NEWS_MORE_NEWS:f,SHOW_NEWS_RELATED_NEWS:g,MORE_NEWS_SSR:m}=z();if(!(!r||!r[0]))return n.jsx(n.Fragment,{children:n.jsxs(Ad,{className:Yt.contentLayout2,children:[n.jsx(yd,{option:e.slug,news:r,paths:e.paths,headerSectionStyles:e.headerSectionStyles}),n.jsx(je,{banners:s,index:1}),!u&&e.commonServices&&n.jsx($d,{news:r[0],commonServices:e.commonServices}),n.jsx(wd,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:h,ranking:a,readestCustomStyles:e.readestCustomStyles,bannerTop:n.jsx(we,{banners:s??[],name:"right_1"}),banner:n.jsx(we,{banners:s??[],name:"right_2"}),complement:n.jsxs("div",{id:"comentarios",className:Yt.complementContent,suppressHydrationWarning:!0,children:[o.length>0&&n.jsx(Yo,{texts:e.texts,autorIcon:e.autorIcon,autor:o[0],paths:e.paths}),r[0].authors.length>1&&n.jsx(Ko,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),r[0]?.keywords?.tags&&r[0]?.keywords?.tags?.length>0&&n.jsx("div",{className:`${Yt.tagContent} sass-note-tags-content`,children:n.jsx(Wo,{tags:r[0]?.keywords?.tags,paths:e.paths})}),n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem"},suppressHydrationWarning:!0,children:[e.showComments&&n.jsx("div",{className:Yt.commentsSeparator,suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"comment",internalPath:e.internalPath,API_ENV:ta(e.API_ENV)}))}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:2})}),g&&n.jsxs(n.Fragment,{children:[n.jsx(Jt,{component:"Carrusel card",banners:[],slot_id:"Nota_1",data:{...e.stylesConfig["Carrusel card"],content:e.relatedNewsList??[],title:e.texts.relatedNewsTitle,titleUrl:void 0,paths:e.paths}}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:3})})]}),f&&n.jsxs(n.Fragment,{children:[m?n.jsx(Jt,{component:"Modulo 1x3",banners:[],slot_id:"Nota_2",data:{...e.stylesConfig?e.stylesConfig["Modulo 1x3 Client"]?e.stylesConfig["Modulo 1x3 Client"]:e.stylesConfig["Modulo 1x3"]:{},content:e.moreNewsSSR??[],title:e.texts.moreNewsTitle,paths:e.paths,titleUrl:void 0}}):n.jsx(ge,{title:e.texts.moreNewsTitle,children:n.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"more",stylesConfig:e.stylesConfig,section:r[0].info.section?.slug??"",internalPath:e.internalPath,paths:e.paths,API_ENV:ta(e.API_ENV),fetchConfig:e.fetchConfig}))})}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:4})})]}),t&&t()]})]}),children:n.jsxs("section",{style:{"--avatar-content-align-items-desk":e.slug==="liveblogs"?"flex-start":"center"},children:[n.jsx(Zd,{texts:e.texts,autorIcon:e.autorIcon,socials:l,news:r[0],banners:s,newsRelatedResponses:i,newsRelatedListResponses:c,itemList:h,slug:e.slug,getVideos:d,noteShare:e.noteShare,paths:e.paths,showHeaderImage:!r1(r[0]),commonServices:e.commonServices}),n.jsx(we,{banners:s??[],name:"block_3"})]})})]})})},Zt={content:"_content_lu444_1",buttonStyled:"_buttonStyled_lu444_17",searchStyled:"_searchStyled_lu444_39",inputStyled:"_inputStyled_lu444_71",inputStyledTest:"_inputStyledTest_lu444_109"},c1=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"})})}),l1=e=>n.jsx("form",{className:Zt.content,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(c1,{className:Zt.searchStyled})})]})}),Pa={content:"_content_27x8l_1",newsContentSection:"_newsContentSection_27x8l_9",itemContent:"_itemContent_27x8l_19"},d1=e=>{const{data:t,option:a,autor:s,page:o,banners:r,pathname:i,ranking:c,currentPage:h,slug:l,texts:d={},socialIconsFilled:u=!1}=e,f=[5,10,15],{SUB_PUBLICATION_PREFIX_IN_ROUTES:g}=z(),m={5:1,10:2,15:3};switch(a){case"op1":return n.jsx(n.Fragment,{children:n.jsxs(va,{children:[n.jsx(Go,{autor:s[0],autorIcon:e.autorIcon,socialIconsFilled:u}),n.jsx(Sa,{paths:e.paths,ranking:c,readestTitle:d.readestTitle??"",bannerTop:n.jsx(we,{banners:r??[],name:"right_1"}),banner:n.jsx(we,{banners:r??[],name:"right_2"}),children:n.jsx("section",{className:Pa.content,children:t.length>0?n.jsx(Tn,{className:[Pa.newsContentSection,"padding-0"].join(" "),paginatorComponent:n.jsx(Gt,{block_subPublication:g?.autor,texts:d,pathname:i,query:"",currentPage:h,maxPages:e.paginationLimit,showNext:!(t.length<e.newsListLimit)}),children:Array.isArray(t)&&t?.map((p,A)=>n.jsxs(E.Fragment,{children:[f.includes(A+1)&&n.jsx("div",{className:Pa.itemContent+" banner-context",children:n.jsx(we,{banners:r??[],name:`block_2_${m[A+1]}`})}),n.jsx(Dn,{autorIcon:e.autorIcon,item:p,option:l,paths:e.paths},A)]},A))}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:d.autorNotResultMessage})})})})]})});case"op2":return n.jsx(n.Fragment,{children:n.jsxs(va,{children:[n.jsx(Qo,{autor:s[0],autorIcon:e.autorIcon,socialIconsFilled:u}),Array.isArray(t)?n.jsxs(n.Fragment,{children:[n.jsx(ka,{content:t,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),n.jsx(Gt,{block_subPublication:g?.autor,texts:d,query:"",pathname:i,maxPages:Number(e.paginationLimit),currentPage:Number(o),showNext:!((t.length??0)<Number(e.newsListLimit))})]}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:d.autorNotResultMessage})})]})});default:return n.jsx(n.Fragment,{})}},U={overlay:"_overlay_1lkqq_1",header:"_header_1lkqq_35",logo:"_logo_1lkqq_49",card:"_card_1lkqq_63",close:"_close_1lkqq_93",form:"_form_1lkqq_141",formUl:"_formUl_1lkqq_159",field:"_field_1lkqq_183",label:"_label_1lkqq_197",input:"_input_1lkqq_215",error:"_error_1lkqq_251",primary:"_primary_1lkqq_263",divider:"_divider_1lkqq_339",google:"_google_1lkqq_391",googleIcon:"_googleIcon_1lkqq_451",spin:"_spin_1lkqq_517",checkboxRow:"_checkboxRow_1lkqq_561",switch:"_switch_1lkqq_619",terms:"_terms_1lkqq_635",message:"_message_1lkqq_697",passwordChecker:"_passwordChecker_1lkqq_707",valid:"_valid_1lkqq_745",invalid:"_invalid_1lkqq_753",forgotPassword:"_forgotPassword_1lkqq_761",successContainer:"_successContainer_1lkqq_799",thumbsUp:"_thumbsUp_1lkqq_815",successMessage:"_successMessage_1lkqq_827"},Oa=async(e,t)=>{if(!e)throw new Error("No action provided");if(!t)throw new Error("No site key provided");const a=window.grecaptcha;if(!a?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((s,o)=>{a.enterprise.ready(async()=>{try{const r=await a.enterprise.execute(t,{action:e});if(!r)throw new Error("Captcha token no generado");s(r)}catch(r){o(r)}})})},Re=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:U.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"})}),br={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}},Gn=[{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 h1({goToLogin:e,handleGoogleLogin:t,API_ENV:a}){const[s,o]=E.useState({}),[r,i]=E.useState(!1),[c,h]=E.useState(!1),[l,d]=E.useState(null),[u,f]=E.useState("register"),g=(w,S)=>{o(v=>({...v,[w]:S}))},m=async w=>{w.preventDefault(),d(null),h(!0);try{const S=Object.keys(br).filter(Q=>!["username","password","confirmPassword"].includes(Q)).map(Q=>({Name:Q,Value:s[Q]}));if(S.some(Q=>{if(!Q.Value||Q.Value.trim()==="")return!0}))return h(!1),d("Complete todos los campos");if(s.password!==s.confirmPassword){d("Las contraseñas no coinciden");return}const v=s.password||"";if(Gn.some(Q=>!Q.test(v))){d("La contraseña no es válida");return}const C=Math.floor(Date.now()/1e3);S.push({Name:"updated_at",Value:String(C)});const T=a.PUBLIC_ENV==="local"?"token":await Oa("comment_register",a.CAPTCHA_KEY??"");if(!T)throw new Error("Captcha token no generado");const M=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:s.email,password:s.password,userAttributes:S,token:T})});if(!M.ok){const Q=await M.json().catch(()=>({}));if(Q.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:s.email})}),f("confirm");return}throw new Error(Q?.error||"Error al crear usuario")}f("confirm")}catch(S){console.log(S),d(S?.message||S?.error||"Error inesperado")}finally{h(!1)}},p=async w=>{if(w.preventDefault(),!s.confirmationCode){d("Debes ingresar el código de verificación");return}d(null),h(!0);try{const S=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:s.email,code:s.confirmationCode})});if(!S.ok){const v=await S.json().catch(()=>({}));throw new Error(v?.error||"Error al confirmar usuario")}f("success")}catch(S){d(S?.message||"Error inesperado")}finally{h(!1)}},A=s.password||"";return n.jsxs(n.Fragment,{children:[u==="register"&&n.jsxs(n.Fragment,{children:[n.jsxs("button",{onClick:t,className:U.google,children:[n.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:U.googleIcon}),n.jsx("span",{children:"Continuar con Google"})]}),n.jsx("div",{className:U.divider,children:n.jsx("span",{children:"o"})}),n.jsxs("form",{onSubmit:m,className:U.form,"data-error":l?"true":"false",children:[n.jsx("ul",{className:U.formUl,children:Object.entries(br).map(([w,{label:S}])=>n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:S}),n.jsx("input",{type:w.toLowerCase().includes("password")?r?"text":"password":w==="birthdate"?"date":w==="email"?"email":w==="phone_number"?"tel":"text",name:w,value:s[w]||"",onChange:v=>g(w,v.target.value),className:U.input,placeholder:""}),w==="password"&&n.jsx("div",{className:U.passwordChecker,children:Gn.map((v,I)=>{const C=v.test(A);return n.jsxs("div",{className:C?U.valid:U.invalid,children:[n.jsx("div",{children:C?"✔":"○"}),n.jsx("div",{children:v.label})]},I)})}),w==="confirmPassword"&&n.jsxs("div",{className:U.checkboxRow,children:[n.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:r,onChange:v=>i(v.target.checked)}),n.jsx("label",{htmlFor:"showPasswordRegister",className:U.checkboxLabel,children:"Mostrar contraseñas"})]})]},w))}),l&&n.jsx("p",{className:U.error,children:l}),n.jsxs("p",{className:U.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:U.primary,disabled:c,children:c?n.jsx(Re,{}):"Crear cuenta"})]})]}),u==="confirm"&&n.jsxs("form",{onSubmit:p,className:U.form,"data-error":l?"true":"false",children:[n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Código de verificación"}),n.jsx("input",{type:"text",name:"confirmationCode",value:s.confirmationCode||"",onChange:w=>g("confirmationCode",w.target.value),className:U.input,required:!0})]}),l&&n.jsx("p",{className:U.error,children:l}),n.jsx("button",{type:"submit",className:U.primary,disabled:c,children:c?n.jsx(Re,{}):"Confirmar cuenta"}),n.jsxs("p",{className:U.switch,children:["¿Ya confirmaste antes?",n.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]}),u==="success"&&n.jsxs("form",{className:U.form,children:[n.jsxs("div",{className:U.successContainer,children:[n.jsx("div",{className:U.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:U.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:U.primary,children:"Iniciar sesión"})]}),u==="register"&&n.jsxs("p",{className:U.switch,children:["¿Ya tenés cuenta?",n.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]})}const wt=300,et={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function u1(e){const t=e.split(" ");if(t.length!==3)return e;const[a,s,o]=t,r=s.charAt(0).toUpperCase()+s.slice(1).toLowerCase();return`${a} ${r} ${o}`}const Da=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const s=e.current?.value||"",o=s.length>wt,{PUBLIC_ENV:r}=a,i=r==="local",c=s.trim()!==""&&(i||t!=="")&&!o,h=o?`No debes exceder el limite de ${wt} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:c,text:h}},Cr=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},f1=(e,t)=>{const a=Cr(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function m1(e){const[t,a]=e.split("@");if(!t||!a)return e;let s="";t.length<=2?s=t[0]+"*":s=t[0]+"*".repeat(t.length-2)+t[t.length-1];const o=a.lastIndexOf(".");if(o===-1)return`${s}@${a}`;const r=a.slice(0,o),i=a.slice(o);let c="";return r.length<=2?c=r[0]+"*":c=r[0]+"*".repeat(r.length-2)+r[r.length-1],`${s}@${c}${i}`}function g1({onClose:e,checkAuth:t,goToRegister:a,handleGoogleLogin:s,API_ENV:o}){const[r,i]=E.useState("login"),[c,h]=E.useState(""),[l,d]=E.useState(""),[u,f]=E.useState(""),[g,m]=E.useState(""),[p,A]=E.useState(""),[w,S]=E.useState(!1),[v,I]=E.useState(!1),[C,T]=E.useState(null),M=async H=>{if(!v){H.preventDefault(),T(null),I(!0);try{const O=o.PUBLIC_ENV==="local"?"token":await Oa("comment_login",o.CAPTCHA_KEY||"");if(!O)throw new Error("Captcha token no generado");const te=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:c,password:l,token:O})});if(!te.ok){const de=await te.json().catch(()=>({}));throw new Error(de?.error||"Ha ocurrido un error")}e(),await t()}catch(O){T(O?.message||"Error inesperado")}finally{I(!1)}}},Q=async H=>{if(!v){H.preventDefault(),T(null),I(!0);try{const O=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c})});if(!O.ok){const te=await O.json().catch(()=>({}));throw new Error(te?.error||"Error al enviar código")}d(""),i("changePassword")}catch(O){T(O?.message||"Error inesperado")}finally{I(!1)}}},K=async H=>{if(v)return;if(H.preventDefault(),g!==p){T("Las contraseñas no coinciden");return}if(Gn.some(te=>!te.test(g))){T("La contraseña no cumple con los requisitos");return}T(null),I(!0);try{const te=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,code:u,newPassword:g})});if(!te.ok){const de=await te.json().catch(()=>({}));throw new Error(de?.error||"Error al cambiar contraseña")}i("feedback")}catch(te){T(te?.message||"Error inesperado")}finally{I(!1)}};return n.jsxs(n.Fragment,{children:[r==="login"&&n.jsx(p1,{email:c,password:l,showPassword:w,loading:v,error:C,setEmail:h,setPassword:d,setShowPassword:S,onSubmit:M,onForgot:()=>{T(null),i("forgot")},onRegister:a,handleGoogleLogin:s}),r==="forgot"&&n.jsx(A1,{email:c,setEmail:h,loading:v,error:C,onSubmit:Q,onBack:()=>{T(null),i("login")}}),r==="changePassword"&&n.jsx(w1,{email:c,confirmationCode:u,newPassword:g,confirmNewPassword:p,showPassword:w,loading:v,error:C,setConfirmationCode:f,setNewPassword:m,setConfirmNewPassword:A,setShowPassword:S,onSubmit:K,onBack:()=>{T(null),i("forgot")}}),r==="feedback"&&n.jsx(y1,{onBackToLogin:()=>{T(null),i("login")}})]})}function p1({email:e,password:t,showPassword:a,loading:s,error:o,setEmail:r,setPassword:i,setShowPassword:c,onSubmit:h,onForgot:l,onRegister:d,handleGoogleLogin:u}){return n.jsxs(n.Fragment,{children:[n.jsxs("button",{onClick:u,className:U.google,children:[n.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:U.googleIcon}),n.jsx("span",{children:"Continuar con Google"})]}),n.jsx("div",{className:U.divider,children:n.jsx("span",{children:"o"})}),n.jsxs("form",{onSubmit:h,className:U.form,"data-error":o?"true":"false",children:[n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Email"}),n.jsx("input",{type:"email",value:e,onChange:f=>r(f.target.value),className:U.input,placeholder:""})]}),n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Contraseña"}),n.jsx("input",{type:a?"text":"password",value:t,onChange:f=>i(f.target.value),className:U.input,placeholder:""}),n.jsxs("div",{className:U.checkboxRow,children:[n.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:f=>c(f.target.checked)}),n.jsx("label",{htmlFor:"showPasswordLogin",className:U.checkboxLabel,children:"Mostrar contraseña"})]})]}),o&&n.jsx("p",{className:U.error,children:o}),n.jsx("button",{type:"submit",className:U.primary,disabled:s,children:s?n.jsx(Re,{}):"Iniciar Sesión"})]}),n.jsxs("p",{className:U.switch,children:["¿No tenés cuenta?",n.jsx("button",{type:"button",onClick:d,children:"Registrate"})]}),n.jsx("button",{type:"button",className:U.forgotPassword,onClick:l,children:"Olvidé mi contraseña"})]})}function A1({email:e,setEmail:t,loading:a,error:s,onSubmit:o,onBack:r}){return n.jsxs("form",{onSubmit:o,className:U.form,"data-error":s?"true":"false",children:[n.jsx("p",{className:U.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:U.field,children:[n.jsx("label",{className:U.label,children:"Email"}),n.jsx("input",{type:"email",value:e,name:"email",onChange:i=>t(i.target.value),className:U.input,placeholder:""})]}),s&&n.jsx("p",{className:U.error,children:s}),n.jsx("button",{type:"submit",className:U.primary,disabled:a,children:a?n.jsx(Re,{}):"Enviar código"}),n.jsx("p",{className:U.switch,children:n.jsx("button",{type:"button",onClick:r,children:"Volver"})})]})}function w1({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:s,showPassword:o,loading:r,error:i,setConfirmationCode:c,setNewPassword:h,setConfirmNewPassword:l,setShowPassword:d,onSubmit:u,onBack:f}){return n.jsxs("form",{onSubmit:u,className:U.form,"data-error":i?"true":"false",children:[n.jsxs("p",{className:U.message,children:["Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a ",m1(e),". Ingrese el código y la contraseña nueva."]}),n.jsxs("ul",{className:U.formUl,children:[n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Código de verificación"}),n.jsx("input",{type:"text",value:t,onChange:g=>c(g.target.value),className:U.input,placeholder:""})]}),n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Nueva contraseña"}),n.jsx("input",{type:o?"text":"password",value:a,onChange:g=>h(g.target.value),className:U.input,placeholder:"",name:"password"}),n.jsx("div",{className:U.passwordChecker,children:Gn.map((g,m)=>{const p=g.test(a);return n.jsxs("div",{className:p?U.valid:U.invalid,children:[n.jsx("div",{children:p?"✔":"○"}),n.jsx("div",{children:g.label})]},m)})})]}),n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Confirmar contraseña"}),n.jsx("input",{type:o?"text":"password",value:s,onChange:g=>l(g.target.value),className:U.input,placeholder:""}),n.jsxs("div",{className:U.checkboxRow,children:[n.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:o,onChange:g=>d(g.target.checked)}),n.jsx("label",{htmlFor:"showPasswordForgot",className:U.checkboxLabel,children:"Mostrar contraseñas"})]})]})]}),i&&n.jsx("p",{className:U.error,children:i}),n.jsx("button",{type:"submit",className:U.primary,style:{maxWidth:r?"revert-layer":"fit-content"},disabled:r,children:r?n.jsx(Re,{}):"Cambiar contraseña"}),n.jsx("p",{className:U.switch,children:n.jsx("button",{type:"button",onClick:f,children:"Volver"})})]})}function y1({onBackToLogin:e}){return n.jsxs("div",{className:U.form,children:[n.jsx("p",{className:U.success,children:"La contraseña fue cambiada con éxito"}),n.jsx("button",{type:"button",className:U.primary,onClick:e,children:"Iniciar Sesión"})]})}function vr({loginUrl:e,onClose:t,checkAuth:a,icon:s,API_ENV:o}){const[r,i]=E.useState("login"),c=async()=>{if(o.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),t(),a();return}if(!e)return;const h=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${h}`};return n.jsx("div",{className:U.overlay,role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:h=>{const l=h.target;l&&l.id==="pop-overlay"&&t()},children:n.jsxs("div",{className:U.card,children:[n.jsxs("header",{className:U.header,children:[n.jsx("div",{className:U.logo,children:s?s():null}),n.jsx("button",{onClick:t,className:U.close,"aria-label":"Cerrar",children:n.jsx(It,{})})]}),r==="login"&&n.jsx(g1,{onClose:t,checkAuth:a,handleGoogleLogin:c,goToRegister:()=>i("register"),API_ENV:o}),r==="register"&&n.jsx(h1,{handleGoogleLogin:c,goToLogin:()=>i("login"),API_ENV:o})]})})}const _r={content:"_content_ghncj_1",videoContent:"_videoContent_ghncj_17"},Xt={container:"_container_1wcps_1",playStyled:"_playStyled_1wcps_11",imageStyled:"_imageStyled_1wcps_25",longer:"_longer_1wcps_51",contentNews:"_contentNews_1wcps_61",tagContent:"_tagContent_1wcps_101",tag:"_tag_1wcps_101",titular:"_titular_1wcps_135",small:"_small_1wcps_161",figure:"_figure_1wcps_173",backDrop:"_backDrop_1wcps_183",backDropAux:"_backDropAux_1wcps_199"},Sr=async e=>{const{size:t="longer",video:a}=e,s=a.main.image.sizes[0]?.url??"";return n.jsx("figure",{className:Xt.figure,children:n.jsxs("span",{className:Xt.backdrop,children:[n.jsx("span",{className:Xt.backDropAux}),n.jsx(B,{href:a.info.link.url,target:a.info.link.target,children:n.jsxs("div",{children:[a.main.image.sizes.map(async(o,r)=>o.width>=580?n.jsx("source",{media:"(width >=900px)",srcSet:await ue(o.url)},r):n.jsx("source",{media:"(width <900px)",srcSet:await ue(o.url)},r)),n.jsx("img",{fetchPriority:"low",loading:"lazy",className:[Xt.imageStyled,Xt[t]].join(" "),alt:"",src:s?await ue(s):""})]})})]})})},b1=e=>{const{videos:t}=e;return n.jsx("div",{className:_r.content,children:n.jsx(Nt,{children:n.jsx(ge,{title:"Videos",isTitle:!0,children:n.jsxs("div",{className:_r.videoContent,children:[n.jsx(Sr,{video:t[0]}),n.jsx("div",{style:{display:"flex",flexDirection:"column"},children:t.slice(1).map((a,s)=>n.jsx(Sr,{size:"small",video:a},`video-small-${s}`))})]})})})})},yt={content:"_content_quk50_1",videoContent:"_videoContent_quk50_17",articleSection:"_articleSection_quk50_41",contentLatout:"_contentLatout_quk50_61",title:"_title_quk50_71",article:"_article_quk50_41",correspondent:"_correspondent_quk50_127"},Nr={container:"_container_17w1m_1",playStyled:"_playStyled_17w1m_17"},C1=e=>{const{video:t}=e,a=Cn();return n.jsx(B,{href:t.info.link.url?t.info.link.url:void 0,target:t.info.link.target,children:n.jsxs("section",{className:Nr.container,children:[n.jsx(Ee,{isLarge:!0,preview:{sizes:t.main.image.sizes,description:t.main.description}}),n.jsx(a,{className:Nr.playStyled})]})})},v1=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${Be(e.video.info.date.created)}`:e?.video.main.author;return n.jsx("div",{className:yt.content,children:n.jsx(Nt,{className:yt.contentLatout,children:n.jsx(ge,{title:"Videos",isTitle:!0,children:n.jsxs("div",{className:yt.videoContent,children:[n.jsx(C1,{video:e.video}),n.jsxs("div",{className:yt.articleSection,children:[n.jsx(B,{className:yt.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),n.jsx("p",{className:yt.article,children:qe(e.video.main.description)}),n.jsx("p",{className:yt.correspondent,children:t()})]})]})})})})},_1=e=>{switch(e.option){case"op1":return n.jsx(b1,{videos:e.data});case"op2":return n.jsx(v1,{video:e.data[0]});default:return n.jsx(n.Fragment,{})}};function S1({containerId:e,containerId2:t}){return E.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.widgets.load(s):l<10?(l++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const s=document.getElementById(e),o=document.getElementById(t);if(!s&&!o)return;const r=s?.querySelectorAll("script[src]")??[],i=o?.querySelectorAll("script[src]")??[];[...r,...i].forEach(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(f=>{u.setAttribute(f.name,f.value)}),d.replaceWith(u)});const h=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(h)for(let d=0;d<h.length;d++)h[d]?.remove();let l=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const N1=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:s=!1,BackDropAuxHeigthMobile:o}=e,r=ya(),i=E.useMemo(()=>{const f=e?.preview?.sizes;if(f&&Array.isArray(f)&&f.length>0)return f;const g=e?.preview?.original;return g?.url?[{url:g.url,width:g.width||0,height:g.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return n.jsx("div",{className:re.imagePlaceholder});const{PUBLIC_API_HOST:c="",PUBLIC_ASSETS_URL:h}=e.API_ENV,l=i[0]?.url,d=h&&h!=="false"?h:c,u=l?.startsWith("http")||l?.includes(d)?l:d+l;return n.jsx("figure",{className:re.figure,children:n.jsxs("span",{className:re.backdrop,children:[n.jsx("span",{className:re.backdropAux,style:{height:o||"56.25%"}}),n.jsxs("picture",{children:[n.jsx("img",{fetchPriority:"low",loading:"lazy",className:re.imageStyled,alt:e.preview?.description||"",src:u,style:{boxShadow:s?"0px 4px 8px 0px #00000033":"0px"}}),t&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:re.boxPlayIcon,style:{height:a?"40%":"72px"}}),n.jsx(r,{className:re.playStyled,style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},I1=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},E1=({section:e,internalPath:t,banner:a,isVisible:s=!1,stylesConfig:o,API_ENV:r,fetchConfig:i,paths:c})=>{const h=r.FETCH_SIZE_MORE_NEWS??6,[l,d]=E.useState({data:Array.from({length:h},()=>Ir)}),[u,f]=E.useState(!1),g=E.useCallback(async()=>{if(!t)return;const A=new URLSearchParams({section:e,currentNewsLink:t}),w=await fetch(`/api/get-more-news?${A}`);if(!w.ok)throw new Error(`HTTP error! status: ${w.status}`);return await w.json()},[e,t]),m=E.useCallback(async()=>{const{PUBLIC_API_FRONT:A,PUBLIC_X_SECURITY_TOKEN:w,PUBLIC_API_PATH_VERSION:S,PUBLIC_PUBLICATION_ID:v}=r;if(!A||!w||!v||!S)throw new Error("Missing required environment variables");const I=await oe.get(`${A}${S}/news-list-section`,{params:{size:h+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(v)},headers:{"x-api-token":w,"Content-Type":"application/json"}});return{...I.data,data:I.data.data.filter(C=>C.info.link.internal!==t)}},[e,t,r]),p=E.useCallback(async()=>{if(!(u||!t)){f(!0);try{let A;r.PUBLIC_ENV!=="prod"?A=await g():A=await m(),d({...A,data:A.data.slice(0,h)})}catch(A){console.error("[/api/get-more-news] Error:",A.message),d(void 0)}}},[u,t,r.PUBLIC_ENV,g,m]);return E.useEffect(()=>{s&&p()},[s,p]),!l?.data||l.data.length===0?null:n.jsx(T1,{news:l.data,title:"Más Noticias",...o["Modulo 1x3 Client"]??o["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:r,paths:c,isVisible:s})},T1=e=>{const{news:t,hasLines:a=!1,API_ENV:s}=e,o=r=>a&&(r+1)%3!==0?La.contentSeparator:"";return n.jsx("div",{className:La.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((r,i)=>{const{main:c,authors:h,info:l,preview:d,isVideo:u=!1,config:f,overImage:g="default",isTitle:m=!1,isLarge:p=!1,keywords:A}=r;return n.jsx("div",{className:o(i),style:{order:i},children:n.jsxs("section",{className:Qt.content,children:[n.jsx(B,{title:c?.title?.section,href:l?.link?.url??"invalidUrl","aria-label":c?.title?.section??"nota",target:l?.link?.target,children:n.jsx(N1,{isVisible:e.isVisible,preview:d,rounded:e.rounded,isVideo:u,isLarge:p,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),n.jsx("div",{className:Qt.newsDescription,children:n.jsx(k1,{main:c,SHOW_TAG_BY_SECTION:s.SHOW_TAG_BY_SECTION,authors:h,info:l,preview:d,share:e.share,config:f,overImage:g,isTitle:m,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:A})})]})},i)})})},k1=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:s,keywords:o,info:r}=e,c=(()=>{if(!e?.authors||e.authors.length===0)return"";const d=e.authors[0],u=Be(e.info?.date?.modified,e.DATE_CONFIG);return d&&e?.config?.showtime&&e.config?.showauthor?`${d.fullname} - ${u}`:d&&e.config?.showauthor?d.fullname:e?.config?.showtime?u:""})(),h=()=>e.main.uppertitle?n.jsx("p",{className:ne.uppertitle,title:e.main.uppertitle,children:e.main.uppertitle}):null,l=()=>{if(s&&o?.tags?.length&&o.tags.length>0){const d=o.tags[0],u=d.name;return n.jsxs("h3",{className:ne.sectionDescriptionContainer,children:[d.approved?n.jsx(B,{"aria-label":u,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:ne.sectionDescription,href:tt(d,e.paths),children:u}):n.jsx("div",{className:ne.sectionDescription,children:u}),h()]})}else if(r?.section?.url){const d=r.section.name;return n.jsxs("h3",{className:ne.sectionDescriptionContainer,children:[n.jsx(B,{"aria-label":d,className:ne.sectionDescription,href:r.section.url,children:d}),h()]})}return null};return n.jsxs("div",{className:ne.boxInformation,children:[t&&n.jsx(I1,{className:ne.dotStyles}),n.jsx(l,{}),n.jsx("h2",{className:ne.articule,children:n.jsx(B,{className:ne.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:ne.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?qe(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&c&&n.jsx(n.Fragment,{children:e.authors?.[0]?.internaluser?n.jsx(B,{block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,className:ne.correspondentLink,href:`/${e.paths.autor}/${e.authors[0].name}`,children:c}):n.jsx("div",{className:ne.correspondent,children:c})})]})},U1=({user:e,handleLogout:t,message:a})=>{const s=()=>{const r=document.querySelector(".user-actions-options");r&&r.classList.toggle("show")},o=e.firstname??"Usuario";return n.jsx("div",{className:"comment-item",children:n.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?n.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):n.jsx("div",{className:"comment-avatar",children:o.charAt(0).toUpperCase()}),n.jsxs("div",{style:{flex:1},children:[n.jsxs("div",{className:"comment-header",children:[n.jsxs("span",{className:"comment-username user-welcome",children:["Hola ",o,"!"]}),n.jsx("div",{className:"user-actions-options",children:n.jsx("button",{onClick:()=>{t()},children:"Cerrar Sesion"})}),n.jsx("button",{className:"user-actions-span",onClick:s,children:n.jsx(Bn,{width:13,height:13,fill:"black"})})]}),n.jsx("p",{className:"comment-text",children:a})]})]})})},Ae={overlay:"_overlay_1ng7z_5",popup:"_popup_1ng7z_33",title:"_title_1ng7z_79",optionsContainer:"_optionsContainer_1ng7z_103",option:"_option_1ng7z_103",radioInput:"_radioInput_1ng7z_131",radioCustom:"_radioCustom_1ng7z_139",optionLabel:"_optionLabel_1ng7z_193",buttons:"_buttons_1ng7z_219",cancelButton:"_cancelButton_1ng7z_233",closeButton:"_closeButton_1ng7z_235",buttonAlone:"_buttonAlone_1ng7z_273",reportButton:"_reportButton_1ng7z_285",successContainer:"_successContainer_1ng7z_325",thumbsUp:"_thumbsUp_1ng7z_341",successMessage:"_successMessage_1ng7z_353",errorMessage:"_errorMessage_1ng7z_435",loadingContainer:"_loadingContainer_1ng7z_461"},Er=async(e,t)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:s,COMMENTS_CAPTCHA_API_KEY:o}=t;try{const r=a,i=s,l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${r}/assessments?key=${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",l),l.tokenProperties?.valid===!0}catch(r){return console.error("Error verificando reCAPTCHA Enterprise:",r),!1}};async function x1({publication:e,username:t,id:a,type:s,baseUrl:o,captchaToken:r,apiToken:i,securityToken:c,COMMENTS_VARS:h}){if(!e||!t||!a||!s||!r)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof s!="string"||typeof r!="string")throw new Error("Todos los parámetros deben ser strings");if(!await Er(r,h))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const l=`${o}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,d=encodeURIComponent(s),u=new URLSearchParams({publication:e,username:t??!1,id:a,type:d}),f=`${l}?${u.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:s,encodedType:d,url:f});const g=await oe.get(f,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":c,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",g.data),g.status===200||g.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:g.status,data:g.data};throw new Error(`Respuesta inesperada del servidor: ${g.status}`)}catch(g){if(console.error("Error reporting comment:",g),oe.isAxiosError(g)){const m=g.response?.status,p=g.response?.data;throw m===400?new Error("Datos inválidos para el reporte"):m===401?new Error("Token de API inválido"):m===403?new Error("Acceso denegado para reportar comentario"):m===404?new Error("Comentario no encontrado"):m===409?new Error("El comentario ya fue reportado por este usuario"):m===500?new Error("Error interno del servidor CMS"):new Error(p?.error||p?.message||`Error HTTP ${m}: No se pudo reportar el comentario`)}throw g}}const He={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 L1(e){return He[e]}var Qn={exports:{}},Hn={exports:{}},ae={};var Tr;function B1(){if(Tr)return ae;Tr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=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,w=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function v(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case t:switch(C=C.type,C){case h:case l:case s:case r:case o:case u:return C;default:switch(C=C&&C.$$typeof,C){case c:case d:case m:case g:case i:return C;default:return T}}case a:return T}}}function I(C){return v(C)===l}return ae.AsyncMode=h,ae.ConcurrentMode=l,ae.ContextConsumer=c,ae.ContextProvider=i,ae.Element=t,ae.ForwardRef=d,ae.Fragment=s,ae.Lazy=m,ae.Memo=g,ae.Portal=a,ae.Profiler=r,ae.StrictMode=o,ae.Suspense=u,ae.isAsyncMode=function(C){return I(C)||v(C)===h},ae.isConcurrentMode=I,ae.isContextConsumer=function(C){return v(C)===c},ae.isContextProvider=function(C){return v(C)===i},ae.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ae.isForwardRef=function(C){return v(C)===d},ae.isFragment=function(C){return v(C)===s},ae.isLazy=function(C){return v(C)===m},ae.isMemo=function(C){return v(C)===g},ae.isPortal=function(C){return v(C)===a},ae.isProfiler=function(C){return v(C)===r},ae.isStrictMode=function(C){return v(C)===o},ae.isSuspense=function(C){return v(C)===u},ae.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===s||C===l||C===r||C===o||C===u||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===g||C.$$typeof===i||C.$$typeof===c||C.$$typeof===d||C.$$typeof===A||C.$$typeof===w||C.$$typeof===S||C.$$typeof===p)},ae.typeOf=v,ae}var se={};var kr;function q1(){return kr||(kr=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=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,w=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function v(P){return typeof P=="string"||typeof P=="function"||P===s||P===l||P===r||P===o||P===u||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===m||P.$$typeof===g||P.$$typeof===i||P.$$typeof===c||P.$$typeof===d||P.$$typeof===A||P.$$typeof===w||P.$$typeof===S||P.$$typeof===p)}function I(P){if(typeof P=="object"&&P!==null){var Ce=P.$$typeof;switch(Ce){case t:var Yn=P.type;switch(Yn){case h:case l:case s:case r:case o:case u:return Yn;default:var Kr=Yn&&Yn.$$typeof;switch(Kr){case c:case d:case m:case g:case i:return Kr;default:return Ce}}case a:return Ce}}}var C=h,T=l,M=c,Q=i,K=t,H=d,O=s,te=m,de=g,j=a,L=r,k=o,$=u,x=!1;function V(P){return x||(x=!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)||I(P)===h}function y(P){return I(P)===l}function N(P){return I(P)===c}function q(P){return I(P)===i}function G(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function D(P){return I(P)===d}function F(P){return I(P)===s}function W(P){return I(P)===m}function Y(P){return I(P)===g}function R(P){return I(P)===a}function ee(P){return I(P)===r}function J(P){return I(P)===o}function le(P){return I(P)===u}se.AsyncMode=C,se.ConcurrentMode=T,se.ContextConsumer=M,se.ContextProvider=Q,se.Element=K,se.ForwardRef=H,se.Fragment=O,se.Lazy=te,se.Memo=de,se.Portal=j,se.Profiler=L,se.StrictMode=k,se.Suspense=$,se.isAsyncMode=V,se.isConcurrentMode=y,se.isContextConsumer=N,se.isContextProvider=q,se.isElement=G,se.isForwardRef=D,se.isFragment=F,se.isLazy=W,se.isMemo=Y,se.isPortal=R,se.isProfiler=ee,se.isStrictMode=J,se.isSuspense=le,se.isValidElementType=v,se.typeOf=I})()),se}var Ur;function Ma(){return Ur||(Ur=1,process.env.NODE_ENV==="production"?Hn.exports=B1():Hn.exports=q1()),Hn.exports}var $a,xr;function P1(){if(xr)return $a;xr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function o(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(h.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(d){l[d]=d}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $a=o()?Object.assign:function(r,i){for(var c,h=s(r),l,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var u in c)t.call(c,u)&&(h[u]=c[u]);if(e){l=e(c);for(var f=0;f<l.length;f++)a.call(c,l[f])&&(h[l[f]]=c[l[f]])}}return h},$a}var ja,Lr;function Ga(){if(Lr)return ja;Lr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ja=e,ja}var Qa,Br;function qr(){return Br||(Br=1,Qa=Function.call.bind(Object.prototype.hasOwnProperty)),Qa}var Ha,Pr;function O1(){if(Pr)return Ha;Pr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ga(),a={},s=qr();e=function(r){var i="Warning: "+r;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(r,i,c,h,l){if(process.env.NODE_ENV!=="production"){for(var d in r)if(s(r,d)){var u;try{if(typeof r[d]!="function"){var f=Error((h||"React class")+": "+c+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=r[d](i,d,h,c,null,t)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var g=l?l():"";e("Failed "+c+" type: "+u.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},Ha=o,Ha}var Fa,Or;function D1(){if(Or)return Fa;Or=1;var e=Ma(),t=P1(),a=Ga(),s=qr(),o=O1(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return Fa=function(c,h){var l=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(y){var N=y&&(l&&y[l]||y[d]);if(typeof N=="function")return N}var f="<<anonymous>>",g={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:S(),arrayOf:v,element:I(),elementType:C(),instanceOf:T,node:H(),objectOf:Q,oneOf:M,oneOfType:K,shape:te,exact:de};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={},q=0;function G(F,W,Y,R,ee,J,le){if(R=R||f,J=J||Y,le!==a){if(h){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 Ce=R+":"+Y;!N[Ce]&&q<3&&(r("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+R+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[Ce]=!0,q++)}}return W[Y]==null?F?W[Y]===null?new p("The "+ee+" `"+J+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new p("The "+ee+" `"+J+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:y(W,Y,R,ee,J)}var D=G.bind(null,!1);return D.isRequired=G.bind(null,!0),D}function w(y){function N(q,G,D,F,W,Y){var R=q[G],ee=k(R);if(ee!==y){var J=$(R);return new p("Invalid "+F+" `"+W+"` of type "+("`"+J+"` supplied to `"+D+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return A(N)}function S(){return A(i)}function v(y){function N(q,G,D,F,W){if(typeof y!="function")return new p("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var Y=q[G];if(!Array.isArray(Y)){var R=k(Y);return new p("Invalid "+F+" `"+W+"` of type "+("`"+R+"` supplied to `"+D+"`, expected an array."))}for(var ee=0;ee<Y.length;ee++){var J=y(Y,ee,D,F,W+"["+ee+"]",a);if(J instanceof Error)return J}return null}return A(N)}function I(){function y(N,q,G,D,F){var W=N[q];if(!c(W)){var Y=k(W);return new p("Invalid "+D+" `"+F+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return A(y)}function C(){function y(N,q,G,D,F){var W=N[q];if(!e.isValidElementType(W)){var Y=k(W);return new p("Invalid "+D+" `"+F+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return A(y)}function T(y){function N(q,G,D,F,W){if(!(q[G]instanceof y)){var Y=y.name||f,R=V(q[G]);return new p("Invalid "+F+" `"+W+"` of type "+("`"+R+"` supplied to `"+D+"`, expected ")+("instance of `"+Y+"`."))}return null}return A(N)}function M(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(q,G,D,F,W){for(var Y=q[G],R=0;R<y.length;R++)if(m(Y,y[R]))return null;var ee=JSON.stringify(y,function(le,P){var Ce=$(P);return Ce==="symbol"?String(P):P});return new p("Invalid "+F+" `"+W+"` of value `"+String(Y)+"` "+("supplied to `"+D+"`, expected one of "+ee+"."))}return A(N)}function Q(y){function N(q,G,D,F,W){if(typeof y!="function")return new p("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var Y=q[G],R=k(Y);if(R!=="object")return new p("Invalid "+F+" `"+W+"` of type "+("`"+R+"` supplied to `"+D+"`, expected an object."));for(var ee in Y)if(s(Y,ee)){var J=y(Y,ee,D,F,W+"."+ee,a);if(J instanceof Error)return J}return null}return A(N)}function K(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 q=y[N];if(typeof q!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(q)+" at index "+N+"."),i}function G(D,F,W,Y,R){for(var ee=[],J=0;J<y.length;J++){var le=y[J],P=le(D,F,W,Y,R,a);if(P==null)return null;P.data&&s(P.data,"expectedType")&&ee.push(P.data.expectedType)}var Ce=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new p("Invalid "+Y+" `"+R+"` supplied to "+("`"+W+"`"+Ce+"."))}return A(G)}function H(){function y(N,q,G,D,F){return j(N[q])?null:new p("Invalid "+D+" `"+F+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return A(y)}function O(y,N,q,G,D){return new p((y||"React class")+": "+N+" type `"+q+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function te(y){function N(q,G,D,F,W){var Y=q[G],R=k(Y);if(R!=="object")return new p("Invalid "+F+" `"+W+"` of type `"+R+"` "+("supplied to `"+D+"`, expected `object`."));for(var ee in y){var J=y[ee];if(typeof J!="function")return O(D,F,W,ee,$(J));var le=J(Y,ee,D,F,W+"."+ee,a);if(le)return le}return null}return A(N)}function de(y){function N(q,G,D,F,W){var Y=q[G],R=k(Y);if(R!=="object")return new p("Invalid "+F+" `"+W+"` of type `"+R+"` "+("supplied to `"+D+"`, expected `object`."));var ee=t({},q[G],y);for(var J in ee){var le=y[J];if(s(y,J)&&typeof le!="function")return O(D,F,W,J,$(le));if(!le)return new p("Invalid "+F+" `"+W+"` key `"+J+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(q[G],null," ")+`
260
+ `}}catch(w){console.error("insertVideos error for",g,w),A=""}else A=f;s=u,a+=A,o.lastIndex=u}return a+=e.slice(s),a=zd(a),a}async function Zd(e){const{news:t,banners:a,newsRelatedResponses:s,newsRelatedListResponses:o,slug:r,itemList:i,socials:c,getVideos:h,commonServices:l}=e;let d=t?.body?.rendered??"";d=d.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),d=d.replace(/&nbsp;/g,""),d=Wd(d,a),d=Yd(d),d=await Vd(d),d=await Kd(d,e.texts,s),d=await Jd(d,h),d=Hd(d),d=Fd(d);const u=t.main.sources??[],{NEWS_JOURNALIST_COMPONENT:f,CONFIG_blockDefaultTwitterHydrator:g}=z(),m=t.config.articlepreview===pt.fotoGaleria&&t.hascontent?.hasgalleryimages;return n.jsxs("div",{className:Mn.content,children:[r!=="liveblogs"&&e.showHeaderImage?m?n.jsx(ur,{commonServices:l,newsformated:t,internal:t.info.link.internal}):n.jsx(Do,{preview:t.preview}):null,n.jsx(we,{banners:a,name:"block_1"}),n.jsx("div",{className:Mn.journalistArticleContent,children:f==="op1"?n.jsx(xd,{autorIcon:e.autorIcon,socials:c,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):n.jsx(Qd,{autorIcon:e.autorIcon,socials:c,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),n.jsx(Bd,{summary:t.main.summary}),n.jsx("main",{className:Mn.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:d}}),n.jsx(Td,{texts:e.texts,itemList:i,banners:a,slug:r,getVideos:h,newsRelatedListResponses:o??[]}),u.length>0&&n.jsxs("div",{className:Mn.noteSource,children:[n.jsx(Pd,{}),n.jsx("p",{children:e.texts.noteSource+(u.length===1?"":"s")+": "+u.map(p=>p.name).join(", ")})]}),!g&&t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&n.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const Xd=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,cardWidth:200,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return n.jsx(Ht,{...c,titleGradient:!0,paths:e.paths},i)})})})},Rd=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return n.jsx(Ht,{...c,titleGradient:!0,paths:e.paths},i)})})})},e1=e=>{const{content:t,title:a,slot_id:s}=e,o=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&n.jsx(ge,{title:a,titleUrl:e.titleUrl,children:n.jsx(ut,{slot_id:s,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return E.createElement(Ht,{...c,key:i,titleGradient:!0,paths:e.paths})})})})},$n=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},At={headerSection:"_headerSection_nhjex_1",title:"_title_nhjex_21",subtitle:"_subtitle_nhjex_45",newsContent:"_newsContent_nhjex_71",containerCards:"_containerCards_nhjex_87",image:"_image_nhjex_99",blockHeadContainer:"_blockHeadContainer_nhjex_111"},t1=e=>{const{content:t,title:a,isVideo:s}=e;if(!t||t.length===0)return;const o=t[0],r=t.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return o&&r&&n.jsxs(ge,{title:a,titleUrl:e.titleUrl,children:[n.jsx("div",{className:At.headerSection,children:n.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:At.image,href:o?.info?.link?.url,target:o?.info?.link?.target,children:[n.jsxs("div",{className:At.blockHeadContainer,children:[n.jsx("p",{className:At.title,children:o?.main?.title.home}),o?.main?.subtitle?.rendered&&n.jsx("p",{className:At.subtitle,children:o?.main?.subtitle?.striped})]}),n.jsx(Ee,{preview:o.preview})]})}),n.jsxs("div",{className:At.containerCards,children:[n.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),n.jsx("div",{className:At.newsContent,children:Array.isArray(r)&&r.map((c,h)=>{const 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:h},children:n.jsx(Ge,{...l,isVideo:s,paths:e.paths})},h)})})]})]})},n1=({printEdition:e,title:t})=>e&&n.jsx(ge,{title:t,children:n.jsx("div",{className:"iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),wr={banner:e=>n.jsx(we,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>n.jsx(vn,{...e}),"Modulo 1x3":e=>n.jsx(ka,{...e}),"Modulo 1x4":e=>n.jsx(ar,{...e}),"Modulo 1x5":e=>n.jsx(sr,{...e}),"Destacado noticias":e=>n.jsx(Ro,{...e}),"Destacado full width":e=>n.jsx(t1,{...e}),"Destacado videos":e=>n.jsx(or,{...e}),"Carrusel card":e=>n.jsx(cr,{...e}),"Carrusel story":e=>n.jsx(Xd,{...e}),"Carrusel owl":e=>n.jsx(Rd,{...e}),"Modulo fotogaleria":e=>n.jsx(e1,{...e}),"Carrusel opinion":e=>n.jsx(lr,{...e}),"Modulo 1x3 card":e=>n.jsx(ir,{...e}),"Modulo iframe":e=>n.jsx(n1,{...e})};function Jt({component:e,slot_id:t,data:a,banners:s}){if(s)return wr[e]&&n.jsx("div",{className:"home-slot",style:$n(a),children:wr[e]({...a,banners:s,slot_id:t})})}function a1({children:e,stylesConfigEntry:t}){return n.jsx("div",{className:"home-slot",style:$n(t),children:e})}const yr={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return n.jsx(Jo,{...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(Jo,{...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(kt,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>n.jsx(rd,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>n.jsx(od,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},jn=({component:e,data:t,banners:a,rightOnlyBanner:s})=>n.jsx("div",{style:$n(t),children:yr[e]&&yr[e]({...t,rightOnlyBanner:s,banners:a})}),s1=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:s,config:o,banners:r,showTagBySection:i})=>{const c=[],l=t,d=Object.keys(e).length/l;for(let u=1;u<=d;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"||(e[g].blockSass[0]?.block==="Modulo iframe"?c.push(n.jsxs(ga,{id:e[g].blockSass[0].key,show:!!e[g].blockSass[0].value,order:(u-1)*l+(f-1),children:[n.jsx(Jt,{component:e[g].blockSass[0].block,banners:r,slot_id:g,data:{printEdition:e[g]?.blockSass[0].value,title:e[g]?.blockSass[0].title??"",titleUrl:e[g].blockSass[0].link??void 0}}),n.jsx(Fe,{children:n.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f)):c.push(n.jsxs(ga,{id:e[g].blockSass[0].key,show:!!e[g].content?.data,order:(u-1)*l+(f-1),children:[n.jsx(Jt,{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(s,{}),paths:o.paths,showTagBySection:i}}),n.jsx(Fe,{children:n.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f)))}return c},o1=({mainBlock:e,StylesConfigMain:t,config:a,banners:s})=>{const{PUBLIC_ENV:o}=z();if(o!=="local")return null;const r=e?.news?.data||[],i=(c,h)=>({...e?.news,...t[c],data:r.slice(0,h),paths:a.paths});return n.jsxs(n.Fragment,{children:[n.jsx(jn,{component:"Super",data:i("Super",1),banners:s}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:1})}),n.jsx(jn,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:s}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:1})}),n.jsx(jn,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:s}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:1})})]})},r1=e=>{const{config:t}=e,a=t.articlepreview;return!![pt.videoEmbedded,pt.videoYouTube,pt.iframe].includes(a)},i1=async e=>{const{custom_complement:t,ranking:a=[],banners:s,autor:o=[],news:r=[],newsRelatedResponses:i=[],newsRelatedListResponses:c=[],itemList:h=[],socials:l,getVideos:d}=e,u=e.slug==="liveblogs",{SHOW_NEWS_MORE_NEWS:f,SHOW_NEWS_RELATED_NEWS:g,MORE_NEWS_SSR:m}=z();if(!(!r||!r[0]))return n.jsx(n.Fragment,{children:n.jsxs(Ad,{className:Yt.contentLayout2,children:[n.jsx(yd,{option:e.slug,news:r,paths:e.paths,headerSectionStyles:e.headerSectionStyles}),n.jsx(je,{banners:s,index:1}),!u&&e.commonServices&&n.jsx($d,{news:r[0],commonServices:e.commonServices}),n.jsx(wd,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:h,ranking:a,readestCustomStyles:e.readestCustomStyles,bannerTop:n.jsx(we,{banners:s??[],name:"right_1"}),banner:n.jsx(we,{banners:s??[],name:"right_2"}),complement:n.jsxs("div",{id:"comentarios",className:Yt.complementContent,suppressHydrationWarning:!0,children:[o.length>0&&n.jsx(Yo,{texts:e.texts,autorIcon:e.autorIcon,autor:o[0],paths:e.paths}),r[0].authors.length>1&&n.jsx(Ko,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),r[0]?.keywords?.tags&&r[0]?.keywords?.tags?.length>0&&n.jsx("div",{className:`${Yt.tagContent} sass-note-tags-content`,children:n.jsx(Wo,{tags:r[0]?.keywords?.tags,paths:e.paths})}),n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem"},suppressHydrationWarning:!0,children:[e.showComments&&n.jsx("div",{className:Yt.commentsSeparator,suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"comment",internalPath:e.internalPath,API_ENV:ta(e.API_ENV)}))}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:2})}),g&&n.jsxs(n.Fragment,{children:[n.jsx(Jt,{component:"Carrusel card",banners:[],slot_id:"Nota_1",data:{...e.stylesConfig["Carrusel card"],content:e.relatedNewsList??[],title:e.texts.relatedNewsTitle,titleUrl:void 0,paths:e.paths}}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:3})})]}),f&&n.jsxs(n.Fragment,{children:[m?n.jsx(Jt,{component:"Modulo 1x3",banners:[],slot_id:"Nota_2",data:{...e.stylesConfig?e.stylesConfig["Modulo 1x3 Client"]?e.stylesConfig["Modulo 1x3 Client"]:e.stylesConfig["Modulo 1x3"]:{},content:e.moreNewsSSR??[],title:e.texts.moreNewsTitle,paths:e.paths,titleUrl:void 0}}):n.jsx(ge,{title:e.texts.moreNewsTitle,children:n.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"more",stylesConfig:e.stylesConfig,section:r[0].info.section?.slug??"",internalPath:e.internalPath,paths:e.paths,API_ENV:ta(e.API_ENV),fetchConfig:e.fetchConfig}))})}),n.jsx(Fe,{children:n.jsx(je,{banners:s,index:4})})]}),t&&t()]})]}),children:n.jsxs("section",{style:{"--avatar-content-align-items-desk":e.slug==="liveblogs"?"flex-start":"center"},children:[n.jsx(Zd,{texts:e.texts,autorIcon:e.autorIcon,socials:l,news:r[0],banners:s,newsRelatedResponses:i,newsRelatedListResponses:c,itemList:h,slug:e.slug,getVideos:d,noteShare:e.noteShare,paths:e.paths,showHeaderImage:!r1(r[0]),commonServices:e.commonServices}),n.jsx(we,{banners:s??[],name:"block_3"})]})})]})})},Zt={content:"_content_lu444_1",buttonStyled:"_buttonStyled_lu444_17",searchStyled:"_searchStyled_lu444_39",inputStyled:"_inputStyled_lu444_71",inputStyledTest:"_inputStyledTest_lu444_109"},c1=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"})})}),l1=e=>n.jsx("form",{className:Zt.content,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(c1,{className:Zt.searchStyled})})]})}),Pa={content:"_content_27x8l_1",newsContentSection:"_newsContentSection_27x8l_9",itemContent:"_itemContent_27x8l_19"},d1=e=>{const{data:t,option:a,autor:s,page:o,banners:r,pathname:i,ranking:c,currentPage:h,slug:l,texts:d={},socialIconsFilled:u=!1}=e,f=[5,10,15],{SUB_PUBLICATION_PREFIX_IN_ROUTES:g}=z(),m={5:1,10:2,15:3};switch(a){case"op1":return n.jsx(n.Fragment,{children:n.jsxs(va,{children:[n.jsx(Go,{autor:s[0],autorIcon:e.autorIcon,socialIconsFilled:u}),n.jsx(Sa,{paths:e.paths,ranking:c,readestTitle:d.readestTitle??"",bannerTop:n.jsx(we,{banners:r??[],name:"right_1"}),banner:n.jsx(we,{banners:r??[],name:"right_2"}),children:n.jsx("section",{className:Pa.content,children:t.length>0?n.jsx(Tn,{className:[Pa.newsContentSection,"padding-0"].join(" "),paginatorComponent:n.jsx(Gt,{block_subPublication:g?.autor,texts:d,pathname:i,query:"",currentPage:h,maxPages:e.paginationLimit,showNext:!(t.length<e.newsListLimit)}),children:Array.isArray(t)&&t?.map((p,A)=>n.jsxs(E.Fragment,{children:[f.includes(A+1)&&n.jsx("div",{className:Pa.itemContent+" banner-context",children:n.jsx(we,{banners:r??[],name:`block_2_${m[A+1]}`})}),n.jsx(Dn,{autorIcon:e.autorIcon,item:p,option:l,paths:e.paths},A)]},A))}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:d.autorNotResultMessage})})})})]})});case"op2":return n.jsx(n.Fragment,{children:n.jsxs(va,{children:[n.jsx(Qo,{autor:s[0],autorIcon:e.autorIcon,socialIconsFilled:u}),Array.isArray(t)?n.jsxs(n.Fragment,{children:[n.jsx(ka,{content:t,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),n.jsx(Gt,{block_subPublication:g?.autor,texts:d,query:"",pathname:i,maxPages:Number(e.paginationLimit),currentPage:Number(o),showNext:!((t.length??0)<Number(e.newsListLimit))})]}):n.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:n.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:d.autorNotResultMessage})})]})});default:return n.jsx(n.Fragment,{})}},U={overlay:"_overlay_1lkqq_1",header:"_header_1lkqq_35",logo:"_logo_1lkqq_49",card:"_card_1lkqq_63",close:"_close_1lkqq_93",form:"_form_1lkqq_141",formUl:"_formUl_1lkqq_159",field:"_field_1lkqq_183",label:"_label_1lkqq_197",input:"_input_1lkqq_215",error:"_error_1lkqq_251",primary:"_primary_1lkqq_263",divider:"_divider_1lkqq_339",google:"_google_1lkqq_391",googleIcon:"_googleIcon_1lkqq_451",spin:"_spin_1lkqq_517",checkboxRow:"_checkboxRow_1lkqq_561",switch:"_switch_1lkqq_619",terms:"_terms_1lkqq_635",message:"_message_1lkqq_697",passwordChecker:"_passwordChecker_1lkqq_707",valid:"_valid_1lkqq_745",invalid:"_invalid_1lkqq_753",forgotPassword:"_forgotPassword_1lkqq_761",successContainer:"_successContainer_1lkqq_799",thumbsUp:"_thumbsUp_1lkqq_815",successMessage:"_successMessage_1lkqq_827"},Oa=async(e,t)=>{if(!e)throw new Error("No action provided");if(!t)throw new Error("No site key provided");const a=window.grecaptcha;if(!a?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((s,o)=>{a.enterprise.ready(async()=>{try{const r=await a.enterprise.execute(t,{action:e});if(!r)throw new Error("Captcha token no generado");s(r)}catch(r){o(r)}})})},Re=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:U.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"})}),br={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}},Gn=[{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 h1({goToLogin:e,handleGoogleLogin:t,API_ENV:a}){const[s,o]=E.useState({}),[r,i]=E.useState(!1),[c,h]=E.useState(!1),[l,d]=E.useState(null),[u,f]=E.useState("register"),g=(w,S)=>{o(v=>({...v,[w]:S}))},m=async w=>{w.preventDefault(),d(null),h(!0);try{const S=Object.keys(br).filter(Q=>!["username","password","confirmPassword"].includes(Q)).map(Q=>({Name:Q,Value:s[Q]}));if(S.some(Q=>{if(!Q.Value||Q.Value.trim()==="")return!0}))return h(!1),d("Complete todos los campos");if(s.password!==s.confirmPassword){d("Las contraseñas no coinciden");return}const v=s.password||"";if(Gn.some(Q=>!Q.test(v))){d("La contraseña no es válida");return}const C=Math.floor(Date.now()/1e3);S.push({Name:"updated_at",Value:String(C)});const T=a.PUBLIC_ENV==="local"?"token":await Oa("comment_register",a.CAPTCHA_KEY??"");if(!T)throw new Error("Captcha token no generado");const M=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:s.email,password:s.password,userAttributes:S,token:T})});if(!M.ok){const Q=await M.json().catch(()=>({}));if(Q.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:s.email})}),f("confirm");return}throw new Error(Q?.error||"Error al crear usuario")}f("confirm")}catch(S){console.log(S),d(S?.message||S?.error||"Error inesperado")}finally{h(!1)}},p=async w=>{if(w.preventDefault(),!s.confirmationCode){d("Debes ingresar el código de verificación");return}d(null),h(!0);try{const S=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:s.email,code:s.confirmationCode})});if(!S.ok){const v=await S.json().catch(()=>({}));throw new Error(v?.error||"Error al confirmar usuario")}f("success")}catch(S){d(S?.message||"Error inesperado")}finally{h(!1)}},A=s.password||"";return n.jsxs(n.Fragment,{children:[u==="register"&&n.jsxs(n.Fragment,{children:[n.jsxs("button",{onClick:t,className:U.google,children:[n.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:U.googleIcon}),n.jsx("span",{children:"Continuar con Google"})]}),n.jsx("div",{className:U.divider,children:n.jsx("span",{children:"o"})}),n.jsxs("form",{onSubmit:m,className:U.form,"data-error":l?"true":"false",children:[n.jsx("ul",{className:U.formUl,children:Object.entries(br).map(([w,{label:S}])=>n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:S}),n.jsx("input",{type:w.toLowerCase().includes("password")?r?"text":"password":w==="birthdate"?"date":w==="email"?"email":w==="phone_number"?"tel":"text",name:w,value:s[w]||"",onChange:v=>g(w,v.target.value),className:U.input,placeholder:""}),w==="password"&&n.jsx("div",{className:U.passwordChecker,children:Gn.map((v,I)=>{const C=v.test(A);return n.jsxs("div",{className:C?U.valid:U.invalid,children:[n.jsx("div",{children:C?"✔":"○"}),n.jsx("div",{children:v.label})]},I)})}),w==="confirmPassword"&&n.jsxs("div",{className:U.checkboxRow,children:[n.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:r,onChange:v=>i(v.target.checked)}),n.jsx("label",{htmlFor:"showPasswordRegister",className:U.checkboxLabel,children:"Mostrar contraseñas"})]})]},w))}),l&&n.jsx("p",{className:U.error,children:l}),n.jsxs("p",{className:U.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:U.primary,disabled:c,children:c?n.jsx(Re,{}):"Crear cuenta"})]})]}),u==="confirm"&&n.jsxs("form",{onSubmit:p,className:U.form,"data-error":l?"true":"false",children:[n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Código de verificación"}),n.jsx("input",{type:"text",name:"confirmationCode",value:s.confirmationCode||"",onChange:w=>g("confirmationCode",w.target.value),className:U.input,required:!0})]}),l&&n.jsx("p",{className:U.error,children:l}),n.jsx("button",{type:"submit",className:U.primary,disabled:c,children:c?n.jsx(Re,{}):"Confirmar cuenta"}),n.jsxs("p",{className:U.switch,children:["¿Ya confirmaste antes?",n.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]}),u==="success"&&n.jsxs("form",{className:U.form,children:[n.jsxs("div",{className:U.successContainer,children:[n.jsx("div",{className:U.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:U.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:U.primary,children:"Iniciar sesión"})]}),u==="register"&&n.jsxs("p",{className:U.switch,children:["¿Ya tenés cuenta?",n.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]})}const wt=300,et={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function u1(e){const t=e.split(" ");if(t.length!==3)return e;const[a,s,o]=t,r=s.charAt(0).toUpperCase()+s.slice(1).toLowerCase();return`${a} ${r} ${o}`}const Da=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const s=e.current?.value||"",o=s.length>wt,{PUBLIC_ENV:r}=a,i=r==="local",c=s.trim()!==""&&(i||t!=="")&&!o,h=o?`No debes exceder el limite de ${wt} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:c,text:h}},Cr=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},f1=(e,t)=>{const a=Cr(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function m1(e){const[t,a]=e.split("@");if(!t||!a)return e;let s="";t.length<=2?s=t[0]+"*":s=t[0]+"*".repeat(t.length-2)+t[t.length-1];const o=a.lastIndexOf(".");if(o===-1)return`${s}@${a}`;const r=a.slice(0,o),i=a.slice(o);let c="";return r.length<=2?c=r[0]+"*":c=r[0]+"*".repeat(r.length-2)+r[r.length-1],`${s}@${c}${i}`}function g1({onClose:e,checkAuth:t,goToRegister:a,handleGoogleLogin:s,API_ENV:o}){const[r,i]=E.useState("login"),[c,h]=E.useState(""),[l,d]=E.useState(""),[u,f]=E.useState(""),[g,m]=E.useState(""),[p,A]=E.useState(""),[w,S]=E.useState(!1),[v,I]=E.useState(!1),[C,T]=E.useState(null),M=async H=>{if(!v){H.preventDefault(),T(null),I(!0);try{const O=o.PUBLIC_ENV==="local"?"token":await Oa("comment_login",o.CAPTCHA_KEY||"");if(!O)throw new Error("Captcha token no generado");const te=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:c,password:l,token:O})});if(!te.ok){const de=await te.json().catch(()=>({}));throw new Error(de?.error||"Ha ocurrido un error")}e(),await t()}catch(O){T(O?.message||"Error inesperado")}finally{I(!1)}}},Q=async H=>{if(!v){H.preventDefault(),T(null),I(!0);try{const O=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c})});if(!O.ok){const te=await O.json().catch(()=>({}));throw new Error(te?.error||"Error al enviar código")}d(""),i("changePassword")}catch(O){T(O?.message||"Error inesperado")}finally{I(!1)}}},K=async H=>{if(v)return;if(H.preventDefault(),g!==p){T("Las contraseñas no coinciden");return}if(Gn.some(te=>!te.test(g))){T("La contraseña no cumple con los requisitos");return}T(null),I(!0);try{const te=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,code:u,newPassword:g})});if(!te.ok){const de=await te.json().catch(()=>({}));throw new Error(de?.error||"Error al cambiar contraseña")}i("feedback")}catch(te){T(te?.message||"Error inesperado")}finally{I(!1)}};return n.jsxs(n.Fragment,{children:[r==="login"&&n.jsx(p1,{email:c,password:l,showPassword:w,loading:v,error:C,setEmail:h,setPassword:d,setShowPassword:S,onSubmit:M,onForgot:()=>{T(null),i("forgot")},onRegister:a,handleGoogleLogin:s}),r==="forgot"&&n.jsx(A1,{email:c,setEmail:h,loading:v,error:C,onSubmit:Q,onBack:()=>{T(null),i("login")}}),r==="changePassword"&&n.jsx(w1,{email:c,confirmationCode:u,newPassword:g,confirmNewPassword:p,showPassword:w,loading:v,error:C,setConfirmationCode:f,setNewPassword:m,setConfirmNewPassword:A,setShowPassword:S,onSubmit:K,onBack:()=>{T(null),i("forgot")}}),r==="feedback"&&n.jsx(y1,{onBackToLogin:()=>{T(null),i("login")}})]})}function p1({email:e,password:t,showPassword:a,loading:s,error:o,setEmail:r,setPassword:i,setShowPassword:c,onSubmit:h,onForgot:l,onRegister:d,handleGoogleLogin:u}){return n.jsxs(n.Fragment,{children:[n.jsxs("button",{onClick:u,className:U.google,children:[n.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:U.googleIcon}),n.jsx("span",{children:"Continuar con Google"})]}),n.jsx("div",{className:U.divider,children:n.jsx("span",{children:"o"})}),n.jsxs("form",{onSubmit:h,className:U.form,"data-error":o?"true":"false",children:[n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Email"}),n.jsx("input",{type:"email",value:e,onChange:f=>r(f.target.value),className:U.input,placeholder:""})]}),n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Contraseña"}),n.jsx("input",{type:a?"text":"password",value:t,onChange:f=>i(f.target.value),className:U.input,placeholder:""}),n.jsxs("div",{className:U.checkboxRow,children:[n.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:f=>c(f.target.checked)}),n.jsx("label",{htmlFor:"showPasswordLogin",className:U.checkboxLabel,children:"Mostrar contraseña"})]})]}),o&&n.jsx("p",{className:U.error,children:o}),n.jsx("button",{type:"submit",className:U.primary,disabled:s,children:s?n.jsx(Re,{}):"Iniciar Sesión"})]}),n.jsxs("p",{className:U.switch,children:["¿No tenés cuenta?",n.jsx("button",{type:"button",onClick:d,children:"Registrate"})]}),n.jsx("button",{type:"button",className:U.forgotPassword,onClick:l,children:"Olvidé mi contraseña"})]})}function A1({email:e,setEmail:t,loading:a,error:s,onSubmit:o,onBack:r}){return n.jsxs("form",{onSubmit:o,className:U.form,"data-error":s?"true":"false",children:[n.jsx("p",{className:U.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:U.field,children:[n.jsx("label",{className:U.label,children:"Email"}),n.jsx("input",{type:"email",value:e,name:"email",onChange:i=>t(i.target.value),className:U.input,placeholder:""})]}),s&&n.jsx("p",{className:U.error,children:s}),n.jsx("button",{type:"submit",className:U.primary,disabled:a,children:a?n.jsx(Re,{}):"Enviar código"}),n.jsx("p",{className:U.switch,children:n.jsx("button",{type:"button",onClick:r,children:"Volver"})})]})}function w1({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:s,showPassword:o,loading:r,error:i,setConfirmationCode:c,setNewPassword:h,setConfirmNewPassword:l,setShowPassword:d,onSubmit:u,onBack:f}){return n.jsxs("form",{onSubmit:u,className:U.form,"data-error":i?"true":"false",children:[n.jsxs("p",{className:U.message,children:["Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a ",m1(e),". Ingrese el código y la contraseña nueva."]}),n.jsxs("ul",{className:U.formUl,children:[n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Código de verificación"}),n.jsx("input",{type:"text",value:t,onChange:g=>c(g.target.value),className:U.input,placeholder:""})]}),n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Nueva contraseña"}),n.jsx("input",{type:o?"text":"password",value:a,onChange:g=>h(g.target.value),className:U.input,placeholder:"",name:"password"}),n.jsx("div",{className:U.passwordChecker,children:Gn.map((g,m)=>{const p=g.test(a);return n.jsxs("div",{className:p?U.valid:U.invalid,children:[n.jsx("div",{children:p?"✔":"○"}),n.jsx("div",{children:g.label})]},m)})})]}),n.jsxs("div",{className:U.field,children:[n.jsx("label",{className:U.label,children:"Confirmar contraseña"}),n.jsx("input",{type:o?"text":"password",value:s,onChange:g=>l(g.target.value),className:U.input,placeholder:""}),n.jsxs("div",{className:U.checkboxRow,children:[n.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:o,onChange:g=>d(g.target.checked)}),n.jsx("label",{htmlFor:"showPasswordForgot",className:U.checkboxLabel,children:"Mostrar contraseñas"})]})]})]}),i&&n.jsx("p",{className:U.error,children:i}),n.jsx("button",{type:"submit",className:U.primary,style:{maxWidth:r?"revert-layer":"fit-content"},disabled:r,children:r?n.jsx(Re,{}):"Cambiar contraseña"}),n.jsx("p",{className:U.switch,children:n.jsx("button",{type:"button",onClick:f,children:"Volver"})})]})}function y1({onBackToLogin:e}){return n.jsxs("div",{className:U.form,children:[n.jsx("p",{className:U.success,children:"La contraseña fue cambiada con éxito"}),n.jsx("button",{type:"button",className:U.primary,onClick:e,children:"Iniciar Sesión"})]})}function vr({loginUrl:e,onClose:t,checkAuth:a,icon:s,API_ENV:o}){const[r,i]=E.useState("login"),c=async()=>{if(o.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),t(),a();return}if(!e)return;const h=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${h}`};return n.jsx("div",{className:U.overlay,role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:h=>{const l=h.target;l&&l.id==="pop-overlay"&&t()},children:n.jsxs("div",{className:U.card,children:[n.jsxs("header",{className:U.header,children:[n.jsx("div",{className:U.logo,children:s?s():null}),n.jsx("button",{onClick:t,className:U.close,"aria-label":"Cerrar",children:n.jsx(It,{})})]}),r==="login"&&n.jsx(g1,{onClose:t,checkAuth:a,handleGoogleLogin:c,goToRegister:()=>i("register"),API_ENV:o}),r==="register"&&n.jsx(h1,{handleGoogleLogin:c,goToLogin:()=>i("login"),API_ENV:o})]})})}const _r={content:"_content_ghncj_1",videoContent:"_videoContent_ghncj_17"},Xt={container:"_container_1wcps_1",playStyled:"_playStyled_1wcps_11",imageStyled:"_imageStyled_1wcps_25",longer:"_longer_1wcps_51",contentNews:"_contentNews_1wcps_61",tagContent:"_tagContent_1wcps_101",tag:"_tag_1wcps_101",titular:"_titular_1wcps_135",small:"_small_1wcps_161",figure:"_figure_1wcps_173",backDrop:"_backDrop_1wcps_183",backDropAux:"_backDropAux_1wcps_199"},Sr=async e=>{const{size:t="longer",video:a}=e,s=a.main.image.sizes[0]?.url??"";return n.jsx("figure",{className:Xt.figure,children:n.jsxs("span",{className:Xt.backdrop,children:[n.jsx("span",{className:Xt.backDropAux}),n.jsx(B,{href:a.info.link.url,target:a.info.link.target,children:n.jsxs("div",{children:[a.main.image.sizes.map(async(o,r)=>o.width>=580?n.jsx("source",{media:"(width >=900px)",srcSet:await ue(o.url)},r):n.jsx("source",{media:"(width <900px)",srcSet:await ue(o.url)},r)),n.jsx("img",{fetchPriority:"low",loading:"lazy",className:[Xt.imageStyled,Xt[t]].join(" "),alt:"",src:s?await ue(s):""})]})})]})})},b1=e=>{const{videos:t}=e;return n.jsx("div",{className:_r.content,children:n.jsx(Nt,{children:n.jsx(ge,{title:"Videos",isTitle:!0,children:n.jsxs("div",{className:_r.videoContent,children:[n.jsx(Sr,{video:t[0]}),n.jsx("div",{style:{display:"flex",flexDirection:"column"},children:t.slice(1).map((a,s)=>n.jsx(Sr,{size:"small",video:a},`video-small-${s}`))})]})})})})},yt={content:"_content_quk50_1",videoContent:"_videoContent_quk50_17",articleSection:"_articleSection_quk50_41",contentLatout:"_contentLatout_quk50_61",title:"_title_quk50_71",article:"_article_quk50_41",correspondent:"_correspondent_quk50_127"},Nr={container:"_container_17w1m_1",playStyled:"_playStyled_17w1m_17"},C1=e=>{const{video:t}=e,a=Cn();return n.jsx(B,{href:t.info.link.url?t.info.link.url:void 0,target:t.info.link.target,children:n.jsxs("section",{className:Nr.container,children:[n.jsx(Ee,{isLarge:!0,preview:{sizes:t.main.image.sizes,description:t.main.description}}),n.jsx(a,{className:Nr.playStyled})]})})},v1=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${Be(e.video.info.date.created)}`:e?.video.main.author;return n.jsx("div",{className:yt.content,children:n.jsx(Nt,{className:yt.contentLatout,children:n.jsx(ge,{title:"Videos",isTitle:!0,children:n.jsxs("div",{className:yt.videoContent,children:[n.jsx(C1,{video:e.video}),n.jsxs("div",{className:yt.articleSection,children:[n.jsx(B,{className:yt.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),n.jsx("p",{className:yt.article,children:qe(e.video.main.description)}),n.jsx("p",{className:yt.correspondent,children:t()})]})]})})})})},_1=e=>{switch(e.option){case"op1":return n.jsx(b1,{videos:e.data});case"op2":return n.jsx(v1,{video:e.data[0]});default:return n.jsx(n.Fragment,{})}};function S1({containerId:e,containerId2:t}){return E.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.widgets.load(s):l<10?(l++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const s=document.getElementById(e),o=document.getElementById(t);if(!s&&!o)return;const r=s?.querySelectorAll("script[src]")??[],i=o?.querySelectorAll("script[src]")??[];[...r,...i].forEach(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(f=>{u.setAttribute(f.name,f.value)}),d.replaceWith(u)});const h=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(h)for(let d=0;d<h.length;d++)h[d]?.remove();let l=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const N1=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:s=!1,BackDropAuxHeigthMobile:o}=e,r=ya(),i=E.useMemo(()=>{const f=e?.preview?.sizes;if(f&&Array.isArray(f)&&f.length>0)return f;const g=e?.preview?.original;return g?.url?[{url:g.url,width:g.width||0,height:g.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return n.jsx("div",{className:re.imagePlaceholder});const{PUBLIC_API_HOST:c="",PUBLIC_ASSETS_URL:h}=e.API_ENV,l=i[0]?.url,d=h&&h!=="false"?h:c,u=l?.startsWith("http")||l?.includes(d)?l:d+l;return n.jsx("figure",{className:re.figure,children:n.jsxs("span",{className:re.backdrop,children:[n.jsx("span",{className:re.backdropAux,style:{height:o||"56.25%"}}),n.jsxs("picture",{children:[n.jsx("img",{fetchPriority:"low",loading:"lazy",className:re.imageStyled,alt:e.preview?.description||"",src:u,style:{boxShadow:s?"0px 4px 8px 0px #00000033":"0px"}}),t&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:re.boxPlayIcon,style:{height:a?"40%":"72px"}}),n.jsx(r,{className:re.playStyled,style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},I1=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},E1=({section:e,internalPath:t,banner:a,isVisible:s=!1,stylesConfig:o,API_ENV:r,fetchConfig:i,paths:c})=>{const h=r.FETCH_SIZE_MORE_NEWS??6,[l,d]=E.useState({data:Array.from({length:h},()=>Ir)}),[u,f]=E.useState(!1),g=E.useCallback(async()=>{if(!t)return;const A=new URLSearchParams({section:e,currentNewsLink:t}),w=await fetch(`/api/get-more-news?${A}`);if(!w.ok)throw new Error(`HTTP error! status: ${w.status}`);return await w.json()},[e,t]),m=E.useCallback(async()=>{const{PUBLIC_API_FRONT:A,PUBLIC_X_SECURITY_TOKEN:w,PUBLIC_API_PATH_VERSION:S,PUBLIC_PUBLICATION_ID:v}=r;if(!A||!w||!v||!S)throw new Error("Missing required environment variables");const I=await oe.get(`${A}${S}/news-list-section`,{params:{size:h+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(v)},headers:{"x-api-token":w,"Content-Type":"application/json"}});return{...I.data,data:I.data.data.filter(C=>C.info.link.internal!==t)}},[e,t,r]),p=E.useCallback(async()=>{if(!(u||!t)){f(!0);try{let A;r.PUBLIC_ENV!=="prod"?A=await g():A=await m(),d({...A,data:A.data.slice(0,h)})}catch(A){console.error("[/api/get-more-news] Error:",A.message),d(void 0)}}},[u,t,r.PUBLIC_ENV,g,m]);return E.useEffect(()=>{s&&p()},[s,p]),!l?.data||l.data.length===0?null:n.jsx(T1,{news:l.data,title:"Más Noticias",...o["Modulo 1x3 Client"]??o["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:r,paths:c,isVisible:s})},T1=e=>{const{news:t,hasLines:a=!1,API_ENV:s}=e,o=r=>a&&(r+1)%3!==0?La.contentSeparator:"";return n.jsx("div",{className:La.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((r,i)=>{const{main:c,authors:h,info:l,preview:d,isVideo:u=!1,config:f,overImage:g="default",isTitle:m=!1,isLarge:p=!1,keywords:A}=r;return n.jsx("div",{className:o(i),style:{order:i},children:n.jsxs("section",{className:Qt.content,children:[n.jsx(B,{title:c?.title?.section,href:l?.link?.url??"invalidUrl","aria-label":c?.title?.section??"nota",target:l?.link?.target,children:n.jsx(N1,{isVisible:e.isVisible,preview:d,rounded:e.rounded,isVideo:u,isLarge:p,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),n.jsx("div",{className:Qt.newsDescription,children:n.jsx(k1,{main:c,SHOW_TAG_BY_SECTION:s.SHOW_TAG_BY_SECTION,authors:h,info:l,preview:d,share:e.share,config:f,overImage:g,isTitle:m,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:A})})]})},i)})})},k1=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:s,keywords:o,info:r}=e,c=(()=>{if(!e?.authors||e.authors.length===0)return"";const d=e.authors[0],u=Be(e.info?.date?.modified,e.DATE_CONFIG);return d&&e?.config?.showtime&&e.config?.showauthor?`${d.fullname} - ${u}`:d&&e.config?.showauthor?d.fullname:e?.config?.showtime?u:""})(),h=()=>e.main.uppertitle?n.jsx("p",{className:ne.uppertitle,title:e.main.uppertitle,children:e.main.uppertitle}):null,l=()=>{if(s&&o?.tags?.length&&o.tags.length>0){const d=o.tags[0],u=d.name;return n.jsxs("h3",{className:ne.sectionDescriptionContainer,children:[d.approved?n.jsx(B,{"aria-label":u,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:ne.sectionDescription,href:tt(d,e.paths),children:u}):n.jsx("div",{className:ne.sectionDescription,children:u}),h()]})}else if(r?.section?.url){const d=r.section.name;return n.jsxs("h3",{className:ne.sectionDescriptionContainer,children:[n.jsx(B,{"aria-label":d,className:ne.sectionDescription,href:r.section.url,children:d}),h()]})}return null};return n.jsxs("div",{className:ne.boxInformation,children:[t&&n.jsx(I1,{className:ne.dotStyles}),n.jsx(l,{}),n.jsx("h2",{className:ne.articule,children:n.jsx(B,{className:ne.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:ne.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?qe(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&c&&n.jsx(n.Fragment,{children:e.authors?.[0]?.internaluser?n.jsx(B,{block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,className:ne.correspondentLink,href:`/${e.paths.autor}/${e.authors[0].name}`,children:c}):n.jsx("div",{className:ne.correspondent,children:c})})]})},U1=({user:e,handleLogout:t,message:a})=>{const s=()=>{const r=document.querySelector(".user-actions-options");r&&r.classList.toggle("show")},o=e.firstname??"Usuario";return n.jsx("div",{className:"comment-item",children:n.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?n.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):n.jsx("div",{className:"comment-avatar",children:o.charAt(0).toUpperCase()}),n.jsxs("div",{style:{flex:1},children:[n.jsxs("div",{className:"comment-header",children:[n.jsxs("span",{className:"comment-username user-welcome",children:["Hola ",o,"!"]}),n.jsx("div",{className:"user-actions-options",children:n.jsx("button",{onClick:()=>{t()},children:"Cerrar Sesion"})}),n.jsx("button",{className:"user-actions-span",onClick:s,children:n.jsx(Bn,{width:13,height:13,fill:"black"})})]}),n.jsx("p",{className:"comment-text",children:a})]})]})})},Ae={overlay:"_overlay_1ng7z_5",popup:"_popup_1ng7z_33",title:"_title_1ng7z_79",optionsContainer:"_optionsContainer_1ng7z_103",option:"_option_1ng7z_103",radioInput:"_radioInput_1ng7z_131",radioCustom:"_radioCustom_1ng7z_139",optionLabel:"_optionLabel_1ng7z_193",buttons:"_buttons_1ng7z_219",cancelButton:"_cancelButton_1ng7z_233",closeButton:"_closeButton_1ng7z_235",buttonAlone:"_buttonAlone_1ng7z_273",reportButton:"_reportButton_1ng7z_285",successContainer:"_successContainer_1ng7z_325",thumbsUp:"_thumbsUp_1ng7z_341",successMessage:"_successMessage_1ng7z_353",errorMessage:"_errorMessage_1ng7z_435",loadingContainer:"_loadingContainer_1ng7z_461"},Er=async(e,t)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:s,COMMENTS_CAPTCHA_API_KEY:o}=t;try{const r=a,i=s,l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${r}/assessments?key=${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",l),l.tokenProperties?.valid===!0}catch(r){return console.error("Error verificando reCAPTCHA Enterprise:",r),!1}};async function x1({publication:e,username:t,id:a,type:s,baseUrl:o,captchaToken:r,apiToken:i,securityToken:c,COMMENTS_VARS:h}){if(!e||!t||!a||!s||!r)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof s!="string"||typeof r!="string")throw new Error("Todos los parámetros deben ser strings");if(!await Er(r,h))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const l=`${o}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,d=encodeURIComponent(s),u=new URLSearchParams({publication:e,username:t??!1,id:a,type:d}),f=`${l}?${u.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:s,encodedType:d,url:f});const g=await oe.get(f,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":c,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",g.data),g.status===200||g.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:g.status,data:g.data};throw new Error(`Respuesta inesperada del servidor: ${g.status}`)}catch(g){if(console.error("Error reporting comment:",g),oe.isAxiosError(g)){const m=g.response?.status,p=g.response?.data;throw m===400?new Error("Datos inválidos para el reporte"):m===401?new Error("Token de API inválido"):m===403?new Error("Acceso denegado para reportar comentario"):m===404?new Error("Comentario no encontrado"):m===409?new Error("El comentario ya fue reportado por este usuario"):m===500?new Error("Error interno del servidor CMS"):new Error(p?.error||p?.message||`Error HTTP ${m}: No se pudo reportar el comentario`)}throw g}}const He={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 L1(e){return He[e]}var Qn={exports:{}},Hn={exports:{}},ae={};var Tr;function B1(){if(Tr)return ae;Tr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=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,w=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function v(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case t:switch(C=C.type,C){case h:case l:case s:case r:case o:case u:return C;default:switch(C=C&&C.$$typeof,C){case c:case d:case m:case g:case i:return C;default:return T}}case a:return T}}}function I(C){return v(C)===l}return ae.AsyncMode=h,ae.ConcurrentMode=l,ae.ContextConsumer=c,ae.ContextProvider=i,ae.Element=t,ae.ForwardRef=d,ae.Fragment=s,ae.Lazy=m,ae.Memo=g,ae.Portal=a,ae.Profiler=r,ae.StrictMode=o,ae.Suspense=u,ae.isAsyncMode=function(C){return I(C)||v(C)===h},ae.isConcurrentMode=I,ae.isContextConsumer=function(C){return v(C)===c},ae.isContextProvider=function(C){return v(C)===i},ae.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ae.isForwardRef=function(C){return v(C)===d},ae.isFragment=function(C){return v(C)===s},ae.isLazy=function(C){return v(C)===m},ae.isMemo=function(C){return v(C)===g},ae.isPortal=function(C){return v(C)===a},ae.isProfiler=function(C){return v(C)===r},ae.isStrictMode=function(C){return v(C)===o},ae.isSuspense=function(C){return v(C)===u},ae.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===s||C===l||C===r||C===o||C===u||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===g||C.$$typeof===i||C.$$typeof===c||C.$$typeof===d||C.$$typeof===A||C.$$typeof===w||C.$$typeof===S||C.$$typeof===p)},ae.typeOf=v,ae}var se={};var kr;function q1(){return kr||(kr=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=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,w=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function v(P){return typeof P=="string"||typeof P=="function"||P===s||P===l||P===r||P===o||P===u||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===m||P.$$typeof===g||P.$$typeof===i||P.$$typeof===c||P.$$typeof===d||P.$$typeof===A||P.$$typeof===w||P.$$typeof===S||P.$$typeof===p)}function I(P){if(typeof P=="object"&&P!==null){var Ce=P.$$typeof;switch(Ce){case t:var Yn=P.type;switch(Yn){case h:case l:case s:case r:case o:case u:return Yn;default:var Kr=Yn&&Yn.$$typeof;switch(Kr){case c:case d:case m:case g:case i:return Kr;default:return Ce}}case a:return Ce}}}var C=h,T=l,M=c,Q=i,K=t,H=d,O=s,te=m,de=g,j=a,L=r,k=o,$=u,x=!1;function V(P){return x||(x=!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)||I(P)===h}function y(P){return I(P)===l}function N(P){return I(P)===c}function q(P){return I(P)===i}function G(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function D(P){return I(P)===d}function F(P){return I(P)===s}function W(P){return I(P)===m}function Y(P){return I(P)===g}function R(P){return I(P)===a}function ee(P){return I(P)===r}function J(P){return I(P)===o}function le(P){return I(P)===u}se.AsyncMode=C,se.ConcurrentMode=T,se.ContextConsumer=M,se.ContextProvider=Q,se.Element=K,se.ForwardRef=H,se.Fragment=O,se.Lazy=te,se.Memo=de,se.Portal=j,se.Profiler=L,se.StrictMode=k,se.Suspense=$,se.isAsyncMode=V,se.isConcurrentMode=y,se.isContextConsumer=N,se.isContextProvider=q,se.isElement=G,se.isForwardRef=D,se.isFragment=F,se.isLazy=W,se.isMemo=Y,se.isPortal=R,se.isProfiler=ee,se.isStrictMode=J,se.isSuspense=le,se.isValidElementType=v,se.typeOf=I})()),se}var Ur;function Ma(){return Ur||(Ur=1,process.env.NODE_ENV==="production"?Hn.exports=B1():Hn.exports=q1()),Hn.exports}var $a,xr;function P1(){if(xr)return $a;xr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function o(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(h.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(d){l[d]=d}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $a=o()?Object.assign:function(r,i){for(var c,h=s(r),l,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var u in c)t.call(c,u)&&(h[u]=c[u]);if(e){l=e(c);for(var f=0;f<l.length;f++)a.call(c,l[f])&&(h[l[f]]=c[l[f]])}}return h},$a}var ja,Lr;function Ga(){if(Lr)return ja;Lr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ja=e,ja}var Qa,Br;function qr(){return Br||(Br=1,Qa=Function.call.bind(Object.prototype.hasOwnProperty)),Qa}var Ha,Pr;function O1(){if(Pr)return Ha;Pr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ga(),a={},s=qr();e=function(r){var i="Warning: "+r;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(r,i,c,h,l){if(process.env.NODE_ENV!=="production"){for(var d in r)if(s(r,d)){var u;try{if(typeof r[d]!="function"){var f=Error((h||"React class")+": "+c+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=r[d](i,d,h,c,null,t)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var g=l?l():"";e("Failed "+c+" type: "+u.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},Ha=o,Ha}var Fa,Or;function D1(){if(Or)return Fa;Or=1;var e=Ma(),t=P1(),a=Ga(),s=qr(),o=O1(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return Fa=function(c,h){var l=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(y){var N=y&&(l&&y[l]||y[d]);if(typeof N=="function")return N}var f="<<anonymous>>",g={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:S(),arrayOf:v,element:I(),elementType:C(),instanceOf:T,node:H(),objectOf:Q,oneOf:M,oneOfType:K,shape:te,exact:de};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={},q=0;function G(F,W,Y,R,ee,J,le){if(R=R||f,J=J||Y,le!==a){if(h){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 Ce=R+":"+Y;!N[Ce]&&q<3&&(r("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+R+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[Ce]=!0,q++)}}return W[Y]==null?F?W[Y]===null?new p("The "+ee+" `"+J+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new p("The "+ee+" `"+J+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:y(W,Y,R,ee,J)}var D=G.bind(null,!1);return D.isRequired=G.bind(null,!0),D}function w(y){function N(q,G,D,F,W,Y){var R=q[G],ee=k(R);if(ee!==y){var J=$(R);return new p("Invalid "+F+" `"+W+"` of type "+("`"+J+"` supplied to `"+D+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return A(N)}function S(){return A(i)}function v(y){function N(q,G,D,F,W){if(typeof y!="function")return new p("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var Y=q[G];if(!Array.isArray(Y)){var R=k(Y);return new p("Invalid "+F+" `"+W+"` of type "+("`"+R+"` supplied to `"+D+"`, expected an array."))}for(var ee=0;ee<Y.length;ee++){var J=y(Y,ee,D,F,W+"["+ee+"]",a);if(J instanceof Error)return J}return null}return A(N)}function I(){function y(N,q,G,D,F){var W=N[q];if(!c(W)){var Y=k(W);return new p("Invalid "+D+" `"+F+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return A(y)}function C(){function y(N,q,G,D,F){var W=N[q];if(!e.isValidElementType(W)){var Y=k(W);return new p("Invalid "+D+" `"+F+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return A(y)}function T(y){function N(q,G,D,F,W){if(!(q[G]instanceof y)){var Y=y.name||f,R=V(q[G]);return new p("Invalid "+F+" `"+W+"` of type "+("`"+R+"` supplied to `"+D+"`, expected ")+("instance of `"+Y+"`."))}return null}return A(N)}function M(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(q,G,D,F,W){for(var Y=q[G],R=0;R<y.length;R++)if(m(Y,y[R]))return null;var ee=JSON.stringify(y,function(le,P){var Ce=$(P);return Ce==="symbol"?String(P):P});return new p("Invalid "+F+" `"+W+"` of value `"+String(Y)+"` "+("supplied to `"+D+"`, expected one of "+ee+"."))}return A(N)}function Q(y){function N(q,G,D,F,W){if(typeof y!="function")return new p("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var Y=q[G],R=k(Y);if(R!=="object")return new p("Invalid "+F+" `"+W+"` of type "+("`"+R+"` supplied to `"+D+"`, expected an object."));for(var ee in Y)if(s(Y,ee)){var J=y(Y,ee,D,F,W+"."+ee,a);if(J instanceof Error)return J}return null}return A(N)}function K(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 q=y[N];if(typeof q!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(q)+" at index "+N+"."),i}function G(D,F,W,Y,R){for(var ee=[],J=0;J<y.length;J++){var le=y[J],P=le(D,F,W,Y,R,a);if(P==null)return null;P.data&&s(P.data,"expectedType")&&ee.push(P.data.expectedType)}var Ce=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new p("Invalid "+Y+" `"+R+"` supplied to "+("`"+W+"`"+Ce+"."))}return A(G)}function H(){function y(N,q,G,D,F){return j(N[q])?null:new p("Invalid "+D+" `"+F+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return A(y)}function O(y,N,q,G,D){return new p((y||"React class")+": "+N+" type `"+q+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function te(y){function N(q,G,D,F,W){var Y=q[G],R=k(Y);if(R!=="object")return new p("Invalid "+F+" `"+W+"` of type `"+R+"` "+("supplied to `"+D+"`, expected `object`."));for(var ee in y){var J=y[ee];if(typeof J!="function")return O(D,F,W,ee,$(J));var le=J(Y,ee,D,F,W+"."+ee,a);if(le)return le}return null}return A(N)}function de(y){function N(q,G,D,F,W){var Y=q[G],R=k(Y);if(R!=="object")return new p("Invalid "+F+" `"+W+"` of type `"+R+"` "+("supplied to `"+D+"`, expected `object`."));var ee=t({},q[G],y);for(var J in ee){var le=y[J];if(s(y,J)&&typeof le!="function")return O(D,F,W,J,$(le));if(!le)return new p("Invalid "+F+" `"+W+"` key `"+J+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(q[G],null," ")+`
261
261
  Valid keys: `+JSON.stringify(Object.keys(y),null," "));var P=le(Y,J,D,F,W+"."+J,a);if(P)return P}return null}return A(N)}function j(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(j);if(y===null||c(y))return!0;var N=u(y);if(N){var q=N.call(y),G;if(N!==y.entries){for(;!(G=q.next()).done;)if(!j(G.value))return!1}else for(;!(G=q.next()).done;){var D=G.value;if(D&&!j(D[1]))return!1}}else return!1;return!0;default:return!1}}function L(y,N){return y==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function k(y){var N=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":L(N,y)?"symbol":N}function $(y){if(typeof y>"u"||y===null)return""+y;var N=k(y);if(N==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return N}function x(y){var N=$(y);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function V(y){return!y.constructor||!y.constructor.name?f:y.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},Fa}var za,Dr;function M1(){if(Dr)return za;Dr=1;var e=Ga();function t(){}function a(){}return a.resetWarningCache=t,za=function(){function s(i,c,h,l,d,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}s.isRequired=s;function o(){return s}var r={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:t};return r.PropTypes=r,r},za}var Mr;function $1(){if(Mr)return Qn.exports;if(Mr=1,process.env.NODE_ENV!=="production"){var e=Ma(),t=!0;Qn.exports=D1()(e.isElement,t)}else Qn.exports=M1()();return Qn.exports}var j1=$1();const Ne=bt(j1);var G1=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Va.apply(this,arguments)}function Q1(e,t){if(e==null)return{};var a={},s=Object.keys(e),o,r;for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}function Fn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wa(e,t)}function Wa(e,t){return Wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},Wa(e,t)}var zn=(function(e){H1(t,e);function t(){var s;return s=e.call(this)||this,s.handleExpired=s.handleExpired.bind(Fn(s)),s.handleErrored=s.handleErrored.bind(Fn(s)),s.handleChange=s.handleChange.bind(Fn(s)),s.handleRecaptchaRef=s.handleRecaptchaRef.bind(Fn(s)),s}var a=t.prototype;return a.getCaptchaFunction=function(o){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[o]:this.props.grecaptcha[o]:null},a.getValue=function(){var o=this.getCaptchaFunction("getResponse");return o&&this._widgetId!==void 0?o(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var o=this.getCaptchaFunction("execute");if(o&&this._widgetId!==void 0)return o(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var o=this;return new Promise(function(r,i){o.executionResolve=r,o.executionReject=i,o.execute()})},a.reset=function(){var o=this.getCaptchaFunction("reset");o&&this._widgetId!==void 0&&o(this._widgetId)},a.forceReset=function(){var o=this.getCaptchaFunction("reset");o&&o()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(o){this.props.onChange&&this.props.onChange(o),this.executionResolve&&(this.executionResolve(o),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var o=this.getCaptchaFunction("render");if(o&&this._widgetId===void 0){var r=document.createElement("div");this._widgetId=o(r,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(r)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(o){this.captcha=o},a.render=function(){var o=this.props;o.sitekey,o.onChange,o.theme,o.type,o.tabindex,o.onExpired,o.onErrored,o.size,o.stoken,o.grecaptcha,o.badge,o.hl,o.isolated;var r=Q1(o,G1);return Xa.createElement("div",Va({},r,{ref:this.handleRecaptchaRef}))},t})(Xa.Component);zn.displayName="ReCAPTCHA",zn.propTypes={sitekey:Ne.string.isRequired,onChange:Ne.func,grecaptcha:Ne.object,theme:Ne.oneOf(["dark","light"]),type:Ne.oneOf(["image","audio"]),tabindex:Ne.number,onExpired:Ne.func,onErrored:Ne.func,size:Ne.oneOf(["compact","normal","invisible"]),stoken:Ne.string,hl:Ne.string,badge:Ne.oneOf(["bottomright","bottomleft","inline"]),isolated:Ne.bool},zn.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Ya,$r;function F1(){if($r)return Ya;$r=1;var e=Ma(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};r[e.ForwardRef]=s,r[e.Memo]=o;function i(m){return e.isMemo(m)?o:r[m.$$typeof]||t}var c=Object.defineProperty,h=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function g(m,p,A){if(typeof p!="string"){if(f){var w=u(p);w&&w!==f&&g(m,w,A)}var S=h(p);l&&(S=S.concat(l(p)));for(var v=i(m),I=i(p),C=0;C<S.length;++C){var T=S[C];if(!a[T]&&!(A&&A[T])&&!(I&&I[T])&&!(v&&v[T])){var M=d(p,T);try{c(m,T,M)}catch{}}}}return m}return Ya=g,Ya}var z1=F1();const V1=bt(z1);function Ka(){return Ka=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Ka.apply(this,arguments)}function W1(e,t){if(e==null)return{};var a={},s=Object.keys(e),o,r;for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}function Y1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Me={},K1=0;function J1(e,t){return t=t||{},function(s){var o=s.displayName||s.name||"Component",r=(function(c){Y1(h,c);function h(d,u){var f;return f=c.call(this,d,u)||this,f.state={},f.__scriptURL="",f}var l=h.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+K1++),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=Me[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,w=m.scriptId;if(p&&typeof window[p]<"u"&&(Me[f]={loaded:!0,observers:{}}),Me[f]){var S=Me[f];if(S&&(S.loaded||S.errored)){this.asyncScriptLoaderHandleLoad(S);return}S.observers[g]=function(M){return u.asyncScriptLoaderHandleLoad(M)};return}var v={};v[g]=function(M){return u.asyncScriptLoaderHandleLoad(M)},Me[f]={loaded:!1,observers:v};var I=document.createElement("script");I.src=f,I.async=!0;for(var C in t.attributes)I.setAttribute(C,t.attributes[C]);w&&(I.id=w);var T=function(Q){if(Me[f]){var K=Me[f],H=K.observers;for(var O in H)Q(H[O])&&delete H[O]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),I.onload=function(){var M=Me[f];M&&(M.loaded=!0,T(function(Q){return A?!1:(Q(M),!0)}))},I.onerror=function(){var M=Me[f];M&&(M.errored=!0,T(function(Q){return Q(M),!0}))},document.body.appendChild(I)},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=Me[u];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete Me[u])},l.render=function(){var u=t.globalName,f=this.props;f.asyncScriptOnLoad;var g=f.forwardedRef,m=W1(f,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(m[u]=typeof window[u]<"u"?window[u]:void 0),m.ref=g,E.createElement(s,m)},h})(E.Component),i=E.forwardRef(function(c,h){return E.createElement(r,Ka({},c,{forwardedRef:h}))});return i.displayName="AsyncScriptLoader("+o+")",i.propTypes={asyncScriptOnLoad:Ne.func},V1(i,s)}}var Ja="onloadcallback",Z1="grecaptcha";function Za(){return typeof window<"u"&&window.recaptchaOptions||{}}function X1(){var e=Za(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Ja+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Ja+"&render=explicit"}const jr=J1(X1,{callbackName:Ja,globalName:Z1,attributes:Za().nonce?{nonce:Za().nonce}:{}})(zn),R1=({isOpen:e,onClose:t,commentId:a,publication:s,username:o,CAPTCHA_KEY_V2:r})=>{const[i,c]=E.useState("form"),[h,l]=E.useState(""),[d,u]=E.useState(""),[f,g]=E.useState(""),m=[{id:"spam",label:He.spam},{id:"inappropriate",label:He.inappropriate},{id:"hate",label:He.hate},{id:"misinformation",label:He.misinformation},{id:"terrorism",label:He.terrorism},{id:"intellectual",label:He.intellectual},{id:"bullying",label:He.bullying}],p=async()=>{if(!(!h||!a)){if(Cr(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:s,username:o,id:a,captchaToken:f,type:He[h]})})).json();if(S.type==="success")f1(document,a),c("success"),setTimeout(()=>{A()},3e3);else throw new Error(S.message||"Error al reportar comentario")}catch(w){console.error("Error reporting comment:",w),u(w.message||"Error al reportar comentario"),c("form")}}},A=()=>{c("form"),l(""),u(""),t()};return!e||!a||!o?null:n.jsx("div",{className:Ae.overlay,children:n.jsxs("div",{className:Ae.popup,children:[n.jsx("button",{className:"close-reply-form",onClick:A,children:n.jsx(It,{})}),n.jsx("h2",{className:Ae.title,children:"Reportar Abuso"}),i==="loading"&&n.jsx("div",{className:Ae.loadingContainer,children:n.jsx(Re,{})}),i==="form"||i==="loading"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ae.optionsContainer,children:m.map(w=>n.jsxs("label",{className:Ae.option,children:[n.jsx("input",{type:"radio",name:"reportReason",value:w.id,checked:h===w.id,onChange:S=>l(S.target.value),className:Ae.radioInput}),n.jsx("span",{className:Ae.radioCustom}),n.jsx("span",{className:Ae.optionLabel,children:w.label})]},w.id))}),d&&n.jsx("div",{className:Ae.errorMessage,children:d}),n.jsx(jr,{sitekey:r,theme:"light",size:"normal",onChange:w=>g(w??""),onExpired:()=>g("")}),n.jsxs("div",{className:Ae.buttons,children:[n.jsx("button",{onClick:A,className:Ae.cancelButton,children:"Cancelar"}),n.jsx("button",{onClick:p,disabled:!h,className:Ae.reportButton,children:"Reportar"})]})]}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:Ae.successContainer,children:[n.jsx("div",{className:Ae.thumbsUp,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:n.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),n.jsx("p",{className:Ae.successMessage,children:"¡Gracias por reportar!"})]}),n.jsx("div",{className:Ae.buttons,children:n.jsx("button",{onClick:A,className:[Ae.closeButton,Ae.buttonAlone].join(" "),children:"Cerrar"})})]})]})})};function eh(e){const t=/^\[\[([^\]]+)\]\]/,a=e.match(t);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function Vn(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?Vn({comments:a.reply}).comments:a.reply};const{user:s,text:o}=eh(a.text);return{...a,user:s||!1,text:o,reply:a.reply?Vn({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function Wn({publication:e,path:t,size:a=5,sizereply:s=2,id:o,lastid:r,state:i="5,6",apiToken:c,API_ENV:h}){const{PUBLIC_ENV:l}=h;if(l==="prod"){const d=await Gr({publication:e,path:t,size:a,sizereply:s,id:o,lastid:r,state:i,apiToken:c,API_ENV:h});return Vn(d[0])}else{const d=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${s}&lastid=${r}`);if(!d.ok)throw new Error(`Error al obtener comentarios: ${d.status}`);const u=await d.json();return Vn(u.data[0])}}async function Gr({publication:e,path:t,size:a=5,sizereply:s=2,id:o,lastid:r,state:i="5,6",apiToken:c,API_ENV:h}){if(!e||!t)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof t!="string")throw new Error("Invalid input types for publication or path");if(!c)throw new Error("Missing CMS API token");const{PUBLIC_ENV:l,PUBLIC_API_HOST:d="dummy",PUBLIC_API_PATH:u,PUBLIC_API_PATH_VERSION:f}=h,g=parseInt(String(a),10),m=parseInt(String(s),10);if(isNaN(g)||g<=0)throw new Error("Invalid size parameter");if(isNaN(m)||m<0)throw new Error("Invalid sizereply parameter");const p=l!=="prod"?`${d}${u}`:"",A=new URLSearchParams({publication:e,path:t,size:g.toString(),sizereply:m.toString(),state:i});o&&A.append("id",o),r&&A.append("lastid",r);const w=`${p}${f}/newcomments/get?${A.toString()}`;try{console.log("Fetching comments from:",w);const{data:S}=await oe.get(w,{headers:{"x-api-token":c,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!S)throw new Error("No comments data received");return S.data||S||[]}catch(S){if(console.error("Error fetching comments:",S),oe.isAxiosError(S)){const v=S.response?.status,I=S.response?.data;throw v===404?new Error("Comments not found"):v===403?new Error("Access forbidden - check API token"):v===401?new Error("Unauthorized - invalid API token"):v===500?new Error("Internal server error from CMS"):new Error(I?.error||I?.message||`HTTP ${v}: Failed to fetch comments`)}throw S}}const th=(e,t)=>{const[a,s]=E.useState(void 0),{PUBLIC_PUBLICATION_ID:o}=t,r=o;return E.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:c}=t;try{const h=await Wn({publication:r,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:c,API_ENV:t});s(h??[])}catch(h){console.error(h),s({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:s}},Qr=({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:u1(Be(Number(t),a))})]}),Hr=({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()}),Fr=({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"})})})]})})]}),zr=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:s})=>(E.useEffect(()=>{const o=e.current;if(!o)return;const r=()=>{const c=o.value.length;o.parentElement&&(o.parentElement.dataset.text=`${c}/${wt}`),o.classList.toggle("over-limit",c>wt),a(!Da(e,t,s).boolean)};return o.addEventListener("input",r),r(),()=>o.removeEventListener("input",r)},[e,t,a]),n.jsxs("div",{children:[n.jsx("label",{className:"comment-input-label",children:"Comentario"}),n.jsx("textarea",{ref:e,name:"comment",placeholder:"Ingresa un comentario",rows:2})]})),Vr=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:s,API_ENV:o})=>{const r=Da(e,t,o);return n.jsxs("div",{className:"form-actions",children:[n.jsx(jr,{sitekey:o.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),n.jsxs("div",{className:"submit-zone",children:[s,!r.boolean&&n.jsx("p",{className:"submit-warning",children:r.text})]})]})},Wr=({onClick:e,isDisabled:t,API_ENV:a})=>{const[s,o]=E.useState(!1),{S3_ID_DIR:r="",PUBLIC_ENV:i,PUBLIC_API_HOST:c="",PUBLIC_ASSETS_URL:h}=a;E.useEffect(()=>{let d=null;return s&&(d=setTimeout(()=>{o(!1)},2400)),()=>{d&&clearTimeout(d)}},[s]);const l=i=="local"?c:h&&h!=="false"?h:"";return s?n.jsx("div",{className:"success-gif-container",children:n.jsx("img",{className:"success-gif",src:l+"/arte/"+r+"/Success.gif"})}):n.jsxs("button",{type:"button",onClick:async d=>{await e(d)&&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"})})]})},Yr=async({path:e,ref:t,captchaToken:a,button:s,user:o,id:r,addComment:i,API_ENV:c})=>{const h=t.current?.value||"",{PUBLIC_PUBLICATION_ID:l}=c,d=l;if(!Da(t,a,c).boolean||!o){const u=s.nextElementSibling;return u&&(u.style.display="block"),!1}try{const u=Date.now(),f=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:d,path:e,id:r,username:o.username,comment:h,recaptchaResponse:a})});let g=null;try{g=await f.json()}catch(w){console.error("Error parsing JSON response:",w)}if(!f.ok)throw new Error(`Error al enviar comentario: ${g?.message} status: ${f.status}`);const m=Date.now(),p=Math.max(0,2400+Math.abs(m-u)),A={username:o.username,firstname:o.firstname,...o.lastname&&{lastname:o.lastname},...o.picture&&{picture:o.picture}};return i({id:m.toString(),text:h,user:A,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),p}catch(u){return console.error("Error enviando comentario:",u),alert(u.message||"Error al enviar el comentario."),!1}},nh=({replyingTo:e,commentRef:t,user:a,path:s,addReply:o,closeForm:r,API_ENV:i})=>{const[c,h]=E.useState(!0),[l,d]=E.useState(""),u=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${wt}`),h(!0),r()};return n.jsxs("div",{className:"comment-form reply-form",children:[n.jsx("button",{className:"close-reply-form",onClick:u,children:n.jsx(It,{})}),n.jsx(zr,{commentRef:t,captchaToken:l,setIsDisabled:h,API_ENV:i}),n.jsx(Vr,{commentRef:t,captchaToken:l,setCaptchaToken:d,API_ENV:i,children:n.jsx(Wr,{onClick:async f=>{if(c)return;const g=await Yr({path:s,ref:t,captchaToken:l,button:f.currentTarget,user:a,id:e,addComment:o,API_ENV:i});return g&&typeof g=="number"?(setTimeout(()=>{u()},g),!0):!1},isDisabled:c,API_ENV:i})})]})},ah=({reply:e,replyingTo:t,user:a,onFlag:s,DATE_CONFIG:o})=>{const r=e.text;let i=`${et.firstname} ${et.lastname??""}`,c=et.username;return e.user&&(i=`${e.user.firstname} ${e.user.lastname??""}`,c=e.user.username),n.jsx("div",{className:"comment-item reply",children:n.jsxs("div",{className:"comment-header-container",children:[n.jsx(Hr,{user:e.user?e.user:et}),n.jsxs("div",{style:{flex:1},children:[n.jsx(Qr,{username:i,date:e.date.time,DATE_CONFIG:o}),n.jsxs("div",{className:"comment-reply-to",children:["Respondiendo a ",n.jsx("strong",{children:t})]}),n.jsx("p",{className:"comment-text",children:r}),a?.username.toLowerCase()!==c.toLowerCase()&&n.jsx(Fr,{isReply:!0,onFlag:()=>s(e.id)})]})]})})},sh=({comment:e,replyingTo:t,path:a,user:s,handleReplyingTo:o,onFlag:r,API_ENV:i})=>{const c={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[h,l]=E.useState(c),[d,u]=E.useState(!1),{PUBLIC_PUBLICATION_ID:f,PUBLIC_X_SECURITY_TOKEN:g}=i,m=e.text,p=E.useRef(null);let A=`${et.firstname} ${et.lastname??""}`,w=et.username;e.user&&(A=`${e.user.firstname} ${e.user.lastname??""}`,w=e.user.username);const S=v=>{l({morereply:h.morereply,reply:[v,...h.reply]})};return n.jsx("div",{className:"comment-item",children:n.jsxs("div",{className:"comment-header-container","data-hasreplies":h.reply.length>0?"true":"false",children:[n.jsx(Hr,{user:e.user?e.user:et}),n.jsxs("div",{style:{flex:1},children:[n.jsx(Qr,{username:A,date:e.date.time,DATE_CONFIG:i}),n.jsx("p",{className:"comment-text",children:m}),s?.username.toLowerCase()!==w.toLowerCase()&&n.jsx(Fr,{onReply:()=>o(e.id),onFlag:()=>r(e.id)}),t===e.id&&s&&n.jsx(nh,{replyingTo:t,commentRef:p,addReply:S,user:s,path:a,API_ENV:i,closeForm:()=>o("")}),h.reply.length>0&&n.jsxs("div",{className:"comment-replies",children:[h.reply.map(v=>n.jsx(ah,{user:s,reply:v,replyingTo:A,onFlag:r,DATE_CONFIG:i},v.id)),d?n.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:n.jsx(Re,{})}):h.morereply&&n.jsx("button",{className:"comment-replies-button reply-button",onClick:async()=>{const v=h.reply[h.reply.length-1]?.id;u(!0);try{const C=await Wn({publication:f??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:v,state:"5,6",apiToken:g??"",API_ENV:i});u(!1),l({morereply:C.morecomment,reply:[...h.reply,...C.comments]})}catch(I){throw u(!1),new Error(`Error al obtener comentarios: ${I}`)}},children:"Más Respuestas"})]})]})]})})},oh=({commentRef:e,user:t,path:a,addComment:s,API_ENV:o})=>{const[r,i]=E.useState(!0),[c,h]=E.useState("");return n.jsxs("div",{className:"comment-form",children:[n.jsx(zr,{commentRef:e,captchaToken:c,setIsDisabled:i,API_ENV:o}),n.jsx(Vr,{API_ENV:o,commentRef:e,captchaToken:c,setCaptchaToken:h,children:n.jsx(Wr,{onClick:async l=>{if(r)return;const d=await Yr({path:a,ref:e,captchaToken:c,button:l.currentTarget,user:t,addComment:s,API_ENV:o});return d&&typeof d=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${wt}`),i(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${wt}`),i(!0)},d),!0):!1},isDisabled:r,API_ENV:o})})]})},rh=({isAuthenticated:e,path:t,user:a,handleLogout:s,API_ENV:o})=>{const{PUBLIC_PUBLICATION_ID:r,PUBLIC_X_SECURITY_TOKEN:i}=o,c=r??"",h=t.replaceAll("/","|"),[l,d]=E.useState(void 0),[u,f]=E.useState(""),{comments:g,setComments:m}=th(h,o),[p,A]=E.useState(!1),w=E.useRef(null),S=K=>{f(u===K?"":K)},v=K=>{m(g?{...g,comments:[K,...g.comments??[]]}:void 0)},I=K=>{d(K)},C=async()=>{if(!g||!g.morecomment||g.comments.length===0)return;const K=g.comments[g.comments.length-1];if(!K)return;A(!0);const H=K.id;try{const O=await Wn({publication:c,path:h??"",size:5,sizereply:2,id:void 0,lastid:H,state:"5,6",apiToken:i,API_ENV:o});m({morecomment:O.morecomment??!1,comments:[...g.comments,...O.comments]}),A(!1)}catch(O){throw A(!1),new Error(`Error al obtener comentarios: ${O}`)}},T=g?.comments&&g.comments.length>0,M=T?"Comparte tu opinión de este artículo.":"Se el primero en compartir tu opinión de este artículo.",Q=n.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:n.jsx(Re,{})});return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"comments-container",children:n.jsx(ge,{title:T||e?"COMENTARIOS":!1,children:n.jsxs(n.Fragment,{children:[e&&a&&n.jsxs("div",{className:"comments-header",children:[n.jsx(U1,{user:a,handleLogout:s,message:M}),n.jsx(oh,{commentRef:w,user:a,addComment:v,path:h,API_ENV:o})]}),g?g.comments&&g.comments.length>0?n.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[g.comments.map(K=>n.jsx(sh,{comment:K,replyingTo:u,handleReplyingTo:S,onFlag:I,user:a??et,path:h,API_ENV:o},K.id)),p&&Q]}):null:Q,g?.morecomment&&!p&&n.jsx("button",{className:"comment-replies-button",onClick:C,children:"Más"})]})})}),n.jsx(R1,{username:a?.username??void 0,publication:c,commentId:l,isOpen:l!==void 0,onClose:()=>d(void 0),CAPTCHA_KEY_V2:o.CAPTCHA_KEY_V2??""})]})};function ih({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:s,path:o,checkAuth:r,icon:i,API_ENV:c,commentLabel:h}){const[l,d]=E.useState(!1),u=async()=>{if(c.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const g=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(g)}`}},f=async g=>{g.preventDefault(),a&&d(!0)};return n.jsxs(n.Fragment,{children:[l&&n.jsx(vr,{loginUrl:a,icon:i,checkAuth:r,API_ENV:c,onClose:()=>{d(!1)}}),!e&&n.jsxs("div",{className:"auth-container",children:[n.jsx("p",{children:"Súmate a la comunidad para dejar tu comentario"}),n.jsx("a",{href:a,onClick:f,className:"login-button",children:h||"Iniciar Sesión"})]}),n.jsx(rh,{isAuthenticated:e,handleLogout:u,path:o,user:e?s:void 0,API_ENV:c})]})}function ch({isVisible:e,path:t,icon:a,API_ENV:s,commentLabel:o}){const[r,i]=E.useState(null),[c,h]=E.useState(null),l=s?.COGNITO_AUTH_PREFIX??"ASTRO_",d=E.useCallback(async()=>{if(e){if(document.cookie.search(l+"IS_AUTH=true")===-1){i(!1),h(null);return}try{const m=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(m.isAuthenticated??!1),h(m.user??null)}catch(g){console.error("Error checking auth:",g),i(!1),h(null)}}},[e,l]);E.useEffect(()=>{d()},[d,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(Re,{})});return r===null?f:e?n.jsx(ih,{icon:a,isAuthenticated:r,setIsAuthenticated:i,loginUrl:u,user:c??void 0,checkAuth:d,path:t,API_ENV:s,commentLabel:o}):f}const lh=({render:e,internalPath:t,section:a,stylesConfig:s,icon:o,isVisibleDefault:r=!1,paths:i,API_ENV:c,fetchConfig:h,commentLabel:l})=>{const d=E.useRef(null),[u,f]=E.useState(r);E.useEffect(()=>{if(r||u)return;const m=new IntersectionObserver(([p])=>{p?.isIntersecting&&(f(!0),m.disconnect())},{rootMargin:"0px",threshold:.1});return d.current&&m.observe(d.current),()=>m.disconnect()},[]);const g={comment:n.jsx(ch,{path:t,icon:o,isVisible:u,API_ENV:na(c),commentLabel:l}),more:n.jsx(E1,{section:a,internalPath:t,stylesConfig:s,isVisible:u,paths:i,fetchConfig:h,API_ENV:na(c)})};return n.jsx("div",{ref:d,suppressHydrationWarning:!0,style:{...s?s["Modulo 1x3 Client"]?s["Modulo 1x3 Client"]:s["Modulo 1x3"]:{}},children:g[e]})};async function dh({publication:e,path:t,username:a,comment:s,id:o,recaptchaResponse:r,baseUrl:i,apiToken:c,securityToken:h,COMMENTS_VARS:l}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:s,id:o,recaptchaResponse:r}),!e||!t||!s||!a)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,s,a].some(m=>typeof m!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!a.trim())return{type:"error",message:"El nombre no puede estar vacío.",status:400};if(!s.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const d=await Er(r,l);if(console.log("Verifying captcha token...",d),!d)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,f={publication:e,path:t.replace(/\|/gi,"/"),username:a??!1,text:s.trim()};o&&(f.id=o);const g=new URLSearchParams(f);try{const{data:m}=await oe.get(`${u}?${g.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":h,"x-api-token":c,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),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 hh=async({token:e,projectId:t,captchaKey:a,apiKey:s,captchaAction:o})=>{if(!e)throw new Error("No token provided");if(!t||!a||!s)throw new Error("Missing project ID or site key");if(!o)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${t}/assessments?key=${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:o}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==o)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return i?.riskAnalysis?.score??0}catch(r){throw console.error("Recaptcha verification failed",r),new Error(String(r))}};b.AssetsPreconnect=ys,b.AutorComponent=d1,b.AutorHeader1=Go,b.AutorHeader2=Qo,b.BannerAdvertising=we,b.BannerAdvertisingMiddle=je,b.CarrouselCSR=_l,b.CarrouselIRS=ut,b.CarruselCard=cr,b.CarruselOpinion=lr,b.CommonServices=nt,b.Comscore=Ra,b.ContactInfoServer=gd,b.ContactInput=Wl,b.ContactSelect=Yl,b.ContactTextarea=Kl,b.ContentLayout1=Nt,b.ContentLayoutTema=va,b.DEBUG_MainSlots=o1,b.DestacadoNoticias=Ro,b.DestacadoVideos=or,b.DynamicBlockServices=wo,b.DynamicComponents=s1,b.DynamicMainSlot=jn,b.DynamicSlot=Jt,b.EditorialBlock=ld,b.ErrorComponent=Vl,b.Font=ks,b.Footer=Hl,b.FormatAfterScripts=ws,b.FormatScripts=Xn,b.GA4=es,b.GTM=ts,b.GalleryHeader=ur,b.GenerateBody=wl,b.GenerateHead=Al,b.Header=ad,b.IframeHeader=pr,b.ImageOffline=No,b.ImageOnline=Ee,b.ImageOnlineClient=So,b.IssuuServices=dl,b.ItemListSchema=Ss,b.JournalistArticule2=Yo,b.JournalistGroup=Ko,b.LayoutNewsComponent=Sa,b.LazyLoader=lh,b.LinkComponent=B,b.LiveBlogHeader=Mo,b.Location=Cl,b.LoginPopUp=vr,b.MainComponentServices=ji,b.Marfeel=ns,b.MiddleSection=Fe,b.Modulo1x3=ka,b.Modulo1x3Card=ir,b.Modulo1x4=ar,b.Modulo1x5=sr,b.Modulo2Columnas=dd,b.Modulo3Columnas=tr,b.ModuloNewsletter=hd,b.ModuloOpinion=cd,b.NewListResponseDataPH=Ir,b.NewsArticle=Ns,b.NewsComponent=i1,b.NewsContent=Tn,b.NewsDescriptionComponent=ft,b.NextPrev=Gt,b.OrgList=Is,b.PreloadImages=ea,b.REPORT_REASONS=He,b.ReCaptchaRender=ei,b.Readest=vn,b.ScriptHydrator=S1,b.SearchSection=l1,b.Section=ge,b.SectionCard=Ge,b.SectionCard2=Ht,b.SectionCardServerComponent=Dn,b.SectionServerComponent=md,b.ShowSection=ga,b.SocialNetworks=Ba,b.SpeculationRules=_s,b.StaticSlotWrapper=a1,b.SubscribeColumn=ko,b.SubscribeRow=Uo,b.SubscribeWhatsAppColumn=ql,b.TagHeader=sd,b.TagSection=Wo,b.TimeLine=$o,b.TrimPathname=Ei,b.VideoBlock3=zl,b.VideoBlock4=Xl,b.VideoEmbeddedHeader=mr,b.VideoSection=_1,b.VideoYoutubeHeader=gr,b.VideosSchemas=Ts,b.WebsiteList=Es,b.addComment=dh,b.bannersReplace=rn,b.becomeVideoObject=Ct,b.buildTagUrl=tt,b.coloringByStrokeSVGs=Ql,b.compileStyleProps=$n,b.createAssessment=qi,b.cutString=qe,b.decodeApiEnv=na,b.encodeApiEnv=ta,b.extractMainSlug=xe,b.extractRealtedNews=Jn,b.formatDate=Be,b.formatDateEdiciones=Ai,b.formatDateJournalistArticule=on,b.formatDateTimeline=ls,b.formatNewsMeta=fs,b.formatVideoData=bs,b.generalGetData=fl,b.getCaptchaToken=Oa,b.getComments=Gr,b.getConfig=z,b.getDynamicSlots=hl,b.getEnvironmentUrl=Lt,b.getEnvironmentUrlFront=Ci,b.getHydratorPath=xi,b.getImageUrl=ue,b.getNextMeta=Bt,b.getPage=Pt,b.getPlayIcon=Cn,b.getPreloadImages=Di,b.getPrevMeta=qt,b.getRelatedNewsCarrousel=Li,b.getReportReasonLabel=L1,b.getResponse=ct,b.getResponsePromise=ds,b.getSchemas=cn,b.getScriptReplaces=aa,b.getSlugs=xs,b.getTypeOfNews=ki,b.getVideoRealPath=Ui,b.handleGetComments=Wn,b.initLibrary=Xr,b.metadataToJSX=ps,b.metadata_defaults=yo,b.parseTags=Zn,b.pathnameSplit=ms,b.processExtractedRelatedNews=hs,b.removePages=Us,b.reportComment=x1,b.shareButtons=Po,b.socialIcons=Nn,b.speculationRules=vs,b.speculationRulesHome=Cs,b.urlReplaces=gs,b.usePlayIcon=ya,b.verifyCaptchaTokenEnterprise=hh,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"