sass-template-common 0.2.38 → 0.2.39
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.
|
@@ -9272,7 +9272,8 @@ const c3 = (e) => {
|
|
|
9272
9272
|
"--news-description-title-size-desk": "16px",
|
|
9273
9273
|
"--news-description-title-line-height-desk": "22px",
|
|
9274
9274
|
"--news-description-title-size-mobile": "16px",
|
|
9275
|
-
"--news-description-title-line-height-mobile": "22px"
|
|
9275
|
+
"--news-description-title-line-height-mobile": "22px",
|
|
9276
|
+
...e.readestCustomStyles
|
|
9276
9277
|
}
|
|
9277
9278
|
}
|
|
9278
9279
|
),
|
|
@@ -10622,6 +10623,7 @@ const wr = {
|
|
|
10622
10623
|
slug: e.slug,
|
|
10623
10624
|
itemList: c,
|
|
10624
10625
|
ranking: n,
|
|
10626
|
+
readestCustomStyles: e.readestCustomStyles,
|
|
10625
10627
|
bannerTop: /* @__PURE__ */ a(pe, { banners: r ?? [], name: "right_1" }),
|
|
10626
10628
|
banner: /* @__PURE__ */ a(pe, { banners: r ?? [], name: "right_2" }),
|
|
10627
10629
|
complement: /* @__PURE__ */ f("div", { id: "comentarios", suppressHydrationWarning: !0, children: [
|
|
@@ -46,7 +46,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
46
46
|
c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
|
|
47
47
|
c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),t.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]}),ys=["telegram"],mn={facebook:e=>t.jsx(aa,{...e}),instagram:e=>t.jsx(oa,{...e}),whatsapp:e=>t.jsx(cl,{...e}),tiktok:e=>t.jsx(il,{...e}),youtube:e=>t.jsx(ll,{...e}),x:e=>t.jsx(Pt,{...e}),gnews:e=>t.jsx(ol,{...e}),podcast:e=>t.jsx(sl,{...e}),telegram:e=>t.jsx(rl,{...e})},dl=e=>{const{freeZone:n,socials:a,menu:o,customBlock:s}=e;return t.jsxs("footer",{className:ge.content,children:[t.jsxs("section",{className:ge.brandContent,children:[t.jsx(P,{href:"/","aria-label":"Ir a la home",children:t.jsx("span",{className:ge.logoStyled,children:e.logo})}),t.jsx("div",{className:ge.socialMedia,children:Object.keys(a).map(r=>a[r]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[r].title+" link",className:ge.linkSocialNetwoks,href:a[r].url,children:mn[r]({className:`${ys.includes(r)?ge.socialNetworkIcon_stroke:ge.socialNetworkIcon} ${r==="instagram"?ge.socialInstagram:""}`})},r))})]}),t.jsxs("section",{className:ge.sectionContent,children:[t.jsx("div",{className:ge.section,children:o.filter(r=>!r.subitem).map((r,i)=>t.jsx(P,{href:r.link?r.link:void 0,target:r.target,className:`${ge.menuItem} footer-menu-item`,"aria-label":r.description,children:r.description},i))}),t.jsx("div",{className:ge.section,children:n&&n.map((r,i)=>t.jsx(P,{href:r.link?r?.link:void 0,target:r.target,className:ge.otherItems,children:r.description},i))})]}),s&&t.jsx(t.Fragment,{children:s}),t.jsxs("section",{className:ge.copyrigth,children:[t.jsx("p",{className:ge.copyrigthText,children:e.copyrigth}),t.jsx(P,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:t.jsx(al,{})})]})]})},le={content:"_content_1qzgn_1",imageContent:"_imageContent_1qzgn_9",width1Autor:"_width1Autor_1qzgn_18",width2Autor:"_width2Autor_1qzgn_22",width3Autor:"_width3Autor_1qzgn_26",imageAutor:"_imageAutor_1qzgn_30",imageStyled:"_imageStyled_1qzgn_69",contentIconStyled:"_contentIconStyled_1qzgn_70",avatarContent:"_avatarContent_1qzgn_87",journalistSection:"_journalistSection_1qzgn_95",journalistInfo:"_journalistInfo_1qzgn_103",journalistInfoLink:"_journalistInfoLink_1qzgn_104",socialNetworkSection:"_socialNetworkSection_1qzgn_139",avatarStyled:"_avatarStyled_1qzgn_151",article:"_article_1qzgn_156",socialButton:"_socialButton_1qzgn_160",facebookStyled:"_facebookStyled_1qzgn_176",emailStyled:"_emailStyled_1qzgn_180",xStyled:"_xStyled_1qzgn_184",linkedinStyled:"_linkedinStyled_1qzgn_188",whatsappStyled:"_whatsappStyled_1qzgn_192",whatsappLink:"_whatsappLink_1qzgn_196",clipboardButton:"_clipboardButton_1qzgn_212",googleProfileButton:"_googleProfileButton_1qzgn_248"},hl=e=>t.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M11.7376 0H8.80322C5.52359 0 3.36594 2.11766 3.36594 5.50591V8.0471H0.431531C0.172612 8.0471 0 8.21652 0 8.47064V12.113C0 12.3671 0.172612 12.5365 0.431531 12.5365H3.36594V21.7695C3.36594 22.0237 3.53855 22.1931 3.79747 22.1931H7.68125C7.94016 22.1931 8.11278 22.0237 8.11278 21.7695V12.5365H11.565C11.8239 12.5365 11.9966 12.3671 11.9966 12.113V8.47064C11.9966 8.38593 11.9102 8.21652 11.8239 8.13181C11.7376 8.0471 11.6513 7.9624 11.4787 7.9624H8.02647V5.84474C8.02647 4.82826 8.28539 4.32002 9.66629 4.32002H11.6513C11.9102 4.32002 12.0829 4.15061 12.0829 3.89649V0.508238C12.1692 0.169413 11.9966 0 11.7376 0Z",fill:"black"})}),gn=e=>t.jsx("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:t.jsx("path",{fill:"currentColor",strokeWidth:"1.2656",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:`M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
|
|
48
48
|
H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3
|
|
49
|
-
h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})}),ul=e=>t.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),t.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]}),fl=e=>t.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),t.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]}),ml=e=>t.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})}),gl=e=>t.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})}),pl={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(ml,{className:e}),solid:e=>t.jsx(hl,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(Pt,{className:e}),solid:e=>t.jsx(Pt,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(is,{className:e}),solid:e=>t.jsx(rs,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(ul,{className:e}),solid:e=>t.jsx(fl,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(gn,{className:e}),solid:e=>t.jsx(gn,{className:e})}}};function ws({noteShare:e}){const n=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?t.jsxs("div",{className:le.socialNetworkSection,children:[e.options?.map(a=>{const o=pl[a];if(!o)return null;const s=e.variant==="outline"?o.icon.outline:o.icon.solid,r=o.url(n);return t.jsx(P,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${le.socialButton} ${le[`${a.toLowerCase()}Button`]??""} ${le[`${a.toLowerCase()}Styled`]}`,children:s("")},a)}),t.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[le.clipboardButton,"clipbtn-id"].join(" "),children:t.jsx(cs,{})}),t.jsx("button",{type:"button","aria-label":"share",className:[le.clipboardButton,"sharebtn-id"].join(" "),children:t.jsx(gl,{})})]}):null}const Ge={content:"_content_r1co8_1",videoContent:"_videoContent_r1co8_20",articleSection:"_articleSection_r1co8_27",title:"_title_r1co8_42",article:"_article_r1co8_27",correspondent:"_correspondent_r1co8_75",iframeStyled:"_iframeStyled_r1co8_84",contentFrame:"_contentFrame_r1co8_94"},Al=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${ke(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:Ge.content,children:t.jsx(wt,{children:t.jsxs("div",{className:Ge.videoContent,children:[t.jsx("p",{className:Ge.title,children:e.video.main.title}),e.type==="vy"&&t.jsx("iframe",{className:Ge.iframeStyled,src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:Ge.iframeStyled,src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:Ge.contentFrame,dangerouslySetInnerHTML:{__html:e.video.main.code}}),t.jsxs("div",{className:Ge.articleSection,children:[t.jsx("p",{className:Ge.article,children:xe(e.video.main.description)}),t.jsx("p",{className:Ge.correspondent,children:n()})]})]})})})},sa={content:"_content_wxhkd_1",linkStyled:"_linkStyled_wxhkd_9"},Ot=e=>{const{currentPage:n,showNext:a,maxPages:o,pathname:s,query:r}=e,i=(c,d,l)=>{let h="";const u=d.split("/");return u.indexOf("page")!==-1&&u.splice(h.indexOf("page")-1,u.length-1),u.forEach((f,g)=>{g!==0&&(h+=`/${f}`)}),c==="next"?h+=`/page/${n+1}${l?`?query=${l}`:""}`:h+=`/page/${n-1}${l?`?query=${l}`:""}`};return(n>1||a&&n<o)&&t.jsxs("section",{className:sa.content,children:[n>1&&t.jsx(P,{className:sa.linkStyled,href:i("prev",s||"",r||""),children:e.texts.prevButtonText??"Anterior"}),a&&n<o&&t.jsx(P,{className:sa.linkStyled,href:i("next",s||"",r||""),children:e.texts.nextButtonText??"Siguiente"})]})},pn={content:"_content_zal5g_1",contentGrid:"_contentGrid_zal5g_8",contentGrid4:"_contentGrid4_zal5g_17",contentGrid3:"_contentGrid3_zal5g_21"},An=e=>{const{grid:n=3}=e;return t.jsxs("section",{className:`${pn.content}`,children:[t.jsx("div",{className:`${pn.contentGrid} ${e.className?e.className:""} ${n===3?pn.contentGrid3:pn.contentGrid4} news-content`,children:e.children}),t.jsx(t.Fragment,{children:e.paginatorComponent})]})},Dt={content:"_content_15x47_1",newsDescription:"_newsDescription_15x47_15",image:"_image_15x47_41"},Oe=e=>{const{main:n,authors:a,info:o,preview:s,share:r,isVideo:i,config:c,overImage:d="default",isTitle:l,priorityHigh:h=!1,isLarge:u,paths:f,keywords:g}=e;return t.jsxs("section",{className:Dt.content,style:{...e.customSectionCardStyles},children:[t.jsx(P,{"aria-label":e.main?.title?.section,className:Dt.image,title:n?.title?.section,href:o?.link?.url,target:o?.link?.target,children:t.jsx(_e,{preview:s,isVideo:i,isLarge:u,priorityHigh:h})}),t.jsx("div",{className:Dt.newsDescription,children:t.jsx(ct,{main:n,authors:a,info:o,preview:s,share:r,config:c,overImage:d,isTitle:l,paths:f,keywords:g})})]})},Xe={content:"_content_14xk9_1",boxInformation:"_boxInformation_14xk9_12",titleGradient:"_titleGradient_14xk9_30",sectionDescription:"_sectionDescription_14xk9_58",articule:"_articule_14xk9_83",linkStyled:"_linkStyled_14xk9_116"},Mt=e=>{const{isVideo:n,info:a,main:o,overImage:s="default",titleGradient:r=!1}=e,{SHOW_TAG_BY_SECTION:i}=K(),c=()=>{if(i&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const d=e.keywords.tags[0],l=d.name;return d.approved?t.jsx("h3",{children:t.jsx(P,{"aria-label":l,className:Xe.sectionDescription,href:at(d,e.paths),children:l})}):t.jsx("div",{className:Xe.sectionDescription,children:l})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(P,{className:Xe.sectionDescription,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return t.jsxs("section",{className:Xe.content,children:[t.jsx(P,{title:o?.title?.section,href:a.link.url,target:a.link.target,children:t.jsx(_e,{preview:e.preview,isVideo:n})}),t.jsxs("div",{className:[Xe.boxInformation,r?Xe.titleGradient:""].join(" "),style:{width:s!=="default"?"90%":"",left:s==="left"?0:s==="right"?"calc(10% - 1px)":"auto",top:s!=="default"?"-1rem":""},children:[t.jsx(c,{}),t.jsx("h2",{className:Xe.articule,children:t.jsx(P,{className:Xe.linkStyled,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},bs={content:"_content_kro73_1",contentLayout:"_contentLayout_kro73_5"},ra=e=>t.jsx("div",{className:bs.content,children:t.jsx(wt,{className:`${bs.contentLayout} ${e.className}`,children:e.children})}),vt={content:"_content_1nqra_1",before:"_before_1nqra_11",textContent:"_textContent_1nqra_22",title:"_title_1nqra_37",description:"_description_1nqra_46",linkStyled:"_linkStyled_1nqra_57"},yl=e=>{const n=e.logo;return t.jsxs("section",{className:vt.content,children:[e.backgroundImgURL&&t.jsx("img",{className:vt.before,src:e.backgroundImgURL,alt:""}),t.jsxs("div",{className:`${vt.textContent} error-text-content`,children:[t.jsx(n,{}),t.jsx("p",{className:vt.title,children:e.title}),t.jsx("p",{className:vt.description,children:e.description}),t.jsx(P,{className:vt.linkStyled,href:"/",children:e.buttonText??"Inicio"})]})]})},jt={content:"_content_zxcog_1",contentLabel:"_contentLabel_zxcog_8",label:"_label_zxcog_13",required:"_required_zxcog_22",input:"_input_zxcog_28"},wl=e=>t.jsxs("div",{className:jt.content,children:[t.jsxs("div",{className:jt.contentLabel,children:[t.jsx("label",{className:jt.label,children:e.label}),e.required&&t.jsx("span",{className:jt.required,children:"*"})]}),t.jsx("input",{className:jt.input,...e})]}),$t={content:"_content_zgx5w_1",contentLabel:"_contentLabel_zgx5w_8",label:"_label_zgx5w_13",required:"_required_zgx5w_22",input:"_input_zgx5w_28"},bl=e=>t.jsxs("div",{className:$t.content,children:[t.jsxs("div",{className:$t.contentLabel,children:[t.jsx("label",{className:$t.label,children:e.label}),e.required&&t.jsx("span",{className:$t.required,children:"*"})]}),t.jsxs("select",{className:$t.input,...e,children:[t.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((n,a)=>t.jsx("option",{value:n.value,children:n.label},a))]})]}),ia={content:"_content_1mi9t_1",label:"_label_1mi9t_8",input:"_input_1mi9t_17"},vl=e=>t.jsxs("div",{className:ia.content,children:[t.jsx("label",{className:ia.label,children:e.label}),t.jsx("textarea",{className:ia.input,...e})]}),Re={boxInformation:"_boxInformation_achvw_1",textBox:"_textBox_achvw_30",contentBox:"_contentBox_achvw_40",liveBox:"_liveBox_achvw_50",dot:"_dot_achvw_72",sectionDescription:"_sectionDescription_achvw_97",articule:"_articule_achvw_110",description:"_description_achvw_137"},yn={content:"_content_8ehij_1",description:"_description_8ehij_23"},vs=e=>{let n="";return e.preview.description&&(n=e.preview.description),e.preview.copyright&&(n=`${n} ${e.preview.copyright}`),e.preview.photographer&&(n=`${n} ${e.preview.photographer}`),t.jsxs("div",{className:yn.content,children:[t.jsx(_e,{preview:e.preview,isLarge:!0,priorityHigh:!0}),n&&t.jsx("div",{className:yn.description,children:n})]})},Cs=e=>t.jsx(t.Fragment,{children:t.jsxs("div",{className:Re.boxInformation,children:[t.jsx(vs,{preview:e.preview}),t.jsxs("div",{className:Re.textBox,children:[t.jsxs("div",{className:Re.contentBox,children:[e?.info?.section&&t.jsx(P,{className:Re.sectionDescription,href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsxs("div",{className:Re.liveBox,children:[t.jsx("span",{className:Re.dot}),t.jsx("p",{children:"EN VIVO"})]})]}),t.jsx("h1",{className:Re.articule,children:e.main?.title?.section}),e.config?.showsubtitle&&t.jsx("div",{className:Re.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),wn={content:"_content_oipiy_1",contentLine:"_contentLine_oipiy_17",contentText:"_contentText_oipiy_24",dateLink:"_dateLink_oipiy_37"},_s=e=>t.jsx("section",{className:wn.content,children:e.itemList[0]?.list.items.map((n,a)=>t.jsxs("div",{className:wn.contentLine,children:[t.jsx(P,{className:wn.dateLink,href:`#item-${a+1}`,children:Ka(n.date)}),t.jsx("div",{className:wn.contentText,children:(e.itemList[0]?.list.integrated,n.title)})]},a))}),Se={content:"_content_1rsue_1",contentInfo:"_contentInfo_1rsue_11",imageContainer:"_imageContainer_1rsue_19",imageStyled:"_imageStyled_1rsue_28",contentIconStyled:"_contentIconStyled_1rsue_39",name:"_name_1rsue_65",email:"_email_1rsue_74",description:"_description_1rsue_90",contenSocialNetwork:"_contenSocialNetwork_1rsue_102",socialIcon:"_socialIcon_1rsue_112"},Ss=async e=>{const{autor:n,autorIcon:a}=e,o=a,s=n?.info?.image?.sizes?.[0]?.url??"",r=n?.info?.fullname??"",i=n?.info?.email??"",c=n?.addtional?.USER_SHOWEMAIL??!1,d=n?.addtional?.USER_SHOWBIO??!1,l=n?.addtional?.USER_MIBIO??"",h=n?.addtional?.USER_USERFB??"",u=n?.addtional?.USER_USERIG??"",f=n?.addtional?.USER_USERTWT??"",g=n?.addtional?.USER_USERLIN??"";return t.jsx("section",{className:`${Se.content} ${e.className?e.className:""}`,children:t.jsxs("div",{className:Se.contentInfo,children:[s?t.jsx("div",{className:`${Se.imageContainer} sass-image-autor-wrapper`,children:t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"",className:Se.imageStyled,src:await de(s)})}):t.jsx("div",{className:`${Se.contentIconStyled} sass-image-autor-wrapper`,children:t.jsx(o,{})}),t.jsx("h1",{className:Se.name,children:r}),c&&t.jsx("p",{className:Se.email,children:i}),d&&t.jsx("p",{className:Se.description,children:l}),t.jsxs("div",{className:Se.contenSocialNetwork,children:[h&&t.jsx("a",{href:h,target:"_blank",rel:"noreferrer",children:t.jsx(aa,{className:Se.socialIcon})}),u&&t.jsx("a",{href:u,target:"_blank",rel:"noreferrer",children:t.jsx(oa,{className:Se.socialIcon})}),f&&t.jsx("a",{href:f,target:"_blank",rel:"noreferrer",children:t.jsx(Pt,{className:Se.socialIcon})}),g&&t.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:t.jsx(gn,{className:Se.socialIcon})})]})]})})},Ne={content:"_content_18ozj_1",contentInfo:"_contentInfo_18ozj_13",contentAuthor:"_contentAuthor_18ozj_26",imageStyled:"_imageStyled_18ozj_33",contentIconStyled:"_contentIconStyled_18ozj_42",name:"_name_18ozj_64",email:"_email_18ozj_72",description:"_description_18ozj_82",contenSocialNetwork:"_contenSocialNetwork_18ozj_93",socialIcon:"_socialIcon_18ozj_103"},Ns=async e=>{const{autor:n,autorIcon:a}=e,o=a,s=n?.info?.image?.sizes?.[0]?.url??"",r=n?.info?.fullname??"",i=n?.info?.email??"",c=n?.addtional?.USER_SHOWEMAIL??!1,d=n?.addtional?.USER_SHOWBIO??!1,l=n?.addtional?.USER_MIBIO??"",h=n?.addtional?.USER_USERFB??"",u=n?.addtional?.USER_USERIG??"",f=n?.addtional?.USER_USERTWT??"",g=n?.addtional?.USER_USERLIN??"";return t.jsx("section",{className:Ne.content,children:t.jsxs("div",{className:Ne.contentInfo,children:[s?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Ne.imageStyled,src:await de(s)}):t.jsx("div",{className:Ne.contentIconStyled,children:t.jsx(o,{})}),t.jsxs("div",{className:Ne.contentAuthor,children:[t.jsx("h1",{className:Ne.name,children:r}),c&&t.jsx("p",{className:Ne.email,children:i}),d&&t.jsx("p",{className:Ne.description,children:l}),t.jsxs("div",{className:Ne.contenSocialNetwork,children:[h&&t.jsx("a",{href:h,target:"_blank",rel:"noreferrer",children:t.jsx(aa,{className:Ne.socialIcon})}),u&&t.jsx("a",{href:u,target:"_blank",rel:"noreferrer",children:t.jsx(oa,{className:Ne.socialIcon,style:{padding:"4px"}})}),f&&t.jsx("a",{href:f,target:"_blank",rel:"noreferrer",children:t.jsx(Pt,{className:Ne.socialIcon})}),g&&t.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:t.jsx(gn,{className:Ne.socialIcon})})]})]})]})})},Es={content:"_content_jg6i2_1",bannerSection:"_bannerSection_jg6i2_25"},ca=e=>t.jsxs("section",{className:Es.content,children:[e.children,t.jsxs("div",{className:Es.bannerSection,children:[e.bannerTop,t.jsx(fn,{content:e.ranking,title:e.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),e.banner]})]}),Le={content:"_content_7v98f_1",header:"_header_7v98f_30",videos:"_videos_7v98f_56",videoContent:"_videoContent_7v98f_63",articleSection:"_articleSection_7v98f_70",contentLayoutVideoSection:"_contentLayoutVideoSection_7v98f_85",sectionVideoList:"_sectionVideoList_7v98f_93",iframeStyled:"_iframeStyled_7v98f_166",contentFrame:"_contentFrame_7v98f_172"},la={content:"_content_1dj0q_1",linkImage:"_linkImage_1dj0q_12",playStyled:"_playStyled_1dj0q_19"},Cl=async e=>{const n=un(),a={...e,main:{...e.main,title:{...e.main.title,article:xe(e.main.title.article,60)}}};return e&&e.info?t.jsxs("section",{className:la.content,children:[t.jsx("a",{className:la.linkImage,target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx("img",{src:await de(e.preview.sizes[0]?.url||"")}),t.jsx(n,{className:`${la.playStyled} saas-image-play-icon`})]})}),t.jsx("div",{children:t.jsx(ct,{...a,paths:e.paths})})]}):null},_l=e=>t.jsx("div",{className:Le.content,children:t.jsxs(wt,{className:Le.contentLayoutVideoSection,children:[t.jsxs("a",{className:Le.header,href:e.goBackLink??"/videos",children:[t.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"white"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),t.jsxs("div",{className:Le.videos,children:[t.jsxs("div",{className:Le.videoContent,style:e.mainVideoStyles,children:[e.type==="vy"&&t.jsx("iframe",{className:Le.iframeStyled,src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:Le.iframeStyled,src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:Le.contentFrame,dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),t.jsx("div",{className:Le.articleSection,children:t.jsx(ct,{isTitle:!0,cutSubtitle:!1,...mt({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description),paths:e.paths})})]}),t.jsxs("div",{className:Le.sectionVideoList,style:e.listVideoStyles,children:[e.banner&&t.jsx(fe,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&t.jsx("h2",{className:`${Le.relatedTitle} saas-video-related-title`,children:e.relatedName}),Array.isArray(e.videoList)&&e.videoList.map((n,a)=>E.createElement(Cl,{...mt(n,!0,!1),key:a,paths:e.paths}))]})]})]})}),He={content:"_content_gcte1_1",titleContent:"_titleContent_gcte1_24",title:"_title_gcte1_24",startLine:"_startLine_gcte1_88",line:"_line_gcte1_93",bottomLine:"_bottomLine_gcte1_99",childrenContent:"_childrenContent_gcte1_118",readMore:"_readMore_gcte1_131"},ue=E.forwardRef((e,n)=>{const{isTitle:a=!1,isOpinion:o=!1}=e,s=a?t.jsx("h1",{className:He.title,children:e.title}):t.jsx("h2",{className:He.title,children:e.title});return t.jsxs("section",{className:He.content,children:[e.title&&t.jsxs("div",{className:[He.titleContent,e.className??""].join(" "),"data-after":`${o}`,children:[t.jsx("hr",{className:He.startLine}),e.titleUrl?t.jsx(P,{href:e.titleUrl,children:s}):s,t.jsx("hr",{className:He.line}),e.titleUrl&&t.jsx(P,{className:He.readMore,href:e.titleUrl?.toString()??""})]}),e.title&&t.jsx("hr",{className:[He.bottomLine,e.className??""].join(" ")}),t.jsx("div",{className:He.childrenContent,ref:n,children:e.children})]})}),da=e=>t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),bn=e=>t.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:e.fill??"#7B888A"})}),ce={drawerStyled:"_drawerStyled_tm61w_1",sidebarCustom:"_sidebarCustom_tm61w_6",accordionStyled:"_accordionStyled_tm61w_24",accordionHeading:"_accordionHeading_tm61w_35",accordionSummeryStyled:"_accordionSummeryStyled_tm61w_44",linkStyled:"_linkStyled_tm61w_72",subLinkStyled:"_subLinkStyled_tm61w_92",inputContent:"_inputContent_tm61w_114",buttonContent:"_buttonContent_tm61w_115",inputStyled:"_inputStyled_tm61w_125",buscar:"_buscar_tm61w_141",buttonStyled:"_buttonStyled_tm61w_170",accordionDetailsStyled:"_accordionDetailsStyled_tm61w_185",footerSlider:"_footerSlider_tm61w_200",socialMedia:"_socialMedia_tm61w_211",copyRights:"_copyRights_tm61w_230",icon:"_icon_tm61w_241"},Sl=({sidebar:e,socials:n,copyrigth:a,sidebarExtra:o,searchKeyWord:s})=>t.jsxs("aside",{className:ce.drawerStyled,id:"sidebar-expandable",style:{"--header-icons":"var(--search-input-icons)"},children:[t.jsx("input",{type:"checkbox",id:"side-bar-state"}),t.jsxs("section",{className:ce.sidebarCustom,children:[t.jsx("div",{className:ce.buttonContent,children:t.jsx("label",{className:ce.buttonStyled,htmlFor:"side-bar-state",children:t.jsx(bt,{className:ce.icon})})}),t.jsx("div",{className:ce.inputContent,children:t.jsxs("form",{className:ce.inputStyled,action:"/buscar",method:"GET",children:[t.jsx("input",{className:ce.buscar,type:"text",name:"query",placeholder:s+"..."}),t.jsx("button",{type:"submit",style:{background:"transparent",border:"none",outline:"none",padding:0,margin:0},children:t.jsx(da,{color:"var(--search-input-icons)"})})]})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[t.jsxs("div",{children:[o,e.map((r,i)=>t.jsxs("div",{className:ce.accordionStyled,children:[t.jsx("input",{type:"checkbox",style:{display:"none"},id:"accordion_"+i}),t.jsx("h3",{className:ce.accordionHeading,children:Array.isArray(r.subitem)?t.jsxs("label",{className:ce.accordionSummeryStyled,htmlFor:"accordion_"+i,children:[r.link?t.jsx(P,{className:`${ce.linkStyledAccordion} ${ce.linkStyled}`,href:r.link?r.link:void 0,target:r.target,children:r.description}):t.jsx("div",{children:r.description}),t.jsx(bn,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):t.jsx(P,{className:ce.linkStyled,href:r.link?r.link:void 0,target:r.target,children:r.description})}),Array.isArray(r.subitem)&&t.jsx("div",{className:ce.accordionDetailsStyled,style:{"--max-height":r.subitem.length*45+"px"},children:r.subitem.map((c,d)=>t.jsx(P,{className:ce.subLinkStyled,href:c.link?c.link:void 0,target:c.target,children:c.description},d))})]},i))]}),t.jsxs("div",{className:ce.footerSlider,children:[t.jsx("div",{className:ce.socialMedia,children:Object.keys(n).map(r=>n[r]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":n[r].title+" link",className:ce.linkSocialNetwork,href:n[r].url,children:mn[r]({className:ce.icon})},r))}),t.jsx("p",{className:ce.copyRights,children:a})]})]})]})]}),Ts=e=>t.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color}),t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color})]}),Qt={content:"_content_y5b1f_1",chipStyled:"_chipStyled_y5b1f_17",headLine:"_headLine_y5b1f_17",live:"_live_y5b1f_25",closeLiveStyled:"_closeLiveStyled_y5b1f_87"},Is=e=>{const{alertZone:n,id:a="close-alert"}=e,o=()=>t.jsx(P,{className:Qt.headLine,href:n?.data[0]?.info.link.url,target:n?.data[0]?.info.link.target,title:n?.data[0]?.main.title.home,children:n?.data[0]?.main?.title.home??""});return t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(n&&n?.data&&n?.data[0]?.main?.title.home)}),n&&n?.data&&n?.data[0]?.main?.title.home&&t.jsxs("div",{id:"alert-chip",className:Qt.content,style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[t.jsxs("div",{className:Qt.live,children:[t.jsx("div",{className:Qt.chipStyled,children:n?.entity?.description}),e.forceShow&&t.jsx(o,{}),t.jsx("label",{htmlFor:a,children:t.jsx(bt,{className:Qt.closeLiveStyled})})]}),t.jsx(o,{})]})]})},ze={content:"_content_18yq5_1",linkStyled:"_linkStyled_18yq5_14",linkSocialNetwork:"_linkSocialNetwork_18yq5_28",title:"_title_18yq5_49",tabs:"_tabs_18yq5_60",socialNetwork:"_socialNetwork_18yq5_68",icon:"_icon_18yq5_78",facebook:"_facebook_18yq5_84",youtube:"_youtube_18yq5_88",x:"_x_18yq5_92",instagram:"_instagram_18yq5_96",gnews:"_gnews_18yq5_100",tiktok:"_tiktok_18yq5_104",whatsapp:"_whatsapp_18yq5_108"},Nl=e=>{const{cintillo:n,tapeTitle:a,socials:o}=e,s="",r=n?.findIndex(i=>i.link===s)??0;return(Array.isArray(n)||e.socialIcons)&&t.jsxs("section",{className:ze.content,children:[Array.isArray(n)&&t.jsxs("div",{className:`${ze.tabs} header-page-tape-content`,children:[a!==""&&t.jsx("p",{className:ze.title,children:`${a}`}),n&&n[r]&&t.jsx(P,{className:ze.linkStyled,target:n[r]?.target,href:n[r]?.link,style:{color:n[r]?.link===s?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:n[r]?.link===s?"700":"400"},children:n[r]?.description},r),n&&n.map((i,c)=>{if(c!==r)return t.jsx(P,{className:ze.linkStyled,href:i?.link,style:{color:i?.link===s?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===s?"700":"400"},children:i?.description},c)})]}),t.jsx("div",{className:ze.socialNetwork,children:Object.keys(o).map(i=>o[i]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":o[i].title+" link",className:ze.linkSocialNetwork,href:o[i].url,children:mn[i]({className:[ze.icon,ze[i]??""].join(" ")})},i))})]})},Ie={headerStyled:"_headerStyled_6yw62_1",headerContent:"_headerContent_6yw62_14",iconContent:"_iconContent_6yw62_25",menuButton:"_menuButton_6yw62_34",logoStyled:"_logoStyled_6yw62_66",buttonSection:"_buttonSection_6yw62_94",buttonSectionSearch:"_buttonSectionSearch_6yw62_109",headLineContent:"_headLineContent_6yw62_131",headLineTitle:"_headLineTitle_6yw62_144",headLine:"_headLine_6yw62_131",hasAlertZone:"_hasAlertZone_6yw62_197"},El=e=>{const{alertZone:n}=e;return t.jsxs("header",{className:Ie.headerStyled,children:[e.socialIcons&&t.jsx(Nl,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),t.jsxs("div",{className:`${Ie.headerContent} center-mobile-header-icon`,children:[t.jsx(na,{id:"button-app",className:Ie.menuButton,toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:t.jsx(Ts,{className:Ie.startIcon,color:"var(--header-icons)",width:27,height:27})}),t.jsx("div",{className:Ie.iconContent,children:t.jsx(P,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:E.createElement("span",{className:Ie.logoStyled},e.icon)})}),!e.showAlertPop&&n?.data&&t.jsxs("div",{className:Ie.headLineContent,children:[t.jsx("div",{className:`${Ie.headLineTitle} headLineTitle`,children:n.entity.description?`${n.entity.description}`:""}),t.jsx(P,{className:Ie.headLine,href:n.data[0]?.info.link.url,target:n.data[0]?.info.link.target,title:n.data[0]?.main.title.home,children:xe(n.data[0]?.main.title.home??"",120)})]}),t.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:[Ie.buttonSection,n?.data?Ie.hasAlertZone:"","search-button"].join(" "),children:[t.jsx(P,{href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:`${Ie.buttonSectionSearch} search-button-icon`,style:{display:"flex"},children:t.jsx(da,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&t.jsx(Is,{alertZone:n,forceShow:e.showAlertPop})]})},Fe={ul:"_ul_j3aqc_1",li:"_li_j3aqc_10",liBefore:"_liBefore_j3aqc_18",ulContent:"_ulContent_j3aqc_33",contentModal:"_contentModal_j3aqc_44",linkStyled:"_linkStyled_j3aqc_56",itemLink:"_itemLink_j3aqc_81"},Tl=e=>{const{items:n}=e;return t.jsx("ul",{className:Fe.ul,children:n.map((a,o)=>t.jsxs("li",{className:`${Fe.liBefore} ${Fe.li}`,children:[a.link?t.jsxs(P,{"aria-label":a.description,className:Fe.linkStyled,href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&t.jsx(bn,{})]}):t.jsxs("span",{"aria-label":a.description,className:Fe.linkStyled,children:[a.description,Array.isArray(a.subitem)&&t.jsx(bn,{})]}),Array.isArray(a.subitem)&&t.jsx("ul",{className:Fe.ulContent,children:t.jsx("div",{className:Fe.contentModal,children:a.subitem.map((s,r)=>t.jsx("li",{className:Fe.li,children:t.jsx(P,{className:Fe.itemLink,"aria-label":s.description,href:s.link?s.link:void 0,target:s.target,children:s.description})},r))})})]},o))})},pe={headerStyled:"_headerStyled_1xeaj_1",headerContent:"_headerContent_1xeaj_23",menuButtonSection:"_menuButtonSection_1xeaj_33",menuButton:"_menuButton_1xeaj_33",buttonSection:"_buttonSection_1xeaj_84",buttonSectionSearch:"_buttonSectionSearch_1xeaj_101",hasAlertZone:"_hasAlertZone_1xeaj_112",buttonText:"_buttonText_1xeaj_131",logoContent:"_logoContent_1xeaj_141",logoStyled:"_logoStyled_1xeaj_149",headLineContent:"_headLineContent_1xeaj_173",headLineTitle:"_headLineTitle_1xeaj_188",menuSection:"_menuSection_1xeaj_204",headLine:"_headLine_1xeaj_173",line:"_line_1xeaj_256"},Il=e=>{const{menu:n,alertZone:a}=e;return t.jsx("header",{className:pe.headerStyled,style:{top:e.cintillo||e.socialIcons?40:0},children:t.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:[pe.headerContent,a?.data?pe.hasAlertZone:""].join(" "),children:[t.jsx("div",{className:pe.menuButtonSection,children:t.jsxs(na,{className:pe.menuButton,id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[t.jsx(Ts,{color:"var(--header-icons)",width:27,height:27}),t.jsx("p",{className:pe.buttonText,style:{lineHeight:0},children:e.menuText})]})}),t.jsx("div",{className:pe.logoContent,children:t.jsx(P,{href:"/","aria-label":"Home",className:"header-logo-link",children:E.createElement("span",{className:`${pe.logoStyled}`},e.icon)})}),t.jsxs("div",{className:pe.buttonSection,children:[t.jsx(P,{href:e.searchLink?e.searchLink:"/buscar",style:{display:"flex"},className:pe.buttonSectionSearch,"aria-label":e.searchKeyWord,children:t.jsx(da,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?t.jsxs("div",{className:pe.headLineContent,children:[t.jsx("p",{className:`${pe.headLineTitle} headLineTitle`,children:a.entity.description?`${a.entity.description}`:""}),t.jsx(P,{className:pe.headLine,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:xe(a.data[0]?.main.title.home??"",120)})]}):t.jsx("div",{className:pe.line}),t.jsx("div",{className:pe.menuSection,style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(n)&&t.jsx(Tl,{items:n})})]})})},ha={childrenContent:"_childrenContent_wqlb4_1",childrenContentAux:"_childrenContentAux_wqlb4_12",op2:"_op2_wqlb4_25"},kl=e=>{const{alertZone:n,children:a,sidebar:o}=e;return t.jsxs(t.Fragment,{children:[t.jsx(El,{...e}),!e.showOnlyStickyHeader&&t.jsx(Il,{...e}),t.jsxs("div",{className:[ha.childrenContent,e.showAlertPop?ha.op2:"",n?.data?ha.childrenContentAux:""].join(" "),style:e.showOnlyStickyHeader?{"--hasAlertMargin":"3.6rem !important"}:{},id:"content-layout",children:[e.showAlertPop&&t.jsx(Is,{alertZone:n,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]}),t.jsx(Sl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:o,socials:e.socials,copyrigth:e.copyrigth})]})},Ct={content:"_content_16ydf_1",tags:"_tags_16ydf_10",chipStyled:"_chipStyled_16ydf_20",tagLink:"_tagLink_16ydf_47",tagStyled:"_tagStyled_16ydf_53"},ks=e=>t.jsx("section",{className:Ct.content,children:Array.isArray(e.tags)&&t.jsxs("div",{className:Ct.tags,children:[t.jsx("p",{className:Ct.tagStyled,children:e.title?e.title:"Tags:"}),e.tags.map((n,a)=>n.approved?t.jsx(P,{href:at(n,e.paths),children:t.jsx("div",{className:`${Ct.chipStyled} ${Ct.tagLink}`,children:n.name})},a):t.jsx("div",{className:Ct.chipStyled,children:n.name},a))]})}),De={contentBox:"_contentBox_1rkkg_1",content:"_content_1rkkg_1",imageStyled:"_imageStyled_1rkkg_16",contentIconStyled:"_contentIconStyled_1rkkg_23",avatarContent:"_avatarContent_1rkkg_43",journalistSection:"_journalistSection_1rkkg_50",journalistInfo:"_journalistInfo_1rkkg_56",socialNetworkSection:"_socialNetworkSection_1rkkg_70",article:"_article_1rkkg_83"},xs=async e=>{const{autor:n}=e,a=n?.addtional?.USER_SHOWBIO??!1,o=n?.info?.name??"",s=n?.info?.fullname??"",r=n?.info?.image?.sizes?.[0]?.url??"",i=n?.addtional?.USER_MIBIO??"",c=n?.addtional?.USER_USERFB??"",d=n?.addtional?.USER_USERIG??"",l=n?.addtional?.USER_USERTWT??"",h=n?.addtional?.USER_USERLIN??"";return a&&t.jsx("section",{className:De.contentBox,children:t.jsxs("div",{className:De.content,children:[t.jsxs("div",{className:De.avatarContent,children:[t.jsx(P,{className:De.journalistInfo,href:`/${e.paths.autor}/${o}`,children:r?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor-image",className:De.imageStyled,src:await de(r)}):t.jsx("div",{className:De.contentIconStyled,children:e.autorIcon()})}),t.jsxs("section",{className:De.journalistSection,children:[t.jsx("h3",{className:De.journalistInfo,children:t.jsx(P,{href:`/${e.paths.autor}/${o}`,children:s})}),t.jsxs("section",{className:De.socialNetworkSection,children:[c&&t.jsx("a",{href:c,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),d&&t.jsx("a",{href:d,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[t.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),t.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),t.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_281_2357",children:t.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),l&&t.jsx("a",{href:l,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),h&&t.jsx("a",{href:h,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})})]})]})]}),a&&t.jsx("p",{className:De.article,dangerouslySetInnerHTML:{__html:`${i} <a aria-label="${o}" href="/${e.paths.autor}/${o}">${e.texts.authorViewMore??"Ver más"}</a>`}})]})})},et={content:"_content_vmnac_1",imageStyled:"_imageStyled_vmnac_20",contentIconStyled:"_contentIconStyled_vmnac_21",contentCard:"_contentCard_vmnac_31",contentInfo:"_contentInfo_vmnac_70",fullName:"_fullName_vmnac_76",LearnMoreLink:"_LearnMoreLink_vmnac_83"},Us=async e=>{const{news:n,texts:a}=e;return n.config?.showauthor&&t.jsx("div",{className:et.content,children:Array.isArray(n.authors)&&n.authors?.map(async o=>t.jsxs("div",{className:et.contentCard,children:[o.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:et.imageStyled,src:await de(o.image.sizes[0]?.url||"")},o.fullname):t.jsx("div",{className:et.contentIconStyled,children:e.autorIcon},o.fullname),t.jsxs("div",{className:et.contentInfo,children:[o.internaluser?t.jsx("a",{className:et.fullName,href:`/${e.paths.autor}/${o.name}`,children:o.fullname}):t.jsx("p",{className:et.fullName,children:o.fullname}),o.internaluser&&t.jsx("a",{className:et.LearnMoreLink,href:`/${e.paths.autor}/${o.name}`,children:a.JournalistGroupLink})]})]},`author-${o.firstname}`))})},Ee={content:"_content_1j0pj_1",contentNews:"_contentNews_1j0pj_10",linkTitle:"_linkTitle_1j0pj_27",tag:"_tag_1j0pj_35",tagmx:"_tagmx_1j0pj_55",titular:"_titular_1j0pj_70",correspondent:"_correspondent_1j0pj_85",correspondentLink:"_correspondentLink_1j0pj_96",description:"_description_1j0pj_107"},_t=e=>{const{SHOW_TAG_BY_SECTION:n}=K(),a=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${ke(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return ke(e.info?.date?.modified)},o=()=>{if(n&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?t.jsxs("h3",{children:[" ",t.jsx(P,{"aria-label":i,className:Ee.tagmx,href:at(r,e.paths),children:i})]}):t.jsx("div",{className:Ee.tagmx,children:i})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(P,{className:Ee.tagmx,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},s=()=>{if(n&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?t.jsx("h3",{children:t.jsx(P,{"aria-label":i,className:Ee.tag,href:at(r,e.paths),children:i})}):t.jsx("div",{className:Ee.tag,children:i})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(P,{className:Ee.tag,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return t.jsxs("section",{className:`${Ee.content} destacado-super-content`,children:[t.jsx(P,{href:e?.info?.link?.url,target:e?.info?.link?.target,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:t.jsx(_e,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),t.jsxs("div",{className:Ee.contentNews,style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[t.jsx(o,{}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(s,{}),t.jsx(P,{className:Ee.linkTitle,href:e?.info?.link?.url,target:e?.info?.link?.target,children:t.jsx("h1",{className:Ee.titular,style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&t.jsx("div",{className:Ee.description,dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&t.jsx(t.Fragment,{children:e.authors[0]?.internaluser?t.jsx(P,{href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:Ee.correspondent,children:a()}):t.jsx("p",{className:Ee.correspondentLink,children:a()})})]})]})},qs=e=>{const{main:n,authors:a,info:o,preview:s,isVideo:r,config:i,itemReverseOrder:c,imageSize:d,showSuper:l}=e;return t.jsxs("section",{className:Gc.content,children:[l?t.jsx("section",{style:{...e.customSectionCardStyles},children:t.jsx(_t,{main:n,authors:a,info:o,preview:s,isVideo:r,config:i,paths:e.paths})}):t.jsx(Oe,{...e,main:n,authors:a,info:o,preview:s,isVideo:r,config:i,priorityHigh:!0}),e.banners&&t.jsx(fe,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&t.jsx(fs,{block:e.block,itemReverseOrder:c,priorityHigh:!0,imageSize:d,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})]})},ua={content:"_content_1dcf7_1",firstSection:"_firstSection_1dcf7_10",secondSection:"_secondSection_1dcf7_16"},xl=({content:e,customLargeSection:n,customSmallSection:a,paths:o})=>{const s=e[0];return Array.isArray(e)&&e.length>0&&s&&t.jsxs("section",{className:ua.content,children:[t.jsx("div",{style:n,className:ua.firstSection,children:t.jsx(_t,{...s,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})}),t.jsx("div",{style:a,className:ua.secondSection,children:e.map((r,i)=>i>0&&E.createElement(_t,{...r,key:i,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:o}))})]})},Ls={content:"_content_wsx1m_1",firstSection:"_firstSection_wsx1m_8"},Ul=({content:e,customLargeSection:n,customSlimSection:a,paths:o})=>Array.isArray(e)&&e.length>0&&t.jsx("section",{className:Ls.content,children:e.map((s,r)=>r===0?t.jsx("div",{style:n,className:Ls.firstSection,children:t.jsx(_t,{...s,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r):t.jsx("section",{style:a,children:E.createElement(_t,{...s,key:r,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r))}),lt={content:"_content_1n73e_1",sectionDescription:"_sectionDescription_1n73e_13",title:"_title_1n73e_33",subtitle:"_subtitle_1n73e_47",linkStyled:"_linkStyled_1n73e_58"},Bs=e=>{const{SHOW_TAG_BY_SECTION:n}=K(),a=()=>{if(n&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],s=o.name;return o.approved?t.jsx("h3",{children:t.jsx(P,{"aria-label":s,className:lt.sectionDescription,href:at(o,e.paths),children:s})}):t.jsx("div",{className:lt.sectionDescription,children:s})}else if(e.mainNew.info?.section?.url)return t.jsx("h3",{children:t.jsx(P,{className:lt.sectionDescription,href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return t.jsxs("div",{className:lt.content,children:[t.jsx(a,{}),t.jsx(P,{className:lt.title,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&t.jsx("p",{className:lt.subtitle,children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&t.jsx(P,{href:e.goTo.url,className:lt.linkStyled,children:e.goTo.description})]})},fa={headerSection:"_headerSection_drjnj_1",headerSectionLink:"_headerSectionLink_drjnj_12",newsContent:"_newsContent_drjnj_17"},Ps=e=>{const{content:n,title:a,isVideo:o}=e;if(!n||!n[0]||n.length===0)return;const s=e.slot_id&&e.slot_id!=="Nota_1",r={...n[0],main:{...n[0].main,title:{...n[0].main.title,section:s?n[0].main.title.home:n[0].main.title.section}}},i=n.slice(1);return r&&i&&t.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:fa.headerSection,children:[t.jsx(Bs,{mainNew:r,goTo:e.goTo,paths:e.paths}),t.jsx(P,{className:fa.headerSectionLink,href:r?.info?.link?.url,target:r?.info?.link?.target,children:t.jsx(_e,{preview:r.preview})})]}),t.jsxs("div",{className:fa.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:s?c.main.title.home:c.main.title.section}}};return t.jsx("div",{style:{order:d},children:t.jsx(Oe,{...l,isVideo:o,paths:e.paths})},d)})]})]})},Ve={content:"_content_1stvq_1",autorContent:"_autorContent_1stvq_8",image:"_image_1stvq_24",contentIcon:"_contentIcon_1stvq_25",boxInformationContent:"_boxInformationContent_1stvq_47",autorName:"_autorName_1stvq_53",time:"_time_1stvq_85",comment:"_comment_1stvq_98",title:"_title_1stvq_107"},vn=async e=>{const{data:n,autorIcon:a}=e,o=a,s=()=>n?.config?.showtime?`${ke(n.info?.date?.modified)}`:"",r=t.jsxs("div",{className:Ve.autorContent,children:[Array.isArray(n?.authors)&&Array.isArray(n?.authors[0]?.image?.sizes)&&n?.authors[0]?.image?.sizes?.length>0?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Ve.image,src:await de(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:Ve.contentIcon,children:t.jsx(o,{})}),t.jsx("p",{className:Ve.autorName,children:xe(n?.authors[0]?.fullname??"Redacción",18)}),t.jsx("p",{className:Ve.time,children:s()})]});return t.jsxs("div",{className:Ve.content,children:[n?.authors[0]?.internaluser?t.jsx(P,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:r}):r,t.jsxs("div",{className:Ve.boxInformationContent,children:[t.jsx(P,{className:Ve.title,href:n?.info?.link?.url,target:n?.info?.link?.target,children:n?.main?.title?.home}),t.jsx("p",{className:Ve.comment,children:xe(n?.main?.subtitle?.striped||"")})]})]})},St={content:"_content_1d7mg_1",boxPosition:"_boxPosition_1d7mg_8",contentFlex:"_contentFlex_1d7mg_21",bannerContent:"_bannerContent_1d7mg_29",bannerContentAux:"_bannerContentAux_1d7mg_40"};function ql(e){const n=new Array(e.length),a=e.length/2;for(let o=0;o<e.length;o++)o%2===0?n[Math.floor(o/2)]=e[o]:n[a+Math.floor(o/2)]=e[o];return n}const Ll=e=>{const{isOpinion:n=!1}=e,a=r=>t.jsx("div",{className:St.boxPosition+" banner-context",style:{order:2},children:t.jsx("div",{className:St.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},r),o=[];for(let r=0;r<e.news.length;r++){const i=e.news[r];r===2&&o.push(a(r)),i&&o.push(t.jsx("div",{className:St.boxPosition,style:{order:r},children:t.jsx(vn,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${r}`))}const s=o.length%2===0?ql(o):o;return t.jsx("section",{style:e.customStyles,children:t.jsx(ue,{title:e.title,titleUrl:e.titleUrl,isOpinion:n,children:t.jsxs("div",{className:St.content,children:[t.jsx("div",{className:St.contentFlex,children:s}),t.jsx("div",{className:St.bannerContent,children:e.halfPageBanner})]})})})},Os={content:"_content_w9viv_1",title:"_title_w9viv_10"},Bl=e=>{const{showTitle:n=!0}=e;return t.jsxs("div",{className:Os.content,children:[n&&t.jsx("p",{className:Os.title,children:"Editorial"}),t.jsx(ct,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},Nt={content:"_content_1nd2h_1",newsContent:"_newsContent_1nd2h_8",boxPosition:"_boxPosition_1nd2h_17",bannerContent:"_bannerContent_1nd2h_23",bannerContentAux:"_bannerContentAux_1nd2h_33"},Pl=e=>{const{news:n}=e;return Array.isArray(n)&&t.jsxs("div",{className:Nt.content,children:[t.jsxs("div",{className:Nt.newsContent,children:[e.bannerArray&&e.bannerArray.map((a,o)=>t.jsx("div",{className:Nt.boxPosition+" banner-context",style:{order:2+5*o},children:t.jsx("div",{className:Nt.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},o)),n.map((a,o)=>t.jsx("div",{className:Nt.boxPosition,style:{order:o},children:t.jsx(Oe,{...a,share:e.share,paths:e.paths})},o))]}),t.jsx("div",{className:Nt.bannerContent,children:e.halfPageBanner})]})},Ol=e=>t.jsxs(t.Fragment,{children:[t.jsx(ps,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),t.jsx(As,{...e})]}),Cn={newsContent:"_newsContent_gd57q_1",newsContentWithLines:"_newsContentWithLines_gd57q_8",newsContentWithoutLines:"_newsContentWithoutLines_gd57q_13",contentSeparator:"_contentSeparator_gd57q_18"},Ds=e=>{const{content:n}=e;if(!n||n.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?Cn.contentSeparator:"",o=[];let s=0,r=1;for(let i=0;i<n.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(o.push(t.jsx("section",{className:a(s),children:e.banners?.some(h=>h.key===`${e.slot_id}_${r}`)&&t.jsx(fe,{banners:e.banners,name:`${e.slot_id}_${r}`})},s)),s++,r++);const c=e.isVideo?mt(n[i],e.showVideoTime,e.showVideosubtitle):n[i];if(!c)continue;const d=e.slot_id&&e.slot_id!=="Nota_1",l={...c,main:{...c.main,title:{...c.main.title,section:d?c.main.title.home:c.main.title.section}}};o.push(t.jsx("section",{className:a(s),children:t.jsx(Oe,{...l,isVideo:e.isVideo,paths:e.paths})},s)),s++}return o.length===2&&o.push(t.jsx("div",{},s)),t.jsx("div",{className:`${e.hasLines?Cn.newsContentWithLines:Cn.newsContentWithoutLines} ${Cn.newsContent}`,children:o})},ma=e=>t.jsx(ue,{title:e.title,titleUrl:e.titleUrl,children:t.jsx(Ds,{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})}),Ms={newsContent:"_newsContent_1sb62_1",contentSeparator:"_contentSeparator_1sb62_8"},js=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0||!Array.isArray(n)))return t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${Ms.newsContent} ${e.hasLines?Ms.contentSeparator:""}`,children:n?.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return t.jsx("section",{children:t.jsx(Oe,{...i,share:e.share,paths:e.paths})},s)})})})},ga={newsContent:"_newsContent_1gbse_1",contentSeparator:"_contentSeparator_1gbse_8",newsContentWhitoutLine:"_newsContentWhitoutLine_1gbse_29"},$s=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0))return t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${ga.newsContent} ${e.hasLines?ga.contentSeparator:ga.newsContentWhitoutLine}`,children:n.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return t.jsx("section",{children:t.jsx(Oe,{...i,share:e.share,paths:e.paths})},s)})})})},pa={headerSection:"_headerSection_1m1sp_3",headerSectionLink:"_headerSectionLink_1m1sp_16",newsContent:"_newsContent_1m1sp_29"},Qs=e=>{const{content:n,title:a,isVideo:o=!0}=e;if(!n||n.length===0)return;const s=n[0],r=e.slot_id&&e.slot_id!=="Nota_1",i=n.slice(1);return s&&i&&t.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:pa.headerSection,children:[t.jsx(Bs,{goTo:e.goTo,mainNew:mt(s),paths:e.paths}),t.jsx(P,{className:pa.headerSectionLink,href:s?.info?.link.url,target:s?.info?.link.target,"aria-label":"Video",children:t.jsx(_e,{preview:{sizes:s?.main?.image.sizes,description:s?.main?.image.description},isVideo:o,isLarge:!0})})]}),t.jsxs("div",{className:pa.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l=mt(c),h={...l,main:{...l.main,title:{...l.main.title,section:r?l.main.title.home:l.main.title.section}}};return t.jsx("div",{style:{order:d},children:E.createElement(Oe,{...h,isVideo:o,key:d,paths:e.paths})},d)})]})]})},Gt={content:"_content_1qdkl_1",linkImage:"_linkImage_1qdkl_30",sectionDescription:"_sectionDescription_1qdkl_42",dateText:"_dateText_1qdkl_62",textContent:"_textContent_1qdkl_73"},Dl=async e=>{const{showNewsLikeTitle:n=!1}=e;return e&&e.info?t.jsxs("section",{className:Gt.content,style:{"--heightImageOverwrite":"100%"},children:[t.jsx(P,{className:Gt.linkImage,target:e?.info?.link?.target,title:e.main?.title?.section,href:n?e.info.link.url:e?.info?.section?.url,children:t.jsx(_e,{preview:e.preview})}),t.jsxs("div",{className:Gt.textContent,children:[t.jsx(P,{className:Gt.sectionDescription,target:e?.info?.link?.target,href:n?e.info.link.url:e?.info?.section?.url,children:(n?e?.main?.title?.section:e?.info?.section?.name)??""}),t.jsx("p",{className:Gt.dateText,children:ke(e?.info?.date?.modified)})]})]}):null},Gs={content:"_content_yx3zm_1",contentSeparator:"_contentSeparator_yx3zm_7"},Aa={newsContent:"_newsContent_1uamf_1",contentSeparator:"_contentSeparator_1uamf_8",hasLinesBlock:"_hasLinesBlock_1uamf_40"},Hs=e=>{if(!e.content||e.content.length===0)return;const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(ue,{title:e.title,children:t.jsx("div",{className:`${Gs.content} ${e.hasLines?Gs.contentSeparator:""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx("section",{className:e.hasLines?Aa.hasLinesBlock:"",children:E.createElement(Dl,{...s,key:o,showNewsLikeTitle:e.showNewsLikeTitle})},o)})})})},zs=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return t.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:t.jsx(Mt,{...c,paths:e.paths})},i)})})})},tt={content:"_content_1mj79_1",imageStyled:"_imageStyled_1mj79_14",contentIcon:"_contentIcon_1mj79_23",boxInformation:"_boxInformation_1mj79_44",comment:"_comment_1mj79_51",title:"_title_1mj79_60",authorName:"_authorName_1mj79_81"},Ml=async e=>{const{data:n}=e;return t.jsxs("div",{className:tt.content,children:[Array.isArray(n.authors)&&n?.authors[0]?.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:tt.imageStyled,src:await de(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:tt.contentIcon,children:e.autorIcon}),t.jsxs("div",{className:tt.boxInformation,children:[t.jsx("p",{className:tt.authorName,children:n?.authors[0]?.internaluser?t.jsx(P,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:n?.authors[0]?.fullname??"Redacción"}):n?.authors[0]?.fullname??"Redacción"}),t.jsx("p",{className:tt.title,children:t.jsx(P,{className:tt.linkStyled,href:n?.info?.link?.url,target:n?.info?.link?.target,children:xe(n?.main?.title?.home,40)})}),t.jsx("p",{className:tt.comment,children:n?.main?.subtitle?.striped})]})]})},Fs=e=>{const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(ue,{titleUrl:e.titleUrl,title:e.title,children:t.jsx(it,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx(Ml,{autorIcon:e.autorIcon,data:s,paths:e.paths},o)})})})},We={content:"_content_1elhb_1",newsContentSection:"_newsContentSection_1elhb_5",itemContent:"_itemContent_1elhb_10",ItemCustomContent:"_ItemCustomContent_1elhb_16"},_n=e=>{const{item:n,option:a}=e;switch(a){case"ediciones":return t.jsx("div",{className:We.ItemCustomContent});case"columnistasnacionales":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(vn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistaslocales":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(vn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistas":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(vn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});default:return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(Oe,{...n,paths:e.paths})})}},jl=e=>{const{data:n,currentPage:a,banners:o,slug:s,ranking:r,pathname:i,texts:c={}}=e,d=[3,8,13],l={3:1,8:2,13:3};switch(e.option){case"op1":return t.jsx(ca,{ranking:r,readestTitle:c.readestTitle??"",paths:e.paths,bannerTop:t.jsx(fe,{banners:o??[],name:"right_1"}),banner:t.jsx(fe,{banners:o??[],name:"right_2"}),children:t.jsx("section",{className:We.content,children:n.length>0?t.jsx(An,{className:[We.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Ot,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((h,u)=>t.jsxs(E.Fragment,{children:[d.includes(u+1)&&t.jsx("div",{className:We.itemContent+" banner-context",children:t.jsx(fe,{banners:o??[],name:`block_2_${l[u+1]}`})}),t.jsx(_n,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})})});case"op2":return t.jsx(t.Fragment,{children:n.length>0?t.jsx(An,{className:"padding-0",paginatorComponent:t.jsx(Ot,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((h,u)=>t.jsxs(E.Fragment,{children:[d.includes(u+1)&&t.jsx("div",{className:We.itemContent,children:t.jsx(fe,{banners:o??[],name:`block_2_${l[u+1]}`})}),t.jsx(_n,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})});default:return t.jsx(t.Fragment,{})}},Vs={content:"_content_gwsqy_1",contactInfoContent:"_contactInfoContent_gwsqy_7"},$l=e=>{const{data:n}=e;return t.jsx("section",{className:Vs.content,children:n.map((a,o)=>t.jsx("div",{className:Vs.contactInfoContent,dangerouslySetInnerHTML:{__html:a.body.rendered}},o))})},ya={tagContent:"_tagContent_ee6yw_1",contentLayout2:"_contentLayout2_ee6yw_9",contentHeader:"_contentHeader_ee6yw_42"},Ql={content:"_content_1rbrt_1"},Gl=({children:e,className:n=""})=>t.jsx("div",{className:`content-layout-2 ${Ql.content} ${n}`,children:e}),Ht={container:"_container_8w9ca_1",note:"_note_8w9ca_9",commercial:"_commercial_8w9ca_49",commercialContent:"_commercialContent_8w9ca_66",complement:"_complement_8w9ca_82"},Hl=e=>t.jsxs("section",{className:Ht.container,children:[t.jsx("div",{className:Ht.note,children:e.children}),t.jsx("div",{className:Ht.commercial,children:t.jsxs("div",{className:Ht.commercialContent,children:[e.slug==="liveblogs"&&t.jsx(_s,{itemList:e.itemList}),e.bannerTop,t.jsx(fn,{content:e.ranking,title:e.texts.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),t.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),t.jsx("div",{className:Ht.complement,children:e.complement})]}),zl=e=>{const n={...e.news[0],config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return t.jsx("div",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-image-description-display":"none",...e.headerSectionStyles?.liveblogs},children:t.jsx(Cs,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return t.jsx("div",{className:ya.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:t.jsx(ct,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths})})}},Ye={content:"_content_yx2rc_1",contentWithinCard:"_contentWithinCard_yx2rc_7",contentDate:"_contentDate_yx2rc_13",dateInfo:"_dateInfo_yx2rc_20",dot:"_dot_yx2rc_30",contentTitle:"_contentTitle_yx2rc_38",contentTextList:"_contentTextList_yx2rc_47",contentButton:"_contentButton_yx2rc_55",linkStyled:"_linkStyled_yx2rc_61"},Fl={content:"_content_ifkxj_1"},Vl=e=>t.jsx("section",{className:Fl.content,id:e.id,children:e.children}),Wl=async(e,n,a)=>{if(!a)return e;const o=/<span data-src="(.*?)"><\/span>/g,s=[...e.matchAll(o)];let r=e;for(const i of s){const c=i[0],d=i[1]??"";let l;if(a.forEach(S=>{Array.isArray(S)&&(l=S.find(_=>d.replaceAll("/","|").includes(_?.info.link.internal||"")))}),!l){r=r.replace("ck-related-news","ck-related-news-empty");break}const h=l.preview?.sizes?.[0],u=h?await de(h.url):"",f=l.info.section?.url??"#",g=l.info.section?.name??"Sección",m=l.info.link?.url??"#",p=l.main?.title.article??"Título",A=(await Promise.all(l.preview?.sizes?.map(async S=>{const _=await de(S.url);return S.width<200?`<source srcset="${_}" media="(width < 750px)"/>`:`<source srcset="${_}" media="(width >= 750px)"/>`}))).reduce((S,_)=>S+=_,""),b=`
|
|
49
|
+
h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})}),ul=e=>t.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),t.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]}),fl=e=>t.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),t.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]}),ml=e=>t.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})}),gl=e=>t.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})}),pl={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(ml,{className:e}),solid:e=>t.jsx(hl,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(Pt,{className:e}),solid:e=>t.jsx(Pt,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(is,{className:e}),solid:e=>t.jsx(rs,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(ul,{className:e}),solid:e=>t.jsx(fl,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(gn,{className:e}),solid:e=>t.jsx(gn,{className:e})}}};function ws({noteShare:e}){const n=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?t.jsxs("div",{className:le.socialNetworkSection,children:[e.options?.map(a=>{const o=pl[a];if(!o)return null;const s=e.variant==="outline"?o.icon.outline:o.icon.solid,r=o.url(n);return t.jsx(P,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${le.socialButton} ${le[`${a.toLowerCase()}Button`]??""} ${le[`${a.toLowerCase()}Styled`]}`,children:s("")},a)}),t.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[le.clipboardButton,"clipbtn-id"].join(" "),children:t.jsx(cs,{})}),t.jsx("button",{type:"button","aria-label":"share",className:[le.clipboardButton,"sharebtn-id"].join(" "),children:t.jsx(gl,{})})]}):null}const Ge={content:"_content_r1co8_1",videoContent:"_videoContent_r1co8_20",articleSection:"_articleSection_r1co8_27",title:"_title_r1co8_42",article:"_article_r1co8_27",correspondent:"_correspondent_r1co8_75",iframeStyled:"_iframeStyled_r1co8_84",contentFrame:"_contentFrame_r1co8_94"},Al=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${ke(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:Ge.content,children:t.jsx(wt,{children:t.jsxs("div",{className:Ge.videoContent,children:[t.jsx("p",{className:Ge.title,children:e.video.main.title}),e.type==="vy"&&t.jsx("iframe",{className:Ge.iframeStyled,src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:Ge.iframeStyled,src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:Ge.contentFrame,dangerouslySetInnerHTML:{__html:e.video.main.code}}),t.jsxs("div",{className:Ge.articleSection,children:[t.jsx("p",{className:Ge.article,children:xe(e.video.main.description)}),t.jsx("p",{className:Ge.correspondent,children:n()})]})]})})})},sa={content:"_content_wxhkd_1",linkStyled:"_linkStyled_wxhkd_9"},Ot=e=>{const{currentPage:n,showNext:a,maxPages:o,pathname:s,query:r}=e,i=(c,d,l)=>{let h="";const u=d.split("/");return u.indexOf("page")!==-1&&u.splice(h.indexOf("page")-1,u.length-1),u.forEach((f,g)=>{g!==0&&(h+=`/${f}`)}),c==="next"?h+=`/page/${n+1}${l?`?query=${l}`:""}`:h+=`/page/${n-1}${l?`?query=${l}`:""}`};return(n>1||a&&n<o)&&t.jsxs("section",{className:sa.content,children:[n>1&&t.jsx(P,{className:sa.linkStyled,href:i("prev",s||"",r||""),children:e.texts.prevButtonText??"Anterior"}),a&&n<o&&t.jsx(P,{className:sa.linkStyled,href:i("next",s||"",r||""),children:e.texts.nextButtonText??"Siguiente"})]})},pn={content:"_content_zal5g_1",contentGrid:"_contentGrid_zal5g_8",contentGrid4:"_contentGrid4_zal5g_17",contentGrid3:"_contentGrid3_zal5g_21"},An=e=>{const{grid:n=3}=e;return t.jsxs("section",{className:`${pn.content}`,children:[t.jsx("div",{className:`${pn.contentGrid} ${e.className?e.className:""} ${n===3?pn.contentGrid3:pn.contentGrid4} news-content`,children:e.children}),t.jsx(t.Fragment,{children:e.paginatorComponent})]})},Dt={content:"_content_15x47_1",newsDescription:"_newsDescription_15x47_15",image:"_image_15x47_41"},Oe=e=>{const{main:n,authors:a,info:o,preview:s,share:r,isVideo:i,config:c,overImage:d="default",isTitle:l,priorityHigh:h=!1,isLarge:u,paths:f,keywords:g}=e;return t.jsxs("section",{className:Dt.content,style:{...e.customSectionCardStyles},children:[t.jsx(P,{"aria-label":e.main?.title?.section,className:Dt.image,title:n?.title?.section,href:o?.link?.url,target:o?.link?.target,children:t.jsx(_e,{preview:s,isVideo:i,isLarge:u,priorityHigh:h})}),t.jsx("div",{className:Dt.newsDescription,children:t.jsx(ct,{main:n,authors:a,info:o,preview:s,share:r,config:c,overImage:d,isTitle:l,paths:f,keywords:g})})]})},Xe={content:"_content_14xk9_1",boxInformation:"_boxInformation_14xk9_12",titleGradient:"_titleGradient_14xk9_30",sectionDescription:"_sectionDescription_14xk9_58",articule:"_articule_14xk9_83",linkStyled:"_linkStyled_14xk9_116"},Mt=e=>{const{isVideo:n,info:a,main:o,overImage:s="default",titleGradient:r=!1}=e,{SHOW_TAG_BY_SECTION:i}=K(),c=()=>{if(i&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const d=e.keywords.tags[0],l=d.name;return d.approved?t.jsx("h3",{children:t.jsx(P,{"aria-label":l,className:Xe.sectionDescription,href:at(d,e.paths),children:l})}):t.jsx("div",{className:Xe.sectionDescription,children:l})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(P,{className:Xe.sectionDescription,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return t.jsxs("section",{className:Xe.content,children:[t.jsx(P,{title:o?.title?.section,href:a.link.url,target:a.link.target,children:t.jsx(_e,{preview:e.preview,isVideo:n})}),t.jsxs("div",{className:[Xe.boxInformation,r?Xe.titleGradient:""].join(" "),style:{width:s!=="default"?"90%":"",left:s==="left"?0:s==="right"?"calc(10% - 1px)":"auto",top:s!=="default"?"-1rem":""},children:[t.jsx(c,{}),t.jsx("h2",{className:Xe.articule,children:t.jsx(P,{className:Xe.linkStyled,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},bs={content:"_content_kro73_1",contentLayout:"_contentLayout_kro73_5"},ra=e=>t.jsx("div",{className:bs.content,children:t.jsx(wt,{className:`${bs.contentLayout} ${e.className}`,children:e.children})}),vt={content:"_content_1nqra_1",before:"_before_1nqra_11",textContent:"_textContent_1nqra_22",title:"_title_1nqra_37",description:"_description_1nqra_46",linkStyled:"_linkStyled_1nqra_57"},yl=e=>{const n=e.logo;return t.jsxs("section",{className:vt.content,children:[e.backgroundImgURL&&t.jsx("img",{className:vt.before,src:e.backgroundImgURL,alt:""}),t.jsxs("div",{className:`${vt.textContent} error-text-content`,children:[t.jsx(n,{}),t.jsx("p",{className:vt.title,children:e.title}),t.jsx("p",{className:vt.description,children:e.description}),t.jsx(P,{className:vt.linkStyled,href:"/",children:e.buttonText??"Inicio"})]})]})},jt={content:"_content_zxcog_1",contentLabel:"_contentLabel_zxcog_8",label:"_label_zxcog_13",required:"_required_zxcog_22",input:"_input_zxcog_28"},wl=e=>t.jsxs("div",{className:jt.content,children:[t.jsxs("div",{className:jt.contentLabel,children:[t.jsx("label",{className:jt.label,children:e.label}),e.required&&t.jsx("span",{className:jt.required,children:"*"})]}),t.jsx("input",{className:jt.input,...e})]}),$t={content:"_content_zgx5w_1",contentLabel:"_contentLabel_zgx5w_8",label:"_label_zgx5w_13",required:"_required_zgx5w_22",input:"_input_zgx5w_28"},bl=e=>t.jsxs("div",{className:$t.content,children:[t.jsxs("div",{className:$t.contentLabel,children:[t.jsx("label",{className:$t.label,children:e.label}),e.required&&t.jsx("span",{className:$t.required,children:"*"})]}),t.jsxs("select",{className:$t.input,...e,children:[t.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((n,a)=>t.jsx("option",{value:n.value,children:n.label},a))]})]}),ia={content:"_content_1mi9t_1",label:"_label_1mi9t_8",input:"_input_1mi9t_17"},vl=e=>t.jsxs("div",{className:ia.content,children:[t.jsx("label",{className:ia.label,children:e.label}),t.jsx("textarea",{className:ia.input,...e})]}),Re={boxInformation:"_boxInformation_achvw_1",textBox:"_textBox_achvw_30",contentBox:"_contentBox_achvw_40",liveBox:"_liveBox_achvw_50",dot:"_dot_achvw_72",sectionDescription:"_sectionDescription_achvw_97",articule:"_articule_achvw_110",description:"_description_achvw_137"},yn={content:"_content_8ehij_1",description:"_description_8ehij_23"},vs=e=>{let n="";return e.preview.description&&(n=e.preview.description),e.preview.copyright&&(n=`${n} ${e.preview.copyright}`),e.preview.photographer&&(n=`${n} ${e.preview.photographer}`),t.jsxs("div",{className:yn.content,children:[t.jsx(_e,{preview:e.preview,isLarge:!0,priorityHigh:!0}),n&&t.jsx("div",{className:yn.description,children:n})]})},Cs=e=>t.jsx(t.Fragment,{children:t.jsxs("div",{className:Re.boxInformation,children:[t.jsx(vs,{preview:e.preview}),t.jsxs("div",{className:Re.textBox,children:[t.jsxs("div",{className:Re.contentBox,children:[e?.info?.section&&t.jsx(P,{className:Re.sectionDescription,href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsxs("div",{className:Re.liveBox,children:[t.jsx("span",{className:Re.dot}),t.jsx("p",{children:"EN VIVO"})]})]}),t.jsx("h1",{className:Re.articule,children:e.main?.title?.section}),e.config?.showsubtitle&&t.jsx("div",{className:Re.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),wn={content:"_content_oipiy_1",contentLine:"_contentLine_oipiy_17",contentText:"_contentText_oipiy_24",dateLink:"_dateLink_oipiy_37"},_s=e=>t.jsx("section",{className:wn.content,children:e.itemList[0]?.list.items.map((n,a)=>t.jsxs("div",{className:wn.contentLine,children:[t.jsx(P,{className:wn.dateLink,href:`#item-${a+1}`,children:Ka(n.date)}),t.jsx("div",{className:wn.contentText,children:(e.itemList[0]?.list.integrated,n.title)})]},a))}),Se={content:"_content_1rsue_1",contentInfo:"_contentInfo_1rsue_11",imageContainer:"_imageContainer_1rsue_19",imageStyled:"_imageStyled_1rsue_28",contentIconStyled:"_contentIconStyled_1rsue_39",name:"_name_1rsue_65",email:"_email_1rsue_74",description:"_description_1rsue_90",contenSocialNetwork:"_contenSocialNetwork_1rsue_102",socialIcon:"_socialIcon_1rsue_112"},Ss=async e=>{const{autor:n,autorIcon:a}=e,o=a,s=n?.info?.image?.sizes?.[0]?.url??"",r=n?.info?.fullname??"",i=n?.info?.email??"",c=n?.addtional?.USER_SHOWEMAIL??!1,d=n?.addtional?.USER_SHOWBIO??!1,l=n?.addtional?.USER_MIBIO??"",h=n?.addtional?.USER_USERFB??"",u=n?.addtional?.USER_USERIG??"",f=n?.addtional?.USER_USERTWT??"",g=n?.addtional?.USER_USERLIN??"";return t.jsx("section",{className:`${Se.content} ${e.className?e.className:""}`,children:t.jsxs("div",{className:Se.contentInfo,children:[s?t.jsx("div",{className:`${Se.imageContainer} sass-image-autor-wrapper`,children:t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"",className:Se.imageStyled,src:await de(s)})}):t.jsx("div",{className:`${Se.contentIconStyled} sass-image-autor-wrapper`,children:t.jsx(o,{})}),t.jsx("h1",{className:Se.name,children:r}),c&&t.jsx("p",{className:Se.email,children:i}),d&&t.jsx("p",{className:Se.description,children:l}),t.jsxs("div",{className:Se.contenSocialNetwork,children:[h&&t.jsx("a",{href:h,target:"_blank",rel:"noreferrer",children:t.jsx(aa,{className:Se.socialIcon})}),u&&t.jsx("a",{href:u,target:"_blank",rel:"noreferrer",children:t.jsx(oa,{className:Se.socialIcon})}),f&&t.jsx("a",{href:f,target:"_blank",rel:"noreferrer",children:t.jsx(Pt,{className:Se.socialIcon})}),g&&t.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:t.jsx(gn,{className:Se.socialIcon})})]})]})})},Ne={content:"_content_18ozj_1",contentInfo:"_contentInfo_18ozj_13",contentAuthor:"_contentAuthor_18ozj_26",imageStyled:"_imageStyled_18ozj_33",contentIconStyled:"_contentIconStyled_18ozj_42",name:"_name_18ozj_64",email:"_email_18ozj_72",description:"_description_18ozj_82",contenSocialNetwork:"_contenSocialNetwork_18ozj_93",socialIcon:"_socialIcon_18ozj_103"},Ns=async e=>{const{autor:n,autorIcon:a}=e,o=a,s=n?.info?.image?.sizes?.[0]?.url??"",r=n?.info?.fullname??"",i=n?.info?.email??"",c=n?.addtional?.USER_SHOWEMAIL??!1,d=n?.addtional?.USER_SHOWBIO??!1,l=n?.addtional?.USER_MIBIO??"",h=n?.addtional?.USER_USERFB??"",u=n?.addtional?.USER_USERIG??"",f=n?.addtional?.USER_USERTWT??"",g=n?.addtional?.USER_USERLIN??"";return t.jsx("section",{className:Ne.content,children:t.jsxs("div",{className:Ne.contentInfo,children:[s?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Ne.imageStyled,src:await de(s)}):t.jsx("div",{className:Ne.contentIconStyled,children:t.jsx(o,{})}),t.jsxs("div",{className:Ne.contentAuthor,children:[t.jsx("h1",{className:Ne.name,children:r}),c&&t.jsx("p",{className:Ne.email,children:i}),d&&t.jsx("p",{className:Ne.description,children:l}),t.jsxs("div",{className:Ne.contenSocialNetwork,children:[h&&t.jsx("a",{href:h,target:"_blank",rel:"noreferrer",children:t.jsx(aa,{className:Ne.socialIcon})}),u&&t.jsx("a",{href:u,target:"_blank",rel:"noreferrer",children:t.jsx(oa,{className:Ne.socialIcon,style:{padding:"4px"}})}),f&&t.jsx("a",{href:f,target:"_blank",rel:"noreferrer",children:t.jsx(Pt,{className:Ne.socialIcon})}),g&&t.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:t.jsx(gn,{className:Ne.socialIcon})})]})]})]})})},Es={content:"_content_jg6i2_1",bannerSection:"_bannerSection_jg6i2_25"},ca=e=>t.jsxs("section",{className:Es.content,children:[e.children,t.jsxs("div",{className:Es.bannerSection,children:[e.bannerTop,t.jsx(fn,{content:e.ranking,title:e.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),e.banner]})]}),Le={content:"_content_7v98f_1",header:"_header_7v98f_30",videos:"_videos_7v98f_56",videoContent:"_videoContent_7v98f_63",articleSection:"_articleSection_7v98f_70",contentLayoutVideoSection:"_contentLayoutVideoSection_7v98f_85",sectionVideoList:"_sectionVideoList_7v98f_93",iframeStyled:"_iframeStyled_7v98f_166",contentFrame:"_contentFrame_7v98f_172"},la={content:"_content_1dj0q_1",linkImage:"_linkImage_1dj0q_12",playStyled:"_playStyled_1dj0q_19"},Cl=async e=>{const n=un(),a={...e,main:{...e.main,title:{...e.main.title,article:xe(e.main.title.article,60)}}};return e&&e.info?t.jsxs("section",{className:la.content,children:[t.jsx("a",{className:la.linkImage,target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx("img",{src:await de(e.preview.sizes[0]?.url||"")}),t.jsx(n,{className:`${la.playStyled} saas-image-play-icon`})]})}),t.jsx("div",{children:t.jsx(ct,{...a,paths:e.paths})})]}):null},_l=e=>t.jsx("div",{className:Le.content,children:t.jsxs(wt,{className:Le.contentLayoutVideoSection,children:[t.jsxs("a",{className:Le.header,href:e.goBackLink??"/videos",children:[t.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"white"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),t.jsxs("div",{className:Le.videos,children:[t.jsxs("div",{className:Le.videoContent,style:e.mainVideoStyles,children:[e.type==="vy"&&t.jsx("iframe",{className:Le.iframeStyled,src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:Le.iframeStyled,src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:Le.contentFrame,dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),t.jsx("div",{className:Le.articleSection,children:t.jsx(ct,{isTitle:!0,cutSubtitle:!1,...mt({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description),paths:e.paths})})]}),t.jsxs("div",{className:Le.sectionVideoList,style:e.listVideoStyles,children:[e.banner&&t.jsx(fe,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&t.jsx("h2",{className:`${Le.relatedTitle} saas-video-related-title`,children:e.relatedName}),Array.isArray(e.videoList)&&e.videoList.map((n,a)=>E.createElement(Cl,{...mt(n,!0,!1),key:a,paths:e.paths}))]})]})]})}),He={content:"_content_gcte1_1",titleContent:"_titleContent_gcte1_24",title:"_title_gcte1_24",startLine:"_startLine_gcte1_88",line:"_line_gcte1_93",bottomLine:"_bottomLine_gcte1_99",childrenContent:"_childrenContent_gcte1_118",readMore:"_readMore_gcte1_131"},ue=E.forwardRef((e,n)=>{const{isTitle:a=!1,isOpinion:o=!1}=e,s=a?t.jsx("h1",{className:He.title,children:e.title}):t.jsx("h2",{className:He.title,children:e.title});return t.jsxs("section",{className:He.content,children:[e.title&&t.jsxs("div",{className:[He.titleContent,e.className??""].join(" "),"data-after":`${o}`,children:[t.jsx("hr",{className:He.startLine}),e.titleUrl?t.jsx(P,{href:e.titleUrl,children:s}):s,t.jsx("hr",{className:He.line}),e.titleUrl&&t.jsx(P,{className:He.readMore,href:e.titleUrl?.toString()??""})]}),e.title&&t.jsx("hr",{className:[He.bottomLine,e.className??""].join(" ")}),t.jsx("div",{className:He.childrenContent,ref:n,children:e.children})]})}),da=e=>t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),bn=e=>t.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:e.fill??"#7B888A"})}),ce={drawerStyled:"_drawerStyled_tm61w_1",sidebarCustom:"_sidebarCustom_tm61w_6",accordionStyled:"_accordionStyled_tm61w_24",accordionHeading:"_accordionHeading_tm61w_35",accordionSummeryStyled:"_accordionSummeryStyled_tm61w_44",linkStyled:"_linkStyled_tm61w_72",subLinkStyled:"_subLinkStyled_tm61w_92",inputContent:"_inputContent_tm61w_114",buttonContent:"_buttonContent_tm61w_115",inputStyled:"_inputStyled_tm61w_125",buscar:"_buscar_tm61w_141",buttonStyled:"_buttonStyled_tm61w_170",accordionDetailsStyled:"_accordionDetailsStyled_tm61w_185",footerSlider:"_footerSlider_tm61w_200",socialMedia:"_socialMedia_tm61w_211",copyRights:"_copyRights_tm61w_230",icon:"_icon_tm61w_241"},Sl=({sidebar:e,socials:n,copyrigth:a,sidebarExtra:o,searchKeyWord:s})=>t.jsxs("aside",{className:ce.drawerStyled,id:"sidebar-expandable",style:{"--header-icons":"var(--search-input-icons)"},children:[t.jsx("input",{type:"checkbox",id:"side-bar-state"}),t.jsxs("section",{className:ce.sidebarCustom,children:[t.jsx("div",{className:ce.buttonContent,children:t.jsx("label",{className:ce.buttonStyled,htmlFor:"side-bar-state",children:t.jsx(bt,{className:ce.icon})})}),t.jsx("div",{className:ce.inputContent,children:t.jsxs("form",{className:ce.inputStyled,action:"/buscar",method:"GET",children:[t.jsx("input",{className:ce.buscar,type:"text",name:"query",placeholder:s+"..."}),t.jsx("button",{type:"submit",style:{background:"transparent",border:"none",outline:"none",padding:0,margin:0},children:t.jsx(da,{color:"var(--search-input-icons)"})})]})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[t.jsxs("div",{children:[o,e.map((r,i)=>t.jsxs("div",{className:ce.accordionStyled,children:[t.jsx("input",{type:"checkbox",style:{display:"none"},id:"accordion_"+i}),t.jsx("h3",{className:ce.accordionHeading,children:Array.isArray(r.subitem)?t.jsxs("label",{className:ce.accordionSummeryStyled,htmlFor:"accordion_"+i,children:[r.link?t.jsx(P,{className:`${ce.linkStyledAccordion} ${ce.linkStyled}`,href:r.link?r.link:void 0,target:r.target,children:r.description}):t.jsx("div",{children:r.description}),t.jsx(bn,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):t.jsx(P,{className:ce.linkStyled,href:r.link?r.link:void 0,target:r.target,children:r.description})}),Array.isArray(r.subitem)&&t.jsx("div",{className:ce.accordionDetailsStyled,style:{"--max-height":r.subitem.length*45+"px"},children:r.subitem.map((c,d)=>t.jsx(P,{className:ce.subLinkStyled,href:c.link?c.link:void 0,target:c.target,children:c.description},d))})]},i))]}),t.jsxs("div",{className:ce.footerSlider,children:[t.jsx("div",{className:ce.socialMedia,children:Object.keys(n).map(r=>n[r]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":n[r].title+" link",className:ce.linkSocialNetwork,href:n[r].url,children:mn[r]({className:ce.icon})},r))}),t.jsx("p",{className:ce.copyRights,children:a})]})]})]})]}),Ts=e=>t.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color}),t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color})]}),Qt={content:"_content_y5b1f_1",chipStyled:"_chipStyled_y5b1f_17",headLine:"_headLine_y5b1f_17",live:"_live_y5b1f_25",closeLiveStyled:"_closeLiveStyled_y5b1f_87"},Is=e=>{const{alertZone:n,id:a="close-alert"}=e,o=()=>t.jsx(P,{className:Qt.headLine,href:n?.data[0]?.info.link.url,target:n?.data[0]?.info.link.target,title:n?.data[0]?.main.title.home,children:n?.data[0]?.main?.title.home??""});return t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(n&&n?.data&&n?.data[0]?.main?.title.home)}),n&&n?.data&&n?.data[0]?.main?.title.home&&t.jsxs("div",{id:"alert-chip",className:Qt.content,style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[t.jsxs("div",{className:Qt.live,children:[t.jsx("div",{className:Qt.chipStyled,children:n?.entity?.description}),e.forceShow&&t.jsx(o,{}),t.jsx("label",{htmlFor:a,children:t.jsx(bt,{className:Qt.closeLiveStyled})})]}),t.jsx(o,{})]})]})},ze={content:"_content_18yq5_1",linkStyled:"_linkStyled_18yq5_14",linkSocialNetwork:"_linkSocialNetwork_18yq5_28",title:"_title_18yq5_49",tabs:"_tabs_18yq5_60",socialNetwork:"_socialNetwork_18yq5_68",icon:"_icon_18yq5_78",facebook:"_facebook_18yq5_84",youtube:"_youtube_18yq5_88",x:"_x_18yq5_92",instagram:"_instagram_18yq5_96",gnews:"_gnews_18yq5_100",tiktok:"_tiktok_18yq5_104",whatsapp:"_whatsapp_18yq5_108"},Nl=e=>{const{cintillo:n,tapeTitle:a,socials:o}=e,s="",r=n?.findIndex(i=>i.link===s)??0;return(Array.isArray(n)||e.socialIcons)&&t.jsxs("section",{className:ze.content,children:[Array.isArray(n)&&t.jsxs("div",{className:`${ze.tabs} header-page-tape-content`,children:[a!==""&&t.jsx("p",{className:ze.title,children:`${a}`}),n&&n[r]&&t.jsx(P,{className:ze.linkStyled,target:n[r]?.target,href:n[r]?.link,style:{color:n[r]?.link===s?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:n[r]?.link===s?"700":"400"},children:n[r]?.description},r),n&&n.map((i,c)=>{if(c!==r)return t.jsx(P,{className:ze.linkStyled,href:i?.link,style:{color:i?.link===s?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===s?"700":"400"},children:i?.description},c)})]}),t.jsx("div",{className:ze.socialNetwork,children:Object.keys(o).map(i=>o[i]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":o[i].title+" link",className:ze.linkSocialNetwork,href:o[i].url,children:mn[i]({className:[ze.icon,ze[i]??""].join(" ")})},i))})]})},Ie={headerStyled:"_headerStyled_6yw62_1",headerContent:"_headerContent_6yw62_14",iconContent:"_iconContent_6yw62_25",menuButton:"_menuButton_6yw62_34",logoStyled:"_logoStyled_6yw62_66",buttonSection:"_buttonSection_6yw62_94",buttonSectionSearch:"_buttonSectionSearch_6yw62_109",headLineContent:"_headLineContent_6yw62_131",headLineTitle:"_headLineTitle_6yw62_144",headLine:"_headLine_6yw62_131",hasAlertZone:"_hasAlertZone_6yw62_197"},El=e=>{const{alertZone:n}=e;return t.jsxs("header",{className:Ie.headerStyled,children:[e.socialIcons&&t.jsx(Nl,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),t.jsxs("div",{className:`${Ie.headerContent} center-mobile-header-icon`,children:[t.jsx(na,{id:"button-app",className:Ie.menuButton,toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:t.jsx(Ts,{className:Ie.startIcon,color:"var(--header-icons)",width:27,height:27})}),t.jsx("div",{className:Ie.iconContent,children:t.jsx(P,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:E.createElement("span",{className:Ie.logoStyled},e.icon)})}),!e.showAlertPop&&n?.data&&t.jsxs("div",{className:Ie.headLineContent,children:[t.jsx("div",{className:`${Ie.headLineTitle} headLineTitle`,children:n.entity.description?`${n.entity.description}`:""}),t.jsx(P,{className:Ie.headLine,href:n.data[0]?.info.link.url,target:n.data[0]?.info.link.target,title:n.data[0]?.main.title.home,children:xe(n.data[0]?.main.title.home??"",120)})]}),t.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:[Ie.buttonSection,n?.data?Ie.hasAlertZone:"","search-button"].join(" "),children:[t.jsx(P,{href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:`${Ie.buttonSectionSearch} search-button-icon`,style:{display:"flex"},children:t.jsx(da,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&t.jsx(Is,{alertZone:n,forceShow:e.showAlertPop})]})},Fe={ul:"_ul_j3aqc_1",li:"_li_j3aqc_10",liBefore:"_liBefore_j3aqc_18",ulContent:"_ulContent_j3aqc_33",contentModal:"_contentModal_j3aqc_44",linkStyled:"_linkStyled_j3aqc_56",itemLink:"_itemLink_j3aqc_81"},Tl=e=>{const{items:n}=e;return t.jsx("ul",{className:Fe.ul,children:n.map((a,o)=>t.jsxs("li",{className:`${Fe.liBefore} ${Fe.li}`,children:[a.link?t.jsxs(P,{"aria-label":a.description,className:Fe.linkStyled,href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&t.jsx(bn,{})]}):t.jsxs("span",{"aria-label":a.description,className:Fe.linkStyled,children:[a.description,Array.isArray(a.subitem)&&t.jsx(bn,{})]}),Array.isArray(a.subitem)&&t.jsx("ul",{className:Fe.ulContent,children:t.jsx("div",{className:Fe.contentModal,children:a.subitem.map((s,r)=>t.jsx("li",{className:Fe.li,children:t.jsx(P,{className:Fe.itemLink,"aria-label":s.description,href:s.link?s.link:void 0,target:s.target,children:s.description})},r))})})]},o))})},pe={headerStyled:"_headerStyled_1xeaj_1",headerContent:"_headerContent_1xeaj_23",menuButtonSection:"_menuButtonSection_1xeaj_33",menuButton:"_menuButton_1xeaj_33",buttonSection:"_buttonSection_1xeaj_84",buttonSectionSearch:"_buttonSectionSearch_1xeaj_101",hasAlertZone:"_hasAlertZone_1xeaj_112",buttonText:"_buttonText_1xeaj_131",logoContent:"_logoContent_1xeaj_141",logoStyled:"_logoStyled_1xeaj_149",headLineContent:"_headLineContent_1xeaj_173",headLineTitle:"_headLineTitle_1xeaj_188",menuSection:"_menuSection_1xeaj_204",headLine:"_headLine_1xeaj_173",line:"_line_1xeaj_256"},Il=e=>{const{menu:n,alertZone:a}=e;return t.jsx("header",{className:pe.headerStyled,style:{top:e.cintillo||e.socialIcons?40:0},children:t.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:[pe.headerContent,a?.data?pe.hasAlertZone:""].join(" "),children:[t.jsx("div",{className:pe.menuButtonSection,children:t.jsxs(na,{className:pe.menuButton,id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[t.jsx(Ts,{color:"var(--header-icons)",width:27,height:27}),t.jsx("p",{className:pe.buttonText,style:{lineHeight:0},children:e.menuText})]})}),t.jsx("div",{className:pe.logoContent,children:t.jsx(P,{href:"/","aria-label":"Home",className:"header-logo-link",children:E.createElement("span",{className:`${pe.logoStyled}`},e.icon)})}),t.jsxs("div",{className:pe.buttonSection,children:[t.jsx(P,{href:e.searchLink?e.searchLink:"/buscar",style:{display:"flex"},className:pe.buttonSectionSearch,"aria-label":e.searchKeyWord,children:t.jsx(da,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?t.jsxs("div",{className:pe.headLineContent,children:[t.jsx("p",{className:`${pe.headLineTitle} headLineTitle`,children:a.entity.description?`${a.entity.description}`:""}),t.jsx(P,{className:pe.headLine,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:xe(a.data[0]?.main.title.home??"",120)})]}):t.jsx("div",{className:pe.line}),t.jsx("div",{className:pe.menuSection,style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(n)&&t.jsx(Tl,{items:n})})]})})},ha={childrenContent:"_childrenContent_wqlb4_1",childrenContentAux:"_childrenContentAux_wqlb4_12",op2:"_op2_wqlb4_25"},kl=e=>{const{alertZone:n,children:a,sidebar:o}=e;return t.jsxs(t.Fragment,{children:[t.jsx(El,{...e}),!e.showOnlyStickyHeader&&t.jsx(Il,{...e}),t.jsxs("div",{className:[ha.childrenContent,e.showAlertPop?ha.op2:"",n?.data?ha.childrenContentAux:""].join(" "),style:e.showOnlyStickyHeader?{"--hasAlertMargin":"3.6rem !important"}:{},id:"content-layout",children:[e.showAlertPop&&t.jsx(Is,{alertZone:n,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]}),t.jsx(Sl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:o,socials:e.socials,copyrigth:e.copyrigth})]})},Ct={content:"_content_16ydf_1",tags:"_tags_16ydf_10",chipStyled:"_chipStyled_16ydf_20",tagLink:"_tagLink_16ydf_47",tagStyled:"_tagStyled_16ydf_53"},ks=e=>t.jsx("section",{className:Ct.content,children:Array.isArray(e.tags)&&t.jsxs("div",{className:Ct.tags,children:[t.jsx("p",{className:Ct.tagStyled,children:e.title?e.title:"Tags:"}),e.tags.map((n,a)=>n.approved?t.jsx(P,{href:at(n,e.paths),children:t.jsx("div",{className:`${Ct.chipStyled} ${Ct.tagLink}`,children:n.name})},a):t.jsx("div",{className:Ct.chipStyled,children:n.name},a))]})}),De={contentBox:"_contentBox_1rkkg_1",content:"_content_1rkkg_1",imageStyled:"_imageStyled_1rkkg_16",contentIconStyled:"_contentIconStyled_1rkkg_23",avatarContent:"_avatarContent_1rkkg_43",journalistSection:"_journalistSection_1rkkg_50",journalistInfo:"_journalistInfo_1rkkg_56",socialNetworkSection:"_socialNetworkSection_1rkkg_70",article:"_article_1rkkg_83"},xs=async e=>{const{autor:n}=e,a=n?.addtional?.USER_SHOWBIO??!1,o=n?.info?.name??"",s=n?.info?.fullname??"",r=n?.info?.image?.sizes?.[0]?.url??"",i=n?.addtional?.USER_MIBIO??"",c=n?.addtional?.USER_USERFB??"",d=n?.addtional?.USER_USERIG??"",l=n?.addtional?.USER_USERTWT??"",h=n?.addtional?.USER_USERLIN??"";return a&&t.jsx("section",{className:De.contentBox,children:t.jsxs("div",{className:De.content,children:[t.jsxs("div",{className:De.avatarContent,children:[t.jsx(P,{className:De.journalistInfo,href:`/${e.paths.autor}/${o}`,children:r?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor-image",className:De.imageStyled,src:await de(r)}):t.jsx("div",{className:De.contentIconStyled,children:e.autorIcon()})}),t.jsxs("section",{className:De.journalistSection,children:[t.jsx("h3",{className:De.journalistInfo,children:t.jsx(P,{href:`/${e.paths.autor}/${o}`,children:s})}),t.jsxs("section",{className:De.socialNetworkSection,children:[c&&t.jsx("a",{href:c,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),d&&t.jsx("a",{href:d,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[t.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),t.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),t.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_281_2357",children:t.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),l&&t.jsx("a",{href:l,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),h&&t.jsx("a",{href:h,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})})]})]})]}),a&&t.jsx("p",{className:De.article,dangerouslySetInnerHTML:{__html:`${i} <a aria-label="${o}" href="/${e.paths.autor}/${o}">${e.texts.authorViewMore??"Ver más"}</a>`}})]})})},et={content:"_content_vmnac_1",imageStyled:"_imageStyled_vmnac_20",contentIconStyled:"_contentIconStyled_vmnac_21",contentCard:"_contentCard_vmnac_31",contentInfo:"_contentInfo_vmnac_70",fullName:"_fullName_vmnac_76",LearnMoreLink:"_LearnMoreLink_vmnac_83"},Us=async e=>{const{news:n,texts:a}=e;return n.config?.showauthor&&t.jsx("div",{className:et.content,children:Array.isArray(n.authors)&&n.authors?.map(async o=>t.jsxs("div",{className:et.contentCard,children:[o.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:et.imageStyled,src:await de(o.image.sizes[0]?.url||"")},o.fullname):t.jsx("div",{className:et.contentIconStyled,children:e.autorIcon},o.fullname),t.jsxs("div",{className:et.contentInfo,children:[o.internaluser?t.jsx("a",{className:et.fullName,href:`/${e.paths.autor}/${o.name}`,children:o.fullname}):t.jsx("p",{className:et.fullName,children:o.fullname}),o.internaluser&&t.jsx("a",{className:et.LearnMoreLink,href:`/${e.paths.autor}/${o.name}`,children:a.JournalistGroupLink})]})]},`author-${o.firstname}`))})},Ee={content:"_content_1j0pj_1",contentNews:"_contentNews_1j0pj_10",linkTitle:"_linkTitle_1j0pj_27",tag:"_tag_1j0pj_35",tagmx:"_tagmx_1j0pj_55",titular:"_titular_1j0pj_70",correspondent:"_correspondent_1j0pj_85",correspondentLink:"_correspondentLink_1j0pj_96",description:"_description_1j0pj_107"},_t=e=>{const{SHOW_TAG_BY_SECTION:n}=K(),a=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${ke(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return ke(e.info?.date?.modified)},o=()=>{if(n&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?t.jsxs("h3",{children:[" ",t.jsx(P,{"aria-label":i,className:Ee.tagmx,href:at(r,e.paths),children:i})]}):t.jsx("div",{className:Ee.tagmx,children:i})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(P,{className:Ee.tagmx,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},s=()=>{if(n&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?t.jsx("h3",{children:t.jsx(P,{"aria-label":i,className:Ee.tag,href:at(r,e.paths),children:i})}):t.jsx("div",{className:Ee.tag,children:i})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(P,{className:Ee.tag,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return t.jsxs("section",{className:`${Ee.content} destacado-super-content`,children:[t.jsx(P,{href:e?.info?.link?.url,target:e?.info?.link?.target,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:t.jsx(_e,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),t.jsxs("div",{className:Ee.contentNews,style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[t.jsx(o,{}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(s,{}),t.jsx(P,{className:Ee.linkTitle,href:e?.info?.link?.url,target:e?.info?.link?.target,children:t.jsx("h1",{className:Ee.titular,style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&t.jsx("div",{className:Ee.description,dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&t.jsx(t.Fragment,{children:e.authors[0]?.internaluser?t.jsx(P,{href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:Ee.correspondent,children:a()}):t.jsx("p",{className:Ee.correspondentLink,children:a()})})]})]})},qs=e=>{const{main:n,authors:a,info:o,preview:s,isVideo:r,config:i,itemReverseOrder:c,imageSize:d,showSuper:l}=e;return t.jsxs("section",{className:Gc.content,children:[l?t.jsx("section",{style:{...e.customSectionCardStyles},children:t.jsx(_t,{main:n,authors:a,info:o,preview:s,isVideo:r,config:i,paths:e.paths})}):t.jsx(Oe,{...e,main:n,authors:a,info:o,preview:s,isVideo:r,config:i,priorityHigh:!0}),e.banners&&t.jsx(fe,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&t.jsx(fs,{block:e.block,itemReverseOrder:c,priorityHigh:!0,imageSize:d,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})]})},ua={content:"_content_1dcf7_1",firstSection:"_firstSection_1dcf7_10",secondSection:"_secondSection_1dcf7_16"},xl=({content:e,customLargeSection:n,customSmallSection:a,paths:o})=>{const s=e[0];return Array.isArray(e)&&e.length>0&&s&&t.jsxs("section",{className:ua.content,children:[t.jsx("div",{style:n,className:ua.firstSection,children:t.jsx(_t,{...s,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})}),t.jsx("div",{style:a,className:ua.secondSection,children:e.map((r,i)=>i>0&&E.createElement(_t,{...r,key:i,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:o}))})]})},Ls={content:"_content_wsx1m_1",firstSection:"_firstSection_wsx1m_8"},Ul=({content:e,customLargeSection:n,customSlimSection:a,paths:o})=>Array.isArray(e)&&e.length>0&&t.jsx("section",{className:Ls.content,children:e.map((s,r)=>r===0?t.jsx("div",{style:n,className:Ls.firstSection,children:t.jsx(_t,{...s,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r):t.jsx("section",{style:a,children:E.createElement(_t,{...s,key:r,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r))}),lt={content:"_content_1n73e_1",sectionDescription:"_sectionDescription_1n73e_13",title:"_title_1n73e_33",subtitle:"_subtitle_1n73e_47",linkStyled:"_linkStyled_1n73e_58"},Bs=e=>{const{SHOW_TAG_BY_SECTION:n}=K(),a=()=>{if(n&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],s=o.name;return o.approved?t.jsx("h3",{children:t.jsx(P,{"aria-label":s,className:lt.sectionDescription,href:at(o,e.paths),children:s})}):t.jsx("div",{className:lt.sectionDescription,children:s})}else if(e.mainNew.info?.section?.url)return t.jsx("h3",{children:t.jsx(P,{className:lt.sectionDescription,href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return t.jsxs("div",{className:lt.content,children:[t.jsx(a,{}),t.jsx(P,{className:lt.title,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&t.jsx("p",{className:lt.subtitle,children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&t.jsx(P,{href:e.goTo.url,className:lt.linkStyled,children:e.goTo.description})]})},fa={headerSection:"_headerSection_drjnj_1",headerSectionLink:"_headerSectionLink_drjnj_12",newsContent:"_newsContent_drjnj_17"},Ps=e=>{const{content:n,title:a,isVideo:o}=e;if(!n||!n[0]||n.length===0)return;const s=e.slot_id&&e.slot_id!=="Nota_1",r={...n[0],main:{...n[0].main,title:{...n[0].main.title,section:s?n[0].main.title.home:n[0].main.title.section}}},i=n.slice(1);return r&&i&&t.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:fa.headerSection,children:[t.jsx(Bs,{mainNew:r,goTo:e.goTo,paths:e.paths}),t.jsx(P,{className:fa.headerSectionLink,href:r?.info?.link?.url,target:r?.info?.link?.target,children:t.jsx(_e,{preview:r.preview})})]}),t.jsxs("div",{className:fa.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:s?c.main.title.home:c.main.title.section}}};return t.jsx("div",{style:{order:d},children:t.jsx(Oe,{...l,isVideo:o,paths:e.paths})},d)})]})]})},Ve={content:"_content_1stvq_1",autorContent:"_autorContent_1stvq_8",image:"_image_1stvq_24",contentIcon:"_contentIcon_1stvq_25",boxInformationContent:"_boxInformationContent_1stvq_47",autorName:"_autorName_1stvq_53",time:"_time_1stvq_85",comment:"_comment_1stvq_98",title:"_title_1stvq_107"},vn=async e=>{const{data:n,autorIcon:a}=e,o=a,s=()=>n?.config?.showtime?`${ke(n.info?.date?.modified)}`:"",r=t.jsxs("div",{className:Ve.autorContent,children:[Array.isArray(n?.authors)&&Array.isArray(n?.authors[0]?.image?.sizes)&&n?.authors[0]?.image?.sizes?.length>0?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Ve.image,src:await de(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:Ve.contentIcon,children:t.jsx(o,{})}),t.jsx("p",{className:Ve.autorName,children:xe(n?.authors[0]?.fullname??"Redacción",18)}),t.jsx("p",{className:Ve.time,children:s()})]});return t.jsxs("div",{className:Ve.content,children:[n?.authors[0]?.internaluser?t.jsx(P,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:r}):r,t.jsxs("div",{className:Ve.boxInformationContent,children:[t.jsx(P,{className:Ve.title,href:n?.info?.link?.url,target:n?.info?.link?.target,children:n?.main?.title?.home}),t.jsx("p",{className:Ve.comment,children:xe(n?.main?.subtitle?.striped||"")})]})]})},St={content:"_content_1d7mg_1",boxPosition:"_boxPosition_1d7mg_8",contentFlex:"_contentFlex_1d7mg_21",bannerContent:"_bannerContent_1d7mg_29",bannerContentAux:"_bannerContentAux_1d7mg_40"};function ql(e){const n=new Array(e.length),a=e.length/2;for(let o=0;o<e.length;o++)o%2===0?n[Math.floor(o/2)]=e[o]:n[a+Math.floor(o/2)]=e[o];return n}const Ll=e=>{const{isOpinion:n=!1}=e,a=r=>t.jsx("div",{className:St.boxPosition+" banner-context",style:{order:2},children:t.jsx("div",{className:St.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},r),o=[];for(let r=0;r<e.news.length;r++){const i=e.news[r];r===2&&o.push(a(r)),i&&o.push(t.jsx("div",{className:St.boxPosition,style:{order:r},children:t.jsx(vn,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${r}`))}const s=o.length%2===0?ql(o):o;return t.jsx("section",{style:e.customStyles,children:t.jsx(ue,{title:e.title,titleUrl:e.titleUrl,isOpinion:n,children:t.jsxs("div",{className:St.content,children:[t.jsx("div",{className:St.contentFlex,children:s}),t.jsx("div",{className:St.bannerContent,children:e.halfPageBanner})]})})})},Os={content:"_content_w9viv_1",title:"_title_w9viv_10"},Bl=e=>{const{showTitle:n=!0}=e;return t.jsxs("div",{className:Os.content,children:[n&&t.jsx("p",{className:Os.title,children:"Editorial"}),t.jsx(ct,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},Nt={content:"_content_1nd2h_1",newsContent:"_newsContent_1nd2h_8",boxPosition:"_boxPosition_1nd2h_17",bannerContent:"_bannerContent_1nd2h_23",bannerContentAux:"_bannerContentAux_1nd2h_33"},Pl=e=>{const{news:n}=e;return Array.isArray(n)&&t.jsxs("div",{className:Nt.content,children:[t.jsxs("div",{className:Nt.newsContent,children:[e.bannerArray&&e.bannerArray.map((a,o)=>t.jsx("div",{className:Nt.boxPosition+" banner-context",style:{order:2+5*o},children:t.jsx("div",{className:Nt.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},o)),n.map((a,o)=>t.jsx("div",{className:Nt.boxPosition,style:{order:o},children:t.jsx(Oe,{...a,share:e.share,paths:e.paths})},o))]}),t.jsx("div",{className:Nt.bannerContent,children:e.halfPageBanner})]})},Ol=e=>t.jsxs(t.Fragment,{children:[t.jsx(ps,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),t.jsx(As,{...e})]}),Cn={newsContent:"_newsContent_gd57q_1",newsContentWithLines:"_newsContentWithLines_gd57q_8",newsContentWithoutLines:"_newsContentWithoutLines_gd57q_13",contentSeparator:"_contentSeparator_gd57q_18"},Ds=e=>{const{content:n}=e;if(!n||n.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?Cn.contentSeparator:"",o=[];let s=0,r=1;for(let i=0;i<n.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(o.push(t.jsx("section",{className:a(s),children:e.banners?.some(h=>h.key===`${e.slot_id}_${r}`)&&t.jsx(fe,{banners:e.banners,name:`${e.slot_id}_${r}`})},s)),s++,r++);const c=e.isVideo?mt(n[i],e.showVideoTime,e.showVideosubtitle):n[i];if(!c)continue;const d=e.slot_id&&e.slot_id!=="Nota_1",l={...c,main:{...c.main,title:{...c.main.title,section:d?c.main.title.home:c.main.title.section}}};o.push(t.jsx("section",{className:a(s),children:t.jsx(Oe,{...l,isVideo:e.isVideo,paths:e.paths})},s)),s++}return o.length===2&&o.push(t.jsx("div",{},s)),t.jsx("div",{className:`${e.hasLines?Cn.newsContentWithLines:Cn.newsContentWithoutLines} ${Cn.newsContent}`,children:o})},ma=e=>t.jsx(ue,{title:e.title,titleUrl:e.titleUrl,children:t.jsx(Ds,{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})}),Ms={newsContent:"_newsContent_1sb62_1",contentSeparator:"_contentSeparator_1sb62_8"},js=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0||!Array.isArray(n)))return t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${Ms.newsContent} ${e.hasLines?Ms.contentSeparator:""}`,children:n?.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return t.jsx("section",{children:t.jsx(Oe,{...i,share:e.share,paths:e.paths})},s)})})})},ga={newsContent:"_newsContent_1gbse_1",contentSeparator:"_contentSeparator_1gbse_8",newsContentWhitoutLine:"_newsContentWhitoutLine_1gbse_29"},$s=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0))return t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${ga.newsContent} ${e.hasLines?ga.contentSeparator:ga.newsContentWhitoutLine}`,children:n.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return t.jsx("section",{children:t.jsx(Oe,{...i,share:e.share,paths:e.paths})},s)})})})},pa={headerSection:"_headerSection_1m1sp_3",headerSectionLink:"_headerSectionLink_1m1sp_16",newsContent:"_newsContent_1m1sp_29"},Qs=e=>{const{content:n,title:a,isVideo:o=!0}=e;if(!n||n.length===0)return;const s=n[0],r=e.slot_id&&e.slot_id!=="Nota_1",i=n.slice(1);return s&&i&&t.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:pa.headerSection,children:[t.jsx(Bs,{goTo:e.goTo,mainNew:mt(s),paths:e.paths}),t.jsx(P,{className:pa.headerSectionLink,href:s?.info?.link.url,target:s?.info?.link.target,"aria-label":"Video",children:t.jsx(_e,{preview:{sizes:s?.main?.image.sizes,description:s?.main?.image.description},isVideo:o,isLarge:!0})})]}),t.jsxs("div",{className:pa.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l=mt(c),h={...l,main:{...l.main,title:{...l.main.title,section:r?l.main.title.home:l.main.title.section}}};return t.jsx("div",{style:{order:d},children:E.createElement(Oe,{...h,isVideo:o,key:d,paths:e.paths})},d)})]})]})},Gt={content:"_content_1qdkl_1",linkImage:"_linkImage_1qdkl_30",sectionDescription:"_sectionDescription_1qdkl_42",dateText:"_dateText_1qdkl_62",textContent:"_textContent_1qdkl_73"},Dl=async e=>{const{showNewsLikeTitle:n=!1}=e;return e&&e.info?t.jsxs("section",{className:Gt.content,style:{"--heightImageOverwrite":"100%"},children:[t.jsx(P,{className:Gt.linkImage,target:e?.info?.link?.target,title:e.main?.title?.section,href:n?e.info.link.url:e?.info?.section?.url,children:t.jsx(_e,{preview:e.preview})}),t.jsxs("div",{className:Gt.textContent,children:[t.jsx(P,{className:Gt.sectionDescription,target:e?.info?.link?.target,href:n?e.info.link.url:e?.info?.section?.url,children:(n?e?.main?.title?.section:e?.info?.section?.name)??""}),t.jsx("p",{className:Gt.dateText,children:ke(e?.info?.date?.modified)})]})]}):null},Gs={content:"_content_yx3zm_1",contentSeparator:"_contentSeparator_yx3zm_7"},Aa={newsContent:"_newsContent_1uamf_1",contentSeparator:"_contentSeparator_1uamf_8",hasLinesBlock:"_hasLinesBlock_1uamf_40"},Hs=e=>{if(!e.content||e.content.length===0)return;const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(ue,{title:e.title,children:t.jsx("div",{className:`${Gs.content} ${e.hasLines?Gs.contentSeparator:""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx("section",{className:e.hasLines?Aa.hasLinesBlock:"",children:E.createElement(Dl,{...s,key:o,showNewsLikeTitle:e.showNewsLikeTitle})},o)})})})},zs=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return t.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:t.jsx(Mt,{...c,paths:e.paths})},i)})})})},tt={content:"_content_1mj79_1",imageStyled:"_imageStyled_1mj79_14",contentIcon:"_contentIcon_1mj79_23",boxInformation:"_boxInformation_1mj79_44",comment:"_comment_1mj79_51",title:"_title_1mj79_60",authorName:"_authorName_1mj79_81"},Ml=async e=>{const{data:n}=e;return t.jsxs("div",{className:tt.content,children:[Array.isArray(n.authors)&&n?.authors[0]?.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:tt.imageStyled,src:await de(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:tt.contentIcon,children:e.autorIcon}),t.jsxs("div",{className:tt.boxInformation,children:[t.jsx("p",{className:tt.authorName,children:n?.authors[0]?.internaluser?t.jsx(P,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:n?.authors[0]?.fullname??"Redacción"}):n?.authors[0]?.fullname??"Redacción"}),t.jsx("p",{className:tt.title,children:t.jsx(P,{className:tt.linkStyled,href:n?.info?.link?.url,target:n?.info?.link?.target,children:xe(n?.main?.title?.home,40)})}),t.jsx("p",{className:tt.comment,children:n?.main?.subtitle?.striped})]})]})},Fs=e=>{const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(ue,{titleUrl:e.titleUrl,title:e.title,children:t.jsx(it,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx(Ml,{autorIcon:e.autorIcon,data:s,paths:e.paths},o)})})})},We={content:"_content_1elhb_1",newsContentSection:"_newsContentSection_1elhb_5",itemContent:"_itemContent_1elhb_10",ItemCustomContent:"_ItemCustomContent_1elhb_16"},_n=e=>{const{item:n,option:a}=e;switch(a){case"ediciones":return t.jsx("div",{className:We.ItemCustomContent});case"columnistasnacionales":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(vn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistaslocales":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(vn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistas":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(vn,{data:n,autorIcon:e.autorIcon,paths:e.paths})});default:return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(Oe,{...n,paths:e.paths})})}},jl=e=>{const{data:n,currentPage:a,banners:o,slug:s,ranking:r,pathname:i,texts:c={}}=e,d=[3,8,13],l={3:1,8:2,13:3};switch(e.option){case"op1":return t.jsx(ca,{ranking:r,readestTitle:c.readestTitle??"",paths:e.paths,bannerTop:t.jsx(fe,{banners:o??[],name:"right_1"}),banner:t.jsx(fe,{banners:o??[],name:"right_2"}),children:t.jsx("section",{className:We.content,children:n.length>0?t.jsx(An,{className:[We.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Ot,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((h,u)=>t.jsxs(E.Fragment,{children:[d.includes(u+1)&&t.jsx("div",{className:We.itemContent+" banner-context",children:t.jsx(fe,{banners:o??[],name:`block_2_${l[u+1]}`})}),t.jsx(_n,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})})});case"op2":return t.jsx(t.Fragment,{children:n.length>0?t.jsx(An,{className:"padding-0",paginatorComponent:t.jsx(Ot,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((h,u)=>t.jsxs(E.Fragment,{children:[d.includes(u+1)&&t.jsx("div",{className:We.itemContent,children:t.jsx(fe,{banners:o??[],name:`block_2_${l[u+1]}`})}),t.jsx(_n,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})});default:return t.jsx(t.Fragment,{})}},Vs={content:"_content_gwsqy_1",contactInfoContent:"_contactInfoContent_gwsqy_7"},$l=e=>{const{data:n}=e;return t.jsx("section",{className:Vs.content,children:n.map((a,o)=>t.jsx("div",{className:Vs.contactInfoContent,dangerouslySetInnerHTML:{__html:a.body.rendered}},o))})},ya={tagContent:"_tagContent_ee6yw_1",contentLayout2:"_contentLayout2_ee6yw_9",contentHeader:"_contentHeader_ee6yw_42"},Ql={content:"_content_1rbrt_1"},Gl=({children:e,className:n=""})=>t.jsx("div",{className:`content-layout-2 ${Ql.content} ${n}`,children:e}),Ht={container:"_container_8w9ca_1",note:"_note_8w9ca_9",commercial:"_commercial_8w9ca_49",commercialContent:"_commercialContent_8w9ca_66",complement:"_complement_8w9ca_82"},Hl=e=>t.jsxs("section",{className:Ht.container,children:[t.jsx("div",{className:Ht.note,children:e.children}),t.jsx("div",{className:Ht.commercial,children:t.jsxs("div",{className:Ht.commercialContent,children:[e.slug==="liveblogs"&&t.jsx(_s,{itemList:e.itemList}),e.bannerTop,t.jsx(fn,{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}}),t.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),t.jsx("div",{className:Ht.complement,children:e.complement})]}),zl=e=>{const n={...e.news[0],config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return t.jsx("div",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-image-description-display":"none",...e.headerSectionStyles?.liveblogs},children:t.jsx(Cs,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return t.jsx("div",{className:ya.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:t.jsx(ct,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths})})}},Ye={content:"_content_yx2rc_1",contentWithinCard:"_contentWithinCard_yx2rc_7",contentDate:"_contentDate_yx2rc_13",dateInfo:"_dateInfo_yx2rc_20",dot:"_dot_yx2rc_30",contentTitle:"_contentTitle_yx2rc_38",contentTextList:"_contentTextList_yx2rc_47",contentButton:"_contentButton_yx2rc_55",linkStyled:"_linkStyled_yx2rc_61"},Fl={content:"_content_ifkxj_1"},Vl=e=>t.jsx("section",{className:Fl.content,id:e.id,children:e.children}),Wl=async(e,n,a)=>{if(!a)return e;const o=/<span data-src="(.*?)"><\/span>/g,s=[...e.matchAll(o)];let r=e;for(const i of s){const c=i[0],d=i[1]??"";let l;if(a.forEach(S=>{Array.isArray(S)&&(l=S.find(_=>d.replaceAll("/","|").includes(_?.info.link.internal||"")))}),!l){r=r.replace("ck-related-news","ck-related-news-empty");break}const h=l.preview?.sizes?.[0],u=h?await de(h.url):"",f=l.info.section?.url??"#",g=l.info.section?.name??"Sección",m=l.info.link?.url??"#",p=l.main?.title.article??"Título",A=(await Promise.all(l.preview?.sizes?.map(async S=>{const _=await de(S.url);return S.width<200?`<source srcset="${_}" media="(width < 750px)"/>`:`<source srcset="${_}" media="(width >= 750px)"/>`}))).reduce((S,_)=>S+=_,""),b=`
|
|
50
50
|
<span data-src="${d}">
|
|
51
51
|
<picture style='display: flex'>
|
|
52
52
|
${A}
|
|
@@ -157,5 +157,5 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
157
157
|
${I}
|
|
158
158
|
<figcaption>${D}</figcaption>
|
|
159
159
|
</figure>
|
|
160
|
-
`}}catch(b){console.error("insertVideos error for",g,b),A=""}else A=f;o=u,a+=A,s.lastIndex=u}return a+=e.slice(o),a}async function fd(e){const{news:n,banners:a,newsRelatedResponses:o,slug:s,itemList:r,socials:i,getVideos:c}=e;let d=n?.body?.rendered??"";d=d.replace(/ /g,""),d=ld(d,a),d=dd(d),d=await Ks(d),d=await hd(d,e.texts,o),d=await ud(d,c),d=id(d),d=cd(d);const l=n.main.sources??[];return t.jsxs("div",{className:Sn.content,children:[s!=="liveblogs"&&e.showHeaderImage?n.hascontent?.hasgalleryimages?t.jsx(wa,{newsformated:n,internal:n.info.link.internal}):t.jsx(vs,{preview:n.preview}):null,t.jsx(fe,{banners:a,name:"block_1"}),t.jsx("div",{className:Sn.journalistArticleContent,children:t.jsx(nd,{autorIcon:e.autorIcon,socials:i,news:n,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),t.jsx(od,{summary:n.main.summary}),t.jsx("div",{className:Sn.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:d}}),t.jsx(Rl,{texts:e.texts,itemList:r,banners:a,slug:s,getVideos:c,newsRelatedListResponses:o}),l.length>0&&t.jsxs("div",{className:Sn.noteSource,children:[t.jsx(rd,{}),t.jsx("p",{children:e.texts.noteSource+(l.length===1?"":"s")+": "+l.map(h=>h.name).join(", ")})]})]})}const Js={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},Zs=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],d=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-embedded");return d?.code?t.jsxs("div",{className:Js.content,children:[t.jsx("div",{dangerouslySetInnerHTML:{__html:typeof d.code=="string"?d.code:""}}),d?.title&&t.jsx("p",{className:Js.title,children:d.title})]}):null}catch{return null}},ba={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},Xs=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],d=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-youtube");return!d?.code||typeof d.code!="string"?null:t.jsxs("div",{className:ba.content,children:[t.jsx("iframe",{className:ba.iframeStyled,src:`https://www.youtube.com/embed/${d.code}`,frameBorder:"0",allowFullScreen:!0}),d?.title&&t.jsx("p",{className:ba.title,children:d.title})]})}catch{return null}},md={content:"_content_ezbiw_1"},Rs=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNews({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const c=r[0]?.external?.iframe;return typeof c!="string"||c.trim()===""?null:t.jsx("div",{className:md.content,dangerouslySetInnerHTML:{__html:c}})}catch{return null}},er={content:"_content_156j7_1"},nt={imagen:"imagen",videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe"},gd={[nt.videoEmbedded]:Zs,[nt.videoYouTube]:Xs,[nt.iframe]:Rs},pd=({news:e,commonServices:n})=>{const{config:a,hascontent:o,info:s}=e,r=a.articlepreview,i=s.link.internal,c=o?.hasgalleryimages;if(r===nt.imagen&&c)return t.jsx("div",{className:er.content,children:t.jsx(wa,{newsformated:e,internal:i})});const d=r?gd[r]:null;return console.log("PreviewComponent",d),d?t.jsx("div",{className:er.content,children:t.jsx(d,{newsformated:e,internal:i,commonServices:n})}):null},Ad=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,cardWidth:200,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return t.jsx(Mt,{...c,titleGradient:!0,paths:e.paths},i)})})})},yd=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,cardWidth:343,cardGap:32,visibleItems:3,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return t.jsx(Mt,{...c,titleGradient:!0,paths:e.paths},i)})})})},wd=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return E.createElement(Mt,{...c,key:i,titleGradient:!0,paths:e.paths})})})})},Nn=e=>{const n={};for(const a in e)a.startsWith("--")&&(n[a]=e[a]);return n},dt={headerSection:"_headerSection_1c69w_1",title:"_title_1c69w_11",subtitle:"_subtitle_1c69w_23",newsContent:"_newsContent_1c69w_36",containerCards:"_containerCards_1c69w_44",image:"_image_1c69w_50",blockHeadContainer:"_blockHeadContainer_1c69w_56"},bd=e=>{const{content:n,title:a,isVideo:o}=e;if(!n||n.length===0)return;const s=n[0],r=n.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return s&&r&&t.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[t.jsx("div",{className:dt.headerSection,children:t.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:dt.image,href:s?.info?.link?.url,target:s?.info?.link?.target,children:[t.jsxs("div",{className:dt.blockHeadContainer,children:[t.jsx("p",{className:dt.title,children:s?.main?.title.home}),s?.main?.subtitle?.rendered&&t.jsx("p",{className:dt.subtitle,children:s?.main?.subtitle?.striped})]}),t.jsx(_e,{preview:s.preview})]})}),t.jsxs("div",{className:dt.containerCards,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),t.jsx("div",{className:dt.newsContent,children:Array.isArray(r)&&r.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:i?c.main.title.home:c.main.title.section}}};return t.jsx("div",{style:{order:d},children:t.jsx(Oe,{...l,isVideo:o,paths:e.paths})},d)})})]})]})},tr={banner:e=>t.jsx(fe,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>t.jsx(fn,{...e}),"Modulo 1x3":e=>t.jsx(ma,{...e}),"Modulo 1x4":e=>t.jsx(js,{...e}),"Modulo 1x5":e=>t.jsx($s,{...e}),"Destacado noticias":e=>t.jsx(Ps,{...e}),"Destacado full width":e=>t.jsx(bd,{...e}),"Destacado videos":e=>t.jsx(Qs,{...e}),"Carrusel card":e=>t.jsx(zs,{...e}),"Carrusel story":e=>t.jsx(Ad,{...e}),"Carrusel owl":e=>t.jsx(yd,{...e}),"Modulo fotogaleria":e=>t.jsx(wd,{...e}),"Carrusel opinion":e=>t.jsx(Fs,{...e}),"Modulo 1x3 card":e=>t.jsx(Hs,{...e})};function va({component:e,slot_id:n,data:a,banners:o}){if(o)return tr[e]&&t.jsx("div",{className:"home-slot",style:Nn(a),children:tr[e]({...a,banners:o,slot_id:n})})}function vd({children:e,stylesConfigEntry:n}){return t.jsx("div",{className:"home-slot",style:Nn(n),children:e})}const nr={Diario:e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(qs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:n,banners:e.banners,showSuper:e.showSuper,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(qs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:n,banners:e.banners,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},Super:e=>t.jsx(_t,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>t.jsx(Ul,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>t.jsx(xl,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},En=({component:e,data:n,banners:a,rightOnlyBanner:o})=>t.jsx("div",{style:Nn(n),children:nr[e]&&nr[e]({...n,rightOnlyBanner:o,banners:a})}),Cd=({slots:e,DYNAMIC_SLOT_SUBINDEXES:n,stylesConfig:a,AutorIcon:o,config:s,banners:r,showTagBySection:i})=>{const c=[],l=n,h=Object.keys(e).length/l;for(let u=1;u<=h;u++)for(let f=1;f<=l;f++){const g="Home_"+u+"_"+f;!e[g]||!e[g].blockSass||!e[g].blockSass[0]||!e[g].blockSass[0].value||!e[g].blockSass[0].block||e[g].blockSass[0].block==="No Mostrar"||c.push(t.jsxs(ss,{show:!!e[g].content?.data,order:(u-1)*l+(f-1),children:[t.jsx(va,{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:t.jsx(o,{}),paths:s.paths,showTagBySection:i}}),t.jsx(Ze,{children:t.jsx($e,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f))}return c},_d=({mainBlock:e,StylesConfigMain:n,config:a,banners:o})=>{const{PUBLIC_ENV:s}=K();if(s!=="local")return null;const r=e?.news?.data||[],i=(c,d)=>({...e?.news,...n[c],data:r.slice(0,d),paths:a.paths});return t.jsxs(t.Fragment,{children:[t.jsx(En,{component:"Super",data:i("Super",1),banners:o}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:1})}),t.jsx(En,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:o}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:1})}),t.jsx(En,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:o}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:1})})]})},Sd=e=>{const{config:n,hascontent:a}=e,o=n.articlepreview,s=[nt.videoEmbedded,nt.videoYouTube,nt.iframe];return!!(o===nt.imagen&&a?.hasgalleryimages||s.includes(o))},Nd=async e=>{const{custom_complement:n,ranking:a=[],banners:o,autor:s=[],news:r=[],newsRelatedResponses:i=[],itemList:c=[],socials:d,getVideos:l}=e,h=e.slug==="liveblogs",{SHOW_NEWS_MORE_NEWS:u,SHOW_NEWS_RELATED_NEWS:f}=K();if(!(!r||!r[0]))return t.jsx(t.Fragment,{children:t.jsxs(Gl,{className:ya.contentLayout2,children:[t.jsx(zl,{option:e.slug,news:r,paths:e.paths,headerSectionStyles:e.headerSectionStyles}),t.jsx($e,{banners:o,index:1}),!h&&e.commonServices&&t.jsx(pd,{news:r[0],commonServices:e.commonServices}),t.jsx(Hl,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:c,ranking:a,bannerTop:t.jsx(fe,{banners:o??[],name:"right_1"}),banner:t.jsx(fe,{banners:o??[],name:"right_2"}),complement:t.jsxs("div",{id:"comentarios",suppressHydrationWarning:!0,children:[s.length>0&&t.jsx(xs,{texts:e.texts,autorIcon:e.autorIcon,autor:s[0],paths:e.paths}),r[0].authors.length>1&&t.jsx(Us,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),t.jsx("div",{className:ya.tagContent,children:t.jsx(ks,{tags:r[0]?.keywords?.tags,paths:e.paths})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem"},suppressHydrationWarning:!0,children:[e.showComments&&t.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"comment",internalPath:e.internalPath,COMMENTS_VARS:e.COMMENTS_VARS}))}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:2})}),f&&t.jsxs(t.Fragment,{children:[t.jsx(va,{component:"Carrusel card",banners:[],slot_id:"Nota_1",data:{...e.stylesConfig["Carrusel card"],content:e.relatedNewsList??[],title:e.texts.relatedNewsTitle,titleUrl:void 0}}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:3})})]}),u&&t.jsxs(t.Fragment,{children:[t.jsx(ue,{title:e.texts.moreNewsTitle,children:t.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"more",stylesConfig:e.stylesConfig,section:r[0].info.section?.slug??"",currentNews:r[0]}))})}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:4})})]}),n&&n()]})]}),children:t.jsxs("section",{style:{"--avatar-content-align-items-desk":e.slug==="liveblogs"?"flex-start":"center"},children:[t.jsx(fd,{texts:e.texts,autorIcon:e.autorIcon,socials:d,news:r[0],banners:o,newsRelatedResponses:i,itemList:c,slug:e.slug,getVideos:l,noteShare:e.noteShare,paths:e.paths,showHeaderImage:!Sd(r[0])}),t.jsx(fe,{banners:o??[],name:"block_3"})]})})]})})},Et={content:"_content_1tl6i_1",contentInfo:"_contentInfo_1tl6i_24",imageStyled:"_imageStyled_1tl6i_41",name:"_name_1tl6i_46",description:"_description_1tl6i_51",contentInfoWithoutImg:"_contentInfoWithoutImg_1tl6i_104"},Ed=async e=>{const n=e.img?await de(e.img):"";return t.jsx("section",{className:Et.content,children:t.jsxs("div",{className:`${Et.contentInfo} ${n?"":Et.contentInfoWithoutImg}`,children:[e.img&&t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Et.imageStyled,src:n}),t.jsx("h1",{className:Et.name,children:e.tag}),e.description&&t.jsx("div",{className:Et.description,dangerouslySetInnerHTML:{__html:e.description}})]})})},Tn={content:"_content_7wvro_1",contentInfo:"_contentInfo_7wvro_23",name:"_name_7wvro_34",description:"_description_7wvro_43"},Td=e=>t.jsx("section",{className:Tn.content,style:{color:e.textColor,"--backDropHeigth":e.backDropHeigth?e.backDropHeigth:"100%",padding:e.sectionPadding??"","--backgroundColor":e.backgroundColor},children:t.jsxs("div",{className:Tn.contentInfo,children:[t.jsx("h1",{className:Tn.name,style:{color:e.textColor},children:e.tag}),e.description&&t.jsx("div",{style:{color:e.textColor},className:Tn.description,dangerouslySetInnerHTML:{__html:e.description}})]})}),Id=e=>{const{option:n,entity:a}=e;switch(n){case"op1":return t.jsx(Ed,{tag:a?.name??"",img:a?.image?.url??"",description:a?.description?a?.description:""});case"op2":return t.jsx(Td,{tag:a?.name??"",description:a?.description?a?.description:"",backDropHeigth:e.backDropHeigth,backgroundColor:e.backgroundColor,sectionPadding:e.sectionPadding,textColor:e.textColor});default:return t.jsx(t.Fragment,{})}},zt={content:"_content_1046n_1",buttonStyled:"_buttonStyled_1046n_9",searchStyled:"_searchStyled_1046n_20",inputStyled:"_inputStyled_1046n_36",inputStyledTest:"_inputStyledTest_1046n_55"},kd=e=>t.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("g",{children:t.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),xd=e=>t.jsx("form",{className:zt.content,style:{height:e.hasContent?"218px":"50vh"},children:t.jsxs("div",{className:`${zt.inputStyled} sass-buscar-form`,children:[t.jsx("input",{className:zt.inputStyledTest,defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),t.jsx("button",{className:zt.buttonStyled,type:"submit",children:t.jsx(kd,{className:zt.searchStyled})})]})}),Ca={content:"_content_io3tv_1",newsContentSection:"_newsContentSection_io3tv_5",itemContent:"_itemContent_io3tv_10"},Ud=e=>{const{data:n,option:a,autor:o,page:s,banners:r,pathname:i,ranking:c,currentPage:d,slug:l,texts:h={}}=e,u=[5,10,15],f={5:1,10:2,15:3};switch(a){case"op1":return t.jsx(t.Fragment,{children:t.jsxs(ra,{children:[t.jsx(Ss,{autor:o[0],autorIcon:e.autorIcon}),t.jsx(ca,{paths:e.paths,ranking:c,readestTitle:h.readestTitle??"",bannerTop:t.jsx(fe,{banners:r??[],name:"right_1"}),banner:t.jsx(fe,{banners:r??[],name:"right_2"}),children:t.jsx("section",{className:Ca.content,children:n.length>0?t.jsx(An,{className:[Ca.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Ot,{texts:h,pathname:i,query:"",currentPage:d,maxPages:e.paginationLimit,showNext:!(n.length<e.newsListLimit)}),children:Array.isArray(n)&&n?.map((g,m)=>t.jsxs(E.Fragment,{children:[u.includes(m+1)&&t.jsx("div",{className:Ca.itemContent+" banner-context",children:t.jsx(fe,{banners:r??[],name:`block_2_${f[m+1]}`})}),t.jsx(_n,{autorIcon:e.autorIcon,item:g,option:l,paths:e.paths},m)]},m))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:h.autorNotResultMessage})})})})]})});case"op2":return t.jsx(t.Fragment,{children:t.jsxs(ra,{children:[t.jsx(Ns,{autor:o[0],autorIcon:e.autorIcon}),Array.isArray(n)?t.jsxs(t.Fragment,{children:[t.jsx(ma,{content:n,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),t.jsx(Ot,{texts:h,query:"",pathname:i,maxPages:Number(e.paginationLimit),currentPage:Number(s),showNext:!((n.length??0)<Number(e.newsListLimit))})]}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:h.autorNotResultMessage})})]})});default:return t.jsx(t.Fragment,{})}},ar={content:"_content_pq89v_1",videoContent:"_videoContent_pq89v_9"},Ft={container:"_container_1xr2t_1",playStyled:"_playStyled_1xr2t_6",imageStyled:"_imageStyled_1xr2t_13",longer:"_longer_1xr2t_26",contentNews:"_contentNews_1xr2t_31",tagContent:"_tagContent_1xr2t_51",tag:"_tag_1xr2t_51",titular:"_titular_1xr2t_68",small:"_small_1xr2t_81",figure:"_figure_1xr2t_87",backDrop:"_backDrop_1xr2t_92",backDropAux:"_backDropAux_1xr2t_100"},or=async e=>{const{size:n="longer",video:a}=e,o=a.main.image.sizes[0]?.url??"";return t.jsx("figure",{className:Ft.figure,children:t.jsxs("span",{className:Ft.backdrop,children:[t.jsx("span",{className:Ft.backDropAux}),t.jsx(P,{href:a.info.link.url,target:a.info.link.target,children:t.jsxs("div",{children:[a.main.image.sizes.map(async(s,r)=>s.width>=580?t.jsx("source",{media:"(width >=900px)",srcSet:await de(s.url)},r):t.jsx("source",{media:"(width <900px)",srcSet:await de(s.url)},r)),t.jsx("img",{fetchPriority:"low",loading:"lazy",className:[Ft.imageStyled,Ft[n]].join(" "),alt:"",src:o?await de(o):""})]})})]})})},qd=e=>{const{videos:n}=e;return t.jsx("div",{className:ar.content,children:t.jsx(wt,{children:t.jsx(ue,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:ar.videoContent,children:[t.jsx(or,{video:n[0]}),t.jsx("div",{style:{display:"flex",flexDirection:"column"},children:n.slice(1).map((a,o)=>t.jsx(or,{size:"small",video:a},`video-small-${o}`))})]})})})})},ht={content:"_content_ruy5q_1",videoContent:"_videoContent_ruy5q_9",articleSection:"_articleSection_ruy5q_21",contentLatout:"_contentLatout_ruy5q_31",title:"_title_ruy5q_36",article:"_article_ruy5q_21",correspondent:"_correspondent_ruy5q_64"},sr={container:"_container_1rq2h_1",playStyled:"_playStyled_1rq2h_9"},Ld=e=>{const{video:n}=e,a=un();return t.jsx(P,{href:n.info.link.url?n.info.link.url:void 0,target:n.info.link.target,children:t.jsxs("section",{className:sr.container,children:[t.jsx(_e,{isLarge:!0,preview:{sizes:n.main.image.sizes,description:n.main.description}}),t.jsx(a,{className:sr.playStyled})]})})},Bd=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${ke(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:ht.content,children:t.jsx(wt,{className:ht.contentLatout,children:t.jsx(ue,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:ht.videoContent,children:[t.jsx(Ld,{video:e.video}),t.jsxs("div",{className:ht.articleSection,children:[t.jsx(P,{className:ht.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),t.jsx("p",{className:ht.article,children:xe(e.video.main.description)}),t.jsx("p",{className:ht.correspondent,children:n()})]})]})})})})},Pd=e=>{switch(e.option){case"op1":return t.jsx(qd,{videos:e.data});case"op2":return t.jsx(Bd,{video:e.data[0]});default:return t.jsx(t.Fragment,{})}};function Od({containerId:e,containerId2:n}){return E.useEffect(()=>{try{let a=function(){const h=window.twttr;h?.widgets?h.widgets.load(o):l<10?(l++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const o=document.getElementById(e),s=document.getElementById(n);if(!o&&!s)return;const r=o?.querySelectorAll("script[src]")??[],i=s?.querySelectorAll("script[src]")??[];[...r,...i].forEach(h=>{const u=document.createElement("script");Array.from(h.attributes).forEach(f=>{u.setAttribute(f.name,f.value)}),h.replaceWith(u)});const d=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(d)for(let h=0;h<d.length;h++)d[h]?.remove();let l=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const h=document.createElement("script");h.src="https://platform.twitter.com/widgets.js",h.async=!0,h.onload=a,document.body.appendChild(h)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Dd=e=>{const{isVideo:n=!1,isLarge:a=!1,hasShadow:o=!1,BackDropAuxHeigthMobile:s}=e,r=ta(),i=E.useMemo(()=>e?.preview?.sizes||[],[e?.preview?.sizes]);if(!i.length||!i[0]?.url||i[0]?.url==="")return t.jsx("div",{className:se.imagePlaceholder});const{PUBLIC_API_HOST:c,PUBLIC_ENV:d}=K();return t.jsx("figure",{className:se.figure,children:t.jsxs("span",{className:se.backdrop,children:[t.jsx("span",{className:se.backdropAux,style:{height:s||"56.25%"}}),t.jsxs("picture",{children:[t.jsx("img",{fetchPriority:"low",loading:"lazy",className:se.imageStyled,alt:e.preview?.description||"",src:(d==="local"?c:"")+i[0]?.url,style:{boxShadow:o?"0px 4px 8px 0px #00000033":"0px"}}),n&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:se.boxPlayIcon,style:{height:a?"40%":"72px"}}),t.jsx(r,{className:se.playStyled,style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},Md=e=>t.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),rr={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},ir=6,jd=({section:e,currentNews:n,banner:a,isVisible:o=!1,stylesConfig:s})=>{const[r,i]=E.useState({data:Array.from({length:ir},()=>rr)}),[c,d]=E.useState(!1),l=E.useCallback(async()=>{if(!(c||!n?.info?.link?.internal)){d(!0);try{const h=new URLSearchParams({section:e,currentNewsLink:n.info.link.internal}),u=await fetch(`/api/get-more-news?${h}`);if(!u.ok)throw i(void 0),new Error(`HTTP error! status: ${u.status}`);const f=await u.json();i({...f,data:f.data.slice(0,ir)})}catch(h){console.error("[/api/get-more-news] Error:",h.message),i(void 0)}}},[e,n.info.link.internal,c]);return E.useEffect(()=>{o&&l()},[o,r,l]),!r?.data||r.data.length===0?null:t.jsx($d,{news:r.data,title:"Más Noticias",...s["Modulo 1x3 Client"]??s["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,isVisible:o})},$d=e=>{const{news:n,hasLines:a=!1}=e,o=s=>a&&(s+1)%3!==0?Aa.contentSeparator:"";return t.jsx("div",{className:Aa.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:n.map((s,r)=>{const{main:i,authors:c,info:d,preview:l,isVideo:h=!1,config:u,overImage:f="default",isTitle:g=!1,isLarge:m=!1}=s;return t.jsx("div",{className:o(r),style:{order:r},children:t.jsxs("section",{className:Dt.content,children:[t.jsx(P,{title:i?.title?.section,href:d?.link?.url??"invalidUrl","aria-label":i?.title?.section??"nota",target:d?.link?.target,children:t.jsx(Dd,{isVisible:e.isVisible,preview:l,rounded:e.rounded,isVideo:h,isLarge:m,getImageUrl:e.getImageUrl})}),t.jsx("div",{className:Dt.newsDescription,children:t.jsx(Qd,{main:i,authors:c,info:d,preview:l,share:e.share,config:u,overImage:f,isTitle:g,paths:s.paths,isVisible:e.isVisible})})]})},r)})})},Qd=e=>{const{share:n=!1,cutSubtitle:a=!0}=e,s=(()=>{if(!e?.authors||e.authors.length===0)return"";const r=e.authors[0],i=ke(e.info?.date?.modified);return r&&e?.config?.showtime&&e.config?.showauthor?`${r.fullname} - ${i}`:r&&e.config?.showauthor?r.fullname:e?.config?.showtime?i:""})();return t.jsxs("div",{className:ae.boxInformation,children:[n&&t.jsx(Md,{className:ae.dotStyles}),e?.info?.section?.url&&t.jsxs("div",{className:ae.sectionDescriptionContainer,children:[t.jsx(P,{className:ae.sectionDescription,href:e.info.section.url??"invalidUrl",children:e.info.section.name}),e?.main?.uppertitle&&t.jsx("p",{className:ae.uppertitle,children:e.main.uppertitle})]}),t.jsx("h2",{className:ae.articule,children:t.jsx(P,{className:ae.linkStyled,style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&t.jsx("p",{className:ae.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?xe(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&s&&t.jsx(t.Fragment,{children:e.authors?.[0]?.internaluser?t.jsx(P,{className:ae.correspondentLink,href:`/autor/${e.authors[0].name}`,children:s}):t.jsx("div",{className:ae.correspondent,children:s})})]})},Gd=({user:e,handleLogout:n,message:a})=>{const o=()=>{const r=document.querySelector(".user-actions-options");r&&r.classList.toggle("show")},s=e.firstname??"Usuario";return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?t.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):t.jsx("div",{className:"comment-avatar",children:s.charAt(0).toUpperCase()}),t.jsxs("div",{style:{flex:1},children:[t.jsxs("div",{className:"comment-header",children:[t.jsxs("span",{className:"comment-username user-welcome",children:["Hola ",s,"!"]}),t.jsx("div",{className:"user-actions-options",children:t.jsx("button",{onClick:()=>{n()},children:"Cerrar Sesion"})}),t.jsx("button",{className:"user-actions-span",onClick:o,children:t.jsx(bn,{width:13,height:13,fill:"black"})})]}),t.jsx("p",{className:"comment-text",children:a})]})]})})},he={overlay:"_overlay_qj491_3",popup:"_popup_qj491_17",title:"_title_qj491_40",optionsContainer:"_optionsContainer_qj491_52",option:"_option_qj491_52",radioInput:"_radioInput_qj491_66",radioCustom:"_radioCustom_qj491_70",optionLabel:"_optionLabel_qj491_97",buttons:"_buttons_qj491_110",cancelButton:"_cancelButton_qj491_117",closeButton:"_closeButton_qj491_118",buttonAlone:"_buttonAlone_qj491_137",reportButton:"_reportButton_qj491_143",successContainer:"_successContainer_qj491_163",thumbsUp:"_thumbsUp_qj491_171",successMessage:"_successMessage_qj491_177",errorMessage:"_errorMessage_qj491_218",loadingContainer:"_loadingContainer_qj491_231"},cr=async(e,n)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:o,COMMENTS_CAPTCHA_API_KEY:s}=n;try{const r=a,i=o,l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${r}/assessments?key=${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",l),l.tokenProperties?.valid===!0}catch(r){return console.error("Error verificando reCAPTCHA Enterprise:",r),!1}};async function Hd({publication:e,username:n,id:a,type:o,baseUrl:s,captchaToken:r,apiToken:i,COMMENTS_VARS:c}){if(!e||!n||!a||!o||!r)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof n!="string"||typeof a!="string"||typeof o!="string"||typeof r!="string")throw new Error("Todos los parámetros deben ser strings");if(!await cr(r,c))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const d=`${s}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,l=encodeURIComponent(o),h=new URLSearchParams({publication:e,username:n,id:a,type:l}),u=`${d}?${h.toString()}`;try{console.log("Reporting comment:",{publication:e,username:n,id:a,type:o,encodedType:l,url:u});const f=await oe.post(u,null,{headers:{"User-Agent":"Bluestack","x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",f.data),f.status===200||f.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:f.status,data:f.data};throw new Error(`Respuesta inesperada del servidor: ${f.status}`)}catch(f){if(console.error("Error reporting comment:",f),oe.isAxiosError(f)){const g=f.response?.status,m=f.response?.data;throw g===400?new Error("Datos inválidos para el reporte"):g===401?new Error("Token de API inválido"):g===403?new Error("Acceso denegado para reportar comentario"):g===404?new Error("Comentario no encontrado"):g===409?new Error("El comentario ya fue reportado por este usuario"):g===500?new Error("Error interno del servidor CMS"):new Error(m?.error||m?.message||`Error HTTP ${g}: No se pudo reportar el comentario`)}throw f}}const Me={spam:"Es spam o contenido comercial no deseado",inappropriate:"Lenguaje inadecuado",hate:"Discurso o símbolos de odio",misinformation:"Información falsa o fraude",terrorism:"Promueve el terrorismo",intellectual:"Violación de propiedad intelectual",bullying:"Bullying o acoso"};function zd(e){return Me[e]}const ut=300,Ke={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function Fd(e){const n=e.split(" ");if(n.length!==3)return e;const[a,o,s]=n,r=o.charAt(0).toUpperCase()+o.slice(1).toLowerCase();return`${a} ${r} ${s}`}const _a=(e,n)=>{if(!e||!e.current)return{boolean:!1,text:""};const a=e.current?.value||"",o=a.length>ut,{PUBLIC_ENV:s}=K(),r=s==="local",i=a.trim()!==""&&(r||n!=="")&&!o,c=o?`No debes exceder el limite de ${ut} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:i,text:c}},lr=e=>{const n=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!n)return[];try{return JSON.parse(decodeURIComponent(n.split("=")[1]??""))}catch{return[]}},Vd=(e,n)=>{const a=lr(e);a.includes(n)||(a.push(n),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function Wd(e){const[n,a]=e.split("@");if(!n||!a)return e;let o="";n.length<=2?o=n[0]+"*":o=n[0]+"*".repeat(n.length-2)+n[n.length-1];const s=a.lastIndexOf(".");if(s===-1)return`${o}@${a}`;const r=a.slice(0,s),i=a.slice(s);let c="";return r.length<=2?c=r[0]+"*":c=r[0]+"*".repeat(r.length-2)+r[r.length-1],`${o}@${c}${i}`}var In={exports:{}},kn={exports:{}},te={};var dr;function Yd(){if(dr)return te;dr=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(v){if(typeof v=="object"&&v!==null){var T=v.$$typeof;switch(T){case n:switch(v=v.type,v){case d:case l:case o:case r:case s:case u:return v;default:switch(v=v&&v.$$typeof,v){case c:case h:case m:case g:case i:return v;default:return T}}case a:return T}}}function I(v){return _(v)===l}return te.AsyncMode=d,te.ConcurrentMode=l,te.ContextConsumer=c,te.ContextProvider=i,te.Element=n,te.ForwardRef=h,te.Fragment=o,te.Lazy=m,te.Memo=g,te.Portal=a,te.Profiler=r,te.StrictMode=s,te.Suspense=u,te.isAsyncMode=function(v){return I(v)||_(v)===d},te.isConcurrentMode=I,te.isContextConsumer=function(v){return _(v)===c},te.isContextProvider=function(v){return _(v)===i},te.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===n},te.isForwardRef=function(v){return _(v)===h},te.isFragment=function(v){return _(v)===o},te.isLazy=function(v){return _(v)===m},te.isMemo=function(v){return _(v)===g},te.isPortal=function(v){return _(v)===a},te.isProfiler=function(v){return _(v)===r},te.isStrictMode=function(v){return _(v)===s},te.isSuspense=function(v){return _(v)===u},te.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===o||v===l||v===r||v===s||v===u||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===g||v.$$typeof===i||v.$$typeof===c||v.$$typeof===h||v.$$typeof===A||v.$$typeof===b||v.$$typeof===S||v.$$typeof===p)},te.typeOf=_,te}var ne={};var hr;function Kd(){return hr||(hr=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(B){return typeof B=="string"||typeof B=="function"||B===o||B===l||B===r||B===s||B===u||B===f||typeof B=="object"&&B!==null&&(B.$$typeof===m||B.$$typeof===g||B.$$typeof===i||B.$$typeof===c||B.$$typeof===h||B.$$typeof===A||B.$$typeof===b||B.$$typeof===S||B.$$typeof===p)}function I(B){if(typeof B=="object"&&B!==null){var Ae=B.$$typeof;switch(Ae){case n:var Bn=B.type;switch(Bn){case d:case l:case o:case r:case s:case u:return Bn;default:var Lr=Bn&&Bn.$$typeof;switch(Lr){case c:case h:case m:case g:case i:return Lr;default:return Ae}}case a:return Ae}}}var v=d,T=l,D=c,G=i,ee=n,H=h,M=o,R=m,ie=g,$=a,q=r,k=s,j=u,U=!1;function F(B){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(B)||I(B)===d}function y(B){return I(B)===l}function N(B){return I(B)===c}function L(B){return I(B)===i}function Q(B){return typeof B=="object"&&B!==null&&B.$$typeof===n}function O(B){return I(B)===h}function z(B){return I(B)===o}function V(B){return I(B)===m}function W(B){return I(B)===g}function Z(B){return I(B)===a}function X(B){return I(B)===r}function Y(B){return I(B)===s}function re(B){return I(B)===u}ne.AsyncMode=v,ne.ConcurrentMode=T,ne.ContextConsumer=D,ne.ContextProvider=G,ne.Element=ee,ne.ForwardRef=H,ne.Fragment=M,ne.Lazy=R,ne.Memo=ie,ne.Portal=$,ne.Profiler=q,ne.StrictMode=k,ne.Suspense=j,ne.isAsyncMode=F,ne.isConcurrentMode=y,ne.isContextConsumer=N,ne.isContextProvider=L,ne.isElement=Q,ne.isForwardRef=O,ne.isFragment=z,ne.isLazy=V,ne.isMemo=W,ne.isPortal=Z,ne.isProfiler=X,ne.isStrictMode=Y,ne.isSuspense=re,ne.isValidElementType=_,ne.typeOf=I})()),ne}var ur;function Sa(){return ur||(ur=1,process.env.NODE_ENV==="production"?kn.exports=Yd():kn.exports=Kd()),kn.exports}var Na,fr;function Jd(){if(fr)return Na;fr=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function s(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(i).map(function(h){return i[h]});if(d.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Na=s()?Object.assign:function(r,i){for(var c,d=o(r),l,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var u in c)n.call(c,u)&&(d[u]=c[u]);if(e){l=e(c);for(var f=0;f<l.length;f++)a.call(c,l[f])&&(d[l[f]]=c[l[f]])}}return d},Na}var Ea,mr;function Ta(){if(mr)return Ea;mr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ea=e,Ea}var Ia,gr;function pr(){return gr||(gr=1,Ia=Function.call.bind(Object.prototype.hasOwnProperty)),Ia}var ka,Ar;function Zd(){if(Ar)return ka;Ar=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Ta(),a={},o=pr();e=function(r){var i="Warning: "+r;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function s(r,i,c,d,l){if(process.env.NODE_ENV!=="production"){for(var h in r)if(o(r,h)){var u;try{if(typeof r[h]!="function"){var f=Error((d||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=r[h](i,h,d,c,null,n)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var g=l?l():"";e("Failed "+c+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},ka=s,ka}var xa,yr;function Xd(){if(yr)return xa;yr=1;var e=Sa(),n=Jd(),a=Ta(),o=pr(),s=Zd(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function i(){return null}return xa=function(c,d){var l=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function u(y){var N=y&&(l&&y[l]||y[h]);if(typeof N=="function")return N}var f="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:S(),arrayOf:_,element:I(),elementType:v(),instanceOf:T,node:H(),objectOf:G,oneOf:D,oneOfType:ee,shape:R,exact:ie};function m(y,N){return y===N?y!==0||1/y===1/N:y!==y&&N!==N}function p(y,N){this.message=y,this.data=N&&typeof N=="object"?N:{},this.stack=""}p.prototype=Error.prototype;function A(y){if(process.env.NODE_ENV!=="production")var N={},L=0;function Q(z,V,W,Z,X,Y,re){if(Z=Z||f,Y=Y||W,re!==a){if(d){var B=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 B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ae=Z+":"+W;!N[Ae]&&L<3&&(r("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[Ae]=!0,L++)}}return V[W]==null?z?V[W]===null?new p("The "+X+" `"+Y+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+X+" `"+Y+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:y(V,W,Z,X,Y)}var O=Q.bind(null,!1);return O.isRequired=Q.bind(null,!0),O}function b(y){function N(L,Q,O,z,V,W){var Z=L[Q],X=k(Z);if(X!==y){var Y=j(Z);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Y+"` supplied to `"+O+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return A(N)}function S(){return A(i)}function _(y){function N(L,Q,O,z,V){if(typeof y!="function")return new p("Property `"+V+"` of component `"+O+"` has invalid PropType notation inside arrayOf.");var W=L[Q];if(!Array.isArray(W)){var Z=k(W);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+O+"`, expected an array."))}for(var X=0;X<W.length;X++){var Y=y(W,X,O,z,V+"["+X+"]",a);if(Y instanceof Error)return Y}return null}return A(N)}function I(){function y(N,L,Q,O,z){var V=N[L];if(!c(V)){var W=k(V);return new p("Invalid "+O+" `"+z+"` of type "+("`"+W+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return A(y)}function v(){function y(N,L,Q,O,z){var V=N[L];if(!e.isValidElementType(V)){var W=k(V);return new p("Invalid "+O+" `"+z+"` of type "+("`"+W+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return A(y)}function T(y){function N(L,Q,O,z,V){if(!(L[Q]instanceof y)){var W=y.name||f,Z=F(L[Q]);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+O+"`, expected ")+("instance of `"+W+"`."))}return null}return A(N)}function D(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(L,Q,O,z,V){for(var W=L[Q],Z=0;Z<y.length;Z++)if(m(W,y[Z]))return null;var X=JSON.stringify(y,function(re,B){var Ae=j(B);return Ae==="symbol"?String(B):B});return new p("Invalid "+z+" `"+V+"` of value `"+String(W)+"` "+("supplied to `"+O+"`, expected one of "+X+"."))}return A(N)}function G(y){function N(L,Q,O,z,V){if(typeof y!="function")return new p("Property `"+V+"` of component `"+O+"` has invalid PropType notation inside objectOf.");var W=L[Q],Z=k(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+O+"`, expected an object."));for(var X in W)if(o(W,X)){var Y=y(W,X,O,z,V+"."+X,a);if(Y instanceof Error)return Y}return null}return A(N)}function ee(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 L=y[N];if(typeof L!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(L)+" at index "+N+"."),i}function Q(O,z,V,W,Z){for(var X=[],Y=0;Y<y.length;Y++){var re=y[Y],B=re(O,z,V,W,Z,a);if(B==null)return null;B.data&&o(B.data,"expectedType")&&X.push(B.data.expectedType)}var Ae=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new p("Invalid "+W+" `"+Z+"` supplied to "+("`"+V+"`"+Ae+"."))}return A(Q)}function H(){function y(N,L,Q,O,z){return $(N[L])?null:new p("Invalid "+O+" `"+z+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return A(y)}function M(y,N,L,Q,O){return new p((y||"React class")+": "+N+" type `"+L+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+O+"`.")}function R(y){function N(L,Q,O,z,V){var W=L[Q],Z=k(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type `"+Z+"` "+("supplied to `"+O+"`, expected `object`."));for(var X in y){var Y=y[X];if(typeof Y!="function")return M(O,z,V,X,j(Y));var re=Y(W,X,O,z,V+"."+X,a);if(re)return re}return null}return A(N)}function ie(y){function N(L,Q,O,z,V){var W=L[Q],Z=k(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type `"+Z+"` "+("supplied to `"+O+"`, expected `object`."));var X=n({},L[Q],y);for(var Y in X){var re=y[Y];if(o(y,Y)&&typeof re!="function")return M(O,z,V,Y,j(re));if(!re)return new p("Invalid "+z+" `"+V+"` key `"+Y+"` supplied to `"+O+"`.\nBad object: "+JSON.stringify(L[Q],null," ")+`
|
|
160
|
+
`}}catch(b){console.error("insertVideos error for",g,b),A=""}else A=f;o=u,a+=A,s.lastIndex=u}return a+=e.slice(o),a}async function fd(e){const{news:n,banners:a,newsRelatedResponses:o,slug:s,itemList:r,socials:i,getVideos:c}=e;let d=n?.body?.rendered??"";d=d.replace(/ /g,""),d=ld(d,a),d=dd(d),d=await Ks(d),d=await hd(d,e.texts,o),d=await ud(d,c),d=id(d),d=cd(d);const l=n.main.sources??[];return t.jsxs("div",{className:Sn.content,children:[s!=="liveblogs"&&e.showHeaderImage?n.hascontent?.hasgalleryimages?t.jsx(wa,{newsformated:n,internal:n.info.link.internal}):t.jsx(vs,{preview:n.preview}):null,t.jsx(fe,{banners:a,name:"block_1"}),t.jsx("div",{className:Sn.journalistArticleContent,children:t.jsx(nd,{autorIcon:e.autorIcon,socials:i,news:n,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),t.jsx(od,{summary:n.main.summary}),t.jsx("div",{className:Sn.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:d}}),t.jsx(Rl,{texts:e.texts,itemList:r,banners:a,slug:s,getVideos:c,newsRelatedListResponses:o}),l.length>0&&t.jsxs("div",{className:Sn.noteSource,children:[t.jsx(rd,{}),t.jsx("p",{children:e.texts.noteSource+(l.length===1?"":"s")+": "+l.map(h=>h.name).join(", ")})]})]})}const Js={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},Zs=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],d=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-embedded");return d?.code?t.jsxs("div",{className:Js.content,children:[t.jsx("div",{dangerouslySetInnerHTML:{__html:typeof d.code=="string"?d.code:""}}),d?.title&&t.jsx("p",{className:Js.title,children:d.title})]}):null}catch{return null}},ba={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},Xs=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],d=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-youtube");return!d?.code||typeof d.code!="string"?null:t.jsxs("div",{className:ba.content,children:[t.jsx("iframe",{className:ba.iframeStyled,src:`https://www.youtube.com/embed/${d.code}`,frameBorder:"0",allowFullScreen:!0}),d?.title&&t.jsx("p",{className:ba.title,children:d.title})]})}catch{return null}},md={content:"_content_ezbiw_1"},Rs=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNews({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const c=r[0]?.external?.iframe;return typeof c!="string"||c.trim()===""?null:t.jsx("div",{className:md.content,dangerouslySetInnerHTML:{__html:c}})}catch{return null}},er={content:"_content_156j7_1"},nt={imagen:"imagen",videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe"},gd={[nt.videoEmbedded]:Zs,[nt.videoYouTube]:Xs,[nt.iframe]:Rs},pd=({news:e,commonServices:n})=>{const{config:a,hascontent:o,info:s}=e,r=a.articlepreview,i=s.link.internal,c=o?.hasgalleryimages;if(r===nt.imagen&&c)return t.jsx("div",{className:er.content,children:t.jsx(wa,{newsformated:e,internal:i})});const d=r?gd[r]:null;return console.log("PreviewComponent",d),d?t.jsx("div",{className:er.content,children:t.jsx(d,{newsformated:e,internal:i,commonServices:n})}):null},Ad=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,cardWidth:200,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return t.jsx(Mt,{...c,titleGradient:!0,paths:e.paths},i)})})})},yd=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,cardWidth:343,cardGap:32,visibleItems:3,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return t.jsx(Mt,{...c,titleGradient:!0,paths:e.paths},i)})})})},wd=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(ue,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return E.createElement(Mt,{...c,key:i,titleGradient:!0,paths:e.paths})})})})},Nn=e=>{const n={};for(const a in e)a.startsWith("--")&&(n[a]=e[a]);return n},dt={headerSection:"_headerSection_1c69w_1",title:"_title_1c69w_11",subtitle:"_subtitle_1c69w_23",newsContent:"_newsContent_1c69w_36",containerCards:"_containerCards_1c69w_44",image:"_image_1c69w_50",blockHeadContainer:"_blockHeadContainer_1c69w_56"},bd=e=>{const{content:n,title:a,isVideo:o}=e;if(!n||n.length===0)return;const s=n[0],r=n.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return s&&r&&t.jsxs(ue,{title:a,titleUrl:e.titleUrl,children:[t.jsx("div",{className:dt.headerSection,children:t.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:dt.image,href:s?.info?.link?.url,target:s?.info?.link?.target,children:[t.jsxs("div",{className:dt.blockHeadContainer,children:[t.jsx("p",{className:dt.title,children:s?.main?.title.home}),s?.main?.subtitle?.rendered&&t.jsx("p",{className:dt.subtitle,children:s?.main?.subtitle?.striped})]}),t.jsx(_e,{preview:s.preview})]})}),t.jsxs("div",{className:dt.containerCards,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),t.jsx("div",{className:dt.newsContent,children:Array.isArray(r)&&r.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:i?c.main.title.home:c.main.title.section}}};return t.jsx("div",{style:{order:d},children:t.jsx(Oe,{...l,isVideo:o,paths:e.paths})},d)})})]})]})},tr={banner:e=>t.jsx(fe,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>t.jsx(fn,{...e}),"Modulo 1x3":e=>t.jsx(ma,{...e}),"Modulo 1x4":e=>t.jsx(js,{...e}),"Modulo 1x5":e=>t.jsx($s,{...e}),"Destacado noticias":e=>t.jsx(Ps,{...e}),"Destacado full width":e=>t.jsx(bd,{...e}),"Destacado videos":e=>t.jsx(Qs,{...e}),"Carrusel card":e=>t.jsx(zs,{...e}),"Carrusel story":e=>t.jsx(Ad,{...e}),"Carrusel owl":e=>t.jsx(yd,{...e}),"Modulo fotogaleria":e=>t.jsx(wd,{...e}),"Carrusel opinion":e=>t.jsx(Fs,{...e}),"Modulo 1x3 card":e=>t.jsx(Hs,{...e})};function va({component:e,slot_id:n,data:a,banners:o}){if(o)return tr[e]&&t.jsx("div",{className:"home-slot",style:Nn(a),children:tr[e]({...a,banners:o,slot_id:n})})}function vd({children:e,stylesConfigEntry:n}){return t.jsx("div",{className:"home-slot",style:Nn(n),children:e})}const nr={Diario:e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(qs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:n,banners:e.banners,showSuper:e.showSuper,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(qs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:n,banners:e.banners,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},Super:e=>t.jsx(_t,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>t.jsx(Ul,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>t.jsx(xl,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},En=({component:e,data:n,banners:a,rightOnlyBanner:o})=>t.jsx("div",{style:Nn(n),children:nr[e]&&nr[e]({...n,rightOnlyBanner:o,banners:a})}),Cd=({slots:e,DYNAMIC_SLOT_SUBINDEXES:n,stylesConfig:a,AutorIcon:o,config:s,banners:r,showTagBySection:i})=>{const c=[],l=n,h=Object.keys(e).length/l;for(let u=1;u<=h;u++)for(let f=1;f<=l;f++){const g="Home_"+u+"_"+f;!e[g]||!e[g].blockSass||!e[g].blockSass[0]||!e[g].blockSass[0].value||!e[g].blockSass[0].block||e[g].blockSass[0].block==="No Mostrar"||c.push(t.jsxs(ss,{show:!!e[g].content?.data,order:(u-1)*l+(f-1),children:[t.jsx(va,{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:t.jsx(o,{}),paths:s.paths,showTagBySection:i}}),t.jsx(Ze,{children:t.jsx($e,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f))}return c},_d=({mainBlock:e,StylesConfigMain:n,config:a,banners:o})=>{const{PUBLIC_ENV:s}=K();if(s!=="local")return null;const r=e?.news?.data||[],i=(c,d)=>({...e?.news,...n[c],data:r.slice(0,d),paths:a.paths});return t.jsxs(t.Fragment,{children:[t.jsx(En,{component:"Super",data:i("Super",1),banners:o}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:1})}),t.jsx(En,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:o}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:1})}),t.jsx(En,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:o}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:1})})]})},Sd=e=>{const{config:n,hascontent:a}=e,o=n.articlepreview,s=[nt.videoEmbedded,nt.videoYouTube,nt.iframe];return!!(o===nt.imagen&&a?.hasgalleryimages||s.includes(o))},Nd=async e=>{const{custom_complement:n,ranking:a=[],banners:o,autor:s=[],news:r=[],newsRelatedResponses:i=[],itemList:c=[],socials:d,getVideos:l}=e,h=e.slug==="liveblogs",{SHOW_NEWS_MORE_NEWS:u,SHOW_NEWS_RELATED_NEWS:f}=K();if(!(!r||!r[0]))return t.jsx(t.Fragment,{children:t.jsxs(Gl,{className:ya.contentLayout2,children:[t.jsx(zl,{option:e.slug,news:r,paths:e.paths,headerSectionStyles:e.headerSectionStyles}),t.jsx($e,{banners:o,index:1}),!h&&e.commonServices&&t.jsx(pd,{news:r[0],commonServices:e.commonServices}),t.jsx(Hl,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:c,ranking:a,readestCustomStyles:e.readestCustomStyles,bannerTop:t.jsx(fe,{banners:o??[],name:"right_1"}),banner:t.jsx(fe,{banners:o??[],name:"right_2"}),complement:t.jsxs("div",{id:"comentarios",suppressHydrationWarning:!0,children:[s.length>0&&t.jsx(xs,{texts:e.texts,autorIcon:e.autorIcon,autor:s[0],paths:e.paths}),r[0].authors.length>1&&t.jsx(Us,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),t.jsx("div",{className:ya.tagContent,children:t.jsx(ks,{tags:r[0]?.keywords?.tags,paths:e.paths})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem"},suppressHydrationWarning:!0,children:[e.showComments&&t.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"comment",internalPath:e.internalPath,COMMENTS_VARS:e.COMMENTS_VARS}))}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:2})}),f&&t.jsxs(t.Fragment,{children:[t.jsx(va,{component:"Carrusel card",banners:[],slot_id:"Nota_1",data:{...e.stylesConfig["Carrusel card"],content:e.relatedNewsList??[],title:e.texts.relatedNewsTitle,titleUrl:void 0}}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:3})})]}),u&&t.jsxs(t.Fragment,{children:[t.jsx(ue,{title:e.texts.moreNewsTitle,children:t.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"more",stylesConfig:e.stylesConfig,section:r[0].info.section?.slug??"",currentNews:r[0]}))})}),t.jsx(Ze,{children:t.jsx($e,{banners:o,index:4})})]}),n&&n()]})]}),children:t.jsxs("section",{style:{"--avatar-content-align-items-desk":e.slug==="liveblogs"?"flex-start":"center"},children:[t.jsx(fd,{texts:e.texts,autorIcon:e.autorIcon,socials:d,news:r[0],banners:o,newsRelatedResponses:i,itemList:c,slug:e.slug,getVideos:l,noteShare:e.noteShare,paths:e.paths,showHeaderImage:!Sd(r[0])}),t.jsx(fe,{banners:o??[],name:"block_3"})]})})]})})},Et={content:"_content_1tl6i_1",contentInfo:"_contentInfo_1tl6i_24",imageStyled:"_imageStyled_1tl6i_41",name:"_name_1tl6i_46",description:"_description_1tl6i_51",contentInfoWithoutImg:"_contentInfoWithoutImg_1tl6i_104"},Ed=async e=>{const n=e.img?await de(e.img):"";return t.jsx("section",{className:Et.content,children:t.jsxs("div",{className:`${Et.contentInfo} ${n?"":Et.contentInfoWithoutImg}`,children:[e.img&&t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Et.imageStyled,src:n}),t.jsx("h1",{className:Et.name,children:e.tag}),e.description&&t.jsx("div",{className:Et.description,dangerouslySetInnerHTML:{__html:e.description}})]})})},Tn={content:"_content_7wvro_1",contentInfo:"_contentInfo_7wvro_23",name:"_name_7wvro_34",description:"_description_7wvro_43"},Td=e=>t.jsx("section",{className:Tn.content,style:{color:e.textColor,"--backDropHeigth":e.backDropHeigth?e.backDropHeigth:"100%",padding:e.sectionPadding??"","--backgroundColor":e.backgroundColor},children:t.jsxs("div",{className:Tn.contentInfo,children:[t.jsx("h1",{className:Tn.name,style:{color:e.textColor},children:e.tag}),e.description&&t.jsx("div",{style:{color:e.textColor},className:Tn.description,dangerouslySetInnerHTML:{__html:e.description}})]})}),Id=e=>{const{option:n,entity:a}=e;switch(n){case"op1":return t.jsx(Ed,{tag:a?.name??"",img:a?.image?.url??"",description:a?.description?a?.description:""});case"op2":return t.jsx(Td,{tag:a?.name??"",description:a?.description?a?.description:"",backDropHeigth:e.backDropHeigth,backgroundColor:e.backgroundColor,sectionPadding:e.sectionPadding,textColor:e.textColor});default:return t.jsx(t.Fragment,{})}},zt={content:"_content_1046n_1",buttonStyled:"_buttonStyled_1046n_9",searchStyled:"_searchStyled_1046n_20",inputStyled:"_inputStyled_1046n_36",inputStyledTest:"_inputStyledTest_1046n_55"},kd=e=>t.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("g",{children:t.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),xd=e=>t.jsx("form",{className:zt.content,style:{height:e.hasContent?"218px":"50vh"},children:t.jsxs("div",{className:`${zt.inputStyled} sass-buscar-form`,children:[t.jsx("input",{className:zt.inputStyledTest,defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),t.jsx("button",{className:zt.buttonStyled,type:"submit",children:t.jsx(kd,{className:zt.searchStyled})})]})}),Ca={content:"_content_io3tv_1",newsContentSection:"_newsContentSection_io3tv_5",itemContent:"_itemContent_io3tv_10"},Ud=e=>{const{data:n,option:a,autor:o,page:s,banners:r,pathname:i,ranking:c,currentPage:d,slug:l,texts:h={}}=e,u=[5,10,15],f={5:1,10:2,15:3};switch(a){case"op1":return t.jsx(t.Fragment,{children:t.jsxs(ra,{children:[t.jsx(Ss,{autor:o[0],autorIcon:e.autorIcon}),t.jsx(ca,{paths:e.paths,ranking:c,readestTitle:h.readestTitle??"",bannerTop:t.jsx(fe,{banners:r??[],name:"right_1"}),banner:t.jsx(fe,{banners:r??[],name:"right_2"}),children:t.jsx("section",{className:Ca.content,children:n.length>0?t.jsx(An,{className:[Ca.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Ot,{texts:h,pathname:i,query:"",currentPage:d,maxPages:e.paginationLimit,showNext:!(n.length<e.newsListLimit)}),children:Array.isArray(n)&&n?.map((g,m)=>t.jsxs(E.Fragment,{children:[u.includes(m+1)&&t.jsx("div",{className:Ca.itemContent+" banner-context",children:t.jsx(fe,{banners:r??[],name:`block_2_${f[m+1]}`})}),t.jsx(_n,{autorIcon:e.autorIcon,item:g,option:l,paths:e.paths},m)]},m))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:h.autorNotResultMessage})})})})]})});case"op2":return t.jsx(t.Fragment,{children:t.jsxs(ra,{children:[t.jsx(Ns,{autor:o[0],autorIcon:e.autorIcon}),Array.isArray(n)?t.jsxs(t.Fragment,{children:[t.jsx(ma,{content:n,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),t.jsx(Ot,{texts:h,query:"",pathname:i,maxPages:Number(e.paginationLimit),currentPage:Number(s),showNext:!((n.length??0)<Number(e.newsListLimit))})]}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:h.autorNotResultMessage})})]})});default:return t.jsx(t.Fragment,{})}},ar={content:"_content_pq89v_1",videoContent:"_videoContent_pq89v_9"},Ft={container:"_container_1xr2t_1",playStyled:"_playStyled_1xr2t_6",imageStyled:"_imageStyled_1xr2t_13",longer:"_longer_1xr2t_26",contentNews:"_contentNews_1xr2t_31",tagContent:"_tagContent_1xr2t_51",tag:"_tag_1xr2t_51",titular:"_titular_1xr2t_68",small:"_small_1xr2t_81",figure:"_figure_1xr2t_87",backDrop:"_backDrop_1xr2t_92",backDropAux:"_backDropAux_1xr2t_100"},or=async e=>{const{size:n="longer",video:a}=e,o=a.main.image.sizes[0]?.url??"";return t.jsx("figure",{className:Ft.figure,children:t.jsxs("span",{className:Ft.backdrop,children:[t.jsx("span",{className:Ft.backDropAux}),t.jsx(P,{href:a.info.link.url,target:a.info.link.target,children:t.jsxs("div",{children:[a.main.image.sizes.map(async(s,r)=>s.width>=580?t.jsx("source",{media:"(width >=900px)",srcSet:await de(s.url)},r):t.jsx("source",{media:"(width <900px)",srcSet:await de(s.url)},r)),t.jsx("img",{fetchPriority:"low",loading:"lazy",className:[Ft.imageStyled,Ft[n]].join(" "),alt:"",src:o?await de(o):""})]})})]})})},qd=e=>{const{videos:n}=e;return t.jsx("div",{className:ar.content,children:t.jsx(wt,{children:t.jsx(ue,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:ar.videoContent,children:[t.jsx(or,{video:n[0]}),t.jsx("div",{style:{display:"flex",flexDirection:"column"},children:n.slice(1).map((a,o)=>t.jsx(or,{size:"small",video:a},`video-small-${o}`))})]})})})})},ht={content:"_content_ruy5q_1",videoContent:"_videoContent_ruy5q_9",articleSection:"_articleSection_ruy5q_21",contentLatout:"_contentLatout_ruy5q_31",title:"_title_ruy5q_36",article:"_article_ruy5q_21",correspondent:"_correspondent_ruy5q_64"},sr={container:"_container_1rq2h_1",playStyled:"_playStyled_1rq2h_9"},Ld=e=>{const{video:n}=e,a=un();return t.jsx(P,{href:n.info.link.url?n.info.link.url:void 0,target:n.info.link.target,children:t.jsxs("section",{className:sr.container,children:[t.jsx(_e,{isLarge:!0,preview:{sizes:n.main.image.sizes,description:n.main.description}}),t.jsx(a,{className:sr.playStyled})]})})},Bd=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${ke(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:ht.content,children:t.jsx(wt,{className:ht.contentLatout,children:t.jsx(ue,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:ht.videoContent,children:[t.jsx(Ld,{video:e.video}),t.jsxs("div",{className:ht.articleSection,children:[t.jsx(P,{className:ht.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),t.jsx("p",{className:ht.article,children:xe(e.video.main.description)}),t.jsx("p",{className:ht.correspondent,children:n()})]})]})})})})},Pd=e=>{switch(e.option){case"op1":return t.jsx(qd,{videos:e.data});case"op2":return t.jsx(Bd,{video:e.data[0]});default:return t.jsx(t.Fragment,{})}};function Od({containerId:e,containerId2:n}){return E.useEffect(()=>{try{let a=function(){const h=window.twttr;h?.widgets?h.widgets.load(o):l<10?(l++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const o=document.getElementById(e),s=document.getElementById(n);if(!o&&!s)return;const r=o?.querySelectorAll("script[src]")??[],i=s?.querySelectorAll("script[src]")??[];[...r,...i].forEach(h=>{const u=document.createElement("script");Array.from(h.attributes).forEach(f=>{u.setAttribute(f.name,f.value)}),h.replaceWith(u)});const d=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(d)for(let h=0;h<d.length;h++)d[h]?.remove();let l=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const h=document.createElement("script");h.src="https://platform.twitter.com/widgets.js",h.async=!0,h.onload=a,document.body.appendChild(h)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Dd=e=>{const{isVideo:n=!1,isLarge:a=!1,hasShadow:o=!1,BackDropAuxHeigthMobile:s}=e,r=ta(),i=E.useMemo(()=>e?.preview?.sizes||[],[e?.preview?.sizes]);if(!i.length||!i[0]?.url||i[0]?.url==="")return t.jsx("div",{className:se.imagePlaceholder});const{PUBLIC_API_HOST:c,PUBLIC_ENV:d}=K();return t.jsx("figure",{className:se.figure,children:t.jsxs("span",{className:se.backdrop,children:[t.jsx("span",{className:se.backdropAux,style:{height:s||"56.25%"}}),t.jsxs("picture",{children:[t.jsx("img",{fetchPriority:"low",loading:"lazy",className:se.imageStyled,alt:e.preview?.description||"",src:(d==="local"?c:"")+i[0]?.url,style:{boxShadow:o?"0px 4px 8px 0px #00000033":"0px"}}),n&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:se.boxPlayIcon,style:{height:a?"40%":"72px"}}),t.jsx(r,{className:se.playStyled,style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},Md=e=>t.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),rr={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},ir=6,jd=({section:e,currentNews:n,banner:a,isVisible:o=!1,stylesConfig:s})=>{const[r,i]=E.useState({data:Array.from({length:ir},()=>rr)}),[c,d]=E.useState(!1),l=E.useCallback(async()=>{if(!(c||!n?.info?.link?.internal)){d(!0);try{const h=new URLSearchParams({section:e,currentNewsLink:n.info.link.internal}),u=await fetch(`/api/get-more-news?${h}`);if(!u.ok)throw i(void 0),new Error(`HTTP error! status: ${u.status}`);const f=await u.json();i({...f,data:f.data.slice(0,ir)})}catch(h){console.error("[/api/get-more-news] Error:",h.message),i(void 0)}}},[e,n.info.link.internal,c]);return E.useEffect(()=>{o&&l()},[o,r,l]),!r?.data||r.data.length===0?null:t.jsx($d,{news:r.data,title:"Más Noticias",...s["Modulo 1x3 Client"]??s["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,isVisible:o})},$d=e=>{const{news:n,hasLines:a=!1}=e,o=s=>a&&(s+1)%3!==0?Aa.contentSeparator:"";return t.jsx("div",{className:Aa.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:n.map((s,r)=>{const{main:i,authors:c,info:d,preview:l,isVideo:h=!1,config:u,overImage:f="default",isTitle:g=!1,isLarge:m=!1}=s;return t.jsx("div",{className:o(r),style:{order:r},children:t.jsxs("section",{className:Dt.content,children:[t.jsx(P,{title:i?.title?.section,href:d?.link?.url??"invalidUrl","aria-label":i?.title?.section??"nota",target:d?.link?.target,children:t.jsx(Dd,{isVisible:e.isVisible,preview:l,rounded:e.rounded,isVideo:h,isLarge:m,getImageUrl:e.getImageUrl})}),t.jsx("div",{className:Dt.newsDescription,children:t.jsx(Qd,{main:i,authors:c,info:d,preview:l,share:e.share,config:u,overImage:f,isTitle:g,paths:s.paths,isVisible:e.isVisible})})]})},r)})})},Qd=e=>{const{share:n=!1,cutSubtitle:a=!0}=e,s=(()=>{if(!e?.authors||e.authors.length===0)return"";const r=e.authors[0],i=ke(e.info?.date?.modified);return r&&e?.config?.showtime&&e.config?.showauthor?`${r.fullname} - ${i}`:r&&e.config?.showauthor?r.fullname:e?.config?.showtime?i:""})();return t.jsxs("div",{className:ae.boxInformation,children:[n&&t.jsx(Md,{className:ae.dotStyles}),e?.info?.section?.url&&t.jsxs("div",{className:ae.sectionDescriptionContainer,children:[t.jsx(P,{className:ae.sectionDescription,href:e.info.section.url??"invalidUrl",children:e.info.section.name}),e?.main?.uppertitle&&t.jsx("p",{className:ae.uppertitle,children:e.main.uppertitle})]}),t.jsx("h2",{className:ae.articule,children:t.jsx(P,{className:ae.linkStyled,style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&t.jsx("p",{className:ae.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?xe(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&s&&t.jsx(t.Fragment,{children:e.authors?.[0]?.internaluser?t.jsx(P,{className:ae.correspondentLink,href:`/autor/${e.authors[0].name}`,children:s}):t.jsx("div",{className:ae.correspondent,children:s})})]})},Gd=({user:e,handleLogout:n,message:a})=>{const o=()=>{const r=document.querySelector(".user-actions-options");r&&r.classList.toggle("show")},s=e.firstname??"Usuario";return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?t.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):t.jsx("div",{className:"comment-avatar",children:s.charAt(0).toUpperCase()}),t.jsxs("div",{style:{flex:1},children:[t.jsxs("div",{className:"comment-header",children:[t.jsxs("span",{className:"comment-username user-welcome",children:["Hola ",s,"!"]}),t.jsx("div",{className:"user-actions-options",children:t.jsx("button",{onClick:()=>{n()},children:"Cerrar Sesion"})}),t.jsx("button",{className:"user-actions-span",onClick:o,children:t.jsx(bn,{width:13,height:13,fill:"black"})})]}),t.jsx("p",{className:"comment-text",children:a})]})]})})},he={overlay:"_overlay_qj491_3",popup:"_popup_qj491_17",title:"_title_qj491_40",optionsContainer:"_optionsContainer_qj491_52",option:"_option_qj491_52",radioInput:"_radioInput_qj491_66",radioCustom:"_radioCustom_qj491_70",optionLabel:"_optionLabel_qj491_97",buttons:"_buttons_qj491_110",cancelButton:"_cancelButton_qj491_117",closeButton:"_closeButton_qj491_118",buttonAlone:"_buttonAlone_qj491_137",reportButton:"_reportButton_qj491_143",successContainer:"_successContainer_qj491_163",thumbsUp:"_thumbsUp_qj491_171",successMessage:"_successMessage_qj491_177",errorMessage:"_errorMessage_qj491_218",loadingContainer:"_loadingContainer_qj491_231"},cr=async(e,n)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:o,COMMENTS_CAPTCHA_API_KEY:s}=n;try{const r=a,i=o,l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${r}/assessments?key=${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",l),l.tokenProperties?.valid===!0}catch(r){return console.error("Error verificando reCAPTCHA Enterprise:",r),!1}};async function Hd({publication:e,username:n,id:a,type:o,baseUrl:s,captchaToken:r,apiToken:i,COMMENTS_VARS:c}){if(!e||!n||!a||!o||!r)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof n!="string"||typeof a!="string"||typeof o!="string"||typeof r!="string")throw new Error("Todos los parámetros deben ser strings");if(!await cr(r,c))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const d=`${s}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,l=encodeURIComponent(o),h=new URLSearchParams({publication:e,username:n,id:a,type:l}),u=`${d}?${h.toString()}`;try{console.log("Reporting comment:",{publication:e,username:n,id:a,type:o,encodedType:l,url:u});const f=await oe.post(u,null,{headers:{"User-Agent":"Bluestack","x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",f.data),f.status===200||f.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:f.status,data:f.data};throw new Error(`Respuesta inesperada del servidor: ${f.status}`)}catch(f){if(console.error("Error reporting comment:",f),oe.isAxiosError(f)){const g=f.response?.status,m=f.response?.data;throw g===400?new Error("Datos inválidos para el reporte"):g===401?new Error("Token de API inválido"):g===403?new Error("Acceso denegado para reportar comentario"):g===404?new Error("Comentario no encontrado"):g===409?new Error("El comentario ya fue reportado por este usuario"):g===500?new Error("Error interno del servidor CMS"):new Error(m?.error||m?.message||`Error HTTP ${g}: No se pudo reportar el comentario`)}throw f}}const Me={spam:"Es spam o contenido comercial no deseado",inappropriate:"Lenguaje inadecuado",hate:"Discurso o símbolos de odio",misinformation:"Información falsa o fraude",terrorism:"Promueve el terrorismo",intellectual:"Violación de propiedad intelectual",bullying:"Bullying o acoso"};function zd(e){return Me[e]}const ut=300,Ke={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function Fd(e){const n=e.split(" ");if(n.length!==3)return e;const[a,o,s]=n,r=o.charAt(0).toUpperCase()+o.slice(1).toLowerCase();return`${a} ${r} ${s}`}const _a=(e,n)=>{if(!e||!e.current)return{boolean:!1,text:""};const a=e.current?.value||"",o=a.length>ut,{PUBLIC_ENV:s}=K(),r=s==="local",i=a.trim()!==""&&(r||n!=="")&&!o,c=o?`No debes exceder el limite de ${ut} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:i,text:c}},lr=e=>{const n=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!n)return[];try{return JSON.parse(decodeURIComponent(n.split("=")[1]??""))}catch{return[]}},Vd=(e,n)=>{const a=lr(e);a.includes(n)||(a.push(n),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function Wd(e){const[n,a]=e.split("@");if(!n||!a)return e;let o="";n.length<=2?o=n[0]+"*":o=n[0]+"*".repeat(n.length-2)+n[n.length-1];const s=a.lastIndexOf(".");if(s===-1)return`${o}@${a}`;const r=a.slice(0,s),i=a.slice(s);let c="";return r.length<=2?c=r[0]+"*":c=r[0]+"*".repeat(r.length-2)+r[r.length-1],`${o}@${c}${i}`}var In={exports:{}},kn={exports:{}},te={};var dr;function Yd(){if(dr)return te;dr=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(v){if(typeof v=="object"&&v!==null){var T=v.$$typeof;switch(T){case n:switch(v=v.type,v){case d:case l:case o:case r:case s:case u:return v;default:switch(v=v&&v.$$typeof,v){case c:case h:case m:case g:case i:return v;default:return T}}case a:return T}}}function I(v){return _(v)===l}return te.AsyncMode=d,te.ConcurrentMode=l,te.ContextConsumer=c,te.ContextProvider=i,te.Element=n,te.ForwardRef=h,te.Fragment=o,te.Lazy=m,te.Memo=g,te.Portal=a,te.Profiler=r,te.StrictMode=s,te.Suspense=u,te.isAsyncMode=function(v){return I(v)||_(v)===d},te.isConcurrentMode=I,te.isContextConsumer=function(v){return _(v)===c},te.isContextProvider=function(v){return _(v)===i},te.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===n},te.isForwardRef=function(v){return _(v)===h},te.isFragment=function(v){return _(v)===o},te.isLazy=function(v){return _(v)===m},te.isMemo=function(v){return _(v)===g},te.isPortal=function(v){return _(v)===a},te.isProfiler=function(v){return _(v)===r},te.isStrictMode=function(v){return _(v)===s},te.isSuspense=function(v){return _(v)===u},te.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===o||v===l||v===r||v===s||v===u||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===g||v.$$typeof===i||v.$$typeof===c||v.$$typeof===h||v.$$typeof===A||v.$$typeof===b||v.$$typeof===S||v.$$typeof===p)},te.typeOf=_,te}var ne={};var hr;function Kd(){return hr||(hr=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(B){return typeof B=="string"||typeof B=="function"||B===o||B===l||B===r||B===s||B===u||B===f||typeof B=="object"&&B!==null&&(B.$$typeof===m||B.$$typeof===g||B.$$typeof===i||B.$$typeof===c||B.$$typeof===h||B.$$typeof===A||B.$$typeof===b||B.$$typeof===S||B.$$typeof===p)}function I(B){if(typeof B=="object"&&B!==null){var Ae=B.$$typeof;switch(Ae){case n:var Bn=B.type;switch(Bn){case d:case l:case o:case r:case s:case u:return Bn;default:var Lr=Bn&&Bn.$$typeof;switch(Lr){case c:case h:case m:case g:case i:return Lr;default:return Ae}}case a:return Ae}}}var v=d,T=l,D=c,G=i,ee=n,H=h,M=o,R=m,ie=g,$=a,q=r,k=s,j=u,U=!1;function F(B){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(B)||I(B)===d}function y(B){return I(B)===l}function N(B){return I(B)===c}function L(B){return I(B)===i}function Q(B){return typeof B=="object"&&B!==null&&B.$$typeof===n}function O(B){return I(B)===h}function z(B){return I(B)===o}function V(B){return I(B)===m}function W(B){return I(B)===g}function Z(B){return I(B)===a}function X(B){return I(B)===r}function Y(B){return I(B)===s}function re(B){return I(B)===u}ne.AsyncMode=v,ne.ConcurrentMode=T,ne.ContextConsumer=D,ne.ContextProvider=G,ne.Element=ee,ne.ForwardRef=H,ne.Fragment=M,ne.Lazy=R,ne.Memo=ie,ne.Portal=$,ne.Profiler=q,ne.StrictMode=k,ne.Suspense=j,ne.isAsyncMode=F,ne.isConcurrentMode=y,ne.isContextConsumer=N,ne.isContextProvider=L,ne.isElement=Q,ne.isForwardRef=O,ne.isFragment=z,ne.isLazy=V,ne.isMemo=W,ne.isPortal=Z,ne.isProfiler=X,ne.isStrictMode=Y,ne.isSuspense=re,ne.isValidElementType=_,ne.typeOf=I})()),ne}var ur;function Sa(){return ur||(ur=1,process.env.NODE_ENV==="production"?kn.exports=Yd():kn.exports=Kd()),kn.exports}var Na,fr;function Jd(){if(fr)return Na;fr=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function s(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(i).map(function(h){return i[h]});if(d.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Na=s()?Object.assign:function(r,i){for(var c,d=o(r),l,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var u in c)n.call(c,u)&&(d[u]=c[u]);if(e){l=e(c);for(var f=0;f<l.length;f++)a.call(c,l[f])&&(d[l[f]]=c[l[f]])}}return d},Na}var Ea,mr;function Ta(){if(mr)return Ea;mr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ea=e,Ea}var Ia,gr;function pr(){return gr||(gr=1,Ia=Function.call.bind(Object.prototype.hasOwnProperty)),Ia}var ka,Ar;function Zd(){if(Ar)return ka;Ar=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Ta(),a={},o=pr();e=function(r){var i="Warning: "+r;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function s(r,i,c,d,l){if(process.env.NODE_ENV!=="production"){for(var h in r)if(o(r,h)){var u;try{if(typeof r[h]!="function"){var f=Error((d||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=r[h](i,h,d,c,null,n)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var g=l?l():"";e("Failed "+c+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},ka=s,ka}var xa,yr;function Xd(){if(yr)return xa;yr=1;var e=Sa(),n=Jd(),a=Ta(),o=pr(),s=Zd(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function i(){return null}return xa=function(c,d){var l=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function u(y){var N=y&&(l&&y[l]||y[h]);if(typeof N=="function")return N}var f="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:S(),arrayOf:_,element:I(),elementType:v(),instanceOf:T,node:H(),objectOf:G,oneOf:D,oneOfType:ee,shape:R,exact:ie};function m(y,N){return y===N?y!==0||1/y===1/N:y!==y&&N!==N}function p(y,N){this.message=y,this.data=N&&typeof N=="object"?N:{},this.stack=""}p.prototype=Error.prototype;function A(y){if(process.env.NODE_ENV!=="production")var N={},L=0;function Q(z,V,W,Z,X,Y,re){if(Z=Z||f,Y=Y||W,re!==a){if(d){var B=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 B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ae=Z+":"+W;!N[Ae]&&L<3&&(r("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[Ae]=!0,L++)}}return V[W]==null?z?V[W]===null?new p("The "+X+" `"+Y+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+X+" `"+Y+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:y(V,W,Z,X,Y)}var O=Q.bind(null,!1);return O.isRequired=Q.bind(null,!0),O}function b(y){function N(L,Q,O,z,V,W){var Z=L[Q],X=k(Z);if(X!==y){var Y=j(Z);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Y+"` supplied to `"+O+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return A(N)}function S(){return A(i)}function _(y){function N(L,Q,O,z,V){if(typeof y!="function")return new p("Property `"+V+"` of component `"+O+"` has invalid PropType notation inside arrayOf.");var W=L[Q];if(!Array.isArray(W)){var Z=k(W);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+O+"`, expected an array."))}for(var X=0;X<W.length;X++){var Y=y(W,X,O,z,V+"["+X+"]",a);if(Y instanceof Error)return Y}return null}return A(N)}function I(){function y(N,L,Q,O,z){var V=N[L];if(!c(V)){var W=k(V);return new p("Invalid "+O+" `"+z+"` of type "+("`"+W+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return A(y)}function v(){function y(N,L,Q,O,z){var V=N[L];if(!e.isValidElementType(V)){var W=k(V);return new p("Invalid "+O+" `"+z+"` of type "+("`"+W+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return A(y)}function T(y){function N(L,Q,O,z,V){if(!(L[Q]instanceof y)){var W=y.name||f,Z=F(L[Q]);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+O+"`, expected ")+("instance of `"+W+"`."))}return null}return A(N)}function D(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(L,Q,O,z,V){for(var W=L[Q],Z=0;Z<y.length;Z++)if(m(W,y[Z]))return null;var X=JSON.stringify(y,function(re,B){var Ae=j(B);return Ae==="symbol"?String(B):B});return new p("Invalid "+z+" `"+V+"` of value `"+String(W)+"` "+("supplied to `"+O+"`, expected one of "+X+"."))}return A(N)}function G(y){function N(L,Q,O,z,V){if(typeof y!="function")return new p("Property `"+V+"` of component `"+O+"` has invalid PropType notation inside objectOf.");var W=L[Q],Z=k(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+O+"`, expected an object."));for(var X in W)if(o(W,X)){var Y=y(W,X,O,z,V+"."+X,a);if(Y instanceof Error)return Y}return null}return A(N)}function ee(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 L=y[N];if(typeof L!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(L)+" at index "+N+"."),i}function Q(O,z,V,W,Z){for(var X=[],Y=0;Y<y.length;Y++){var re=y[Y],B=re(O,z,V,W,Z,a);if(B==null)return null;B.data&&o(B.data,"expectedType")&&X.push(B.data.expectedType)}var Ae=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new p("Invalid "+W+" `"+Z+"` supplied to "+("`"+V+"`"+Ae+"."))}return A(Q)}function H(){function y(N,L,Q,O,z){return $(N[L])?null:new p("Invalid "+O+" `"+z+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return A(y)}function M(y,N,L,Q,O){return new p((y||"React class")+": "+N+" type `"+L+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+O+"`.")}function R(y){function N(L,Q,O,z,V){var W=L[Q],Z=k(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type `"+Z+"` "+("supplied to `"+O+"`, expected `object`."));for(var X in y){var Y=y[X];if(typeof Y!="function")return M(O,z,V,X,j(Y));var re=Y(W,X,O,z,V+"."+X,a);if(re)return re}return null}return A(N)}function ie(y){function N(L,Q,O,z,V){var W=L[Q],Z=k(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type `"+Z+"` "+("supplied to `"+O+"`, expected `object`."));var X=n({},L[Q],y);for(var Y in X){var re=y[Y];if(o(y,Y)&&typeof re!="function")return M(O,z,V,Y,j(re));if(!re)return new p("Invalid "+z+" `"+V+"` key `"+Y+"` supplied to `"+O+"`.\nBad object: "+JSON.stringify(L[Q],null," ")+`
|
|
161
161
|
Valid keys: `+JSON.stringify(Object.keys(y),null," "));var B=re(W,Y,O,z,V+"."+Y,a);if(B)return B}return null}return A(N)}function $(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every($);if(y===null||c(y))return!0;var N=u(y);if(N){var L=N.call(y),Q;if(N!==y.entries){for(;!(Q=L.next()).done;)if(!$(Q.value))return!1}else for(;!(Q=L.next()).done;){var O=Q.value;if(O&&!$(O[1]))return!1}}else return!1;return!0;default:return!1}}function q(y,N){return y==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function k(y){var N=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":q(N,y)?"symbol":N}function j(y){if(typeof y>"u"||y===null)return""+y;var N=k(y);if(N==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return N}function U(y){var N=j(y);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function F(y){return!y.constructor||!y.constructor.name?f:y.constructor.name}return g.checkPropTypes=s,g.resetWarningCache=s.resetWarningCache,g.PropTypes=g,g},xa}var Ua,wr;function Rd(){if(wr)return Ua;wr=1;var e=Ta();function n(){}function a(){}return a.resetWarningCache=n,Ua=function(){function o(i,c,d,l,h,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function s(){return o}var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:a,resetWarningCache:n};return r.PropTypes=r,r},Ua}var br;function e1(){if(br)return In.exports;if(br=1,process.env.NODE_ENV!=="production"){var e=Sa(),n=!0;In.exports=Xd()(e.isElement,n)}else In.exports=Rd()();return In.exports}var t1=e1();const ve=ft(t1);var n1=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},qa.apply(this,arguments)}function a1(e,n){if(e==null)return{};var a={},o=Object.keys(e),s,r;for(r=0;r<o.length;r++)s=o[r],!(n.indexOf(s)>=0)&&(a[s]=e[s]);return a}function xn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o1(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,La(e,n)}function La(e,n){return La=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},La(e,n)}var Un=(function(e){o1(n,e);function n(){var o;return o=e.call(this)||this,o.handleExpired=o.handleExpired.bind(xn(o)),o.handleErrored=o.handleErrored.bind(xn(o)),o.handleChange=o.handleChange.bind(xn(o)),o.handleRecaptchaRef=o.handleRecaptchaRef.bind(xn(o)),o}var a=n.prototype;return a.getCaptchaFunction=function(s){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[s]:this.props.grecaptcha[s]:null},a.getValue=function(){var s=this.getCaptchaFunction("getResponse");return s&&this._widgetId!==void 0?s(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var s=this.getCaptchaFunction("execute");if(s&&this._widgetId!==void 0)return s(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var s=this;return new Promise(function(r,i){s.executionResolve=r,s.executionReject=i,s.execute()})},a.reset=function(){var s=this.getCaptchaFunction("reset");s&&this._widgetId!==void 0&&s(this._widgetId)},a.forceReset=function(){var s=this.getCaptchaFunction("reset");s&&s()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(s){this.props.onChange&&this.props.onChange(s),this.executionResolve&&(this.executionResolve(s),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var s=this.getCaptchaFunction("render");if(s&&this._widgetId===void 0){var r=document.createElement("div");this._widgetId=s(r,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(r)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(s){this.captcha=s},a.render=function(){var s=this.props;s.sitekey,s.onChange,s.theme,s.type,s.tabindex,s.onExpired,s.onErrored,s.size,s.stoken,s.grecaptcha,s.badge,s.hl,s.isolated;var r=a1(s,n1);return Ma.createElement("div",qa({},r,{ref:this.handleRecaptchaRef}))},n})(Ma.Component);Un.displayName="ReCAPTCHA",Un.propTypes={sitekey:ve.string.isRequired,onChange:ve.func,grecaptcha:ve.object,theme:ve.oneOf(["dark","light"]),type:ve.oneOf(["image","audio"]),tabindex:ve.number,onExpired:ve.func,onErrored:ve.func,size:ve.oneOf(["compact","normal","invisible"]),stoken:ve.string,hl:ve.string,badge:ve.oneOf(["bottomright","bottomleft","inline"]),isolated:ve.bool},Un.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Ba,vr;function s1(){if(vr)return Ba;vr=1;var e=Sa(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};r[e.ForwardRef]=o,r[e.Memo]=s;function i(m){return e.isMemo(m)?s:r[m.$$typeof]||n}var c=Object.defineProperty,d=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function g(m,p,A){if(typeof p!="string"){if(f){var b=u(p);b&&b!==f&&g(m,b,A)}var S=d(p);l&&(S=S.concat(l(p)));for(var _=i(m),I=i(p),v=0;v<S.length;++v){var T=S[v];if(!a[T]&&!(A&&A[T])&&!(I&&I[T])&&!(_&&_[T])){var D=h(p,T);try{c(m,T,D)}catch{}}}}return m}return Ba=g,Ba}var r1=s1();const i1=ft(r1);function Pa(){return Pa=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Pa.apply(this,arguments)}function c1(e,n){if(e==null)return{};var a={},o=Object.keys(e),s,r;for(r=0;r<o.length;r++)s=o[r],!(n.indexOf(s)>=0)&&(a[s]=e[s]);return a}function l1(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var Be={},d1=0;function h1(e,n){return n=n||{},function(o){var s=o.displayName||o.name||"Component",r=(function(c){l1(d,c);function d(h,u){var f;return f=c.call(this,h,u)||this,f.state={},f.__scriptURL="",f}var l=d.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+d1++),this.__scriptLoaderID},l.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},l.asyncScriptLoaderHandleLoad=function(u){var f=this;this.setState(u,function(){return f.props.asyncScriptOnLoad&&f.props.asyncScriptOnLoad(f.state)})},l.asyncScriptLoaderTriggerOnScriptLoaded=function(){var u=Be[this.__scriptURL];if(!u||!u.loaded)throw new Error("Script is not loaded.");for(var f in u.observers)u.observers[f](u);delete window[n.callbackName]},l.componentDidMount=function(){var u=this,f=this.setupScriptURL(),g=this.asyncScriptLoaderGetScriptLoaderID(),m=n,p=m.globalName,A=m.callbackName,b=m.scriptId;if(p&&typeof window[p]<"u"&&(Be[f]={loaded:!0,observers:{}}),Be[f]){var S=Be[f];if(S&&(S.loaded||S.errored)){this.asyncScriptLoaderHandleLoad(S);return}S.observers[g]=function(D){return u.asyncScriptLoaderHandleLoad(D)};return}var _={};_[g]=function(D){return u.asyncScriptLoaderHandleLoad(D)},Be[f]={loaded:!1,observers:_};var I=document.createElement("script");I.src=f,I.async=!0;for(var v in n.attributes)I.setAttribute(v,n.attributes[v]);b&&(I.id=b);var T=function(G){if(Be[f]){var ee=Be[f],H=ee.observers;for(var M in H)G(H[M])&&delete H[M]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),I.onload=function(){var D=Be[f];D&&(D.loaded=!0,T(function(G){return A?!1:(G(D),!0)}))},I.onerror=function(){var D=Be[f];D&&(D.errored=!0,T(function(G){return G(D),!0}))},document.body.appendChild(I)},l.componentWillUnmount=function(){var u=this.__scriptURL;if(n.removeOnUnmount===!0)for(var f=document.getElementsByTagName("script"),g=0;g<f.length;g+=1)f[g].src.indexOf(u)>-1&&f[g].parentNode&&f[g].parentNode.removeChild(f[g]);var m=Be[u];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],n.removeOnUnmount===!0&&delete Be[u])},l.render=function(){var u=n.globalName,f=this.props;f.asyncScriptOnLoad;var g=f.forwardedRef,m=c1(f,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(m[u]=typeof window[u]<"u"?window[u]:void 0),m.ref=g,E.createElement(o,m)},d})(E.Component),i=E.forwardRef(function(c,d){return E.createElement(r,Pa({},c,{forwardedRef:d}))});return i.displayName="AsyncScriptLoader("+s+")",i.propTypes={asyncScriptOnLoad:ve.func},i1(i,o)}}var Oa="onloadcallback",u1="grecaptcha";function Da(){return typeof window<"u"&&window.recaptchaOptions||{}}function f1(){var e=Da(),n=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+n+"/recaptcha/enterprise.js?onload="+Oa+"&render=explicit":"https://"+n+"/recaptcha/api.js?onload="+Oa+"&render=explicit"}const Cr=h1(f1,{callbackName:Oa,globalName:u1,attributes:Da().nonce?{nonce:Da().nonce}:{}})(Un),x={overlay:"_overlay_18ksj_1",header:"_header_18ksj_18",logo:"_logo_18ksj_25",card:"_card_18ksj_32",close:"_close_18ksj_47",form:"_form_18ksj_71",formUl:"_formUl_18ksj_80",field:"_field_18ksj_92",label:"_label_18ksj_99",input:"_input_18ksj_108",error:"_error_18ksj_126",primary:"_primary_18ksj_132",divider:"_divider_18ksj_170",google:"_google_18ksj_196",googleIcon:"_googleIcon_18ksj_226",spin:"_spin_18ksj_259",checkboxRow:"_checkboxRow_18ksj_281",switch:"_switch_18ksj_310",terms:"_terms_18ksj_318",message:"_message_18ksj_349",passwordChecker:"_passwordChecker_18ksj_354",valid:"_valid_18ksj_373",invalid:"_invalid_18ksj_377",forgotPassword:"_forgotPassword_18ksj_381",successContainer:"_successContainer_18ksj_400",thumbsUp:"_thumbsUp_18ksj_408",successMessage:"_successMessage_18ksj_414"},Je=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:x.spin,children:t.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),m1=({isOpen:e,onClose:n,commentId:a,publication:o,username:s,CAPTCHA_KEY_V2:r})=>{const[i,c]=E.useState("form"),[d,l]=E.useState(""),[h,u]=E.useState(""),[f,g]=E.useState(""),m=[{id:"spam",label:Me.spam},{id:"inappropriate",label:Me.inappropriate},{id:"hate",label:Me.hate},{id:"misinformation",label:Me.misinformation},{id:"terrorism",label:Me.terrorism},{id:"intellectual",label:Me.intellectual},{id:"bullying",label:Me.bullying}],p=async()=>{if(!(!d||!a)){if(lr(document).includes(a)){u("Ya has reportado este comentario.");return}c("loading"),u("");try{const S=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:o,username:s,id:a,captchaToken:f,type:Me[d]})})).json();if(S.type==="success")Vd(document,a),c("success"),setTimeout(()=>{A()},3e3);else throw new Error(S.message||"Error al reportar comentario")}catch(b){console.error("Error reporting comment:",b),u(b.message||"Error al reportar comentario"),c("form")}}},A=()=>{c("form"),l(""),u(""),n()};return!e||!a||!s?null:t.jsx("div",{className:he.overlay,children:t.jsxs("div",{className:he.popup,children:[t.jsx("button",{className:"close-reply-form",onClick:A,children:t.jsx(bt,{})}),t.jsx("h2",{className:he.title,children:"Reportar Abuso"}),i==="loading"&&t.jsx("div",{className:he.loadingContainer,children:t.jsx(Je,{})}),i==="form"||i==="loading"?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:he.optionsContainer,children:m.map(b=>t.jsxs("label",{className:he.option,children:[t.jsx("input",{type:"radio",name:"reportReason",value:b.id,checked:d===b.id,onChange:S=>l(S.target.value),className:he.radioInput}),t.jsx("span",{className:he.radioCustom}),t.jsx("span",{className:he.optionLabel,children:b.label})]},b.id))}),h&&t.jsx("div",{className:he.errorMessage,children:h}),t.jsx(Cr,{sitekey:r,theme:"light",size:"normal",onChange:b=>g(b??""),onExpired:()=>g("")}),t.jsxs("div",{className:he.buttons,children:[t.jsx("button",{onClick:A,className:he.cancelButton,children:"Cancelar"}),t.jsx("button",{onClick:p,disabled:!d,className:he.reportButton,children:"Reportar"})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:he.successContainer,children:[t.jsx("div",{className:he.thumbsUp,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:t.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),t.jsx("p",{className:he.successMessage,children:"¡Gracias por reportar!"})]}),t.jsx("div",{className:he.buttons,children:t.jsx("button",{onClick:A,className:[he.closeButton,he.buttonAlone].join(" "),children:"Cerrar"})})]})]})})};async function qn({publication:e,path:n,size:a=5,sizereply:o=2,id:s,lastid:r,state:i="5,6",apiToken:c}){const{PUBLIC_ENV:d}=K();if(d==="prod")return(await _r({publication:e,path:n,size:a,sizereply:o,id:s,lastid:r,state:i,apiToken:c}))[0];{const l=await fetch(`/api/comments-get?publication=${e}&path=${n}&size=${a}&sizereply=${o}&lastid=${r}`);if(!l.ok)throw new Error(`Error al obtener comentarios: ${l.status}`);return(await l.json()).data[0]}}async function _r({publication:e,path:n,size:a=5,sizereply:o=2,id:s,lastid:r,state:i="5,6",apiToken:c}){if(!e||!n)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof n!="string")throw new Error("Invalid input types for publication or path");if(!c)throw new Error("Missing CMS API token");const{PUBLIC_ENV:d,PUBLIC_API_HOST:l,PUBLIC_API_PATH:h,PUBLIC_API_PATH_VERSION:u}=K(),f=parseInt(String(a),10),g=parseInt(String(o),10);if(isNaN(f)||f<=0)throw new Error("Invalid size parameter");if(isNaN(g)||g<0)throw new Error("Invalid sizereply parameter");const m=d!=="prod"?`${l}${h}`:Za(),p=new URLSearchParams({publication:e,path:n,size:f.toString(),sizereply:g.toString(),state:i});s&&p.append("id",s),r&&p.append("lastid",r);const A=`${m}${u}/newcomments/get?${p.toString()}`;try{console.log("Fetching comments from:",A);const{data:b}=await oe.get(A,{headers:{"x-api-token":c,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!b)throw new Error("No comments data received");return b.data||b||[]}catch(b){if(console.error("Error fetching comments:",b),oe.isAxiosError(b)){const S=b.response?.status,_=b.response?.data;throw S===404?new Error("Comments not found"):S===403?new Error("Access forbidden - check API token"):S===401?new Error("Unauthorized - invalid API token"):S===500?new Error("Internal server error from CMS"):new Error(_?.error||_?.message||`HTTP ${S}: Failed to fetch comments`)}throw b}}const{PUBLIC_PUBLICATION_ID:g1}=K(),p1=g1,A1=e=>{const[n,a]=E.useState(void 0);return E.useEffect(()=>{if(n)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:s}=K();try{const r=await qn({publication:p1,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:s});a(r??[])}catch(r){console.error(r),a({comments:[],morecomment:!1})}})()},[n]),{comments:n,setComments:a}},Sr=({username:e,date:n})=>t.jsxs("div",{className:"comment-header",children:[t.jsx("span",{className:"comment-username",children:e}),t.jsx("span",{className:"comment-header-dot",children:"•"}),t.jsx("span",{className:"comment-date",children:Fd(ke(Number(n)))})]}),Nr=({user:e})=>t.jsx("div",{className:"comment-avatar",children:e.picture?t.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),Er=({isReply:e=!1,onReply:n,onFlag:a})=>t.jsxs("div",{className:"comment-actions",children:[!e&&n&&t.jsx("button",{onClick:n,className:"comment-action-btn",children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[t.jsx("g",{clipPath:"url(#a)",children:t.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"a",children:t.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),t.jsx("button",{onClick:a,className:"comment-action-btn",children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[t.jsx("g",{clipPath:"url(#a)",children:t.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"a",children:t.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Tr=({commentRef:e,captchaToken:n="",setIsDisabled:a})=>(E.useEffect(()=>{const o=e.current;if(!o)return;const s=()=>{const i=o.value.length;o.parentElement&&(o.parentElement.dataset.text=`${i}/${ut}`),o.classList.toggle("over-limit",i>ut),a(!_a(e,n).boolean)};return o.addEventListener("input",s),s(),()=>o.removeEventListener("input",s)},[e,n,a]),t.jsxs("div",{children:[t.jsx("label",{className:"comment-input-label",children:"Comentario"}),t.jsx("textarea",{ref:e,name:"comment",placeholder:"Ingresa un comentario",rows:2})]})),Ir=({commentRef:e,captchaToken:n="",setCaptchaToken:a,children:o,CAPTCHA_KEY_V2:s})=>{const r=_a(e,n);return t.jsxs("div",{className:"form-actions",children:[t.jsx(Cr,{sitekey:s,theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),t.jsxs("div",{className:"submit-zone",children:[o,!r.boolean&&t.jsx("p",{className:"submit-warning",children:r.text})]})]})},kr=({onClick:e,isDisabled:n})=>{const[a,o]=E.useState(!1),{S3_ID_DIR:s}=K();return E.useEffect(()=>{let r=null;return a&&(r=setTimeout(()=>{o(!1)},2400)),()=>{r&&clearTimeout(r)}},[a]),a?t.jsx("div",{className:"success-gif-container",children:t.jsx("img",{className:"success-gif",src:gt()+"/arte/"+s+"/Success.gif"})}):t.jsxs("button",{type:"button",onClick:async r=>{await e(r)&&o(!0)},id:"comment-button",className:`submit-btn ${n?"disabled":"active"}`,children:["Enviar Comentario",t.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})},{PUBLIC_PUBLICATION_ID:y1}=K(),w1=y1,xr=async({path:e,ref:n,captchaToken:a,button:o,user:s,id:r,addComment:i})=>{const c=n.current?.value||"";if(!_a(n,a).boolean||!s){const d=o.nextElementSibling;return d&&(d.style.display="block"),!1}try{const d=Date.now(),l=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:w1,path:e,id:r,username:s.username,comment:c,recaptchaResponse:a})});let h=null;try{h=await l.json()}catch(m){console.error("Error parsing JSON response:",m)}if(!l.ok)throw new Error(`Error al enviar comentario: ${h?.message} status: ${l.status}`);const u=Date.now(),f=Math.max(0,2400+Math.abs(u-d)),g={username:s.username,firstname:s.firstname,...s.lastname&&{lastname:s.lastname},...s.picture&&{picture:s.picture}};return i({id:u.toString(),text:c,user:g,date:{time:Date.now()},reply:[]}),n.current&&(n.current.value=""),f}catch(d){return console.error("Error enviando comentario:",d),alert(d.message||"Error al enviar el comentario."),!1}},b1=({replyingTo:e,commentRef:n,user:a,path:o,addReply:s,closeForm:r,CAPTCHA_KEY_V2:i})=>{const[c,d]=E.useState(!0),[l,h]=E.useState(""),u=()=>{n.current?.parentElement&&(n.current.parentElement.dataset.text=`0/${ut}`),d(!0),r()};return t.jsxs("div",{className:"comment-form reply-form",children:[t.jsx("button",{className:"close-reply-form",onClick:u,children:t.jsx(bt,{})}),t.jsx(Tr,{commentRef:n,captchaToken:l,setIsDisabled:d}),t.jsx(Ir,{commentRef:n,captchaToken:l,setCaptchaToken:h,CAPTCHA_KEY_V2:i,children:t.jsx(kr,{onClick:async f=>{if(c)return;const g=await xr({path:o,ref:n,captchaToken:l,button:f.currentTarget,user:a,id:e,addComment:s});return g&&typeof g=="number"?(setTimeout(()=>{u()},g),!0):!1},isDisabled:c})})]})},v1=({reply:e,replyingTo:n,user:a,onFlag:o})=>{const s=e.text;let r=`${Ke.firstname} ${Ke.lastname}`,i=Ke.username;return e.user&&(r=`${e.user.firstname} ${e.user.lastname}`,i=e.user.username),t.jsx("div",{className:"comment-item reply",children:t.jsxs("div",{className:"comment-header-container",children:[t.jsx(Nr,{user:e.user?e.user:Ke}),t.jsxs("div",{style:{flex:1},children:[t.jsx(Sr,{username:r,date:e.date.time}),t.jsxs("div",{className:"comment-reply-to",children:["Respondiendo a ",t.jsx("strong",{children:n})]}),t.jsx("p",{className:"comment-text",children:s}),a?.username.toLowerCase()!==i.toLowerCase()&&t.jsx(Er,{isReply:!0,onFlag:()=>o(e.id)})]})]})})},C1=({comment:e,replyingTo:n,path:a,user:o,handleReplyingTo:s,onFlag:r,CAPTCHA_KEY_V2:i})=>{const c={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[d,l]=E.useState(c),[h,u]=E.useState(!1),{PUBLIC_PUBLICATION_ID:f,PUBLIC_X_SECURITY_TOKEN:g}=K(),m=e.text,p=E.useRef(null);let A=`${Ke.firstname} ${Ke.lastname}`,b=Ke.username;e.user&&(A=`${e.user.firstname} ${e.user.lastname}`,b=e.user.username);const S=_=>{l({morereply:d.morereply,reply:[_,...d.reply]})};return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{className:"comment-header-container","data-hasreplies":d.reply.length>0?"true":"false",children:[t.jsx(Nr,{user:e.user?e.user:Ke}),t.jsxs("div",{style:{flex:1},children:[t.jsx(Sr,{username:A,date:e.date.time}),t.jsx("p",{className:"comment-text",children:m}),o?.username.toLowerCase()!==b.toLowerCase()&&t.jsx(Er,{onReply:()=>s(e.id),onFlag:()=>r(e.id)}),n===e.id&&o&&t.jsx(b1,{replyingTo:n,commentRef:p,addReply:S,user:o,path:a,CAPTCHA_KEY_V2:i,closeForm:()=>s("")}),d.reply.length>0&&t.jsxs("div",{className:"comment-replies",children:[d.reply.map(_=>t.jsx(v1,{user:o,reply:_,replyingTo:A,onFlag:r},_.id)),h?t.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:t.jsx(Je,{})}):d.morereply&&t.jsx("button",{className:"comment-replies-button reply-button",onClick:async()=>{const _=d.reply[d.reply.length-1]?.id;u(!0);try{const v=await qn({publication:f??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:_,state:"5,6",apiToken:g??""});u(!1),l({morereply:v.morecomment,reply:[...d.reply,...v.comments]})}catch(I){throw u(!1),new Error(`Error al obtener comentarios: ${I}`)}},children:"Más Respuestas"})]})]})]})})},_1=({commentRef:e,user:n,path:a,addComment:o,CAPTCHA_KEY_V2:s})=>{const[r,i]=E.useState(!0),[c,d]=E.useState("");return t.jsxs("div",{className:"comment-form",children:[t.jsx(Tr,{commentRef:e,captchaToken:c,setIsDisabled:i}),t.jsx(Ir,{CAPTCHA_KEY_V2:s,commentRef:e,captchaToken:c,setCaptchaToken:d,children:t.jsx(kr,{onClick:async l=>{if(r)return;const h=await xr({path:a,ref:e,captchaToken:c,button:l.currentTarget,user:n,addComment:o});return h&&typeof h=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ut}`),i(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ut}`),i(!0)},h),!0):!1},isDisabled:r})})]})},{PUBLIC_PUBLICATION_ID:S1,PUBLIC_X_SECURITY_TOKEN:N1}=K(),Ur=S1??"",E1=({isAuthenticated:e,path:n,user:a,handleLogout:o,COMMENTS_VARS:s})=>{const r=n.replaceAll("/","|"),[i,c]=E.useState(void 0),[d,l]=E.useState(""),{comments:h,setComments:u}=A1(r),[f,g]=E.useState(!1),m=E.useRef(null),p=T=>{l(d===T?"":T)},A=T=>{u(h?{...h,comments:[T,...h.comments??[]]}:void 0)},b=T=>{c(T)},S=async()=>{if(!h||!h.morecomment||h.comments.length===0)return;const T=h.comments[h.comments.length-1];if(!T)return;g(!0);const D=T.id;try{const G=await qn({publication:Ur,path:r??"",size:5,sizereply:2,id:void 0,lastid:D,state:"5,6",apiToken:N1});u({morecomment:G.morecomment??!1,comments:[...h.comments,...G.comments]}),g(!1)}catch(G){throw g(!1),new Error(`Error al obtener comentarios: ${G}`)}},_=h?.comments&&h.comments.length>0,I=_?"Comparte tu opinión de este artículo.":"Se el primero en compartir tu opinión de este artículo.",v=t.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:t.jsx(Je,{})});return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"comments-container",children:t.jsx(ue,{title:_||e?"COMENTARIOS":!1,children:t.jsxs(t.Fragment,{children:[e&&a&&t.jsxs("div",{className:"comments-header",children:[t.jsx(Gd,{user:a,handleLogout:o,message:I}),t.jsx(_1,{commentRef:m,user:a,addComment:A,path:r,CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2})]}),h?h.comments&&h.comments.length>0?t.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[h.comments.map(T=>t.jsx(C1,{comment:T,replyingTo:d,handleReplyingTo:p,onFlag:b,user:a??Ke,path:r,CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2},T.id)),f&&v]}):null:v,h?.morecomment&&!f&&t.jsx("button",{className:"comment-replies-button",onClick:S,children:"Más"})]})})}),t.jsx(m1,{username:a?.username??void 0,publication:Ur,commentId:i,isOpen:i!==void 0,onClose:()=>c(void 0),CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2})]})},T1=async(e,n)=>{if(!e)throw new Error("No action provided");if(!n)throw new Error("No site key provided");const a=window.grecaptcha;if(!a?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((o,s)=>{a.enterprise.ready(async()=>{try{const r=await a.enterprise.execute(n,{action:e});if(!r)throw new Error("Captcha token no generado");o(r)}catch(r){s(r)}})})},qr={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}},Ln=[{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 I1({goToLogin:e,handleGoogleLogin:n,CAPTCHA_KEY:a}){const[o,s]=E.useState({}),[r,i]=E.useState(!1),[c,d]=E.useState(!1),[l,h]=E.useState(null),[u,f]=E.useState("register"),g=(b,S)=>{s(_=>({..._,[b]:S}))},m=async b=>{b.preventDefault(),h(null),d(!0);try{const S=Object.keys(qr).filter(G=>!["username","password","confirmPassword"].includes(G)).map(G=>({Name:G,Value:o[G]}));if(S.some(G=>{if(!G.Value||G.Value.trim()==="")return!0}))return d(!1),h("Complete todos los campos");if(o.password!==o.confirmPassword){h("Las contraseñas no coinciden");return}const _=o.password||"";if(Ln.some(G=>!G.test(_))){h("La contraseña no es válida");return}const v=Math.floor(Date.now()/1e3);S.push({Name:"updated_at",Value:String(v)});const T="token",D=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email,password:o.password,userAttributes:S,token:T})});if(!D.ok){const G=await D.json().catch(()=>({}));if(G.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email})}),f("confirm");return}throw new Error(G?.error||"Error al crear usuario")}f("confirm")}catch(S){console.log(S),h(S?.message||S?.error||"Error inesperado")}finally{d(!1)}},p=async b=>{if(b.preventDefault(),!o.confirmationCode){h("Debes ingresar el código de verificación");return}h(null),d(!0);try{const S=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email,code:o.confirmationCode})});if(!S.ok){const _=await S.json().catch(()=>({}));throw new Error(_?.error||"Error al confirmar usuario")}f("success")}catch(S){h(S?.message||"Error inesperado")}finally{d(!1)}},A=o.password||"";return t.jsxs(t.Fragment,{children:[u==="register"&&t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:n,className:x.google,children:[t.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:x.googleIcon}),t.jsx("span",{children:"Continuar con Google"})]}),t.jsx("div",{className:x.divider,children:t.jsx("span",{children:"o"})}),t.jsxs("form",{onSubmit:m,className:x.form,"data-error":l?"true":"false",children:[t.jsx("ul",{className:x.formUl,children:Object.entries(qr).map(([b,{label:S}])=>t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:S}),t.jsx("input",{type:b.toLowerCase().includes("password")?r?"text":"password":b==="birthdate"?"date":b==="email"?"email":b==="phone_number"?"tel":"text",name:b,value:o[b]||"",onChange:_=>g(b,_.target.value),className:x.input,placeholder:""}),b==="password"&&t.jsx("div",{className:x.passwordChecker,children:Ln.map((_,I)=>{const v=_.test(A);return t.jsxs("div",{className:v?x.valid:x.invalid,children:[t.jsx("div",{children:v?"✔":"○"}),t.jsx("div",{children:_.label})]},I)})}),b==="confirmPassword"&&t.jsxs("div",{className:x.checkboxRow,children:[t.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:r,onChange:_=>i(_.target.checked)}),t.jsx("label",{htmlFor:"showPasswordRegister",className:x.checkboxLabel,children:"Mostrar contraseñas"})]})]},b))}),l&&t.jsx("p",{className:x.error,children:l}),t.jsxs("p",{className:x.terms,children:["Al continuar, confirmo que he leído y aceptado los",t.jsx("a",{href:"/pages/politicas-de-privacidad.html",target:"_blank",children:"Términos y Condiciones"}),"de nuestra comunidad"]}),t.jsx("button",{type:"submit",className:x.primary,disabled:c,children:c?t.jsx(Je,{}):"Crear cuenta"})]})]}),u==="confirm"&&t.jsxs("form",{onSubmit:p,className:x.form,"data-error":l?"true":"false",children:[t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Código de verificación"}),t.jsx("input",{type:"text",name:"confirmationCode",value:o.confirmationCode||"",onChange:b=>g("confirmationCode",b.target.value),className:x.input,required:!0})]}),l&&t.jsx("p",{className:x.error,children:l}),t.jsx("button",{type:"submit",className:x.primary,disabled:c,children:c?t.jsx(Je,{}):"Confirmar cuenta"}),t.jsxs("p",{className:x.switch,children:["¿Ya confirmaste antes?",t.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]}),u==="success"&&t.jsxs("form",{className:x.form,children:[t.jsxs("div",{className:x.successContainer,children:[t.jsx("div",{className:x.thumbsUp,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:t.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),t.jsxs("div",{className:x.successMessage,children:[t.jsx("p",{children:"Confirmación completa."}),t.jsx("p",{children:"Ya eres parte de la comunidad!"})]})]}),t.jsx("button",{onClick:e,className:x.primary,children:"Iniciar sesión"})]}),u==="register"&&t.jsxs("p",{className:x.switch,children:["¿Ya tenés cuenta?",t.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]})}function k1({onClose:e,checkAuth:n,goToRegister:a,handleGoogleLogin:o,CAPTCHA_KEY:s}){const[r,i]=E.useState("login"),[c,d]=E.useState(""),[l,h]=E.useState(""),[u,f]=E.useState(""),[g,m]=E.useState(""),[p,A]=E.useState(""),[b,S]=E.useState(!1),[_,I]=E.useState(!1),[v,T]=E.useState(null);console.log("CAPTCHA_KEY",s);const D=async H=>{if(!_){H.preventDefault(),T(null),I(!0);try{console.log(!0,s);const M="token",R=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:c,password:l,token:M})});if(!R.ok){const ie=await R.json().catch(()=>({}));throw new Error(ie?.error||"Ha ocurrido un error")}e(),await n()}catch(M){T(M?.message||"Error inesperado")}finally{I(!1)}}},G=async H=>{if(!_){H.preventDefault(),T(null),I(!0);try{const M=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c})});if(!M.ok){const R=await M.json().catch(()=>({}));throw new Error(R?.error||"Error al enviar código")}h(""),i("changePassword")}catch(M){T(M?.message||"Error inesperado")}finally{I(!1)}}},ee=async H=>{if(_)return;if(H.preventDefault(),g!==p){T("Las contraseñas no coinciden");return}if(Ln.some(R=>!R.test(g))){T("La contraseña no cumple con los requisitos");return}T(null),I(!0);try{const R=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,code:u,newPassword:g})});if(!R.ok){const ie=await R.json().catch(()=>({}));throw new Error(ie?.error||"Error al cambiar contraseña")}i("feedback")}catch(R){T(R?.message||"Error inesperado")}finally{I(!1)}};return t.jsxs(t.Fragment,{children:[r==="login"&&t.jsx(x1,{email:c,password:l,showPassword:b,loading:_,error:v,setEmail:d,setPassword:h,setShowPassword:S,onSubmit:D,onForgot:()=>{T(null),i("forgot")},onRegister:a,handleGoogleLogin:o}),r==="forgot"&&t.jsx(U1,{email:c,setEmail:d,loading:_,error:v,onSubmit:G,onBack:()=>{T(null),i("login")}}),r==="changePassword"&&t.jsx(q1,{email:c,confirmationCode:u,newPassword:g,confirmNewPassword:p,showPassword:b,loading:_,error:v,setConfirmationCode:f,setNewPassword:m,setConfirmNewPassword:A,setShowPassword:S,onSubmit:ee,onBack:()=>{T(null),i("forgot")}}),r==="feedback"&&t.jsx(L1,{onBackToLogin:()=>{T(null),i("login")}})]})}function x1({email:e,password:n,showPassword:a,loading:o,error:s,setEmail:r,setPassword:i,setShowPassword:c,onSubmit:d,onForgot:l,onRegister:h,handleGoogleLogin:u}){return t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:u,className:x.google,children:[t.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:x.googleIcon}),t.jsx("span",{children:"Continuar con Google"})]}),t.jsx("div",{className:x.divider,children:t.jsx("span",{children:"o"})}),t.jsxs("form",{onSubmit:d,className:x.form,"data-error":s?"true":"false",children:[t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Email"}),t.jsx("input",{type:"email",value:e,onChange:f=>r(f.target.value),className:x.input,placeholder:""})]}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Contraseña"}),t.jsx("input",{type:a?"text":"password",value:n,onChange:f=>i(f.target.value),className:x.input,placeholder:""}),t.jsxs("div",{className:x.checkboxRow,children:[t.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:f=>c(f.target.checked)}),t.jsx("label",{htmlFor:"showPasswordLogin",className:x.checkboxLabel,children:"Mostrar contraseña"})]})]}),s&&t.jsx("p",{className:x.error,children:s}),t.jsx("button",{type:"submit",className:x.primary,disabled:o,children:o?t.jsx(Je,{}):"Iniciar Sesión"})]}),t.jsxs("p",{className:x.switch,children:["¿No tenés cuenta?",t.jsx("button",{type:"button",onClick:h,children:"Registrate"})]}),t.jsx("button",{type:"button",className:x.forgotPassword,onClick:l,children:"Olvidé mi contraseña"})]})}function U1({email:e,setEmail:n,loading:a,error:o,onSubmit:s,onBack:r}){return t.jsxs("form",{onSubmit:s,className:x.form,"data-error":o?"true":"false",children:[t.jsx("p",{className:x.message,children:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña."}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Email"}),t.jsx("input",{type:"email",value:e,name:"email",onChange:i=>n(i.target.value),className:x.input,placeholder:""})]}),o&&t.jsx("p",{className:x.error,children:o}),t.jsx("button",{type:"submit",className:x.primary,disabled:a,children:a?t.jsx(Je,{}):"Enviar código"}),t.jsx("p",{className:x.switch,children:t.jsx("button",{type:"button",onClick:r,children:"Volver"})})]})}function q1({email:e,confirmationCode:n,newPassword:a,confirmNewPassword:o,showPassword:s,loading:r,error:i,setConfirmationCode:c,setNewPassword:d,setConfirmNewPassword:l,setShowPassword:h,onSubmit:u,onBack:f}){return t.jsxs("form",{onSubmit:u,className:x.form,"data-error":i?"true":"false",children:[t.jsxs("p",{className:x.message,children:["Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a ",Wd(e),". Ingrese el código y la contraseña nueva."]}),t.jsxs("ul",{className:x.formUl,children:[t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Código de verificación"}),t.jsx("input",{type:"text",value:n,onChange:g=>c(g.target.value),className:x.input,placeholder:""})]}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Nueva contraseña"}),t.jsx("input",{type:s?"text":"password",value:a,onChange:g=>d(g.target.value),className:x.input,placeholder:"",name:"password"}),t.jsx("div",{className:x.passwordChecker,children:Ln.map((g,m)=>{const p=g.test(a);return t.jsxs("div",{className:p?x.valid:x.invalid,children:[t.jsx("div",{children:p?"✔":"○"}),t.jsx("div",{children:g.label})]},m)})})]}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Confirmar contraseña"}),t.jsx("input",{type:s?"text":"password",value:o,onChange:g=>l(g.target.value),className:x.input,placeholder:""}),t.jsxs("div",{className:x.checkboxRow,children:[t.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:s,onChange:g=>h(g.target.checked)}),t.jsx("label",{htmlFor:"showPasswordForgot",className:x.checkboxLabel,children:"Mostrar contraseñas"})]})]})]}),i&&t.jsx("p",{className:x.error,children:i}),t.jsx("button",{type:"submit",className:x.primary,style:{maxWidth:r?"revert-layer":"fit-content"},disabled:r,children:r?t.jsx(Je,{}):"Cambiar contraseña"}),t.jsx("p",{className:x.switch,children:t.jsx("button",{type:"button",onClick:f,children:"Volver"})})]})}function L1({onBackToLogin:e}){return t.jsxs("div",{className:x.form,children:[t.jsx("p",{className:x.success,children:"La contraseña fue cambiada con éxito"}),t.jsx("button",{type:"button",className:x.primary,onClick:e,children:"Iniciar Sesión"})]})}function B1({loginUrl:e,onClose:n,checkAuth:a,icon:o,COMMENTS_VARS:s}){const[r,i]=E.useState("login"),c=async()=>{if(!e)return;const d=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${d}`};return t.jsx("div",{className:x.overlay,role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const l=d.target;l&&l.id==="pop-overlay"&&n()},children:t.jsxs("div",{className:x.card,children:[t.jsxs("header",{className:x.header,children:[t.jsx("div",{className:x.logo,children:o?o():null}),t.jsx("button",{onClick:n,className:x.close,"aria-label":"Cerrar",children:t.jsx(bt,{})})]}),r==="login"&&t.jsx(k1,{onClose:n,checkAuth:a,handleGoogleLogin:c,goToRegister:()=>i("register"),CAPTCHA_KEY:s.CAPTCHA_KEY}),r==="register"&&t.jsx(I1,{handleGoogleLogin:c,goToLogin:()=>i("login"),CAPTCHA_KEY:s.CAPTCHA_KEY})]})})}function P1({isAuthenticated:e,setIsAuthenticated:n,loginUrl:a,user:o,path:s,checkAuth:r,icon:i,COMMENTS_VARS:c}){const[d,l]=E.useState(!1),h=async()=>{{const f=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(f)}`}},u=async f=>{f.preventDefault(),a&&l(!0)};return t.jsxs(t.Fragment,{children:[d&&t.jsx(B1,{loginUrl:a,icon:i,checkAuth:r,COMMENTS_VARS:c,onClose:()=>{l(!1)}}),!e&&t.jsxs("div",{className:"auth-container",children:[t.jsx("p",{children:"Sumate a la comunidad para dejar tu comentario"}),t.jsx("a",{href:a,onClick:u,className:"login-button",children:"Iniciar Sesión"})]}),t.jsx(E1,{isAuthenticated:e,handleLogout:h,path:s,user:e?o:void 0,COMMENTS_VARS:c})]})}function O1({isVisible:e,path:n,icon:a,COMMENTS_VARS:o}){const[s,r]=E.useState(null),[i,c]=E.useState(null),d=o?.COGNITO_AUTH_PREFIX??"ASTRO_",l=E.useCallback(async()=>{if(e){if(console.log(d),document.cookie.search(d+"IS_AUTH=true")===-1){r(!1),c(null),console.log("user not logged");return}try{const g=await(await fetch("/api/auth/user",{credentials:"include"})).json();r(g.isAuthenticated??!1),c(g.user??null)}catch(f){console.error("Error checking auth:",f),r(!1),c(null)}}},[e,d]);E.useEffect(()=>{l()},[l,e]),E.useEffect(()=>{if(!i||!e||typeof window>"u")return;const f=window;if(typeof f!="function"){console.warn("gtag no está disponible todavía");return}f.gtag("set",{user_id:i.username}),console.log("username setted successfully")},[i,e]);const h="/api/auth/login",u=t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:310,position:"relative"},children:t.jsx(Je,{})});return s===null?u:e?t.jsx(P1,{icon:a,isAuthenticated:s,setIsAuthenticated:r,loginUrl:h,user:i??void 0,checkAuth:l,path:n,COMMENTS_VARS:o}):u}const D1=({render:e,internalPath:n,section:a,currentNews:o,stylesConfig:s,icon:r,isVisibleDefault:i=!1,COMMENTS_VARS:c})=>{const d=E.useRef(null),[l,h]=E.useState(i);E.useEffect(()=>{if(i||l)return;const f=new IntersectionObserver(([g])=>{g?.isIntersecting&&(h(!0),f.disconnect())},{rootMargin:"0px",threshold:.1});return d.current&&f.observe(d.current),()=>f.disconnect()},[]);const u={comment:t.jsx(O1,{path:n,icon:r,isVisible:l,COMMENTS_VARS:c}),more:t.jsx(jd,{section:a,currentNews:o,stylesConfig:s,isVisible:l})};return t.jsx("div",{ref:d,suppressHydrationWarning:!0,style:{...s?s["Modulo 1x3 Client"]?s["Modulo 1x3 Client"]:s["Modulo 1x3"]:{}},children:u[e]})};async function M1({publication:e,path:n,username:a,comment:o,id:s,recaptchaResponse:r,baseUrl:i,apiToken:c,securityToken:d,COMMENTS_VARS:l}){if(console.log("Adding comment with data:",{publication:e,path:n,username:a,comment:o,id:s,recaptchaResponse:r}),!e||!n||!o||!a)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,n,o,a].some(m=>typeof m!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!a.trim())return{type:"error",message:"El nombre no puede estar vacío.",status:400};if(!o.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const h=await cr(r,l);if(console.log("Verifying captcha token...",h),!h)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,f={publication:e,path:n.replace(/\|/gi,"/"),username:a??!1,text:o.trim()};s&&(f.id=s);const g=new URLSearchParams(f);try{const{data:m}=await oe.get(`${u}?${g.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":d,"x-api-token":c,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),oe.isAxiosError(m)){const p=m.response?.status??500,A=m.response?.data;return p===400?{type:"error",message:A?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:p===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:p===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:A?.message||"No se pudo enviar el comentario.",status:p}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const j1=async({token:e,projectId:n,captchaKey:a,apiKey:o,captchaAction:s})=>{if(!e)throw new Error("No token provided");if(!n||!a||!o)throw new Error("Missing project ID or site key");if(!s)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${n}/assessments?key=${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:s}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==s)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return i?.riskAnalysis?.score??0}catch(r){throw console.error("Recaptcha verification failed",r),new Error(String(r))}};w.AssetsPreconnect=ao,w.AutorComponent=Ud,w.AutorHeader1=Ss,w.AutorHeader2=Ns,w.BannerAdvertising=fe,w.BannerAdvertisingMiddle=$e,w.CarrouselCSR=Vc,w.CarrouselIRS=it,w.CarruselCard=zs,w.CarruselOpinion=Fs,w.CommonServices=je,w.Comscore=ja,w.ContactInfoServer=$l,w.ContactInput=wl,w.ContactSelect=bl,w.ContactTextarea=vl,w.ContentLayout1=wt,w.ContentLayoutTema=ra,w.DEBUG_MainSlots=_d,w.DestacadoNoticias=Ps,w.DestacadoVideos=Qs,w.DynamicBlockServices=ns,w.DynamicComponents=Cd,w.DynamicMainSlot=En,w.DynamicSlot=va,w.EditorialBlock=Bl,w.ErrorComponent=yl,w.Font=mo,w.Footer=dl,w.FormatAfterScripts=no,w.FormatScripts=jn,w.GA4=$a,w.GTM=Qa,w.GalleryHeader=wa,w.GenerateBody=Qc,w.GenerateHead=$c,w.Header=kl,w.IframeHeader=Rs,w.ImageOffline=us,w.ImageOnline=_e,w.ImageOnlineClient=hs,w.IssuuServices=Oc,w.ItemListSchema=co,w.JournalistArticule2=xs,w.JournalistGroup=Us,w.LayoutNewsComponent=ca,w.LazyLoader=D1,w.LinkComponent=P,w.LiveBlogHeader=Cs,w.Location=zc,w.MainComponentServices=ui,w.Marfeel=Ga,w.MiddleSection=Ze,w.Modulo1x3=ma,w.Modulo1x3Card=Hs,w.Modulo1x4=js,w.Modulo1x5=$s,w.Modulo2Columnas=Pl,w.Modulo3Columnas=Ds,w.ModuloNewsletter=Ol,w.ModuloOpinion=Ll,w.NewListResponseDataPH=rr,w.NewsArticle=lo,w.NewsComponent=Nd,w.NewsContent=An,w.NewsDescriptionComponent=ct,w.NextPrev=Ot,w.OrgList=ho,w.PreloadImages=Qn,w.REPORT_REASONS=Me,w.Readest=fn,w.ScriptHydrator=Od,w.SearchSection=xd,w.Section=ue,w.SectionCard=Oe,w.SectionCard2=Mt,w.SectionCardServerComponent=_n,w.SectionServerComponent=jl,w.ShowSection=ss,w.SocialNetworks=Ys,w.SpeculationRules=io,w.StaticSlotWrapper=vd,w.SubscribeColumn=ps,w.SubscribeRow=As,w.SubscribeWhatsAppColumn=nl,w.TagComponent=Id,w.TagSection=ks,w.TimeLine=_s,w.TrimPathname=oi,w.VideoBlock3=Al,w.VideoBlock4=_l,w.VideoEmbeddedHeader=Zs,w.VideoSection=Pd,w.VideoYoutubeHeader=Xs,w.VideosSchemas=fo,w.WebsiteList=uo,w.addComment=M1,w.bannersReplace=Xt,w.becomeVideoObject=mt,w.buildTagUrl=at,w.coloringByStrokeSVGs=ys,w.compileStyleProps=Nn,w.cutString=xe,w.extractRealtedNews=ti,w.formatDate=ke,w.formatDateEdiciones=ei,w.formatDateJournalistArticule=On,w.formatDateTimeline=Ka,w.formatNewsMeta=Xa,w.formatVideoData=oo,w.generalGetData=jc,w.getCaptchaToken=T1,w.getComments=_r,w.getConfig=K,w.getDynamicSlots=Dc,w.getEnvironmentUrl=gt,w.getEnvironmentUrlFront=Za,w.getHydratorPath=ci,w.getImageUrl=de,w.getNextMeta=Tt,w.getPage=kt,w.getPlayIcon=un,w.getPreloadImages=hi,w.getPrevMeta=It,w.getReportReasonLabel=zd,w.getResponse=Dn,w.getResponsePromise=Ja,w.getSchemas=Rt,w.getScriptReplaces=Hn,w.getSlugs=po,w.getTypeOfNews=ri,w.getVideoRealPath=ii,w.handleGetComments=qn,w.initLibrary=Or,w.metadataToJSX=to,w.metadata_defaults=as,w.parseTags=Mn,w.pathnameSplit=Ra,w.processExtractedRelatedNews=ni,w.removePages=go,w.reportComment=Hd,w.shareButtons=ws,w.socialIcons=mn,w.speculationRules=ro,w.speculationRulesHome=so,w.urlReplaces=eo,w.usePlayIcon=ta,w.verifyCaptchaTokenEnterprise=j1,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
|