sass-template-common 0.9.80 → 0.9.82
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.
|
@@ -146,7 +146,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
146
146
|
c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
|
|
147
147
|
c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),s.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]})},Tl=["telegram"],xt={facebook:e=>s.jsx(Lt,{...e}),instagram:e=>s.jsx(Pt,{...e}),whatsapp:e=>s.jsx(Sl,{...e}),tiktok:e=>s.jsx(Nl,{...e}),youtube:e=>s.jsx(El,{...e}),x:e=>s.jsx(xe,{...e}),gnews:e=>s.jsx(vl,{...e}),podcast:e=>s.jsx(Cl,{...e}),telegram:e=>s.jsx(yl,{...e})},Il=e=>{const{freeZone:t,socials:a,menu:r,customBlock:n,custom_styles:o={}}=e;return s.jsxs("footer",{className:"su-flex su-flex-col su-items-center su-justify-center sass-com-ft-content",style:o,children:[s.jsxs("section",{className:"su-flex su-items-center su-gap-8 sass-com-ft-brandContent",children:[s.jsx(M,{href:"/","aria-label":"Ir a la home",children:s.jsx("span",{className:"sass-com-ft-logoStyled",children:e.logo})}),s.jsx("div",{className:"su-flex-center su-gap-4 sass-com-ft-socialMedia",children:Object.keys(a).map(i=>a[i]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[i].title+" link",className:"su-flex-center sass-com-ft-linkSocialNetwoks",href:a[i].url,children:xt[i]({className:`${`sass-com-ft-social${i.charAt(0).toUpperCase()+i.slice(1)}`}`})},i))})]}),s.jsxs("section",{className:"sass-com-ft-sectionContent",children:[s.jsx("div",{className:"sass-com-ft-section",children:r.filter(i=>!i.subitem).map((i,l)=>s.jsx(M,{block_subPublication:!0,href:i.link?i.link:void 0,target:i.target,className:"sass-com-ft-menuItem footer-menu-item","aria-label":i.description,children:i.description},l))}),s.jsx("div",{className:"sass-com-ft-section",children:t&&t.map((i,l)=>s.jsx(M,{block_subPublication:!0,href:i.link?i?.link:void 0,target:i.target,className:"sass-com-ft-otherItems",children:i.description},l))})]}),n&&s.jsx(s.Fragment,{children:n}),s.jsxs("section",{className:"sass-com-ft-copyrigth",children:[s.jsx("p",{className:"sass-com-ft-copyrigthText",children:e.copyrigth}),s.jsx(M,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:s.jsx(bl,{})})]})]})},Bt=e=>{const{PUBLIC_ENV:t}=O(),a=oe("/facebook-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M11.7376 0H8.80322C5.52359 0 3.36594 2.11766 3.36594 5.50591V8.0471H0.431531C0.172612 8.0471 0 8.21652 0 8.47064V12.113C0 12.3671 0.172612 12.5365 0.431531 12.5365H3.36594V21.7695C3.36594 22.0237 3.53855 22.1931 3.79747 22.1931H7.68125C7.94016 22.1931 8.11278 22.0237 8.11278 21.7695V12.5365H11.565C11.8239 12.5365 11.9966 12.3671 11.9966 12.113V8.47064C11.9966 8.38593 11.9102 8.21652 11.8239 8.13181C11.7376 8.0471 11.6513 7.9624 11.4787 7.9624H8.02647V5.84474C8.02647 4.82826 8.28539 4.32002 9.66629 4.32002H11.6513C11.9102 4.32002 12.0829 4.15061 12.0829 3.89649V0.508238C12.1692 0.169413 11.9966 0 11.7376 0Z",fill:"black"})})},Ge=e=>{const{PUBLIC_ENV:t}=O(),a=oe("/linkedin.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M23.9693 19.7768C22.9443 20.1795 22.3065 21.1785 22.3043 22.2887L22.278 32.7258C22.278 33.1474 21.8 33.4956 21.4127 33.4956H16.1736C15.7995 33.4956 15.293 33.1629 15.293 32.7302V14.8898C15.293 14.4081 15.7995 14.0455 16.2229 14.0466L20.9335 14.051C21.3842 14.051 21.7814 14.5105 21.8065 14.9254L21.8481 15.6185C22.9082 14.4994 24.2166 13.803 25.7055 13.6316C26.5599 13.5338 27.3957 13.5326 28.2555 13.625C31.5769 13.9821 34 16.8678 34 20.2318V32.5678C34 33.0283 33.5602 33.4911 33.1216 33.4911L28.3792 33.4945C27.9295 33.4945 27.4766 33.0484 27.4766 32.57L27.4646 22.2298C27.4646 21.7247 27.3847 21.1908 27.1101 20.7769C26.445 19.7735 25.1169 19.3263 23.9704 19.7757L23.9693 19.7768ZM23.5788 18.9414C25.118 18.2683 26.9143 18.8068 27.8606 20.1751C28.261 20.7536 28.3452 21.4099 28.4021 22.1107L28.4481 32.5522H33.0712V20.3442C33.0898 17.3717 30.9664 14.7964 28.0455 14.5539C27.2742 14.4905 26.5347 14.4816 25.7799 14.585C24.3621 14.7775 23.1084 15.5262 22.266 16.6764L20.9423 18.0125L20.9292 14.9911L16.2677 15V32.5522L21.4007 32.5544L21.4028 22.2342C21.4794 20.7858 22.2441 19.5254 23.5777 18.9414H23.5788Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}),s.jsx("path",{d:"M11.6141 33.4944L7.91316 33.5011C7.09486 33.5022 6.46473 32.847 6.46582 32.006L6.46801 15.4505C6.46801 14.6384 7.09158 14.0432 7.85627 14.0432L11.5211 14.041C12.3689 14.041 13.0023 14.6885 13.0023 15.5595L12.9925 32.1773C12.9925 32.9026 12.2978 33.4922 11.6152 33.4944H11.6141ZM11.6283 32.5544C11.8952 32.4932 12.067 32.3453 12.067 32.0605V15.5106C12.067 15.1835 11.8099 14.991 11.5233 14.991H7.85846C7.59809 14.9922 7.43728 15.1791 7.39789 15.4516V32.006C7.39789 32.2986 7.597 32.5511 7.88034 32.5511L11.6272 32.5555L11.6283 32.5544Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}),s.jsx("path",{d:"M13.4654 9.03032C13.5595 10.9582 12.2708 12.6836 10.4296 13.0318C9.25798 13.2532 8.14212 12.9372 7.26804 12.1385C6.08982 11.0639 5.67082 9.39631 6.27142 7.88227C6.82716 6.48392 8.16072 5.51164 9.71855 5.4994C10.8103 5.4905 11.7829 5.93103 12.5038 6.75536C13.0628 7.3939 13.4206 8.12701 13.4654 9.03032ZM11.5094 11.5022C12.9447 10.2807 12.8058 8.12256 11.4645 7.05572C10.7119 6.45611 9.73058 6.29925 8.80289 6.61519C7.48464 7.06573 6.74621 8.42403 6.98141 9.82461C7.19255 11.0861 8.2012 11.9661 9.44068 12.1218C10.2097 12.2186 10.9022 12.0184 11.5094 11.5022Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"})]})},Er=e=>{const{PUBLIC_ENV:t}=O(),a=oe("/email.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),s.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]})},Tr=e=>{const{PUBLIC_ENV:t}=O(),a=oe("/email-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),s.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]})},Ir=e=>{const{PUBLIC_ENV:t}=O(),a=oe("/facebook-note.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})})},Ur=e=>s.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})}),Ul={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ir,{className:e,forceSVG:!0}),solid:e=>s.jsx(Bt,{className:e,forceSVG:!0})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(xe,{className:e,forceSVG:!0}),solid:e=>s.jsx(xe,{className:e,forceSVG:!0})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(gs,{className:e,forceSVG:!0}),solid:e=>s.jsx(fs,{className:e,forceSVG:!0})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Er,{className:e,forceSVG:!0}),solid:e=>s.jsx(Tr,{className:e,forceSVG:!0})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ge,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ge,{className:e,forceSVG:!0})}}};function kr({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?s.jsxs("div",{className:"sass-com-ja3-socialNetworkSection",children:[e.options?.map(a=>{const r=Ul[a];if(!r)return null;const n=e.variant==="outline"?r.icon.outline:r.icon.solid,o=r.url(t);return s.jsx(M,{href:o,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`sass-com-ja3-socialButton sass-com-ja3-${a.toLowerCase()}Button sass-com-ja3-${a.toLowerCase()}Styled`,children:n("")},a)}),s.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja3-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(ps,{forceSVG:!0})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja3-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(Ur,{})})]}):null}const kl=e=>{const t=()=>e?.video.main.author?`${e?.video.main.author} - ${Ce(e.video.info.date.created)}`:e?.video.main.author;return s.jsx("div",{className:"sass-com-bv3-content",children:s.jsx(Ut,{children:s.jsxs("div",{className:"sass-com-bv3-videoContent",children:[s.jsx("p",{className:"sass-com-bv3-title",children:e.video.main.title}),e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv3-contentFrame",dangerouslySetInnerHTML:{__html:e.video.main.code}}),s.jsxs("div",{className:"sass-com-bv3-articleSection",children:[s.jsx("p",{className:"sass-com-bv3-article",children:ye(e.video.main.description)}),s.jsx("p",{className:"sass-com-bv3-correspondent",children:t()})]})]})})})},vs=e=>{const{currentPage:t,showNext:a,maxPages:r,pathname:n,query:o,block_subPublication:i}=e,l=(h,c,d)=>{let u="";const m=c.split("/");return m.indexOf("page")!==-1&&m.splice(u.indexOf("page")-1,m.length-1),m.forEach((p,f)=>{f!==0&&(u+=`/${p}`)}),h==="next"?u+=`/page/${t+1}${d?`?query=${d}`:""}`:u+=`/page/${t-1}${d?`?query=${d}`:""}`};return(t>1||a&&t<r)&&s.jsxs("section",{className:"sass-com-np-content",children:[t>1&&s.jsx(M,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("prev",n||"",o||""),children:e.texts.prevButtonText??"Anterior"}),a&&t<r&&s.jsx(M,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("next",n||"",o||""),children:e.texts.nextButtonText??"Siguiente"})]})},Cs=e=>{const{grid:t=3}=e;return s.jsxs("section",{className:"sass-com-nc-content",children:[s.jsx("div",{className:`sass-com-nc-contentGrid ${e.className?e.className:""} ${t===3?"sass-com-nc-contentGrid3":"sass-com-nc-contentGrid4"} news-content`,children:e.children}),s.jsx(s.Fragment,{children:e.paginatorComponent})]})},Se=e=>{const{main:t,authors:a,info:r,preview:n,share:o,isVideo:i,config:l,overImage:h="default",isTitle:c,priorityHigh:d=!1,isLarge:u,paths:m,keywords:p,speculationPrerenderClass:f}=e;return s.jsxs("section",{className:"sass-com-sc1-content",style:{...e.customSectionCardStyles},children:[s.jsx(M,{"aria-label":e.main?.title?.section,className:f?`${f} sass-com-sc1-image`:"sass-com-sc1-image",title:t?.title?.section,href:r?.link?.url,target:r?.link?.target,children:s.jsx(ge,{preview:n,isVideo:i,isLarge:u,priorityHigh:d})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(Pe,{main:t,authors:a,info:r,preview:n,share:o,config:l,overImage:h,isTitle:c,paths:m,keywords:p})})]})},nt=e=>{const{isVideo:t,info:a,main:r,overImage:n="default",titleGradient:o=!1}=e,{SHOW_TAG_BY_SECTION:i,SUB_PUBLICATION_PREFIX_IN_ROUTES:l}=O(),h=()=>{if(i&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const c=e.keywords.tags[0],d=c.name;return c.approved?s.jsx("h3",{children:s.jsx(M,{"aria-label":d,block_subPublication:l?.tema,className:"sass-com-sc2-sectionDescription",href:Ue(c,e.paths),children:d})}):s.jsx("div",{className:"sass-com-sc2-sectionDescription",children:d})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-com-sc2-sectionDescription",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return s.jsxs("section",{className:"sass-com-sc2-content",children:[s.jsx(M,{title:r?.title?.section,href:a.link.url,target:a.link.target,children:s.jsx(ge,{preview:e.preview,isVideo:t})}),s.jsxs("div",{className:["sass-com-sc2-boxInformation",o?"sass-com-sc2-titleGradient":""].join(" "),style:{width:n!=="default"?"90%":"",left:n==="left"?0:n==="right"?"calc(10% - 1px)":"auto",top:n!=="default"?"-1rem":""},children:[s.jsx(h,{}),s.jsx("h2",{className:"sass-com-sc2-articule",children:s.jsx(M,{className:"sass-com-sc2-linkStyled",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},Ll=e=>s.jsx("div",{className:"sass-com-lt-content",children:s.jsx(Ut,{className:`sass-com-lt-contentLayout ${e.className}`,children:e.children})}),Pl=e=>{const t=e.logo;return s.jsxs("section",{className:"sass-com-err-content",children:[e.backgroundImgURL&&s.jsx("img",{className:"sass-com-err-before su-absolute su-inset-0 su-size-full su-object-cover",src:e.backgroundImgURL,alt:"Imagen de fondo del error"}),s.jsxs("div",{className:"sass-com-err-textContent error-text-content",children:[s.jsx(t,{}),s.jsx("p",{className:"sass-com-err-title",children:e.title}),s.jsx("p",{className:"sass-com-err-description",children:e.description}),s.jsx(M,{className:"sass-com-err-linkStyled su-no-underline su-flex-center",href:"/",children:e.buttonText??"Inicio"})]})]})},xl=e=>s.jsxs("div",{className:"sass-com-cin-content",children:[s.jsxs("div",{className:"sass-com-cin-contentLabel",children:[s.jsx("label",{className:"sass-com-cin-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-cin-required",children:"*"})]}),s.jsx("input",{className:"sass-com-cin-input",...e})]}),Bl=e=>s.jsxs("div",{className:"sass-com-csel-content",children:[s.jsxs("div",{className:"sass-com-csel-contentLabel",children:[s.jsx("label",{className:"sass-com-csel-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-csel-required",children:"*"})]}),s.jsxs("select",{className:"sass-com-csel-input",...e,children:[s.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((t,a)=>s.jsx("option",{value:t.value,children:t.label},a))]})]}),Ol=e=>s.jsxs("div",{className:"sass-com-cta-content",children:[s.jsx("label",{className:"sass-com-cta-label",children:e.label}),s.jsx("textarea",{className:"sass-com-cta-input",...e})]}),Lr=e=>{let t="";return e.preview.description&&(t=e.preview.description),e.preview.copyright&&(t=`${t} ${e.preview.copyright}`),e.preview.photographer&&(t=`${t} ${e.preview.photographer}`),s.jsx("div",{className:"sass-com-in2-content",children:s.jsx(ge,{preview:e.preview,isLarge:!0,priorityHigh:!0,figCaption:t})})},Pr=e=>s.jsx(s.Fragment,{children:s.jsxs("div",{className:"sass-com-lbh-boxInformation sass-liveblog-header",children:[s.jsx(Lr,{preview:e.preview}),s.jsxs("div",{className:"sass-com-lbh-textBox",children:[s.jsxs("div",{className:"sass-com-lbh-contentBox",children:[e?.info?.section&&s.jsx(M,{className:"sass-com-lbh-sectionDescription",href:e?.info?.section?.url,children:e?.info?.section?.name}),s.jsxs("div",{className:"sass-com-lbh-liveBox",children:[s.jsx("span",{className:"sass-com-lbh-dot"}),s.jsx("p",{children:"EN VIVO"})]})]}),s.jsx("h1",{className:"sass-com-lbh-articule",children:e.main?.title?.section}),e.config?.showsubtitle&&s.jsx("h2",{className:"sass-com-lbh-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),xr=e=>s.jsx("section",{className:"sass-com-tl-content sass-liveblog-time-line",children:e.itemList[0]?.list.items.map((t,a)=>s.jsxs("div",{className:"sass-com-tl-contentLine",children:[s.jsx(M,{className:"sass-com-tl-dateLink",href:`#item-${a+1}`,children:aa(t.date)}),s.jsx("div",{className:"sass-com-tl-contentText",children:(e.itemList[0]?.list.integrated,t.title)})]},a))}),Br=e=>{const{PUBLIC_ENV:t}=O(),a=oe("/linkedin-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsx("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:s.jsx("path",{fill:"currentColor",strokeWidth:"1.2656",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:`M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
|
|
148
148
|
H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3
|
|
149
|
-
h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})})},Ot=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Ml=e=>!e||e.trim()===""?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),ql=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:r=!1}=e,n=a,o=t?.info?.image?.sizes?.[0]?.url??"",i=t?.info?.fullname??"",l=t?.info?.email??"",h=t?.addtional?.USER_SHOWEMAIL??!1,c=t?.addtional?.USER_SHOWBIO??!1,d=t?.addtional?.USER_MIBIO??"",u=Ot(t?.addtional?.USER_USERFB??""),m=Ot(t?.addtional?.USER_USERIG??""),p=Ot(t?.addtional?.USER_USERTWT??""),f=Ot(t?.addtional?.USER_USERLIN??""),g=()=>!h||!l||l.trim()===""?!1:Ml(l),A=b=>`mailto:${b.trim()}`;return s.jsx("section",{className:`sass-com-ah1-content su-flex-center su-relative su-w-full ${e.className??""}`,children:s.jsxs("div",{className:"sass-com-ah1-info",children:[o?s.jsx("div",{className:"sass-com-ah1-image-container sass-image-autor-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+i,className:"sass-com-ah1-image su-object-cover",src:await ie(o)})}):s.jsx("div",{className:"sass-com-ah1-icon-wrap sass-image-autor-wrapper su-flex-center",children:s.jsx(n,{})}),s.jsx("h1",{className:"sass-com-ah1-name",children:i}),g()&&s.jsx("a",{href:A(l),className:"sass-com-ah1-email","aria-label":`Enviar correo electrónico a ${l}`,title:`Enviar correo a ${l}`,children:l}),c&&s.jsx("p",{className:"sass-com-ah1-description",children:d}),s.jsxs("div",{className:"sass-com-ah1-social",children:[u&&s.jsx("a",{href:u,target:"_blank",className:`sass-com-ah1-social-link ${r?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?s.jsx(Bt,{className:"sass-com-ah1-social-icon sass-social-icon-facebook",forceSVG:!0}):s.jsx(Lt,{className:"sass-com-ah1-facebook-icon sass-com-ah1-social-icon-facebook",forceSVG:!0})}),m&&s.jsx("a",{href:m,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:s.jsx(Pt,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram",forceSVG:!0})}),p&&s.jsx("a",{href:p,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:s.jsx(xe,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-x",forceSVG:!0})}),f&&s.jsx("a",{href:f,target:"_blank",className:`sass-com-ah1-social-link ${r?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?s.jsx(Br,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0}):s.jsx(Ge,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0})})]})]})})},Dl=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:r=!1}=e,n=a,o=t?.info?.image?.sizes?.[0]?.url??"",i=t?.info?.fullname??"",l=t?.info?.email??"",h=t?.addtional?.USER_SHOWEMAIL??!1,c=t?.addtional?.USER_SHOWBIO??!1,d=t?.addtional?.USER_MIBIO??"",u=t?.addtional?.USER_USERFB??"",m=t?.addtional?.USER_USERIG??"",p=t?.addtional?.USER_USERTWT??"",f=t?.addtional?.USER_USERLIN??"";return s.jsx("section",{className:"sass-com-ah2-content su-flex su-w-full su-items-center su-justify-end",children:s.jsxs("div",{className:"sass-com-ah2-contentInfo su-stack-center su-relative su-w-full su-gap-2 su-p-4",children:[o?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-ah2-imageStyled su-object-cover",src:await ie(o)}):s.jsx("div",{className:"sass-com-ah2-contentIconStyled su-flex-center",children:s.jsx(n,{})}),s.jsxs("div",{className:"sass-com-ah2-contentAuthor su-stack-center su-md:items-start",children:[s.jsx("h1",{className:"sass-com-ah2-name",children:i}),h&&s.jsx("p",{className:"sass-com-ah2-email",children:l}),c&&s.jsx("p",{className:"sass-com-ah2-description",children:d}),s.jsxs("div",{className:"sass-com-ah2-contenSocialNetwork su-flex su-items-center su-gap-4 su-justify-start",children:[u&&s.jsx("a",{href:u,target:"_blank",className:r?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:r?s.jsx(Bt,{className:"sass-com-ah2-blackIconFaceBook sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0}):s.jsx(Lt,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0})}),m&&s.jsx("a",{href:m,target:"_blank",rel:"noreferrer",children:s.jsx(Pt,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-instagram",forceSVG:!0})}),p&&s.jsx("a",{href:p,target:"_blank",rel:"noreferrer",children:s.jsx(xe,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-x",forceSVG:!0})}),f&&s.jsx("a",{href:f,target:"_blank",className:r?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:r?s.jsx(Br,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0}):s.jsx(Ge,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0})})]})]})]})})},Or=e=>s.jsxs("section",{className:"sass-com-lnc-content",children:[e.children,s.jsxs("div",{className:"sass-com-lnc-bannerSection",children:[e.bannerTop,s.jsx(kt,{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]})]}),_l=async e=>{const t=As(),a={...e,main:{...e.main,title:{...e.main.title,article:ye(e.main.title.article,60)}}};return e&&e.info?s.jsxs("section",{className:"sass-com-sc7-content",children:[s.jsx("a",{className:"sass-com-sc7-linkImage",target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:s.jsxs("div",{style:{position:"relative"},children:[s.jsx("img",{src:await ie(e.preview.sizes[0]?.url||"")}),s.jsx(t,{className:"sass-com-sc7-playStyled saas-image-play-icon"})]})}),s.jsx("div",{className:"sass-com-sc7-newsDescription",children:s.jsx(Pe,{...a,paths:e.paths})})]}):null},Gl=e=>{let t=[];return e.videoList&&e.videoList.length>0&&(t=e.videoList?.filter(a=>a.info.path!==e.video.info.path)??[]),s.jsx("div",{className:"sass-com-bv4-content",children:s.jsxs(Ut,{className:"sass-com-bv4-contentLayoutVideoSection",children:[s.jsxs("a",{className:"sass-com-bv4-header",href:e.goBackLink??"/videos",children:[s.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"white"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),s.jsxs("div",{className:"sass-com-bv4-videos",children:[s.jsxs("div",{className:"sass-com-bv4-videoContent",style:e.mainVideoStyles,children:[e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0,allow:"autoplay; fullscreen",sandbox:"allow-scripts allow-same-origin allow-presentation allow-popups"}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv4-contentFrame",dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),s.jsx("div",{className:"sass-com-bv4-articleSection",children:s.jsx(Pe,{isTitle:!0,cutSubtitle:!1,...Fe({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description,!0),paths:e.paths})})]}),s.jsxs("div",{className:"sass-com-bv4-sectionVideoList",style:e.listVideoStyles,children:[e.banner&&s.jsx(fe,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&s.jsx("h2",{className:"sass-com-bv4-relatedTitle saas-video-related-title",children:e.relatedName}),Array.isArray(t)&&t.map((a,r)=>I.createElement(_l,{...Fe(a,!0,!1,!1),key:r,paths:e.paths}))]})]})]})})},ce=I.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:r=!1}=e,n=a?s.jsx("h1",{className:"sass-com-sec-title",children:e.title}):s.jsx("h2",{className:"sass-com-sec-title",children:e.title});return s.jsxs("section",{className:"sass-com-sec-content",children:[e.title&&s.jsxs("div",{className:["sass-com-sec-titleContent",e.className??""].join(" "),"data-after":`${r}`,children:[s.jsx("hr",{className:"sass-com-sec-startLine"}),e.titleUrl?s.jsx(M,{href:e.titleUrl,children:n}):n,s.jsx("hr",{className:"sass-com-sec-line"}),e.titleUrl&&s.jsx(M,{className:"sass-com-sec-readMore",href:e.titleUrl?.toString()??""})]}),e.title&&s.jsx("hr",{className:["sass-com-sec-bottomLine",e.className??""].join(" ")}),s.jsx("div",{className:"sass-com-sec-childrenContent",ref:t,children:e.children})]})}),ys=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),Mt=e=>s.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:"currentColor"})}),jl=()=>s.jsx("div",{className:"sass-com-sb-buttonContent",children:s.jsx("label",{className:"sass-com-sb-buttonStyled",htmlFor:"side-bar-state",children:s.jsx(Ke,{className:"sass-com-sb-icon"})})}),Ql=({action:e,placeholder:t})=>s.jsx("div",{className:"sass-com-sb-inputContent",children:s.jsxs("form",{className:"sass-com-sb-inputStyled",action:e,method:"GET",children:[s.jsx("input",{className:"sass-com-sb-buscar",type:"text",name:"query",placeholder:t}),s.jsx("button",{type:"submit","aria-label":"Buscar from sidebar",className:"sass-com-sb-searchSubmit",children:s.jsx(ys,{color:"var(--search-input-icons)"})})]})}),Fl=({item:e,index:t})=>{const a=`accordion_${t}`,r=Array.isArray(e.subitem);return s.jsxs("div",{className:"sass-com-sb-accordionStyled",children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"}}),s.jsx("h3",{className:"sass-com-sb-accordionHeading",children:r?s.jsxs("label",{className:"sass-com-sb-accordionSummeryStyled",htmlFor:a,children:[e.link?s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link,target:e.target,children:e.description}):s.jsx("div",{children:e.description}),s.jsx(Mt,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link??void 0,target:e.target,children:e.description})}),r&&s.jsx("div",{className:"sass-com-sb-accordionDetailsStyled",style:{"--max-height":`${e.subitem.length*45}px`},children:e.subitem.map((n,o)=>s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-subLinkStyled",href:n.link??void 0,target:n.target,children:n.description},o))})]})},Hl=({socials:e,copyright:t})=>s.jsxs("div",{className:"sass-com-sb-footerSlider",children:[s.jsx("div",{className:"sass-com-sb-socialMedia",children:Object.keys(e).map(a=>e[a]?.show?s.jsx("a",{href:e[a].url,target:"_blank",rel:"noreferrer","aria-label":`${e[a].title} link`,className:"sass-com-sb-linkSocialNetwork",children:xt[a]({className:"sass-com-sb-icon"})},a):null)}),t&&s.jsx("p",{className:"sass-com-sb-copyRights",children:t})]}),Vl=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:r,searchKeyWord:n,searchLink:o,custom_styles:i={}})=>{const{PUBLIC_SERVICE_PREFIX:l,PUBLIC_IS_SUB_PUBLICATION:h,SUB_PUBLICATION_PREFIX_IN_ROUTES:c}=O(),d=c?.buscar&&l!=="false"&&h!=="false"?`/${l}`:"";return s.jsxs("aside",{className:"sass-com-sb-drawerStyled",id:"sidebar-expandable",style:i,children:[s.jsx("input",{type:"checkbox",id:"side-bar-state"}),s.jsxs("section",{className:"sass-com-sb-sidebarCustom",children:[s.jsx(jl,{}),s.jsx(Ql,{action:`${d}${o||"/buscar"}`,placeholder:`${n}...`}),s.jsxs("div",{className:"sass-com-sb-mainContent",children:[s.jsxs("div",{children:[r,e.map((u,m)=>s.jsx(Fl,{item:u,index:m},m))]}),s.jsx(Hl,{socials:t,copyright:a})]})]})]})},Mr=e=>s.jsx("svg",{width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M1.5 18H25.5C26.325 18 27 17.325 27 16.5C27 15.675 26.325 15 25.5 15H1.5C0.675 15 0 15.675 0 16.5C0 17.325 0.675 18 1.5 18ZM1.5 10.5H25.5C26.325 10.5 27 9.825 27 9C27 8.175 26.325 7.5 25.5 7.5H1.5C0.675 7.5 0 8.175 0 9C0 9.825 0.675 10.5 1.5 10.5ZM0 1.5C0 2.325 0.675 3 1.5 3H25.5C26.325 3 27 2.325 27 1.5C27 0.675 26.325 0 25.5 0H1.5C0.675 0 0 0.675 0 1.5Z",fill:e.color})}),qr=e=>{const{alertZone:t,id:a="close-alert"}=e,r=()=>s.jsx(M,{className:"sass-com-hlm-headLine",href:t?.data[0]?.info.link.url,target:t?.data[0]?.info.link.target,title:t?.data[0]?.main.title.home,children:t?.data[0]?.main?.title.home??""});return s.jsxs(s.Fragment,{children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(t&&t?.data&&t?.data[0]?.main?.title.home)}),t&&t?.data&&t?.data[0]?.main?.title.home&&s.jsxs("div",{id:"alert-chip",className:"sass-com-hlm-content",style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[s.jsxs("div",{className:"sass-com-hlm-live",children:[s.jsx("div",{className:"sass-com-hlm-chipStyled",children:t?.entity?.description}),e.forceShow&&s.jsx(r,{}),s.jsx("label",{htmlFor:a,children:s.jsx(Ke,{className:"sass-com-hlm-closeLiveStyled"})})]}),s.jsx(r,{})]})]})},Dr=e=>{const{cintillo:t,tapeTitle:a,socials:r}=e,n="",o=t?.findIndex(i=>i.link===n)??0;return(Array.isArray(t)||e.socialIcons)&&s.jsxs("section",{className:"sass-com-htape-content",children:[Array.isArray(t)&&s.jsxs("div",{className:"sass-com-htape-tabs header-page-tape-content",children:[a!==""&&s.jsx("p",{className:"sass-com-htape-title",children:`${a}`}),t&&t[o]&&s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",target:t[o]?.target,href:t[o]?.link,style:{color:t[o]?.link===n?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[o]?.link===n?"700":"400"},children:t[o]?.description},o),t&&t.map((i,l)=>{if(l!==o)return s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",href:i?.link,style:{color:i?.link===n?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===n?"700":"400"},children:i?.description},l)})]}),s.jsx("div",{className:"sass-com-htape-socialNetwork",children:Object.keys(r).map(i=>r[i]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":r[i].title+" link",className:"sass-com-htape-linkSocialNetwork",href:r[i].url,children:xt[i]({className:["sass-com-htape-icon",`sass-com-htape-${String(i)}`].join(" ")})},i))})]})},zl=e=>{const{alertZone:t,custom_styles:a={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:r}=O();return s.jsxs("header",{className:"sass-com-h1sk-headerStyled",style:a,id:"saas-header-sticky",children:[e.socialIcons&&e.headerTape?.sticky&&s.jsx(Dr,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{className:"sass-com-h1sk-headerContent center-mobile-header-icon",children:[s.jsx(bs,{id:"button-app",className:"sass-com-h1sk-menuButton",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:s.jsx(Mr,{className:"sass-com-h1sk-startIcon",color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27})}),s.jsxs("div",{className:"sass-com-h1sk-iconContent",children:[s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:I.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.icon)}),e.mobileIcon?s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky header-mobile-icon",style:{display:"flex"},children:I.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.mobileIcon())}):null]}),!e.showAlertPop&&t?.data&&s.jsxs("div",{className:"sass-com-h1sk-headLineContent",children:[s.jsx("div",{className:"sass-com-h1sk-headLineTitle headLineTitle",children:t.entity.description?`${t.entity.description}`:""}),s.jsx(M,{className:"sass-com-h1sk-headLine",href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:ye(t.data[0]?.main.title.home??"",120)})]}),s.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:["sass-com-h1sk-buttonSection",t?.data?"sass-com-h1sk-hasAlertZone":"","search-button"].join(" "),children:[s.jsx(M,{block_subPublication:r?.buscar,href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:"sass-com-h1sk-buttonSectionSearch search-button-icon",style:{display:"flex"},children:s.jsx(ys,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&s.jsx(qr,{alertZone:t,forceShow:e.showAlertPop})]})},Wl=e=>{const{items:t}=e;return s.jsx("ul",{className:"sass-com-mopt-ul",children:t.map((a,r)=>s.jsxs("li",{className:"sass-com-mopt-liBefore sass-com-mopt-li",children:[a.link?s.jsxs(M,{block_subPublication:!0,"aria-label":a.description,className:"sass-com-mopt-linkStyled",href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&s.jsx(Mt,{})]}):s.jsxs("span",{"aria-label":a.description,className:"sass-com-mopt-linkStyled",children:[a.description,Array.isArray(a.subitem)&&s.jsx(Mt,{})]}),Array.isArray(a.subitem)&&s.jsx("ul",{className:"sass-com-mopt-ulContent",children:s.jsx("div",{className:"sass-com-mopt-contentModal",children:a.subitem.map((n,o)=>s.jsx("li",{className:"sass-com-mopt-li",children:s.jsx(M,{block_subPublication:!0,className:"sass-com-mopt-itemLink","aria-label":n.description,href:n.link?n.link:void 0,target:n.target,children:n.description})},o))})})]},r))})},Yl=e=>{const{menu:t,alertZone:a,custom_styles:r={},prerender_classes:n}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:o}=O();return s.jsxs("header",{className:"sass-com-h1st-headerStyled",id:"saas-header-static",style:{...r,top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&s.jsx(Dr,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:["sass-com-h1st-headerContent",a?.data?"sass-com-h1st-hasAlertZone":""].join(" "),children:[s.jsx("div",{className:"sass-com-h1st-menuButtonSection sass-header-menu-button",children:s.jsxs(bs,{className:"sass-com-h1st-menuButton",id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[s.jsx(Mr,{color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27}),s.jsx("p",{className:"sass-com-h1st-buttonText",style:{lineHeight:0},children:e.menuText})]})}),s.jsx("div",{className:"sass-com-h1st-logoContent",children:s.jsx(M,{href:"/","aria-label":"Home",className:"header-logo-link",children:I.createElement("span",{className:"sass-com-h1st-logoStyled"},e.icon)})}),s.jsxs("div",{className:"sass-com-h1st-buttonSection sass-header-right-button-section",children:[s.jsx(M,{block_subPublication:o?.buscar,href:e.searchLink?e.searchLink:"/buscar",className:"sass-com-h1st-buttonSectionSearch","aria-label":e.searchKeyWord,children:s.jsx(ys,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?s.jsxs("div",{className:"sass-com-h1st-headLineContent",children:[s.jsx("p",{className:"sass-com-h1st-headLineTitle headLineTitle",children:a.entity.description?`${a.entity.description}`:""}),s.jsx(M,{className:`sass-com-h1st-headLine ${n?.alert}`,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:ye(a.data[0]?.main.title.home??"",120)})]}):s.jsx("div",{className:"sass-com-h1st-line"}),s.jsx("div",{className:"sass-com-h1st-menuSection",style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&s.jsx(Wl,{items:t})})]})]})},Kl=e=>{const{alertZone:t,children:a,sidebar:r,custom_styles:n={}}=e,o=e.childrenContentTag??"div",i=s.jsxs(o,{className:["sass-com-h1-childrenContent",e.showAlertPop?"sass-com-h1-op2":"",t?.data?"sass-com-h1-childrenContentAux":""].join(" "),style:e.showOnlyStickyHeader?{...n,"--hasAlertMargin":"3.6rem !important"}:n,id:"content-layout",children:[e.showAlertPop&&s.jsx(qr,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]});return s.jsxs(s.Fragment,{children:[e.childrenContentPosition==="before-headers"&&i,s.jsx(zl,{...e}),!e.showOnlyStickyHeader&&s.jsx(Yl,{...e}),e.childrenContentPosition!=="before-headers"&&i,s.jsx(Vl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:r,searchLink:e.searchLink,socials:e.socials,copyrigth:e.copyrigth,custom_styles:e.custom_styles})]})},_r=e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=O();return e?.tags&&e?.tags?.length>0&&s.jsx("section",{className:"sass-com-ts-content",children:Array.isArray(e.tags)&&s.jsxs("div",{className:"sass-com-ts-tags",children:[s.jsx("p",{className:"sass-com-ts-tagStyled",children:e.title?e.title:"Tags:"}),e.tags.map((a,r)=>a.approved?s.jsx(M,{block_subPublication:t?.tema,href:Ue(a,e.paths),children:s.jsx("div",{className:"sass-com-ts-chipStyled sass-com-ts-tagLink",children:a.name})},r):s.jsx("div",{className:"sass-com-ts-chipStyled",children:a.name},r))]})})},Gr=async e=>{const{autor:t}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:a,PUBLIC_SERVICE_PREFIX:r}=O(),n=t?.addtional?.USER_SHOWBIO??!1,o=t?.info?.name??"",i=t?.info?.fullname??"",l=t?.info?.image?.sizes?.[0]?.url??"",h=t?.addtional?.USER_MIBIO??"",c=t?.addtional?.USER_USERFB??"",d=t?.addtional?.USER_USERIG??"",u=t?.addtional?.USER_USERTWT??"",m=t?.addtional?.USER_USERLIN??"",p=r?`/${r}/${e.paths.autor}/${o}`:`/${e.paths.autor}/${o}`;return n&&!!t&&s.jsx("section",{className:"sass-com-ja2-contentBox",children:s.jsxs("div",{className:"sass-com-ja2-content",children:[s.jsxs("div",{className:"sass-com-ja2-avatarContent",children:[s.jsx(M,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:p,children:l?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+o,className:"sass-com-ja2-imageStyled",src:await ie(l)}):s.jsx("div",{className:"sass-com-ja2-contentIconStyled",children:e.autorIcon})}),s.jsxs("section",{className:"sass-com-ja2-journalistSection",children:[s.jsx("h3",{className:"sass-com-ja2-journalistInfo",children:s.jsx(M,{block_subPublication:a?.autor,className:"su-no-underline",href:p,children:i})}),s.jsxs("section",{className:"sass-com-ja2-socialNetworkSection",children:[c&&s.jsx("a",{href:c,target:"_blank","aria-label":h,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),d&&s.jsx("a",{href:d,target:"_blank","aria-label":h,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[s.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),s.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),s.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_281_2357",children:s.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),u&&s.jsx("a",{href:u,target:"_blank","aria-label":h,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),m&&s.jsx("a",{href:m,target:"_blank","aria-label":h,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})})]})]})]}),n&&s.jsx("p",{className:"sass-com-ja2-article",dangerouslySetInnerHTML:{__html:`${h} <a aria-label="${o}" href="${p}">${String(e.texts.authorViewMore??"Ver más")}</a>`}})]})})},jr=async e=>{const{news:t,texts:a}=e;return t.config?.showauthor&&t.authors?.length>1&&s.jsx("div",{className:"sass-com-jg-content su-flex su-w-full su-flex-col su-items-center su-justify-evenly su-gap-0 su-md:flex-row",children:Array.isArray(t.authors)&&t.authors?.map(async r=>s.jsxs("div",{className:"sass-com-jg-contentCard",children:[r.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-jg-imageStyled su-flex-center",src:await ie(r.image.sizes[0]?.url||"")},r.fullname):s.jsx("div",{className:"sass-com-jg-contentIconStyled su-flex-center",children:e.autorIcon},r.fullname),s.jsxs("div",{className:"sass-com-jg-contentInfo",children:[r.internaluser?s.jsx("a",{className:"sass-com-jg-fullName",href:`/${e.paths.autor}/${r.name}`,children:r.fullname}):s.jsx("p",{className:"sass-com-jg-fullName",children:r.fullname}),r.internaluser&&s.jsx("a",{className:"sass-com-jg-LearnMoreLink",href:`/${e.paths.autor}/${r.name}`,children:String(a.JournalistGroupLink??"")})]})]},`author-${r.firstname}`))})},qt=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Jl=async e=>{const t=e.img?await ie(e.img):"",a=qt(e.social?.facebook??""),r=qt(e.social?.instagram??""),n=qt(e.social?.twitter??""),o=qt(e.social?.linkedin??""),i=e.social&&(a||r||n||o);return s.jsx("section",{className:`sass-com-th-content ${e.className}`,children:s.jsxs("div",{className:`sass-com-th-contentInfo ${t?"":"sass-com-th-contentInfoWithoutImg"}`,children:[e.img&&s.jsx("div",{className:"sass-com-th-imageContainer sass-image-tag-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-th-imageStyled su-object-cover",src:t})}),s.jsx("h1",{className:"sass-com-th-name",children:e.tag}),e.description&&s.jsx("div",{className:"sass-com-th-description",dangerouslySetInnerHTML:{__html:e.description}}),e.url&&s.jsx("a",{className:"sass-com-th-urlTag",href:e.url,children:e.url}),i&&s.jsxs("div",{className:"sass-com-th-contenSocialNetwork",children:[a&&s.jsx("a",{href:a,target:"_blank",className:"sass-com-th-socialFacebookIcon sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Lt,{className:"sass-com-th-faceBookIcon",forceSVG:!0})}),r&&s.jsx("a",{href:r,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(Pt,{className:"sass-com-th-socialIcon",forceSVG:!0})}),n&&s.jsx("a",{href:n,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(xe,{className:"sass-com-th-socialIcon",forceSVG:!0})}),o&&s.jsx("a",{href:o,target:"_blank",className:"sass-com-th-socialIconLink sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Ge,{className:"sass-com-th-socialIcon",forceSVG:!0})})]})]})})};function $l(e){const{main:t,authors:a,info:r,preview:n,config:o,keywords:i,isVideo:l,isLarge:h,priorityHigh:c,share:d,overImage:u,isTitle:m,paths:p}=e,{CONFIG_videoClipUrl:f}=O(),g=o?.homepreview??"imagen",A=()=>{const w=e.videos?.[0]?.clip;return w?s.jsx("div",{className:"homeCardVideoClipContainer",children:s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,width:"480",height:"535",children:s.jsx("source",{src:`${f}${w}`,type:"video/mp4"})})}):null},b=()=>{if(!e.videos)return null;const w=e.videos?.[0]?.code;return w?s.jsx("iframe",{className:"homeCardVideoIframeContainer",src:`https://www.youtube.com/embed/${w}`,frameBorder:"0",allowFullScreen:!0}):null},E=()=>{if(!e.videos)return null;const w=(e.videos??[]).find(V=>V.type==="video-embedded");if(!w?.code)return null;const P=/src\s*=\s*"([^"]+)"/.exec(w.code),H=P?P[1]:null;if(!H)return null;const Y=n.original?.url??n.sizes?.[0]?.url??"",F=He()??"",B=Y.startsWith("http")||Y.includes(F)||F===""?Y:F+Y;return s.jsx("iframe",{className:"homeCardEmbeddedIframeContainer",src:H,frameBorder:"0",allowFullScreen:!0,style:{"--thumbnail-url":`url(${B})`}})},N=()=>{const U=e.gallery??[];return U.length?s.jsx(Le,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:U.map((P,H)=>{const Y=P?.url||P?.id||`gallery-${H}`;return s.jsx(M,{"aria-label":e.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:r?.link?.url,target:r?.link?.target,children:s.jsx(ge,{preview:P,isVideo:l,isLarge:h,priorityHigh:c})},Y)})}):null};let S=null;switch(g){case"fotogaleria":S=s.jsx(N,{});break;case"videoYouTube":S=s.jsx(b,{});break;case"videoEmbedded":S=s.jsx(E,{});break;case"clip":S=s.jsx(A,{});break;case"iframe":S=s.jsx("div",{className:"homeCardIframeContainer",dangerouslySetInnerHTML:{__html:e?.external?.iframe??""}});break;default:S=s.jsx(M,{"aria-label":e?.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:r?.link?.url,target:r?.link?.target,children:s.jsx(ge,{preview:n,isVideo:l,isLarge:h,priorityHigh:c})});break}return s.jsxs("section",{className:"homeCardContent",style:{...e.customSectionCardStyles},children:[s.jsx("div",{className:"homeCardContentWrapper",children:S}),s.jsx("div",{className:"homeCardNewsDescription",children:s.jsx(Pe,{main:t,authors:a,info:r,preview:n,share:d,config:o,overImage:u,isTitle:m,paths:p,keywords:i})})]})}const Je=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=O(),r=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${Ce(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return Ce(e.info?.date?.modified)},n=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const i=e.keywords.tags[0],l=i.name;return i.approved?s.jsxs("h3",{children:[" ",s.jsx(M,{"aria-label":l,className:"sass-bmd-sup-tagmx",block_subPublication:a?.tema,href:Ue(i,e.paths),children:l})]}):s.jsx("div",{className:"sass-bmd-sup-tagmx",children:l})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tagmx",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},o=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const i=e.keywords.tags[0],l=i.name;return i.approved?s.jsx("h3",{children:s.jsx(M,{"aria-label":l,className:"sass-bmd-sup-tag",block_subPublication:a?.tema,href:Ue(i,e.paths),children:l})}):s.jsx("div",{className:"sass-bmd-sup-tag",children:l})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tag",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return s.jsxs("section",{className:"sass-bmd-sup-content destacado-super-content",children:[s.jsx(M,{className:e.speculationPrerenderClass,href:e?.info?.link?.url,target:e?.info?.link?.target,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:s.jsx(ge,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),s.jsxs("div",{className:"sass-bmd-sup-contentNews",style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[s.jsx(n,{}),s.jsxs("div",{style:{position:"relative"},children:[s.jsx(o,{}),s.jsx(M,{className:"sass-bmd-sup-linkTitle",href:e?.info?.link?.url,target:e?.info?.link?.target,children:s.jsx("h1",{className:"sass-bmd-sup-titular",style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&s.jsx("div",{className:"sass-bmd-sup-description",dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&s.jsx(s.Fragment,{children:e.authors[0]?.internaluser?s.jsx(M,{block_subPublication:a?.autor,href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:"sass-bmd-sup-correspondent",children:r()}):s.jsx("p",{className:"sass-bmd-sup-correspondentLink",children:r()})})]})]})},Qr=e=>{const{main:t,authors:a,info:r,preview:n,isVideo:o,config:i,itemReverseOrder:l,imageSize:h,showSuper:c,textPosition:d,heightImageOverwrite:u,heightImageOverwriteMobile:m}=e;return s.jsxs("section",{className:"su-grid su-w-full su-gap-8 sass-bmd-dd-content",children:[c?s.jsx("section",{style:{...e.customSectionCardStyles},children:s.jsx(Je,{main:t,authors:a,info:r,preview:n,isVideo:o,config:i,paths:e.paths,textPosition:d,heightImageOverwrite:u,heightImageOverwriteMobile:m,speculationPrerenderClass:e.speculationPrerenderClass})}):s.jsx(Se,{...e,main:t,authors:a,info:r,preview:n,isVideo:o,config:i,speculationPrerenderClass:e.speculationPrerenderClass,priorityHigh:!0}),e.banners&&s.jsx(fe,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsx(Cr,{block:e.block,itemReverseOrder:l,priorityHigh:!0,imageSize:h,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})},Zl=({content:e,customLargeSection:t,customSmallSection:a,paths:r,speculationPrerenderClass:n})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&s.jsxs("section",{className:"sass-bmd-dnh-content",children:[s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnh-firstSection",children:s.jsx(Je,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n})}),s.jsx("div",{style:a,className:"su-flex su-flex-col su-gap-2 su-w-full su-h-auto su-md:gap-0 sass-bmd-dnh-secondSection",children:e.map((i,l)=>l>0&&I.createElement(Je,{...i,key:l,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n}))})]})},Xl=({content:e,customLargeSection:t,customSlimSection:a,paths:r,speculationPrerenderClass:n})=>Array.isArray(e)&&e.length>0&&s.jsx("section",{className:"su-grid su-w-full su-gap-2 sass-bmd-dnv-content",children:e.map((o,i)=>i===0?s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnv-firstSection",children:s.jsx(Je,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n})},i):s.jsx("section",{style:a,children:I.createElement(Je,{...o,key:i,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n})},i))}),Fr=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=O(),r=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const n=e.mainNew.keywords.tags[0],o=n.name;return n.approved?s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{"aria-label":o,className:"sass-com-bh-sectionDescription",block_subPublication:a?.tema,href:Ue(n,e.paths),children:o})}):s.jsx("div",{className:"sass-com-bh-sectionDescription",children:o})}else if(e.mainNew.info?.section?.url)return s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{className:"sass-com-bh-sectionDescription",href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return s.jsxs("div",{className:"sass-com-bh-content",children:[s.jsx(r,{}),s.jsx(M,{className:"sass-com-bh-title",href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-com-bh-subtitle",children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&s.jsx(M,{href:e.goTo.url,className:"sass-com-bh-linkStyled",children:e.goTo.description})]})},Hr=e=>{const{content:t,title:a,isVideo:r}=e;if(!t||!t[0]||t.length===0)return;const n=e.slot_id&&e.slot_id!=="Nota_1",o={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:n?t[0].main.title.home:t[0].main.title.section}}},i=t.slice(1);return o&&i&&s.jsxs(ce,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"su-flex su-flex-col-reverse su-overflow-hidden sass-bd-dn-headerSection",children:[s.jsx(Fr,{mainNew:o,goTo:e.goTo,paths:e.paths}),s.jsx(M,{className:"sass-bd-dn-headerSectionLink",href:o?.info?.link?.url,target:o?.info?.link?.target,children:s.jsx(ge,{preview:o.preview})})]}),s.jsxs("div",{className:"su-grid sass-bd-dn-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,h)=>{const c={...l,main:{...l.main,title:{...l.main.title,section:n?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:h},children:s.jsx(Se,{...c,isVideo:r,paths:e.paths})},h)})]})]})},Dt=async e=>{const{data:t,autorIcon:a,speculationPrerenderClass:r}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=O(),o=a,i=()=>t?.config?.showtime?`${Ce(t.info?.date?.modified)}`:"",l=s.jsxs("div",{className:"sass-com-oc2-autorContent",children:[Array.isArray(t?.authors)&&Array.isArray(t?.authors[0]?.image?.sizes)&&t?.authors[0]?.image?.sizes?.length>0?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-oc2-image",src:await ie(t?.authors[0]?.image?.sizes[0]?.url||""),alt:t?.authors[0]?.fullname}):s.jsx("div",{className:"sass-com-oc2-contentIcon",children:s.jsx(o,{})}),s.jsx("p",{className:"sass-com-oc2-autorName",children:ye(t?.authors[0]?.fullname??"Redacción",18)}),s.jsx("p",{className:"sass-com-oc2-time",children:i()})]});return s.jsxs("div",{className:"sass-com-oc2-content",children:[t?.authors[0]?.internaluser?s.jsx(M,{block_subPublication:n?.autor,href:t.authors[0]?.internaluser?`/${e.paths.autor}/${t?.authors[0]?.name}`:"#",children:l}):l,s.jsxs("div",{className:"sass-com-oc2-boxInformationContent",children:[s.jsx(M,{className:r?`${r} sass-com-oc2-title`:"sass-com-oc2-title",href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),s.jsx("p",{className:"sass-com-oc2-comment",children:ye(t?.main?.subtitle?.striped||"")})]})]})};function Rl(e){const t=new Array(e.length),a=e.length/2;for(let r=0;r<e.length;r++)r%2===0?t[Math.floor(r/2)]=e[r]:t[a+Math.floor(r/2)]=e[r];return t}const ec=e=>{const{isOpinion:t=!1}=e,a=o=>s.jsx("div",{className:"sass-bs-mo-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mo-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},o),r=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];o===2&&r.push(a(o)),i&&r.push(s.jsx("div",{className:"sass-bs-mo-boxPosition",style:{order:o},children:s.jsx(Dt,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${o}`))}const n=r.length%2===0?Rl(r):r;return s.jsx("section",{style:e.customStyles,children:s.jsx(ce,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:s.jsxs("div",{className:"sass-bs-mo-content",children:[s.jsx("div",{className:"sass-bs-mo-contentFlex",children:n}),s.jsx("div",{className:"sass-bs-mo-bannerContent",children:e.halfPageBanner})]})})})},tc=e=>{const{showTitle:t=!0}=e;return s.jsxs("div",{className:"sass-bs-eb1-content",children:[t&&s.jsx("p",{className:"sass-bs-eb1-title",children:"Editorial"}),s.jsx(Pe,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},sc=e=>{const{news:t}=e;return Array.isArray(t)&&s.jsxs("div",{className:"sass-bs-m2c-content",children:[s.jsxs("div",{className:"sass-bs-m2c-newsContent",children:[e.bannerArray&&e.bannerArray.map((a,r)=>s.jsx("div",{className:"sass-bs-m2c-boxPosition banner-context",style:{order:2+5*r},children:s.jsx("div",{className:"sass-bs-m2c-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},r)),t.map((a,r)=>s.jsx("div",{className:"sass-bs-m2c-boxPosition",style:{order:r},children:s.jsx(Se,{...a,share:e.share,paths:e.paths})},r))]}),s.jsx("div",{className:"sass-bs-m2c-bannerContent",children:e.halfPageBanner})]})},ac=e=>s.jsxs(s.Fragment,{children:[s.jsx(Nr,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),s.jsx(Sr,{...e})]}),Vr=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?"sass-bs-m3c-contentSeparator":"",r=[];let n=0,o=1;for(let i=0;i<t.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(r.push(s.jsx("section",{className:a(n),children:e.banners?.some(d=>d.key===`${e.slot_id}_${o}`)&&s.jsx(fe,{banners:e.banners,name:`${e.slot_id}_${o}`})},n)),n++,o++);const l=e.isVideo?Fe(t[i],e.showVideoTime,e.showVideosubtitle,e.showVideoAuthor):t[i];if(!l)continue;const h=e.slot_id&&e.slot_id!=="Nota_1",c={...l,main:{...l.main,title:{...l.main.title,section:h?l.main.title.home:l.main.title.section}}};r.push(s.jsx("section",{className:a(n),children:s.jsx(Se,{...c,isVideo:e.isVideo,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&n<e.speculationPrerender.length?e.speculationPrerender.class:void 0})},n)),n++}return r.length===2&&r.push(s.jsx("div",{},n)),s.jsx("div",{className:`${e.hasLines?"sass-bs-m3c-newsContentWithLines":"sass-bs-m3c-newsContentWithoutLines"} sass-bs-m3c-newsContent`,children:r})},zr=e=>s.jsx(ce,{title:e.title,titleUrl:e.titleUrl,children:s.jsx(Vr,{content:e.content,paths:e.paths,slot_id:e.slot_id,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle,speculationPrerender:e.speculationPrerender})}),Wr=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m14-newsContent ${e.hasLines?"sass-bd-m14-contentSeparator":""}`,children:t?.map((r,n)=>{const o=e.slot_id&&e.slot_id!=="Nota_1",i={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return s.jsx("section",{children:s.jsx(Se,{...i,share:e.share,paths:e.paths})},n)})})})},Yr=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m15-newsContent ${e.hasLines?"sass-bd-m15-contentSeparator":"sass-bd-m15-newsContentWhitoutLine"}`,children:t.map((r,n)=>{const o=e.slot_id&&e.slot_id!=="Nota_1",i={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return s.jsx("section",{children:s.jsx(Se,{...i,share:e.share,paths:e.paths})},n)})})})},Kr=e=>{const{content:t,title:a,isVideo:r=!0}=e;if(!t||t.length===0)return;const n=t[0],o=e.slot_id&&e.slot_id!=="Nota_1",i=t.slice(1);return n&&i&&s.jsxs(ce,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"sass-bd-dv-headerSection",children:[s.jsx(Fr,{goTo:e.goTo,mainNew:Fe(n),paths:e.paths}),s.jsx(M,{className:"sass-bd-dv-headerSectionLink",href:n?.info?.link.url,target:n?.info?.link.target,"aria-label":"Video",children:s.jsx(ge,{preview:{sizes:n?.main?.image.sizes,description:n?.main?.image.description},isVideo:r,isLarge:!0})})]}),s.jsxs("div",{className:"sass-bd-dv-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,h)=>{const c=Fe(l),d={...c,main:{...c.main,title:{...c.main.title,section:o?c.main.title.home:c.main.title.section}}};return s.jsx("div",{style:{order:h},children:I.createElement(Se,{...d,isVideo:r,key:h,paths:e.paths})},h)})]})]})},rc=async e=>{const{showNewsLikeTitle:t=!1}=e;return e&&e.info?s.jsxs("section",{className:"sass-com-sc6-content",style:{"--heightImageOverwrite":"100%"},children:[s.jsx(M,{className:"sass-com-sc6-linkImage",target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:s.jsx(ge,{preview:e.preview})}),s.jsxs("div",{className:"sass-com-sc6-textContent",children:[s.jsx(M,{className:"sass-com-sc6-sectionDescription",target:e?.info?.link?.target,href:t?e.info.link.url:e?.info?.section?.url,children:(t?e?.main?.title?.section:e?.info?.section?.name)??""}),s.jsx("p",{className:"sass-com-sc6-dateText",children:Ce(e?.info?.date?.modified)})]})]}):null},Jr=e=>{if(!e.content||e.content.length===0)return;const t=e.slot_id&&e.slot_id!=="Nota_1";return s.jsx(ce,{title:e.title,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m13c-content ${e.hasLines?"sass-bd-m13c-contentSeparator":""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,r)=>{const n={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx("section",{className:e.hasLines?"sass-bd-m13-hasLinesBlock":"",children:I.createElement(rc,{...n,key:r,showNewsLikeTitle:e.showNewsLikeTitle})},r)})})})},$r=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Le,{slot_id:r,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:s.jsx(nt,{...l,paths:e.paths})},i)})})})},nc=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=O(),{data:a}=e;return s.jsxs("div",{className:"sass-com-opt1-content",children:[Array.isArray(a.authors)&&a?.authors[0]?.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-opt1-imageStyled",src:await ie(a?.authors[0]?.image?.sizes[0]?.url||""),alt:a?.authors[0]?.fullname}):s.jsx("div",{className:"sass-com-opt1-contentIcon",children:e.autorIcon}),s.jsxs("div",{className:"sass-com-opt1-boxInformation",children:[s.jsx("p",{className:"sass-com-opt1-authorName",children:a?.authors[0]?.internaluser?s.jsx(M,{block_subPublication:t?.autor,href:a.authors[0]?.internaluser?`/${e.paths.autor}/${a?.authors[0]?.name}`:"#",children:a?.authors[0]?.fullname??"Redacción"}):a?.authors[0]?.fullname??"Redacción"}),s.jsx("p",{className:"sass-com-opt1-title",children:s.jsx(M,{className:"sass-com-opt1-linkStyled",href:a?.info?.link?.url,target:a?.info?.link?.target,children:ye(a?.main?.title?.home,40)})}),s.jsx("p",{className:"sass-com-opt1-comment",children:a?.main?.subtitle?.striped})]})]})},Zr=e=>{const t=e.slot_id&&e.slot_id!=="Nota_1";return s.jsx(ce,{titleUrl:e.titleUrl,title:e.title,children:s.jsx(Le,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,r)=>{const n={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx(nc,{autorIcon:e.autorIcon,data:n,paths:e.paths},r)})})})},Ns=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent"});case"columnistasnacionales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Dt,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistaslocales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Dt,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistas":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Dt,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});default:return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Se,{...t,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})}},oc=e=>{const{data:t,currentPage:a,banners:r,slug:n,ranking:o,pathname:i,texts:l={}}=e,h=[3,8,13],c={3:1,8:2,13:3};switch(e.option){case"op1":return s.jsx(Or,{ranking:o,readestTitle:l.readestTitle??"",paths:e.paths,bannerTop:s.jsx(fe,{banners:r??[],name:"right_1"}),banner:s.jsx(fe,{banners:r??[],name:"right_2"}),children:s.jsx("section",{className:"sass-pg-sec-content",children:t.length>0?s.jsx(Cs,{className:["sass-pg-sec-newsContentSection","padding-0"].join(" "),paginatorComponent:s.jsx(vs,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((d,u)=>s.jsxs(I.Fragment,{children:[h.includes(u+1)&&s.jsx("div",{className:"sass-pg-sec-itemContent banner-context",children:s.jsx(fe,{banners:r??[],name:`block_2_${c[u+1]}`})}),s.jsx(Ns,{autorIcon:e.autorIcon,item:d,option:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&u<e.speculationPrerender.length?e.speculationPrerender.class:void 0},u)]},u))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})})});case"op2":return s.jsx(s.Fragment,{children:t.length>0?s.jsx(Cs,{className:"padding-0",paginatorComponent:s.jsx(vs,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((d,u)=>s.jsxs(I.Fragment,{children:[h.includes(u+1)&&s.jsx("div",{className:"sass-pg-sec-itemContent",children:s.jsx(fe,{banners:r??[],name:`block_2_${c[u+1]}`})}),s.jsx(Ns,{autorIcon:e.autorIcon,item:d,option:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&u<e.speculationPrerender.length?e.speculationPrerender.class:void 0},u)]},u))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})});default:return s.jsx(s.Fragment,{})}},ic=e=>{const{data:t}=e;return s.jsx("section",{className:"sass-pg-cont-content",children:t.map((a,r)=>s.jsx("div",{className:"sass-pg-cont-contactInfoContent",dangerouslySetInnerHTML:{__html:a.body.rendered}},r))})},lc=e=>s.jsxs("section",{className:"sass-com-lnoc-container",children:[s.jsx("div",{className:"sass-com-lnoc-note",children:e.children}),s.jsx("div",{className:"sass-com-lnoc-commercial",children:s.jsxs("div",{className:"sass-com-lnoc-commercialContent",children:[e.slug==="liveblogs"&&s.jsx(xr,{itemList:e.itemList}),e.bannerTop,s.jsx(kt,{content:e.ranking,title:String(e.texts.readestTitle??""),paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),s.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),s.jsx("div",{className:"sass-com-lnoc-complement",children:e.complement})]}),Xr=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const r=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:r}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],h=(Array.isArray(i?.videos)?i.videos:[]).find(c=>c?.type==="video-embedded");return h?.code?s.jsxs("div",{className:"sass-pg-veh-content",children:[s.jsx("div",{dangerouslySetInnerHTML:{__html:typeof h.code=="string"?h.code:""}}),h?.title&&s.jsx("p",{className:"sass-pg-veh-title",children:h.title})]}):null}catch{return null}},Rr=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const r=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:r}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],h=(Array.isArray(i?.videos)?i.videos:[]).find(c=>c?.type==="video-youtube");return!h?.code||typeof h.code!="string"?null:s.jsxs("div",{className:"sass-pg-vyh-content",children:[s.jsx("iframe",{className:"sass-pg-vyh-iframeStyled",src:`https://www.youtube.com/embed/${h.code}`,frameBorder:"0",allowFullScreen:!0}),h?.title&&s.jsx("p",{className:"sass-pg-vyh-title",children:h.title})]})}catch{return null}},en=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const r=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNews({path:t,imagesizes:r}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const l=o[0]?.external?.iframe;return typeof l!="string"||l.trim()===""?null:s.jsx("div",{className:"sass-pg-ifh-content",dangerouslySetInnerHTML:{__html:l}})}catch{return null}},je={videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe",fotoGaleria:"fotogaleria"},cc={[je.videoEmbedded]:Xr,[je.videoYouTube]:Rr,[je.iframe]:en},dc=({news:e,commonServices:t})=>{const{config:a,info:r}=e,n=a.articlepreview,o=r.link.internal,i=n?cc[n]:null;return i?s.jsx("div",{className:"sass-pg-nap-content",children:s.jsx(i,{newsformated:e,internal:o,commonServices:t})}):null},tn=e=>{const t=e.option==="liveblogs",a=()=>{const r={...e.news[0],config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return s.jsx("header",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px",...e.headerSectionStyles?.liveblogs},children:s.jsx(Pr,{...r,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return s.jsx("header",{className:"sass-pg-news-contentHeader",style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px",...e.headerSectionStyles?.common},children:s.jsx(Pe,{...r,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths,newsDescriptionSectionTag:e.newsDescriptionSectionTag})})}};return s.jsxs(s.Fragment,{children:[s.jsx(a,{}),s.jsx(_e,{banners:e.banners,index:1}),!t&&e.commonServices&&s.jsx(dc,{news:e.news[0],commonServices:e.commonServices})]})},hc=e=>s.jsx("section",{className:"su-w-full sass-com-ccard-content",id:e.id,children:e.children}),uc=async(e,t,a)=>{if(!a)return e;const r=/(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g,n=[...e.matchAll(r)];let o=e;for(const i of n){const l=i[1],h=i[2]??"";let c;if(a.forEach(w=>{Array.isArray(w)&&!c&&(c=w.find(U=>h.replaceAll("/","|").includes(U?.info.link.internal||"")))}),!c){const w=l.replace(/class=["']([^"']*ck-related-news[^"']*)["']/,'class="$1-empty"');o=o.replace(l,w);continue}const d=c.preview?.sizes?.[0],u=d?await ie(d.url):"",m=c.info.section?.url??"#",p=c.info.section?.name??"Sección",f=c.info.link?.url??"#",g=c.main?.title.article??"Título",A=(await Promise.all(c.preview?.sizes?.map(async w=>{const U=await ie(w.url);return w.width<200?`<source srcset="${U}" media="(width < 750px)"/>`:`<source srcset="${U}" media="(width >= 750px)"/>`})||[])).reduce((w,U)=>w+=U,""),b=l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),E=b?b[0]:"",N=`
|
|
149
|
+
h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})})},Ot=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Ml=e=>!e||e.trim()===""?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),ql=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:r=!1}=e,n=a,o=t?.info?.image?.sizes?.[0]?.url??"",i=t?.info?.fullname??"",l=t?.info?.email??"",h=t?.addtional?.USER_SHOWEMAIL??!1,c=t?.addtional?.USER_SHOWBIO??!1,d=t?.addtional?.USER_MIBIO??"",u=Ot(t?.addtional?.USER_USERFB??""),m=Ot(t?.addtional?.USER_USERIG??""),p=Ot(t?.addtional?.USER_USERTWT??""),f=Ot(t?.addtional?.USER_USERLIN??""),g=()=>!h||!l||l.trim()===""?!1:Ml(l),A=b=>`mailto:${b.trim()}`;return s.jsx("section",{className:`sass-com-ah1-content su-flex-center su-relative su-w-full ${e.className??""}`,children:s.jsxs("div",{className:"sass-com-ah1-info",children:[o?s.jsx("div",{className:"sass-com-ah1-image-container sass-image-autor-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+i,className:"sass-com-ah1-image su-object-cover",src:await ie(o)})}):s.jsx("div",{className:"sass-com-ah1-icon-wrap sass-image-autor-wrapper su-flex-center",children:s.jsx(n,{})}),s.jsx("h1",{className:"sass-com-ah1-name",children:i}),g()&&s.jsx("a",{href:A(l),className:"sass-com-ah1-email","aria-label":`Enviar correo electrónico a ${l}`,title:`Enviar correo a ${l}`,children:l}),c&&s.jsx("p",{className:"sass-com-ah1-description",children:d}),s.jsxs("div",{className:"sass-com-ah1-social",children:[u&&s.jsx("a",{href:u,target:"_blank",className:`sass-com-ah1-social-link ${r?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?s.jsx(Bt,{className:"sass-com-ah1-social-icon sass-social-icon-facebook",forceSVG:!0}):s.jsx(Lt,{className:"sass-com-ah1-facebook-icon sass-com-ah1-social-icon-facebook",forceSVG:!0})}),m&&s.jsx("a",{href:m,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:s.jsx(Pt,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram",forceSVG:!0})}),p&&s.jsx("a",{href:p,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:s.jsx(xe,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-x",forceSVG:!0})}),f&&s.jsx("a",{href:f,target:"_blank",className:`sass-com-ah1-social-link ${r?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?s.jsx(Br,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0}):s.jsx(Ge,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0})})]})]})})},Dl=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:r=!1}=e,n=a,o=t?.info?.image?.sizes?.[0]?.url??"",i=t?.info?.fullname??"",l=t?.info?.email??"",h=t?.addtional?.USER_SHOWEMAIL??!1,c=t?.addtional?.USER_SHOWBIO??!1,d=t?.addtional?.USER_MIBIO??"",u=t?.addtional?.USER_USERFB??"",m=t?.addtional?.USER_USERIG??"",p=t?.addtional?.USER_USERTWT??"",f=t?.addtional?.USER_USERLIN??"";return s.jsx("section",{className:"sass-com-ah2-content su-flex su-w-full su-items-center su-justify-end",children:s.jsxs("div",{className:"sass-com-ah2-contentInfo su-stack-center su-relative su-w-full su-gap-2 su-p-4",children:[o?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-ah2-imageStyled su-object-cover",src:await ie(o)}):s.jsx("div",{className:"sass-com-ah2-contentIconStyled su-flex-center",children:s.jsx(n,{})}),s.jsxs("div",{className:"sass-com-ah2-contentAuthor su-stack-center su-md:items-start",children:[s.jsx("h1",{className:"sass-com-ah2-name",children:i}),h&&s.jsx("p",{className:"sass-com-ah2-email",children:l}),c&&s.jsx("p",{className:"sass-com-ah2-description",children:d}),s.jsxs("div",{className:"sass-com-ah2-contenSocialNetwork su-flex su-items-center su-gap-4 su-justify-start",children:[u&&s.jsx("a",{href:u,target:"_blank",className:r?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:r?s.jsx(Bt,{className:"sass-com-ah2-blackIconFaceBook sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0}):s.jsx(Lt,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0})}),m&&s.jsx("a",{href:m,target:"_blank",rel:"noreferrer",children:s.jsx(Pt,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-instagram",forceSVG:!0})}),p&&s.jsx("a",{href:p,target:"_blank",rel:"noreferrer",children:s.jsx(xe,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-x",forceSVG:!0})}),f&&s.jsx("a",{href:f,target:"_blank",className:r?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:r?s.jsx(Br,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0}):s.jsx(Ge,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0})})]})]})]})})},Or=e=>s.jsxs("section",{className:"sass-com-lnc-content",children:[e.children,s.jsxs("div",{className:"sass-com-lnc-bannerSection",children:[e.bannerTop,s.jsx(kt,{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]})]}),_l=async e=>{const t=As(),a={...e,main:{...e.main,title:{...e.main.title,article:ye(e.main.title.article,60)}}};return e&&e.info?s.jsxs("section",{className:"sass-com-sc7-content",children:[s.jsx("a",{className:"sass-com-sc7-linkImage",target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:s.jsxs("div",{style:{position:"relative"},children:[s.jsx("img",{src:await ie(e.preview.sizes[0]?.url||"")}),s.jsx(t,{className:"sass-com-sc7-playStyled saas-image-play-icon"})]})}),s.jsx("div",{className:"sass-com-sc7-newsDescription",children:s.jsx(Pe,{...a,paths:e.paths})})]}):null},Gl=e=>{let t=[];return e.videoList&&e.videoList.length>0&&(t=e.videoList?.filter(a=>a.info.path!==e.video.info.path)??[]),s.jsx("div",{className:"sass-com-bv4-content",children:s.jsxs(Ut,{className:"sass-com-bv4-contentLayoutVideoSection",children:[s.jsxs("a",{className:"sass-com-bv4-header",href:e.goBackLink??"/videos",children:[s.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"white"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),s.jsxs("div",{className:"sass-com-bv4-videos",children:[s.jsxs("div",{className:"sass-com-bv4-videoContent",style:e.mainVideoStyles,children:[e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0,allow:"autoplay; fullscreen",sandbox:"allow-scripts allow-same-origin allow-presentation allow-popups"}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv4-contentFrame",dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),s.jsx("div",{className:"sass-com-bv4-articleSection",children:s.jsx(Pe,{isTitle:!0,cutSubtitle:!1,...Fe({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description,!0),paths:e.paths})})]}),s.jsxs("div",{className:"sass-com-bv4-sectionVideoList",style:e.listVideoStyles,children:[e.banner&&s.jsx(fe,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&s.jsx("h2",{className:"sass-com-bv4-relatedTitle saas-video-related-title",children:e.relatedName}),Array.isArray(t)&&t.map((a,r)=>I.createElement(_l,{...Fe(a,!0,!1,!1),key:r,paths:e.paths}))]})]})]})})},ce=I.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:r=!1}=e,n=a?s.jsx("h1",{className:"sass-com-sec-title",children:e.title}):s.jsx("h2",{className:"sass-com-sec-title",children:e.title});return s.jsxs("section",{className:"sass-com-sec-content",children:[e.title&&s.jsxs("div",{className:["sass-com-sec-titleContent",e.className??""].join(" "),"data-after":`${r}`,children:[s.jsx("hr",{className:"sass-com-sec-startLine"}),e.titleUrl?s.jsx(M,{href:e.titleUrl,children:n}):n,s.jsx("hr",{className:"sass-com-sec-line"}),e.titleUrl&&s.jsx(M,{className:"sass-com-sec-readMore",href:e.titleUrl?.toString()??""})]}),e.title&&s.jsx("hr",{className:["sass-com-sec-bottomLine",e.className??""].join(" ")}),s.jsx("div",{className:"sass-com-sec-childrenContent",ref:t,children:e.children})]})}),ys=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),Mt=e=>s.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:"currentColor"})}),jl=()=>s.jsx("div",{className:"sass-com-sb-buttonContent",children:s.jsx("label",{className:"sass-com-sb-buttonStyled",htmlFor:"side-bar-state",children:s.jsx(Ke,{className:"sass-com-sb-icon"})})}),Ql=({action:e,placeholder:t})=>s.jsx("div",{className:"sass-com-sb-inputContent",children:s.jsxs("form",{className:"sass-com-sb-inputStyled",action:e,method:"GET",children:[s.jsx("input",{className:"sass-com-sb-buscar",type:"text",name:"query",placeholder:t}),s.jsx("button",{type:"submit","aria-label":"Buscar from sidebar",className:"sass-com-sb-searchSubmit",children:s.jsx(ys,{color:"var(--search-input-icons)"})})]})}),Fl=({item:e,index:t})=>{const a=`accordion_${t}`,r=Array.isArray(e.subitem);return s.jsxs("div",{className:"sass-com-sb-accordionStyled",children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"}}),s.jsx("h3",{className:"sass-com-sb-accordionHeading",children:r?s.jsxs("label",{className:"sass-com-sb-accordionSummeryStyled",htmlFor:a,children:[e.link?s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link,target:e.target,children:e.description}):s.jsx("div",{children:e.description}),s.jsx(Mt,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link??void 0,target:e.target,children:e.description})}),r&&s.jsx("div",{className:"sass-com-sb-accordionDetailsStyled",style:{"--max-height":`${e.subitem.length*45}px`},children:e.subitem.map((n,o)=>s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-subLinkStyled",href:n.link??void 0,target:n.target,children:n.description},o))})]})},Hl=({socials:e,copyright:t})=>s.jsxs("div",{className:"sass-com-sb-footerSlider",children:[s.jsx("div",{className:"sass-com-sb-socialMedia",children:Object.keys(e).map(a=>e[a]?.show?s.jsx("a",{href:e[a].url,target:"_blank",rel:"noreferrer","aria-label":`${e[a].title} link`,className:"sass-com-sb-linkSocialNetwork",children:xt[a]({className:"sass-com-sb-icon"})},a):null)}),t&&s.jsx("p",{className:"sass-com-sb-copyRights",children:t})]}),Vl=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:r,searchKeyWord:n,searchLink:o,custom_styles:i={}})=>{const{PUBLIC_SERVICE_PREFIX:l,PUBLIC_IS_SUB_PUBLICATION:h,SUB_PUBLICATION_PREFIX_IN_ROUTES:c}=O(),d=c?.buscar&&l!=="false"&&h!=="false"?`/${l}`:"";return s.jsxs("aside",{className:"sass-com-sb-drawerStyled",id:"sidebar-expandable",style:i,children:[s.jsx("input",{type:"checkbox",id:"side-bar-state"}),s.jsxs("section",{className:"sass-com-sb-sidebarCustom",children:[s.jsx(jl,{}),s.jsx(Ql,{action:`${d}${o||"/buscar"}`,placeholder:`${n}...`}),s.jsxs("div",{className:"sass-com-sb-mainContent",children:[s.jsxs("div",{children:[r,e.map((u,m)=>s.jsx(Fl,{item:u,index:m},m))]}),s.jsx(Hl,{socials:t,copyright:a})]})]})]})},Mr=e=>s.jsx("svg",{width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M1.5 18H25.5C26.325 18 27 17.325 27 16.5C27 15.675 26.325 15 25.5 15H1.5C0.675 15 0 15.675 0 16.5C0 17.325 0.675 18 1.5 18ZM1.5 10.5H25.5C26.325 10.5 27 9.825 27 9C27 8.175 26.325 7.5 25.5 7.5H1.5C0.675 7.5 0 8.175 0 9C0 9.825 0.675 10.5 1.5 10.5ZM0 1.5C0 2.325 0.675 3 1.5 3H25.5C26.325 3 27 2.325 27 1.5C27 0.675 26.325 0 25.5 0H1.5C0.675 0 0 0.675 0 1.5Z",fill:e.color})}),qr=e=>{const{alertZone:t,id:a="close-alert"}=e,r=()=>s.jsx(M,{className:"sass-com-hlm-headLine",href:t?.data[0]?.info.link.url,target:t?.data[0]?.info.link.target,title:t?.data[0]?.main.title.home,children:t?.data[0]?.main?.title.home??""});return s.jsxs(s.Fragment,{children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(t&&t?.data&&t?.data[0]?.main?.title.home)}),t&&t?.data&&t?.data[0]?.main?.title.home&&s.jsxs("div",{id:"alert-chip",className:"sass-com-hlm-content",style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[s.jsxs("div",{className:"sass-com-hlm-live",children:[s.jsx("div",{className:"sass-com-hlm-chipStyled",children:t?.entity?.description}),e.forceShow&&s.jsx(r,{}),s.jsx("label",{htmlFor:a,children:s.jsx(Ke,{className:"sass-com-hlm-closeLiveStyled"})})]}),s.jsx(r,{})]})]})},Dr=e=>{const{cintillo:t,tapeTitle:a,socials:r}=e,n="",o=t?.findIndex(i=>i.link===n)??0;return(Array.isArray(t)||e.socialIcons)&&s.jsxs("section",{className:"sass-com-htape-content",children:[Array.isArray(t)&&s.jsxs("div",{className:"sass-com-htape-tabs header-page-tape-content",children:[a!==""&&s.jsx("p",{className:"sass-com-htape-title",children:`${a}`}),t&&t[o]&&s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",target:t[o]?.target,href:t[o]?.link,style:{color:t[o]?.link===n?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[o]?.link===n?"700":"400"},children:t[o]?.description},o),t&&t.map((i,l)=>{if(l!==o)return s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",href:i?.link,style:{color:i?.link===n?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===n?"700":"400"},children:i?.description},l)})]}),s.jsx("div",{className:"sass-com-htape-socialNetwork",children:Object.keys(r).map(i=>r[i]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":r[i].title+" link",className:"sass-com-htape-linkSocialNetwork",href:r[i].url,children:xt[i]({className:["sass-com-htape-icon",`sass-com-htape-${String(i)}`].join(" ")})},i))})]})},zl=e=>{const{alertZone:t,custom_styles:a={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:r}=O();return s.jsxs("header",{className:"sass-com-h1sk-headerStyled",style:a,id:"saas-header-sticky",children:[e.socialIcons&&e.headerTape?.sticky&&s.jsx(Dr,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{className:"sass-com-h1sk-headerContent center-mobile-header-icon",children:[s.jsx(bs,{id:"button-app",className:"sass-com-h1sk-menuButton",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:s.jsx(Mr,{className:"sass-com-h1sk-startIcon",color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27})}),s.jsxs("div",{className:"sass-com-h1sk-iconContent",children:[s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:I.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.icon)}),e.mobileIcon?s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky header-mobile-icon",style:{display:"flex"},children:I.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.mobileIcon())}):null]}),!e.showAlertPop&&t?.data&&s.jsxs("div",{className:"sass-com-h1sk-headLineContent",children:[s.jsx("div",{className:"sass-com-h1sk-headLineTitle headLineTitle",children:t.entity.description?`${t.entity.description}`:""}),s.jsx(M,{className:"sass-com-h1sk-headLine",href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:ye(t.data[0]?.main.title.home??"",120)})]}),s.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:["sass-com-h1sk-buttonSection",t?.data?"sass-com-h1sk-hasAlertZone":"","search-button"].join(" "),children:[s.jsx(M,{block_subPublication:r?.buscar,href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:"sass-com-h1sk-buttonSectionSearch search-button-icon",style:{display:"flex"},children:s.jsx(ys,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&s.jsx(qr,{alertZone:t,forceShow:e.showAlertPop})]})},Wl=e=>{const{items:t}=e;return s.jsx("ul",{className:"sass-com-mopt-ul",children:t.map((a,r)=>s.jsxs("li",{className:"sass-com-mopt-liBefore sass-com-mopt-li",children:[a.link?s.jsxs(M,{block_subPublication:!0,"aria-label":a.description,className:"sass-com-mopt-linkStyled",href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&s.jsx(Mt,{})]}):s.jsxs("span",{"aria-label":a.description,className:"sass-com-mopt-linkStyled",children:[a.description,Array.isArray(a.subitem)&&s.jsx(Mt,{})]}),Array.isArray(a.subitem)&&s.jsx("ul",{className:"sass-com-mopt-ulContent",children:s.jsx("div",{className:"sass-com-mopt-contentModal",children:a.subitem.map((n,o)=>s.jsx("li",{className:"sass-com-mopt-li",children:s.jsx(M,{block_subPublication:!0,className:"sass-com-mopt-itemLink","aria-label":n.description,href:n.link?n.link:void 0,target:n.target,children:n.description})},o))})})]},r))})},Yl=e=>{const{menu:t,alertZone:a,custom_styles:r={},prerender_classes:n}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:o}=O();return s.jsxs("header",{className:"sass-com-h1st-headerStyled",id:"saas-header-static",style:{...r,top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&s.jsx(Dr,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:["sass-com-h1st-headerContent",a?.data?"sass-com-h1st-hasAlertZone":""].join(" "),children:[s.jsx("div",{className:"sass-com-h1st-menuButtonSection sass-header-menu-button",children:s.jsxs(bs,{className:"sass-com-h1st-menuButton",id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[s.jsx(Mr,{color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27}),s.jsx("p",{className:"sass-com-h1st-buttonText",style:{lineHeight:0},children:e.menuText})]})}),s.jsx("div",{className:"sass-com-h1st-logoContent",children:s.jsx(M,{href:"/","aria-label":"Home",className:"header-logo-link",children:I.createElement("span",{className:"sass-com-h1st-logoStyled"},e.icon)})}),s.jsxs("div",{className:"sass-com-h1st-buttonSection sass-header-right-button-section",children:[s.jsx(M,{block_subPublication:o?.buscar,href:e.searchLink?e.searchLink:"/buscar",className:"sass-com-h1st-buttonSectionSearch","aria-label":e.searchKeyWord,children:s.jsx(ys,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?s.jsxs("div",{className:"sass-com-h1st-headLineContent",children:[s.jsx("p",{className:"sass-com-h1st-headLineTitle headLineTitle",children:a.entity.description?`${a.entity.description}`:""}),s.jsx(M,{className:`sass-com-h1st-headLine ${n?.alert}`,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:ye(a.data[0]?.main.title.home??"",120)})]}):s.jsx("div",{className:"sass-com-h1st-line"}),s.jsx("div",{className:"sass-com-h1st-menuSection",style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&s.jsx(Wl,{items:t})})]})]})},Kl=e=>{const{alertZone:t,children:a,sidebar:r,custom_styles:n={}}=e,o=e.childrenContentTag??"div",i=s.jsxs(o,{className:["sass-com-h1-childrenContent",e.showAlertPop?"sass-com-h1-op2":"",t?.data?"sass-com-h1-childrenContentAux":""].join(" "),style:e.showOnlyStickyHeader?{...n,"--hasAlertMargin":"3.6rem !important"}:n,id:"content-layout",children:[e.showAlertPop&&s.jsx(qr,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]});return s.jsxs(s.Fragment,{children:[e.childrenContentPosition==="before-headers"&&i,s.jsx(zl,{...e}),!e.showOnlyStickyHeader&&s.jsx(Yl,{...e}),e.childrenContentPosition!=="before-headers"&&i,s.jsx(Vl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:r,searchLink:e.searchLink,socials:e.socials,copyrigth:e.copyrigth,custom_styles:e.custom_styles})]})},_r=e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=O();return e?.tags&&e?.tags?.length>0&&s.jsx("section",{className:"sass-com-ts-content",children:Array.isArray(e.tags)&&s.jsxs("div",{className:"sass-com-ts-tags",children:[s.jsx("p",{className:"sass-com-ts-tagStyled",children:e.title?e.title:"Tags:"}),e.tags.map((a,r)=>a.approved?s.jsx(M,{block_subPublication:t?.tema,href:Ue(a,e.paths),children:s.jsx("div",{className:"sass-com-ts-chipStyled sass-com-ts-tagLink",children:a.name})},r):s.jsx("div",{className:"sass-com-ts-chipStyled",children:a.name},r))]})})},Gr=async e=>{const{autor:t}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:a,PUBLIC_SERVICE_PREFIX:r,PUBLIC_IS_SUB_PUBLICATION:n}=O(),o=t?.addtional?.USER_SHOWBIO??!1,i=t?.info?.name??"",l=t?.info?.fullname??"",h=t?.info?.image?.sizes?.[0]?.url??"",c=t?.addtional?.USER_MIBIO??"",d=t?.addtional?.USER_USERFB??"",u=t?.addtional?.USER_USERIG??"",m=t?.addtional?.USER_USERTWT??"",p=t?.addtional?.USER_USERLIN??"",f=r!=="false"&&n!=="false"?`/${r}/${e.paths.autor}/${i}`:`/${e.paths.autor}/${i}`;return o&&!!t&&s.jsx("section",{className:"sass-com-ja2-contentBox",children:s.jsxs("div",{className:"sass-com-ja2-content",children:[s.jsxs("div",{className:"sass-com-ja2-avatarContent",children:[s.jsx(M,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:f,children:h?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+i,className:"sass-com-ja2-imageStyled",src:await ie(h)}):s.jsx("div",{className:"sass-com-ja2-contentIconStyled",children:e.autorIcon})}),s.jsxs("section",{className:"sass-com-ja2-journalistSection",children:[s.jsx("h3",{className:"sass-com-ja2-journalistInfo",children:s.jsx(M,{block_subPublication:a?.autor,className:"su-no-underline",href:f,children:l})}),s.jsxs("section",{className:"sass-com-ja2-socialNetworkSection",children:[d&&s.jsx("a",{href:d,target:"_blank","aria-label":c,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),u&&s.jsx("a",{href:u,target:"_blank","aria-label":c,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[s.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),s.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),s.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_281_2357",children:s.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),m&&s.jsx("a",{href:m,target:"_blank","aria-label":c,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),p&&s.jsx("a",{href:p,target:"_blank","aria-label":c,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})})]})]})]}),o&&s.jsx("p",{className:"sass-com-ja2-article",dangerouslySetInnerHTML:{__html:`${c} <a aria-label="${i}" href="${f}">${String(e.texts.authorViewMore??"Ver más")}</a>`}})]})})},jr=async e=>{const{news:t,texts:a}=e;return t.config?.showauthor&&t.authors?.length>1&&s.jsx("div",{className:"sass-com-jg-content su-flex su-w-full su-flex-col su-items-center su-justify-evenly su-gap-0 su-md:flex-row",children:Array.isArray(t.authors)&&t.authors?.map(async r=>s.jsxs("div",{className:"sass-com-jg-contentCard",children:[r.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-jg-imageStyled su-flex-center",src:await ie(r.image.sizes[0]?.url||"")},r.fullname):s.jsx("div",{className:"sass-com-jg-contentIconStyled su-flex-center",children:e.autorIcon},r.fullname),s.jsxs("div",{className:"sass-com-jg-contentInfo",children:[r.internaluser?s.jsx("a",{className:"sass-com-jg-fullName",href:`/${e.paths.autor}/${r.name}`,children:r.fullname}):s.jsx("p",{className:"sass-com-jg-fullName",children:r.fullname}),r.internaluser&&s.jsx("a",{className:"sass-com-jg-LearnMoreLink",href:`/${e.paths.autor}/${r.name}`,children:String(a.JournalistGroupLink??"")})]})]},`author-${r.firstname}`))})},qt=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Jl=async e=>{const t=e.img?await ie(e.img):"",a=qt(e.social?.facebook??""),r=qt(e.social?.instagram??""),n=qt(e.social?.twitter??""),o=qt(e.social?.linkedin??""),i=e.social&&(a||r||n||o);return s.jsx("section",{className:`sass-com-th-content ${e.className}`,children:s.jsxs("div",{className:`sass-com-th-contentInfo ${t?"":"sass-com-th-contentInfoWithoutImg"}`,children:[e.img&&s.jsx("div",{className:"sass-com-th-imageContainer sass-image-tag-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-th-imageStyled su-object-cover",src:t})}),s.jsx("h1",{className:"sass-com-th-name",children:e.tag}),e.description&&s.jsx("div",{className:"sass-com-th-description",dangerouslySetInnerHTML:{__html:e.description}}),e.url&&s.jsx("a",{className:"sass-com-th-urlTag",href:e.url,children:e.url}),i&&s.jsxs("div",{className:"sass-com-th-contenSocialNetwork",children:[a&&s.jsx("a",{href:a,target:"_blank",className:"sass-com-th-socialFacebookIcon sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Lt,{className:"sass-com-th-faceBookIcon",forceSVG:!0})}),r&&s.jsx("a",{href:r,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(Pt,{className:"sass-com-th-socialIcon",forceSVG:!0})}),n&&s.jsx("a",{href:n,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(xe,{className:"sass-com-th-socialIcon",forceSVG:!0})}),o&&s.jsx("a",{href:o,target:"_blank",className:"sass-com-th-socialIconLink sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Ge,{className:"sass-com-th-socialIcon",forceSVG:!0})})]})]})})};function $l(e){const{main:t,authors:a,info:r,preview:n,config:o,keywords:i,isVideo:l,isLarge:h,priorityHigh:c,share:d,overImage:u,isTitle:m,paths:p}=e,{CONFIG_videoClipUrl:f}=O(),g=o?.homepreview??"imagen",A=()=>{const w=e.videos?.[0]?.clip;return w?s.jsx("div",{className:"homeCardVideoClipContainer",children:s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,width:"480",height:"535",children:s.jsx("source",{src:`${f}${w}`,type:"video/mp4"})})}):null},b=()=>{if(!e.videos)return null;const w=e.videos?.[0]?.code;return w?s.jsx("iframe",{className:"homeCardVideoIframeContainer",src:`https://www.youtube.com/embed/${w}`,frameBorder:"0",allowFullScreen:!0}):null},E=()=>{if(!e.videos)return null;const w=(e.videos??[]).find(V=>V.type==="video-embedded");if(!w?.code)return null;const P=/src\s*=\s*"([^"]+)"/.exec(w.code),H=P?P[1]:null;if(!H)return null;const Y=n.original?.url??n.sizes?.[0]?.url??"",F=He()??"",B=Y.startsWith("http")||Y.includes(F)||F===""?Y:F+Y;return s.jsx("iframe",{className:"homeCardEmbeddedIframeContainer",src:H,frameBorder:"0",allowFullScreen:!0,style:{"--thumbnail-url":`url(${B})`}})},N=()=>{const U=e.gallery??[];return U.length?s.jsx(Le,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:U.map((P,H)=>{const Y=P?.url||P?.id||`gallery-${H}`;return s.jsx(M,{"aria-label":e.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:r?.link?.url,target:r?.link?.target,children:s.jsx(ge,{preview:P,isVideo:l,isLarge:h,priorityHigh:c})},Y)})}):null};let S=null;switch(g){case"fotogaleria":S=s.jsx(N,{});break;case"videoYouTube":S=s.jsx(b,{});break;case"videoEmbedded":S=s.jsx(E,{});break;case"clip":S=s.jsx(A,{});break;case"iframe":S=s.jsx("div",{className:"homeCardIframeContainer",dangerouslySetInnerHTML:{__html:e?.external?.iframe??""}});break;default:S=s.jsx(M,{"aria-label":e?.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:r?.link?.url,target:r?.link?.target,children:s.jsx(ge,{preview:n,isVideo:l,isLarge:h,priorityHigh:c})});break}return s.jsxs("section",{className:"homeCardContent",style:{...e.customSectionCardStyles},children:[s.jsx("div",{className:"homeCardContentWrapper",children:S}),s.jsx("div",{className:"homeCardNewsDescription",children:s.jsx(Pe,{main:t,authors:a,info:r,preview:n,share:d,config:o,overImage:u,isTitle:m,paths:p,keywords:i})})]})}const Je=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=O(),r=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${Ce(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return Ce(e.info?.date?.modified)},n=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const i=e.keywords.tags[0],l=i.name;return i.approved?s.jsxs("h3",{children:[" ",s.jsx(M,{"aria-label":l,className:"sass-bmd-sup-tagmx",block_subPublication:a?.tema,href:Ue(i,e.paths),children:l})]}):s.jsx("div",{className:"sass-bmd-sup-tagmx",children:l})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tagmx",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},o=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const i=e.keywords.tags[0],l=i.name;return i.approved?s.jsx("h3",{children:s.jsx(M,{"aria-label":l,className:"sass-bmd-sup-tag",block_subPublication:a?.tema,href:Ue(i,e.paths),children:l})}):s.jsx("div",{className:"sass-bmd-sup-tag",children:l})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tag",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return s.jsxs("section",{className:"sass-bmd-sup-content destacado-super-content",children:[s.jsx(M,{className:e.speculationPrerenderClass,href:e?.info?.link?.url,target:e?.info?.link?.target,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:s.jsx(ge,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),s.jsxs("div",{className:"sass-bmd-sup-contentNews",style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[s.jsx(n,{}),s.jsxs("div",{style:{position:"relative"},children:[s.jsx(o,{}),s.jsx(M,{className:"sass-bmd-sup-linkTitle",href:e?.info?.link?.url,target:e?.info?.link?.target,children:s.jsx("h1",{className:"sass-bmd-sup-titular",style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&s.jsx("div",{className:"sass-bmd-sup-description",dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&s.jsx(s.Fragment,{children:e.authors[0]?.internaluser?s.jsx(M,{block_subPublication:a?.autor,href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:"sass-bmd-sup-correspondent",children:r()}):s.jsx("p",{className:"sass-bmd-sup-correspondentLink",children:r()})})]})]})},Qr=e=>{const{main:t,authors:a,info:r,preview:n,isVideo:o,config:i,itemReverseOrder:l,imageSize:h,showSuper:c,textPosition:d,heightImageOverwrite:u,heightImageOverwriteMobile:m}=e;return s.jsxs("section",{className:"su-grid su-w-full su-gap-8 sass-bmd-dd-content",children:[c?s.jsx("section",{style:{...e.customSectionCardStyles},children:s.jsx(Je,{main:t,authors:a,info:r,preview:n,isVideo:o,config:i,paths:e.paths,textPosition:d,heightImageOverwrite:u,heightImageOverwriteMobile:m,speculationPrerenderClass:e.speculationPrerenderClass})}):s.jsx(Se,{...e,main:t,authors:a,info:r,preview:n,isVideo:o,config:i,speculationPrerenderClass:e.speculationPrerenderClass,priorityHigh:!0}),e.banners&&s.jsx(fe,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsx(Cr,{block:e.block,itemReverseOrder:l,priorityHigh:!0,imageSize:h,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})},Zl=({content:e,customLargeSection:t,customSmallSection:a,paths:r,speculationPrerenderClass:n})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&s.jsxs("section",{className:"sass-bmd-dnh-content",children:[s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnh-firstSection",children:s.jsx(Je,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n})}),s.jsx("div",{style:a,className:"su-flex su-flex-col su-gap-2 su-w-full su-h-auto su-md:gap-0 sass-bmd-dnh-secondSection",children:e.map((i,l)=>l>0&&I.createElement(Je,{...i,key:l,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n}))})]})},Xl=({content:e,customLargeSection:t,customSlimSection:a,paths:r,speculationPrerenderClass:n})=>Array.isArray(e)&&e.length>0&&s.jsx("section",{className:"su-grid su-w-full su-gap-2 sass-bmd-dnv-content",children:e.map((o,i)=>i===0?s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnv-firstSection",children:s.jsx(Je,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n})},i):s.jsx("section",{style:a,children:I.createElement(Je,{...o,key:i,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:r,speculationPrerenderClass:n})},i))}),Fr=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=O(),r=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const n=e.mainNew.keywords.tags[0],o=n.name;return n.approved?s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{"aria-label":o,className:"sass-com-bh-sectionDescription",block_subPublication:a?.tema,href:Ue(n,e.paths),children:o})}):s.jsx("div",{className:"sass-com-bh-sectionDescription",children:o})}else if(e.mainNew.info?.section?.url)return s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{className:"sass-com-bh-sectionDescription",href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return s.jsxs("div",{className:"sass-com-bh-content",children:[s.jsx(r,{}),s.jsx(M,{className:"sass-com-bh-title",href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-com-bh-subtitle",children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&s.jsx(M,{href:e.goTo.url,className:"sass-com-bh-linkStyled",children:e.goTo.description})]})},Hr=e=>{const{content:t,title:a,isVideo:r}=e;if(!t||!t[0]||t.length===0)return;const n=e.slot_id&&e.slot_id!=="Nota_1",o={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:n?t[0].main.title.home:t[0].main.title.section}}},i=t.slice(1);return o&&i&&s.jsxs(ce,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"su-flex su-flex-col-reverse su-overflow-hidden sass-bd-dn-headerSection",children:[s.jsx(Fr,{mainNew:o,goTo:e.goTo,paths:e.paths}),s.jsx(M,{className:"sass-bd-dn-headerSectionLink",href:o?.info?.link?.url,target:o?.info?.link?.target,children:s.jsx(ge,{preview:o.preview})})]}),s.jsxs("div",{className:"su-grid sass-bd-dn-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,h)=>{const c={...l,main:{...l.main,title:{...l.main.title,section:n?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:h},children:s.jsx(Se,{...c,isVideo:r,paths:e.paths})},h)})]})]})},Dt=async e=>{const{data:t,autorIcon:a,speculationPrerenderClass:r}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=O(),o=a,i=()=>t?.config?.showtime?`${Ce(t.info?.date?.modified)}`:"",l=s.jsxs("div",{className:"sass-com-oc2-autorContent",children:[Array.isArray(t?.authors)&&Array.isArray(t?.authors[0]?.image?.sizes)&&t?.authors[0]?.image?.sizes?.length>0?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-oc2-image",src:await ie(t?.authors[0]?.image?.sizes[0]?.url||""),alt:t?.authors[0]?.fullname}):s.jsx("div",{className:"sass-com-oc2-contentIcon",children:s.jsx(o,{})}),s.jsx("p",{className:"sass-com-oc2-autorName",children:ye(t?.authors[0]?.fullname??"Redacción",18)}),s.jsx("p",{className:"sass-com-oc2-time",children:i()})]});return s.jsxs("div",{className:"sass-com-oc2-content",children:[t?.authors[0]?.internaluser?s.jsx(M,{block_subPublication:n?.autor,href:t.authors[0]?.internaluser?`/${e.paths.autor}/${t?.authors[0]?.name}`:"#",children:l}):l,s.jsxs("div",{className:"sass-com-oc2-boxInformationContent",children:[s.jsx(M,{className:r?`${r} sass-com-oc2-title`:"sass-com-oc2-title",href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),s.jsx("p",{className:"sass-com-oc2-comment",children:ye(t?.main?.subtitle?.striped||"")})]})]})};function Rl(e){const t=new Array(e.length),a=e.length/2;for(let r=0;r<e.length;r++)r%2===0?t[Math.floor(r/2)]=e[r]:t[a+Math.floor(r/2)]=e[r];return t}const ec=e=>{const{isOpinion:t=!1}=e,a=o=>s.jsx("div",{className:"sass-bs-mo-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mo-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},o),r=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];o===2&&r.push(a(o)),i&&r.push(s.jsx("div",{className:"sass-bs-mo-boxPosition",style:{order:o},children:s.jsx(Dt,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${o}`))}const n=r.length%2===0?Rl(r):r;return s.jsx("section",{style:e.customStyles,children:s.jsx(ce,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:s.jsxs("div",{className:"sass-bs-mo-content",children:[s.jsx("div",{className:"sass-bs-mo-contentFlex",children:n}),s.jsx("div",{className:"sass-bs-mo-bannerContent",children:e.halfPageBanner})]})})})},tc=e=>{const{showTitle:t=!0}=e;return s.jsxs("div",{className:"sass-bs-eb1-content",children:[t&&s.jsx("p",{className:"sass-bs-eb1-title",children:"Editorial"}),s.jsx(Pe,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},sc=e=>{const{news:t}=e;return Array.isArray(t)&&s.jsxs("div",{className:"sass-bs-m2c-content",children:[s.jsxs("div",{className:"sass-bs-m2c-newsContent",children:[e.bannerArray&&e.bannerArray.map((a,r)=>s.jsx("div",{className:"sass-bs-m2c-boxPosition banner-context",style:{order:2+5*r},children:s.jsx("div",{className:"sass-bs-m2c-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},r)),t.map((a,r)=>s.jsx("div",{className:"sass-bs-m2c-boxPosition",style:{order:r},children:s.jsx(Se,{...a,share:e.share,paths:e.paths})},r))]}),s.jsx("div",{className:"sass-bs-m2c-bannerContent",children:e.halfPageBanner})]})},ac=e=>s.jsxs(s.Fragment,{children:[s.jsx(Nr,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),s.jsx(Sr,{...e})]}),Vr=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?"sass-bs-m3c-contentSeparator":"",r=[];let n=0,o=1;for(let i=0;i<t.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(r.push(s.jsx("section",{className:a(n),children:e.banners?.some(d=>d.key===`${e.slot_id}_${o}`)&&s.jsx(fe,{banners:e.banners,name:`${e.slot_id}_${o}`})},n)),n++,o++);const l=e.isVideo?Fe(t[i],e.showVideoTime,e.showVideosubtitle,e.showVideoAuthor):t[i];if(!l)continue;const h=e.slot_id&&e.slot_id!=="Nota_1",c={...l,main:{...l.main,title:{...l.main.title,section:h?l.main.title.home:l.main.title.section}}};r.push(s.jsx("section",{className:a(n),children:s.jsx(Se,{...c,isVideo:e.isVideo,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&n<e.speculationPrerender.length?e.speculationPrerender.class:void 0})},n)),n++}return r.length===2&&r.push(s.jsx("div",{},n)),s.jsx("div",{className:`${e.hasLines?"sass-bs-m3c-newsContentWithLines":"sass-bs-m3c-newsContentWithoutLines"} sass-bs-m3c-newsContent`,children:r})},zr=e=>s.jsx(ce,{title:e.title,titleUrl:e.titleUrl,children:s.jsx(Vr,{content:e.content,paths:e.paths,slot_id:e.slot_id,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle,speculationPrerender:e.speculationPrerender})}),Wr=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m14-newsContent ${e.hasLines?"sass-bd-m14-contentSeparator":""}`,children:t?.map((r,n)=>{const o=e.slot_id&&e.slot_id!=="Nota_1",i={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return s.jsx("section",{children:s.jsx(Se,{...i,share:e.share,paths:e.paths})},n)})})})},Yr=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m15-newsContent ${e.hasLines?"sass-bd-m15-contentSeparator":"sass-bd-m15-newsContentWhitoutLine"}`,children:t.map((r,n)=>{const o=e.slot_id&&e.slot_id!=="Nota_1",i={...r,main:{...r.main,title:{...r.main.title,section:o?r.main.title.home:r.main.title.section}}};return s.jsx("section",{children:s.jsx(Se,{...i,share:e.share,paths:e.paths})},n)})})})},Kr=e=>{const{content:t,title:a,isVideo:r=!0}=e;if(!t||t.length===0)return;const n=t[0],o=e.slot_id&&e.slot_id!=="Nota_1",i=t.slice(1);return n&&i&&s.jsxs(ce,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"sass-bd-dv-headerSection",children:[s.jsx(Fr,{goTo:e.goTo,mainNew:Fe(n),paths:e.paths}),s.jsx(M,{className:"sass-bd-dv-headerSectionLink",href:n?.info?.link.url,target:n?.info?.link.target,"aria-label":"Video",children:s.jsx(ge,{preview:{sizes:n?.main?.image.sizes,description:n?.main?.image.description},isVideo:r,isLarge:!0})})]}),s.jsxs("div",{className:"sass-bd-dv-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,h)=>{const c=Fe(l),d={...c,main:{...c.main,title:{...c.main.title,section:o?c.main.title.home:c.main.title.section}}};return s.jsx("div",{style:{order:h},children:I.createElement(Se,{...d,isVideo:r,key:h,paths:e.paths})},h)})]})]})},rc=async e=>{const{showNewsLikeTitle:t=!1}=e;return e&&e.info?s.jsxs("section",{className:"sass-com-sc6-content",style:{"--heightImageOverwrite":"100%"},children:[s.jsx(M,{className:"sass-com-sc6-linkImage",target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:s.jsx(ge,{preview:e.preview})}),s.jsxs("div",{className:"sass-com-sc6-textContent",children:[s.jsx(M,{className:"sass-com-sc6-sectionDescription",target:e?.info?.link?.target,href:t?e.info.link.url:e?.info?.section?.url,children:(t?e?.main?.title?.section:e?.info?.section?.name)??""}),s.jsx("p",{className:"sass-com-sc6-dateText",children:Ce(e?.info?.date?.modified)})]})]}):null},Jr=e=>{if(!e.content||e.content.length===0)return;const t=e.slot_id&&e.slot_id!=="Nota_1";return s.jsx(ce,{title:e.title,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m13c-content ${e.hasLines?"sass-bd-m13c-contentSeparator":""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,r)=>{const n={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx("section",{className:e.hasLines?"sass-bd-m13-hasLinesBlock":"",children:I.createElement(rc,{...n,key:r,showNewsLikeTitle:e.showNewsLikeTitle})},r)})})})},$r=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Le,{slot_id:r,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:s.jsx(nt,{...l,paths:e.paths})},i)})})})},nc=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=O(),{data:a}=e;return s.jsxs("div",{className:"sass-com-opt1-content",children:[Array.isArray(a.authors)&&a?.authors[0]?.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-opt1-imageStyled",src:await ie(a?.authors[0]?.image?.sizes[0]?.url||""),alt:a?.authors[0]?.fullname}):s.jsx("div",{className:"sass-com-opt1-contentIcon",children:e.autorIcon}),s.jsxs("div",{className:"sass-com-opt1-boxInformation",children:[s.jsx("p",{className:"sass-com-opt1-authorName",children:a?.authors[0]?.internaluser?s.jsx(M,{block_subPublication:t?.autor,href:a.authors[0]?.internaluser?`/${e.paths.autor}/${a?.authors[0]?.name}`:"#",children:a?.authors[0]?.fullname??"Redacción"}):a?.authors[0]?.fullname??"Redacción"}),s.jsx("p",{className:"sass-com-opt1-title",children:s.jsx(M,{className:"sass-com-opt1-linkStyled",href:a?.info?.link?.url,target:a?.info?.link?.target,children:ye(a?.main?.title?.home,40)})}),s.jsx("p",{className:"sass-com-opt1-comment",children:a?.main?.subtitle?.striped})]})]})},Zr=e=>{const t=e.slot_id&&e.slot_id!=="Nota_1";return s.jsx(ce,{titleUrl:e.titleUrl,title:e.title,children:s.jsx(Le,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,r)=>{const n={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx(nc,{autorIcon:e.autorIcon,data:n,paths:e.paths},r)})})})},Ns=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent"});case"columnistasnacionales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Dt,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistaslocales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Dt,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistas":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Dt,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});default:return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Se,{...t,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})}},oc=e=>{const{data:t,currentPage:a,banners:r,slug:n,ranking:o,pathname:i,texts:l={}}=e,h=[3,8,13],c={3:1,8:2,13:3};switch(e.option){case"op1":return s.jsx(Or,{ranking:o,readestTitle:l.readestTitle??"",paths:e.paths,bannerTop:s.jsx(fe,{banners:r??[],name:"right_1"}),banner:s.jsx(fe,{banners:r??[],name:"right_2"}),children:s.jsx("section",{className:"sass-pg-sec-content",children:t.length>0?s.jsx(Cs,{className:["sass-pg-sec-newsContentSection","padding-0"].join(" "),paginatorComponent:s.jsx(vs,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((d,u)=>s.jsxs(I.Fragment,{children:[h.includes(u+1)&&s.jsx("div",{className:"sass-pg-sec-itemContent banner-context",children:s.jsx(fe,{banners:r??[],name:`block_2_${c[u+1]}`})}),s.jsx(Ns,{autorIcon:e.autorIcon,item:d,option:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&u<e.speculationPrerender.length?e.speculationPrerender.class:void 0},u)]},u))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})})});case"op2":return s.jsx(s.Fragment,{children:t.length>0?s.jsx(Cs,{className:"padding-0",paginatorComponent:s.jsx(vs,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((d,u)=>s.jsxs(I.Fragment,{children:[h.includes(u+1)&&s.jsx("div",{className:"sass-pg-sec-itemContent",children:s.jsx(fe,{banners:r??[],name:`block_2_${c[u+1]}`})}),s.jsx(Ns,{autorIcon:e.autorIcon,item:d,option:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&u<e.speculationPrerender.length?e.speculationPrerender.class:void 0},u)]},u))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})});default:return s.jsx(s.Fragment,{})}},ic=e=>{const{data:t}=e;return s.jsx("section",{className:"sass-pg-cont-content",children:t.map((a,r)=>s.jsx("div",{className:"sass-pg-cont-contactInfoContent",dangerouslySetInnerHTML:{__html:a.body.rendered}},r))})},lc=e=>s.jsxs("section",{className:"sass-com-lnoc-container",children:[s.jsx("div",{className:"sass-com-lnoc-note",children:e.children}),s.jsx("div",{className:"sass-com-lnoc-commercial",children:s.jsxs("div",{className:"sass-com-lnoc-commercialContent",children:[e.slug==="liveblogs"&&s.jsx(xr,{itemList:e.itemList}),e.bannerTop,s.jsx(kt,{content:e.ranking,title:String(e.texts.readestTitle??""),paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),s.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),s.jsx("div",{className:"sass-com-lnoc-complement",children:e.complement})]}),Xr=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const r=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:r}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],h=(Array.isArray(i?.videos)?i.videos:[]).find(c=>c?.type==="video-embedded");return h?.code?s.jsxs("div",{className:"sass-pg-veh-content",children:[s.jsx("div",{dangerouslySetInnerHTML:{__html:typeof h.code=="string"?h.code:""}}),h?.title&&s.jsx("p",{className:"sass-pg-veh-title",children:h.title})]}):null}catch{return null}},Rr=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const r=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:r}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],h=(Array.isArray(i?.videos)?i.videos:[]).find(c=>c?.type==="video-youtube");return!h?.code||typeof h.code!="string"?null:s.jsxs("div",{className:"sass-pg-vyh-content",children:[s.jsx("iframe",{className:"sass-pg-vyh-iframeStyled",src:`https://www.youtube.com/embed/${h.code}`,frameBorder:"0",allowFullScreen:!0}),h?.title&&s.jsx("p",{className:"sass-pg-vyh-title",children:h.title})]})}catch{return null}},en=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const r=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNews({path:t,imagesizes:r}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const l=o[0]?.external?.iframe;return typeof l!="string"||l.trim()===""?null:s.jsx("div",{className:"sass-pg-ifh-content",dangerouslySetInnerHTML:{__html:l}})}catch{return null}},je={videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe",fotoGaleria:"fotogaleria"},cc={[je.videoEmbedded]:Xr,[je.videoYouTube]:Rr,[je.iframe]:en},dc=({news:e,commonServices:t})=>{const{config:a,info:r}=e,n=a.articlepreview,o=r.link.internal,i=n?cc[n]:null;return i?s.jsx("div",{className:"sass-pg-nap-content",children:s.jsx(i,{newsformated:e,internal:o,commonServices:t})}):null},tn=e=>{const t=e.option==="liveblogs",a=()=>{const r={...e.news[0],config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return s.jsx("header",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px",...e.headerSectionStyles?.liveblogs},children:s.jsx(Pr,{...r,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return s.jsx("header",{className:"sass-pg-news-contentHeader",style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px",...e.headerSectionStyles?.common},children:s.jsx(Pe,{...r,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths,newsDescriptionSectionTag:e.newsDescriptionSectionTag})})}};return s.jsxs(s.Fragment,{children:[s.jsx(a,{}),s.jsx(_e,{banners:e.banners,index:1}),!t&&e.commonServices&&s.jsx(dc,{news:e.news[0],commonServices:e.commonServices})]})},hc=e=>s.jsx("section",{className:"su-w-full sass-com-ccard-content",id:e.id,children:e.children}),uc=async(e,t,a)=>{if(!a)return e;const r=/(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g,n=[...e.matchAll(r)];let o=e;for(const i of n){const l=i[1],h=i[2]??"";let c;if(a.forEach(w=>{Array.isArray(w)&&!c&&(c=w.find(U=>h.replaceAll("/","|").includes(U?.info.link.internal||"")))}),!c){const w=l.replace(/class=["']([^"']*ck-related-news[^"']*)["']/,'class="$1-empty"');o=o.replace(l,w);continue}const d=c.preview?.sizes?.[0],u=d?await ie(d.url):"",m=c.info.section?.url??"#",p=c.info.section?.name??"Sección",f=c.info.link?.url??"#",g=c.main?.title.article??"Título",A=(await Promise.all(c.preview?.sizes?.map(async w=>{const U=await ie(w.url);return w.width<200?`<source srcset="${U}" media="(width < 750px)"/>`:`<source srcset="${U}" media="(width >= 750px)"/>`})||[])).reduce((w,U)=>w+=U,""),b=l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),E=b?b[0]:"",N=`
|
|
150
150
|
<span data-src="${h}">
|
|
151
151
|
<picture style='display: flex'>
|
|
152
152
|
${A}
|
|
@@ -177,7 +177,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
177
177
|
${g}
|
|
178
178
|
${E?`<figcaption>${E}</figcaption>`:""}
|
|
179
179
|
</figure>
|
|
180
|
-
`}}catch(m){console.error("replaceVideoSpansWithIframes error for",c,m),u=h}r=l,a+=u,n.lastIndex=l}return a+=e.slice(r),a}function Ac(e){return e.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,"")}const wc=async({itemList:e,slug:t,banners:a,texts:r,getVideos:n,newsRelatedListResponses:o})=>{if(!e||e.length===0||!e[0])return;const i=e[0].list?.items?.map(async l=>{const h=mc(l.body.rendered);let c=fc(h);return c=Ac(c),c=await pc(c,n),{...l,body:{...l.body,rendered:c}}});return s.jsx("section",{className:"sass-com-bnl-content",id:"block-notes-list",children:i?.map(async(l,h)=>s.jsxs(I.Fragment,{children:[s.jsx(hc,{id:`item-${h+1}`,children:s.jsxs("div",{className:"sass-com-bnl-contentWithinCard",children:[(await l).date>0&&s.jsxs("div",{className:"sass-com-bnl-contentDate",children:[s.jsx("span",{className:"sass-com-bnl-dot",style:{background:t==="liveblogs"?"var(--news-liveblog-timeline-datelink-dot-color)":"var(--common-black)"}}),s.jsx("p",{className:"sass-com-bnl-dateInfo",style:{color:t==="liveblogs"?"var(--news-liveblog-timeline-datelink-color)":"var(--common-black)"},children:mt((await l).date)})]}),s.jsx("h2",{className:"sass-com-bnl-contentTitle",children:e[0]?.list.integrated?(await l).title:`${(await l).index}. ${(await l).title}`}),(await l).image&&s.jsx(ge,{preview:(await l).image,isLarge:!0}),s.jsx("div",{className:"contentTextList sass-com-bnl-contentTextList",dangerouslySetInnerHTML:{__html:await uc((await l).body.rendered.replace(/ /g,""),r,o)}}),(await l).related&&s.jsx("div",{className:"sass-com-bnl-contentButton",children:s.jsx("a",{className:"sass-com-bnl-linkStyled",href:(await l).related??"",target:"”_blank",children:String(r.blockNoteList_readMore??"Leer Más")})})]})},h),sn[h]&&s.jsx(fe,{banners:a,name:"list_"+sn[h]},h)]},h))})},Ss={FaceBook:"facebook",Instagram:"instagram",WhatsApp:"whatsapp",TikTok:"tiktok",Youtube:"youtube",X:"x",Gnews:"gnews",Podcast:"podcast",Telegram:"telegram"};function bc({url:e}){return e&&e!==""&&s.jsxs(M,{href:e,className:"sass-com-ja3-googleProfileButton",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),"Síguenos en",s.jsx(vc,{})]})}const vc=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 272 92",width:"272",height:"92",children:[s.jsx("path",{fill:"#EA4335",d:"M115.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18C71.25 34.32 81.24 25 93.5 25s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44S80.99 39.2 80.99 47.18c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),s.jsx("path",{fill:"#FBBC05",d:"M163.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18c0-12.85 9.99-22.18 22.25-22.18s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44s-12.51 5.46-12.51 13.44c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),s.jsx("path",{fill:"#4285F4",d:"M209.75 26.34v39.82c0 16.38-9.66 23.07-21.08 23.07-10.75 0-17.22-7.19-19.66-13.07l8.48-3.53c1.51 3.61 5.21 7.87 11.17 7.87 7.31 0 11.84-4.51 11.84-13v-3.19h-.34c-2.18 2.69-6.38 5.04-11.68 5.04-11.09 0-21.25-9.66-21.25-22.09 0-12.52 10.16-22.26 21.25-22.26 5.29 0 9.49 2.35 11.68 4.96h.34v-3.61h9.25zm-8.56 20.92c0-7.81-5.21-13.52-11.84-13.52-6.72 0-12.35 5.71-12.35 13.52 0 7.73 5.63 13.36 12.35 13.36 6.63 0 11.84-5.63 11.84-13.36z"}),s.jsx("path",{fill:"#34A853",d:"M225 3v65h-9.5V3h9.5z"}),s.jsx("path",{fill:"#EA4335",d:"M262.02 54.48l7.56 5.04c-2.44 3.61-8.32 9.83-18.48 9.83-12.6 0-22.01-9.74-22.01-22.18 0-13.19 9.49-22.18 20.92-22.18 11.51 0 17.14 9.16 18.98 14.11l1.01 2.52-29.65 12.28c2.27 4.45 5.8 6.72 10.75 6.72 4.96 0 8.4-2.44 10.92-6.14zm-23.27-7.98l19.82-8.23c-1.09-2.77-4.37-4.7-8.23-4.7-4.95 0-11.84 4.37-11.59 12.93z"}),s.jsx("path",{fill:"#4285F4",d:"M35.29 41.41V32H67c.31 1.64.47 3.58.47 5.68 0 7.06-1.93 15.79-8.15 22.01-6.05 6.3-13.78 9.66-24.02 9.66C16.32 69.35.36 53.89.36 34.91.36 15.93 16.32.47 35.3.47c10.5 0 17.98 4.12 23.6 9.49l-6.64 6.64c-4.03-3.78-9.49-6.72-16.97-6.72-13.86 0-24.7 11.17-24.7 25.03 0 13.86 10.84 25.03 24.7 25.03 8.99 0 14.11-3.61 17.39-6.89 2.66-2.66 4.41-6.46 5.1-11.65l-22.49.01z"})]}),Cc=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:r}=e,{DATE_TIMEZONE:n="America/Mexico_City",CONFIG_shareOnlyWhatsApp:o,PUBLIC_SERVICE_PREFIX:i}=O(),
|
|
180
|
+
`}}catch(m){console.error("replaceVideoSpansWithIframes error for",c,m),u=h}r=l,a+=u,n.lastIndex=l}return a+=e.slice(r),a}function Ac(e){return e.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,"")}const wc=async({itemList:e,slug:t,banners:a,texts:r,getVideos:n,newsRelatedListResponses:o})=>{if(!e||e.length===0||!e[0])return;const i=e[0].list?.items?.map(async l=>{const h=mc(l.body.rendered);let c=fc(h);return c=Ac(c),c=await pc(c,n),{...l,body:{...l.body,rendered:c}}});return s.jsx("section",{className:"sass-com-bnl-content",id:"block-notes-list",children:i?.map(async(l,h)=>s.jsxs(I.Fragment,{children:[s.jsx(hc,{id:`item-${h+1}`,children:s.jsxs("div",{className:"sass-com-bnl-contentWithinCard",children:[(await l).date>0&&s.jsxs("div",{className:"sass-com-bnl-contentDate",children:[s.jsx("span",{className:"sass-com-bnl-dot",style:{background:t==="liveblogs"?"var(--news-liveblog-timeline-datelink-dot-color)":"var(--common-black)"}}),s.jsx("p",{className:"sass-com-bnl-dateInfo",style:{color:t==="liveblogs"?"var(--news-liveblog-timeline-datelink-color)":"var(--common-black)"},children:mt((await l).date)})]}),s.jsx("h2",{className:"sass-com-bnl-contentTitle",children:e[0]?.list.integrated?(await l).title:`${(await l).index}. ${(await l).title}`}),(await l).image&&s.jsx(ge,{preview:(await l).image,isLarge:!0}),s.jsx("div",{className:"contentTextList sass-com-bnl-contentTextList",dangerouslySetInnerHTML:{__html:await uc((await l).body.rendered.replace(/ /g,""),r,o)}}),(await l).related&&s.jsx("div",{className:"sass-com-bnl-contentButton",children:s.jsx("a",{className:"sass-com-bnl-linkStyled",href:(await l).related??"",target:"”_blank",children:String(r.blockNoteList_readMore??"Leer Más")})})]})},h),sn[h]&&s.jsx(fe,{banners:a,name:"list_"+sn[h]},h)]},h))})},Ss={FaceBook:"facebook",Instagram:"instagram",WhatsApp:"whatsapp",TikTok:"tiktok",Youtube:"youtube",X:"x",Gnews:"gnews",Podcast:"podcast",Telegram:"telegram"};function bc({url:e}){return e&&e!==""&&s.jsxs(M,{href:e,className:"sass-com-ja3-googleProfileButton",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),"Síguenos en",s.jsx(vc,{})]})}const vc=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 272 92",width:"272",height:"92",children:[s.jsx("path",{fill:"#EA4335",d:"M115.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18C71.25 34.32 81.24 25 93.5 25s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44S80.99 39.2 80.99 47.18c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),s.jsx("path",{fill:"#FBBC05",d:"M163.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18c0-12.85 9.99-22.18 22.25-22.18s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44s-12.51 5.46-12.51 13.44c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"}),s.jsx("path",{fill:"#4285F4",d:"M209.75 26.34v39.82c0 16.38-9.66 23.07-21.08 23.07-10.75 0-17.22-7.19-19.66-13.07l8.48-3.53c1.51 3.61 5.21 7.87 11.17 7.87 7.31 0 11.84-4.51 11.84-13v-3.19h-.34c-2.18 2.69-6.38 5.04-11.68 5.04-11.09 0-21.25-9.66-21.25-22.09 0-12.52 10.16-22.26 21.25-22.26 5.29 0 9.49 2.35 11.68 4.96h.34v-3.61h9.25zm-8.56 20.92c0-7.81-5.21-13.52-11.84-13.52-6.72 0-12.35 5.71-12.35 13.52 0 7.73 5.63 13.36 12.35 13.36 6.63 0 11.84-5.63 11.84-13.36z"}),s.jsx("path",{fill:"#34A853",d:"M225 3v65h-9.5V3h9.5z"}),s.jsx("path",{fill:"#EA4335",d:"M262.02 54.48l7.56 5.04c-2.44 3.61-8.32 9.83-18.48 9.83-12.6 0-22.01-9.74-22.01-22.18 0-13.19 9.49-22.18 20.92-22.18 11.51 0 17.14 9.16 18.98 14.11l1.01 2.52-29.65 12.28c2.27 4.45 5.8 6.72 10.75 6.72 4.96 0 8.4-2.44 10.92-6.14zm-23.27-7.98l19.82-8.23c-1.09-2.77-4.37-4.7-8.23-4.7-4.95 0-11.84 4.37-11.59 12.93z"}),s.jsx("path",{fill:"#4285F4",d:"M35.29 41.41V32H67c.31 1.64.47 3.58.47 5.68 0 7.06-1.93 15.79-8.15 22.01-6.05 6.3-13.78 9.66-24.02 9.66C16.32 69.35.36 53.89.36 34.91.36 15.93 16.32.47 35.3.47c10.5 0 17.98 4.12 23.6 9.49l-6.64 6.64c-4.03-3.78-9.49-6.72-16.97-6.72-13.86 0-24.7 11.17-24.7 25.03 0 13.86 10.84 25.03 24.7 25.03 8.99 0 14.11-3.61 17.39-6.89 2.66-2.66 4.41-6.46 5.1-11.65l-22.49.01z"})]}),Cc=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:r}=e,{DATE_TIMEZONE:n="America/Mexico_City",CONFIG_shareOnlyWhatsApp:o,PUBLIC_SERVICE_PREFIX:i,PUBLIC_IS_SUB_PUBLICATION:l}=O(),h=u=>i!=="false"&&l!=="false"?`/${i}/${e.paths.autor}/${u}`:`/${e.paths.autor}/${u}`,c=t.authors.map(u=>u.internaluser?`<a href="${h(u.name)}">${u.fullname}</a>`:u.fullname).join(", "),d=()=>t.authors.length===1?"sass-com-ja3-width1Autor":t.authors.length===2?"sass-com-ja3-width2Autor":t.authors.length===3?"sass-com-ja3-width3Autor":"";return t.config?.showauthor&&s.jsx("div",{className:"sass-com-ja3-content",children:s.jsxs("div",{className:"sass-com-ja3-avatarContent",children:[o?s.jsxs("a",{className:"sass-com-ja3-whatsappLink",href:a[Ss.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]}),String(r.WhatsAppLinkJournalist??"")]}):s.jsx("div",{style:{width:"100%"},"data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(kr,{noteShare:e.noteShare})}),s.jsx(bc,{url:e.noteShare?.googleProfile?.url??""}),s.jsxs("section",{className:"sass-com-ja3-journalistSection",children:[s.jsx("div",{className:`sass-com-ja3-imageContent ${d()}`,style:{width:`${t.authors?.length>2?t.authors?.length*30:t.authors?.length*35}px`},children:Array.isArray(t.authors)&&t.authors?.map(async(u,m)=>u.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+u.fullname,className:"sass-com-ja3-imageStyled sass-com-ja3-imageAutor su-object-cover su-flex-center",src:await ie(u.image.sizes[0]?.url||"")},u.fullname):s.jsx("div",{className:"sass-com-ja3-contentIconStyled sass-com-ja3-imageAutor su-flex-center",children:e.autorIcon},u.fullname))}),c&&s.jsx("div",{className:"sass-com-ja3-journalistInfoLink",dangerouslySetInnerHTML:{__html:`${r.JournalistPrefix} <h3 style="padding:0px;">${c??"Redaccion"}${t.config?.showtime&&","}</h3> <time datetime="${Be(t.info.date.modified,n)}">${t.config?.showtime?mt(t.info.date.modified):null}`}})]})]})})},yc=async({summary:e})=>e&&e.rendered&&s.jsx("section",{className:"sass-com-bns-summaryContent sass-summary-content",dangerouslySetInnerHTML:{__html:e.rendered}}),an=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return;const r=e.preview.sizes,o=(await a.getNewsMultimedia({path:t,imagesizes:r?r[0]?.scale:"w:801,h:449,t:2;"}))?.data.data[0]?.gallery??[];return s.jsxs("div",{className:"sass-com-in2-content",children:[s.jsx(Le,{slot_id:"header",fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:o&&o.map((i,l)=>s.jsx(ge,{preview:i,priorityHigh:!0},l))}),s.jsx("div",{className:"sass-com-in2-description",children:o&&o[0]?.description})]})};function Nc(e){const t=e.children,a=`${e.slot_id}-`,r=e.visibleItems,n=e.cardGap??20;function o(l){const h=[],c=[];let d="",u=!0;for(let m=0;m<l;m++){const p=`[data-index="${m}"]:checked ~ .carrousel-pagination li:nth-child(${m+1}) {
|
|
181
181
|
background-color:var(--carrousel-pagination-background-color)
|
|
182
182
|
}`;d+=`
|
|
183
183
|
.${a}.carrousel-container {
|
|
@@ -226,7 +226,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
226
226
|
</div>
|
|
227
227
|
${i(t.length)}
|
|
228
228
|
</div>
|
|
229
|
-
`}const Sc=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"currentColor",...e,children:s.jsx("path",{fill:"currentColor",d:"M9.99 0C4.47 0 0 4.48 0 10s4.47 10 9.99 10C15.52 20 20 15.52 20 10S15.52 0 9.99 0Zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 16.92 6ZM10 2.04c.83 1.2 1.48 2.53 1.91 3.96H8.09C8.52 4.57 9.17 3.24 10 2.04ZM2.26 12C2.1 11.36 2 10.69 2 10s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H2.26Zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 3.08 14Zm2.95-8H3.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 6.03 6ZM10 17.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96ZM12.34 12H7.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2Zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM14.36 12c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38Z"})}),rn=()=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M24 12.2727C24 11.4218 23.9221 10.6036 23.7774 9.81818H12.2449V14.4655H18.8349C18.5455 15.96 17.6772 17.2255 16.3748 18.0764V21.0982H20.3488C22.6642 19.0036 24 15.9273 24 12.2727Z",fill:"#4285F4"}),s.jsx("path",{d:"M12.2449 24C15.551 24 18.3228 22.9309 20.3488 21.0982L16.3748 18.0764C15.2839 18.7964 13.8924 19.2327 12.2449 19.2327C9.06122 19.2327 6.35622 17.1273 5.38776 14.2909H1.31354V17.3891C3.32839 21.3055 7.45826 24 12.2449 24Z",fill:"#34A853"}),s.jsx("path",{d:"M5.38776 14.28C5.14286 13.56 4.99814 12.7964 4.99814 12C4.99814 11.2036 5.14286 10.44 5.38776 9.72V6.62182H1.31354C0.478664 8.23636 0 10.0582 0 12C0 13.9418 0.478664 15.7636 1.31354 17.3782L4.48609 14.9564L5.38776 14.28Z",fill:"#FBBC05"}),s.jsx("path",{d:"M12.2449 4.77818C14.0482 4.77818 15.6512 5.38909 16.9314 6.56727L20.4378 3.13091C18.3117 1.18909 15.551 0 12.2449 0C7.45826 0 3.32839 2.69455 1.31354 6.62182L5.38776 9.72C6.35622 6.88364 9.06122 4.77818 12.2449 4.77818Z",fill:"#EA4335"})]}),Ec={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ir,{className:e,forceSVG:!0}),solid:e=>s.jsx(Bt,{className:e,forceSVG:!0})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(xe,{className:e,forceSVG:!0}),solid:e=>s.jsx(xe,{className:e,forceSVG:!0})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(gs,{className:e,forceSVG:!0}),solid:e=>s.jsx(fs,{className:e,forceSVG:!0})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Er,{className:e,forceSVG:!0}),solid:e=>s.jsx(Tr,{className:e,forceSVG:!0})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ge,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ge,{className:e,forceSVG:!0})}}};function Tc({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?s.jsxs("div",{className:"sass-com-ja4-socialNetworkSection",children:[e.options?.map(a=>{const r=Ec[a];if(!r)return null;const n=e.variant==="outline"?r.icon.outline:r.icon.solid,o=r.url(t);return s.jsx(M,{href:o,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`sass-com-ja4-socialButton sass-com-ja4-${a.toLowerCase()}Button sass-com-ja4-${a.toLowerCase()}Styled`,children:n("")},a)}),s.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja4-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(ps,{forceSVG:!0})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja4-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(Ur,{})}),e?.googleProfile&&e?.googleProfile.likeSocial&&e?.googleProfile.url!==""&&s.jsxs(M,{href:e?.googleProfile.url??"",className:"sass-com-ja4-socialActionLink sass-com-ja4-socialActionLinkGoogleMobile","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:"Seguir en"}),s.jsx(rn,{})]})]}):null}const Ic=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:r}=e,{CONFIG_shareOnlyWhatsApp:n,DATE_TIMEZONE:o="America/Mexico_City",CONFIG_commentsV2:i,PUBLIC_SERVICE_PREFIX:l}=O(),h=u=>l?`/${l}/${e.paths.autor}/${u}`:`/${e.paths.autor}/${u}`,c=t.authors.map(u=>u.internaluser?`<a href="${h(u.name)}">${u.fullname}</a>`:u.fullname).join(", "),d=()=>t.authors.length===1?"sass-com-ja4-width1Autor":t.authors.length===2?"sass-com-ja4-width2Autor":t.authors.length===3?"sass-com-ja4-width3Autor":"";return t.config?.showauthor&&s.jsx("div",{className:"sass-com-ja4-content sass-journalist-articule-4",children:s.jsxs("div",{className:"sass-com-ja4-avatarContent",children:[s.jsxs("div",{className:"sass-com-ja4-socialActionsRow",children:[s.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[n&&s.jsxs("a",{className:"sass-com-ja4-socialActionLink",href:a[Ss.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsx("span",{children:String(r.WhatsAppLinkJournalist??"")}),s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]})]}),e.noteShare?.googleProfile&&!e.noteShare?.googleProfile.likeSocial&&e.noteShare?.googleProfile.url!==""&&s.jsxs(M,{href:e.noteShare?.googleProfile.url??"",className:"sass-com-ja4-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:"Seguir en"}),s.jsx(rn,{})]}),e.noteShare?.customButton&&(i?s.jsx("a",{href:"#comentarios",className:"sass-journalist-articule-custom-button","aria-label":"Custom button for the journalist article"}):s.jsx("button",{type:"button",className:"sass-journalist-articule-custom-button","data-hydrate":"CustomButton","aria-label":"Custom button for the journalist article"}))]}),s.jsx("div",{style:{width:"100%"},"data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(Tc,{noteShare:e.noteShare})})]}),s.jsxs("section",{className:"sass-com-ja4-journalistSection",children:[s.jsxs("div",{className:"sass-com-ja4-authorsInfoRow",children:[s.jsx("div",{className:`sass-com-ja4-imageContent ${d()}`,style:{width:`${t.authors?.length>2?t.authors?.length*30:t.authors?.length*40}px`},children:Array.isArray(t.authors)&&t.authors?.map(async(u,m)=>u.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+u.fullname,className:"sass-com-ja4-imageStyled sass-com-ja4-imageAutor su-object-cover su-flex-center",src:await ie(u.image.sizes[0]?.url||"")},u.fullname):s.jsx("div",{className:"sass-com-ja4-contentIconStyled sass-com-ja4-imageAutor su-flex-center",children:e.autorIcon},u.fullname))}),s.jsx("div",{className:"sass-com-ja4-journalistInfoLink",dangerouslySetInnerHTML:{__html:`${r.JournalistPrefix} <h3 style="padding:0px;">${c??"Redaccion"}</h3>`}})]}),t.config?.showtime&&s.jsx("time",{className:"sass-com-ja4-journalistInfoDate",dateTime:Be(t.info.date.modified,o),children:mt(t.info.date.modified)})]})]})})},Uc=e=>e.replace(/<iframe(?![^>]*\bloading=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe loading="lazy"')),kc=e=>e.replace(/<iframe(?![^>]*\btitle=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe title="frame custom content"')),Lc=e=>e.replace(/<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,""),Pc=async e=>{const{PUBLIC_IS_OFFLINE:t}=O();if(!(t==="true")){const c=/<img\b[^>]*\bsrc=["']([^"']+)["']/g,d=[...e.matchAll(c)],u={};for(const m of d){const p=m[1]??"",f=e.includes(p)?{url:p}:null;if(f){const g=await ie(f.url)||"";u[p]=g}}return e.replace(c,(m,p)=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${u[p]||p}"`)}let r=e;const n=new Set,o=/<figure\b[^>]*>(?:(?!<figure)[\s\S])*?<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g;let i="";for(;i!==r;){i=r;const c=o.exec(r);if(!c)break;const d=c[0],u=c[1]??"";n.add(u);const m=d.match(/<img\b[^>]*\balt=["']([^"']*)["']/),p=m?m[1]:"imagen",f=u.match(/__scale=([^&"']+)/),g=f?decodeURIComponent(f[1]):null;let A=0,b=0;if(g){const U=g.match(/w:(\d+)/),P=g.match(/h:(\d+)/);A=U?parseInt(U[1]):0,b=P?parseInt(P[1]):0}const N={preview:{sizes:[{scale:g||`w:${A},h:${b},t:2`,url:u,width:A,height:b}],original:{url:u.split("?")[0],width:A,height:b},copyright:!1,description:p,photographer:!1},isLarge:!1,priorityHigh:!1},w=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(N))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;r=r.replace(d,w),o.lastIndex=0}const l=/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g,h=[...r.matchAll(l)];for(const c of h){const d=c[0],u=c[1]??"";if(n.has(u))continue;const m=d.match(/\balt=["']([^"']*)["']/),p=m?m[1]:"imagen",f=u.match(/__scale=([^&"']+)/),g=f?decodeURIComponent(f[1]):null;let A=0,b=0;if(g){const U=g.match(/w:(\d+)/),P=g.match(/h:(\d+)/);A=U?parseInt(U[1]):0,b=P?parseInt(P[1]):0}const N={preview:{sizes:[{scale:g||`w:${A},h:${b},t:2`,url:u,width:A,height:b}],original:{url:u.split("?")[0],width:A,height:b},copyright:!1,description:p,photographer:!1},isLarge:!1,priorityHigh:!1},w=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(N))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;r=r.replace(d,w)}return r},xc=e=>e.replace(/<script\b([^>]*)>/gi,(t,a)=>a.includes("type=")?`<script ${a.replace(/type\s*=\s*["'][^"']*["']/i,'type="text/deferred-banner"')}>`:`<script ${a} type="text/deferred-banner">`),Bc=(e,t)=>{const a={2:1,4:2,7:3,10:4,13:5};let r=0,n=e;const o=/<(p|li|ul|ol)>\s*<\/\1>/gi,i=/<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;do n=e.replace(o,"").replace(i,"");while(n.match(o)||n.match(i));return n=n.replace(/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,l=>{const h=l.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${h}[\\s\\S]*?<\\/blockquote>`,"gi").test(n)){r++;const d=t.find(u=>u.key===`block_2_${a[r]}`);return d&&d.show?`${l}<div class="banner-context">${xc(d.value)}</div>`:l}return l}),n},Oc=e=>{const t=/<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g,a=[...e.matchAll(t)];let r="",n=0;for(const o of a){const[i,l=""]=o,h=o.index,c=h+i.length;r+=e.slice(n,h);const u=[...l.matchAll(/data-src="([^"]+)"/g)].map(f=>f[1]).map(f=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${f}" class="carrusel-note-item" width="800" height="469"/>`),m="gallery_embeded"+h.toString(),p=Nc({slot_id:m,children:u,visibleItems:1,cardGap:0});r+=p,n=c}return r+=e.slice(n),r},Mc=async(e,t,a)=>{if(!a)return e;const r=/<span data-src="(.*?)"><\/span>/g,n=[...e.matchAll(r)];let o=e;for(const i of n){const l=i[0],h=i[1]??"",c=a.find(E=>h.includes(E?.[0]?.info.link.internal||""));if(!c||!c[0])continue;const d=c[0].preview?.sizes?.[0],u=d?await ie(d.url):"",m=c[0].info.section?.url??"#",p=c[0].info.section?.name??"Sección",f=c[0].info.link?.url??"#",g=c[0].main?.title.article??"Título",A=(await Promise.all(c[0].preview?.sizes?.map(async(E,N)=>{const S=await ie(E.url);return N===0?`<source srcset="${S}" media="(width >= 900px)"/>`:`<source srcset="${S}" media="(width < 900px)"/>`}))).reduce((E,N)=>E+=N,""),b=`
|
|
229
|
+
`}const Sc=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"currentColor",...e,children:s.jsx("path",{fill:"currentColor",d:"M9.99 0C4.47 0 0 4.48 0 10s4.47 10 9.99 10C15.52 20 20 15.52 20 10S15.52 0 9.99 0Zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 16.92 6ZM10 2.04c.83 1.2 1.48 2.53 1.91 3.96H8.09C8.52 4.57 9.17 3.24 10 2.04ZM2.26 12C2.1 11.36 2 10.69 2 10s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H2.26Zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 3.08 14Zm2.95-8H3.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 6.03 6ZM10 17.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96ZM12.34 12H7.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2Zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM14.36 12c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38Z"})}),rn=()=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M24 12.2727C24 11.4218 23.9221 10.6036 23.7774 9.81818H12.2449V14.4655H18.8349C18.5455 15.96 17.6772 17.2255 16.3748 18.0764V21.0982H20.3488C22.6642 19.0036 24 15.9273 24 12.2727Z",fill:"#4285F4"}),s.jsx("path",{d:"M12.2449 24C15.551 24 18.3228 22.9309 20.3488 21.0982L16.3748 18.0764C15.2839 18.7964 13.8924 19.2327 12.2449 19.2327C9.06122 19.2327 6.35622 17.1273 5.38776 14.2909H1.31354V17.3891C3.32839 21.3055 7.45826 24 12.2449 24Z",fill:"#34A853"}),s.jsx("path",{d:"M5.38776 14.28C5.14286 13.56 4.99814 12.7964 4.99814 12C4.99814 11.2036 5.14286 10.44 5.38776 9.72V6.62182H1.31354C0.478664 8.23636 0 10.0582 0 12C0 13.9418 0.478664 15.7636 1.31354 17.3782L4.48609 14.9564L5.38776 14.28Z",fill:"#FBBC05"}),s.jsx("path",{d:"M12.2449 4.77818C14.0482 4.77818 15.6512 5.38909 16.9314 6.56727L20.4378 3.13091C18.3117 1.18909 15.551 0 12.2449 0C7.45826 0 3.32839 2.69455 1.31354 6.62182L5.38776 9.72C6.35622 6.88364 9.06122 4.77818 12.2449 4.77818Z",fill:"#EA4335"})]}),Ec={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ir,{className:e,forceSVG:!0}),solid:e=>s.jsx(Bt,{className:e,forceSVG:!0})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(xe,{className:e,forceSVG:!0}),solid:e=>s.jsx(xe,{className:e,forceSVG:!0})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(gs,{className:e,forceSVG:!0}),solid:e=>s.jsx(fs,{className:e,forceSVG:!0})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Er,{className:e,forceSVG:!0}),solid:e=>s.jsx(Tr,{className:e,forceSVG:!0})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ge,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ge,{className:e,forceSVG:!0})}}};function Tc({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?s.jsxs("div",{className:"sass-com-ja4-socialNetworkSection",children:[e.options?.map(a=>{const r=Ec[a];if(!r)return null;const n=e.variant==="outline"?r.icon.outline:r.icon.solid,o=r.url(t);return s.jsx(M,{href:o,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`sass-com-ja4-socialButton sass-com-ja4-${a.toLowerCase()}Button sass-com-ja4-${a.toLowerCase()}Styled`,children:n("")},a)}),s.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja4-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(ps,{forceSVG:!0})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja4-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(Ur,{})}),e?.googleProfile&&e?.googleProfile.likeSocial&&e?.googleProfile.url!==""&&s.jsxs(M,{href:e?.googleProfile.url??"",className:"sass-com-ja4-socialActionLink sass-com-ja4-socialActionLinkGoogleMobile","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:"Seguir en"}),s.jsx(rn,{})]})]}):null}const Ic=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:r}=e,{CONFIG_shareOnlyWhatsApp:n,DATE_TIMEZONE:o="America/Mexico_City",CONFIG_commentsV2:i,PUBLIC_SERVICE_PREFIX:l,PUBLIC_IS_SUB_PUBLICATION:h}=O(),c=m=>l!=="false"&&h!=="false"?`/${l}/${e.paths.autor}/${m}`:`/${e.paths.autor}/${m}`,d=t.authors.map(m=>m.internaluser?`<a href="${c(m.name)}">${m.fullname}</a>`:m.fullname).join(", "),u=()=>t.authors.length===1?"sass-com-ja4-width1Autor":t.authors.length===2?"sass-com-ja4-width2Autor":t.authors.length===3?"sass-com-ja4-width3Autor":"";return t.config?.showauthor&&s.jsx("div",{className:"sass-com-ja4-content sass-journalist-articule-4",children:s.jsxs("div",{className:"sass-com-ja4-avatarContent",children:[s.jsxs("div",{className:"sass-com-ja4-socialActionsRow",children:[s.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[n&&s.jsxs("a",{className:"sass-com-ja4-socialActionLink",href:a[Ss.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsx("span",{children:String(r.WhatsAppLinkJournalist??"")}),s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]})]}),e.noteShare?.googleProfile&&!e.noteShare?.googleProfile.likeSocial&&e.noteShare?.googleProfile.url!==""&&s.jsxs(M,{href:e.noteShare?.googleProfile.url??"",className:"sass-com-ja4-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:"Seguir en"}),s.jsx(rn,{})]}),e.noteShare?.customButton&&(i?s.jsx("a",{href:"#comentarios",className:"sass-journalist-articule-custom-button","aria-label":"Custom button for the journalist article"}):s.jsx("button",{type:"button",className:"sass-journalist-articule-custom-button","data-hydrate":"CustomButton","aria-label":"Custom button for the journalist article"}))]}),s.jsx("div",{style:{width:"100%"},"data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(Tc,{noteShare:e.noteShare})})]}),s.jsxs("section",{className:"sass-com-ja4-journalistSection",children:[s.jsxs("div",{className:"sass-com-ja4-authorsInfoRow",children:[s.jsx("div",{className:`sass-com-ja4-imageContent ${u()}`,style:{width:`${t.authors?.length>2?t.authors?.length*30:t.authors?.length*40}px`},children:Array.isArray(t.authors)&&t.authors?.map(async(m,p)=>m.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+m.fullname,className:"sass-com-ja4-imageStyled sass-com-ja4-imageAutor su-object-cover su-flex-center",src:await ie(m.image.sizes[0]?.url||"")},m.fullname):s.jsx("div",{className:"sass-com-ja4-contentIconStyled sass-com-ja4-imageAutor su-flex-center",children:e.autorIcon},m.fullname))}),s.jsx("div",{className:"sass-com-ja4-journalistInfoLink",dangerouslySetInnerHTML:{__html:`${r.JournalistPrefix} <h3 style="padding:0px;">${d??"Redaccion"}</h3>`}})]}),t.config?.showtime&&s.jsx("time",{className:"sass-com-ja4-journalistInfoDate",dateTime:Be(t.info.date.modified,o),children:mt(t.info.date.modified)})]})]})})},Uc=e=>e.replace(/<iframe(?![^>]*\bloading=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe loading="lazy"')),kc=e=>e.replace(/<iframe(?![^>]*\btitle=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe title="frame custom content"')),Lc=e=>e.replace(/<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,""),Pc=async e=>{const{PUBLIC_IS_OFFLINE:t}=O();if(!(t==="true")){const c=/<img\b[^>]*\bsrc=["']([^"']+)["']/g,d=[...e.matchAll(c)],u={};for(const m of d){const p=m[1]??"",f=e.includes(p)?{url:p}:null;if(f){const g=await ie(f.url)||"";u[p]=g}}return e.replace(c,(m,p)=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${u[p]||p}"`)}let r=e;const n=new Set,o=/<figure\b[^>]*>(?:(?!<figure)[\s\S])*?<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g;let i="";for(;i!==r;){i=r;const c=o.exec(r);if(!c)break;const d=c[0],u=c[1]??"";n.add(u);const m=d.match(/<img\b[^>]*\balt=["']([^"']*)["']/),p=m?m[1]:"imagen",f=u.match(/__scale=([^&"']+)/),g=f?decodeURIComponent(f[1]):null;let A=0,b=0;if(g){const U=g.match(/w:(\d+)/),P=g.match(/h:(\d+)/);A=U?parseInt(U[1]):0,b=P?parseInt(P[1]):0}const N={preview:{sizes:[{scale:g||`w:${A},h:${b},t:2`,url:u,width:A,height:b}],original:{url:u.split("?")[0],width:A,height:b},copyright:!1,description:p,photographer:!1},isLarge:!1,priorityHigh:!1},w=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(N))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;r=r.replace(d,w),o.lastIndex=0}const l=/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g,h=[...r.matchAll(l)];for(const c of h){const d=c[0],u=c[1]??"";if(n.has(u))continue;const m=d.match(/\balt=["']([^"']*)["']/),p=m?m[1]:"imagen",f=u.match(/__scale=([^&"']+)/),g=f?decodeURIComponent(f[1]):null;let A=0,b=0;if(g){const U=g.match(/w:(\d+)/),P=g.match(/h:(\d+)/);A=U?parseInt(U[1]):0,b=P?parseInt(P[1]):0}const N={preview:{sizes:[{scale:g||`w:${A},h:${b},t:2`,url:u,width:A,height:b}],original:{url:u.split("?")[0],width:A,height:b},copyright:!1,description:p,photographer:!1},isLarge:!1,priorityHigh:!1},w=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(N))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;r=r.replace(d,w)}return r},xc=e=>e.replace(/<script\b([^>]*)>/gi,(t,a)=>a.includes("type=")?`<script ${a.replace(/type\s*=\s*["'][^"']*["']/i,'type="text/deferred-banner"')}>`:`<script ${a} type="text/deferred-banner">`),Bc=(e,t)=>{const a={2:1,4:2,7:3,10:4,13:5};let r=0,n=e;const o=/<(p|li|ul|ol)>\s*<\/\1>/gi,i=/<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;do n=e.replace(o,"").replace(i,"");while(n.match(o)||n.match(i));return n=n.replace(/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,l=>{const h=l.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${h}[\\s\\S]*?<\\/blockquote>`,"gi").test(n)){r++;const d=t.find(u=>u.key===`block_2_${a[r]}`);return d&&d.show?`${l}<div class="banner-context">${xc(d.value)}</div>`:l}return l}),n},Oc=e=>{const t=/<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g,a=[...e.matchAll(t)];let r="",n=0;for(const o of a){const[i,l=""]=o,h=o.index,c=h+i.length;r+=e.slice(n,h);const u=[...l.matchAll(/data-src="([^"]+)"/g)].map(f=>f[1]).map(f=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${f}" class="carrusel-note-item" width="800" height="469"/>`),m="gallery_embeded"+h.toString(),p=Nc({slot_id:m,children:u,visibleItems:1,cardGap:0});r+=p,n=c}return r+=e.slice(n),r},Mc=async(e,t,a)=>{if(!a)return e;const r=/<span data-src="(.*?)"><\/span>/g,n=[...e.matchAll(r)];let o=e;for(const i of n){const l=i[0],h=i[1]??"",c=a.find(E=>h.includes(E?.[0]?.info.link.internal||""));if(!c||!c[0])continue;const d=c[0].preview?.sizes?.[0],u=d?await ie(d.url):"",m=c[0].info.section?.url??"#",p=c[0].info.section?.name??"Sección",f=c[0].info.link?.url??"#",g=c[0].main?.title.article??"Título",A=(await Promise.all(c[0].preview?.sizes?.map(async(E,N)=>{const S=await ie(E.url);return N===0?`<source srcset="${S}" media="(width >= 900px)"/>`:`<source srcset="${S}" media="(width < 900px)"/>`}))).reduce((E,N)=>E+=N,""),b=`
|
|
230
230
|
<span data-src="${h}">
|
|
231
231
|
<picture style='display: flex'>
|
|
232
232
|
${A}
|
|
@@ -257,5 +257,5 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
257
257
|
${S}
|
|
258
258
|
<figcaption>${P}</figcaption>
|
|
259
259
|
</figure>
|
|
260
|
-
`}}catch(b){console.error("insertVideos error for",p,b),A=""}else A=m;r=u,a+=A,n.lastIndex=u}return a+=e.slice(r),a=Lc(a),a}async function Dc(e){const{news:t,banners:a,newsRelatedResponses:r,newsRelatedListResponses:n,slug:o,itemList:i,socials:l,getVideos:h,commonServices:c}=e;let d=t?.body?.rendered??"";d=d.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),d=d.replace(/ /g,""),d=Bc(d,a),d=Oc(d),d=await Pc(d),d=await Mc(d,e.texts,r),d=await qc(d,h),d=Uc(d),d=kc(d);const u=t.main.sources??[],{NEWS_JOURNALIST_COMPONENT:m,CONFIG_blockDefaultTwitterHydrator:p}=O(),f=t.config.articlepreview===je.fotoGaleria&&t.hascontent?.hasgalleryimages;return s.jsxs(s.Fragment,{children:[o!=="liveblogs"&&e.showHeaderImage?f?s.jsx(an,{commonServices:c,newsformated:t,internal:t.info.link.internal}):s.jsx(Lr,{preview:t.preview}):null,s.jsx(fe,{banners:a,name:"block_1"}),s.jsx("div",{className:"sass-pg-nrs-journalistArticleContent",children:m==="op1"?s.jsx(Cc,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):s.jsx(Ic,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),s.jsx(yc,{summary:t.main.summary}),s.jsx("main",{className:"sass-pg-nrs-contentNews",suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:d}}),s.jsx(wc,{texts:e.texts,itemList:i,banners:a,slug:o,getVideos:h,newsRelatedListResponses:n??[]}),u.length>0&&s.jsxs("div",{className:"sass-pg-nrs-noteSource",children:[s.jsx(Sc,{}),s.jsx("p",{children:String(e.texts.noteSource??"")+(u.length===1?"":"s")+": "+u.map(g=>g.name).join(", ")})]}),!p&&t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&s.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const _c=e=>{const{config:t}=e,a=t.articlepreview;return!![je.videoEmbedded,je.videoYouTube,je.iframe].includes(a)},nn=async e=>{const{texts:t,autorIcon:a,commonServices:r,slug:n,noteShare:o,paths:i,banners:l,news:h,newsRelatedResponses:c=[],newsRelatedListResponses:d=[],itemList:u=[],socials:m,getVideos:p}=e;if(h)return s.jsxs(s.Fragment,{children:[s.jsx(Dc,{texts:t,autorIcon:a,socials:m,news:h,banners:l,newsRelatedResponses:c,newsRelatedListResponses:d,itemList:u,slug:n,getVideos:p,noteShare:o,paths:i,showHeaderImage:!_c(h),commonServices:r}),s.jsx(fe,{banners:l??[],name:"block_3"})]})},Gc=async e=>{const{ranking:t=[],banners:a,autor:r=[],news:n=[],newsRelatedResponses:o=[],newsRelatedListResponses:i=[],itemList:l=[],socials:h,getVideos:c}=e;if(!(!n||!n[0]))return s.jsxs(s.Fragment,{children:[s.jsx(tn,{option:e.slug,news:n,paths:e.paths,commonServices:e.commonServices,banners:e.banners,headerSectionStyles:e.headerSectionStyles,newsDescriptionSectionTag:e.newsDescriptionSectionTag}),s.jsx(lc,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:l,ranking:t,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(fe,{banners:a??[],name:"right_1"}),banner:s.jsx(fe,{banners:a??[],name:"right_2"}),complement:s.jsxs("div",{id:"comentarios",className:"sass-pg-news-complementContent",suppressHydrationWarning:!0,children:[r.length>0&&s.jsx(Gr,{texts:e.texts,autorIcon:e.autorIcon,autor:r[0],paths:e.paths}),n[0].authors.length>1&&s.jsx(jr,{news:n[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),n[0]?.keywords?.tags&&n[0]?.keywords?.tags?.length>0&&s.jsx("div",{className:"sass-pg-news-tagContent sass-note-tags-content",children:s.jsx(_r,{tags:n[0]?.keywords?.tags,paths:e.paths})})]}),children:s.jsx(nn,{texts:e.texts,autorIcon:e.autorIcon,socials:h,news:n[0],banners:a,newsRelatedResponses:o,newsRelatedListResponses:i,itemList:l,slug:e.slug,getVideos:c,noteShare:e.noteShare,paths:e.paths,commonServices:e.commonServices})})]})},jc=e=>s.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("g",{children:s.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),Qc=e=>s.jsx("form",{className:"su-w-full su-flex su-justify-center su-gap-4 sass-pg-buscar-content",children:s.jsxs("div",{className:"sass-pg-buscar-inputStyled sass-buscar-form",children:[s.jsx("input",{className:"sass-pg-buscar-inputStyledTest",defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),s.jsx("button",{className:"sass-pg-buscar-buttonStyled",type:"submit",children:s.jsx(jc,{className:"sass-pg-buscar-searchStyled"})})]})}),$e=({className:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:e,children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Fc={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},ot={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function Hc(e){return{email:{label:e?.email??ot.email.label,required:!0},given_name:{label:e?.given_name??ot.given_name.label,required:!0},family_name:{label:e?.family_name??ot.family_name.label,required:!0},password:{label:e?.password??ot.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??ot.confirmPassword.label,required:!0}}}const Ee=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],on=[{label:"La contraseña debe tener al menos 8 caracteres",test:Ee[0]},{label:"Usa un número",test:Ee[1]},{label:"Usa una letra minúscula",test:Ee[2]},{label:"Usa una letra mayúscula",test:Ee[3]},{label:"Usa un símbolo",test:Ee[4]}];function Vc({texts:e,API_ENV:t,termsAndConditionsUrl:a}){const r={...Fc,...e?.comentarios},n=I.useMemo(()=>Hc(e?.comentarios?.registerForm),[e?.comentarios?.registerForm]),o=I.useMemo(()=>[{label:r.passwordRuleMinLength,test:Ee[0]},{label:r.passwordRuleNumber,test:Ee[1]},{label:r.passwordRuleLowercase,test:Ee[2]},{label:r.passwordRuleUppercase,test:Ee[3]},{label:r.passwordRuleSymbol,test:Ee[4]}],[r.passwordRuleMinLength,r.passwordRuleNumber,r.passwordRuleLowercase,r.passwordRuleUppercase,r.passwordRuleSymbol]),[i,l]=I.useState({}),[h,c]=I.useState(!1),[d,u]=I.useState(!1),[m,p]=I.useState(null),[f,g]=I.useState("register"),A=async()=>{if(t.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}const w=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${w}`},b=(w,U)=>{l(P=>({...P,[w]:U}))},E=async w=>{w.preventDefault(),p(null),u(!0);try{const U=Object.keys(n).filter(V=>!["username","password","confirmPassword"].includes(V)).map(V=>({Name:V,Value:i[V]}));if(U.some(V=>{if(!V.Value||V.Value.trim()==="")return!0}))return u(!1),p(r.errorCompleteFields);if(i.password!==i.confirmPassword){p(r.errorPasswordMismatch);return}const P=i.password||"";if(o.some(V=>!V.test(P))){p(r.errorPasswordInvalid);return}const Y=Math.floor(Date.now()/1e3);U.push({Name:"updated_at",Value:String(Y)});const F=t.PUBLIC_ENV==="local"?"token":await Vs("comment_register",t.CAPTCHA_KEY??"");if(!F)throw new Error("Captcha token no generado");const B=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,password:i.password,userAttributes:U,token:F})});if(!B.ok){const V=await B.json().catch(()=>({}));if(V.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email})}),g("confirm");return}throw new Error(V?.error||"Error al crear usuario")}g("confirm")}catch(U){console.log(U),p(U?.message||U?.error||r.errorUnexpected)}finally{u(!1)}},N=async w=>{if(w.preventDefault(),!i.confirmationCode){p(r.errorVerificationCodeRequired);return}p(null),u(!0);try{const U=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,code:i.confirmationCode})});if(!U.ok){const P=await U.json().catch(()=>({}));throw new Error(P?.error||"Error al confirmar usuario")}g("success")}catch(U){p(U?.message||r.errorUnexpected)}finally{u(!1)}},S=i.password||"";return s.jsxs(s.Fragment,{children:[f==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:A,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:r.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:E,className:"sass-pg-login-form","data-error":m?"true":"false",children:[s.jsx("ul",{className:"sass-pg-login-formUl",children:Object.entries(n).map(([w,{label:U}])=>s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:U}),s.jsx("input",{type:w.toLowerCase().includes("password")?h?"text":"password":w==="birthdate"?"date":w==="email"?"email":w==="phone_number"?"tel":"text",name:w,value:i[w]||"",onChange:P=>b(w,P.target.value),className:"sass-pg-login-input",placeholder:""}),w==="password"&&s.jsx("div",{className:"sass-pg-login-passwordChecker",children:o.map((P,H)=>{const Y=P.test(S);return s.jsxs("div",{className:Y?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:Y?"✔":"○"}),s.jsx("div",{children:P.label})]},H)})}),w==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:h,onChange:P=>c(P.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-login-checkboxLabel",children:r.showPasswordsLabel})]})]},w))}),m&&s.jsx("p",{className:"sass-pg-login-error",children:m}),s.jsxs("p",{className:"sass-pg-login-terms",children:[r.termsPrefix," ",s.jsx("a",{href:a??"/pages/terminos-y-condiciones",target:"_blank",children:r.termsLinkText})," ",r.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:d,children:d?s.jsx($e,{}):r.createAccountButton})]})]}),f==="confirm"&&s.jsxs("form",{onSubmit:N,className:"sass-pg-login-form","data-error":m?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:r.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:i.confirmationCode||"",onChange:w=>b("confirmationCode",w.target.value),className:"sass-pg-login-input",required:!0})]}),m&&s.jsx("p",{className:"sass-pg-login-error",children:m}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:d,children:d?s.jsx($e,{}):r.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-login-switch",children:[r.alreadyConfirmedText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:r.loginButtonText})]})]}),f==="success"&&s.jsxs("form",{className:"sass-pg-login-form",children:[s.jsxs("div",{className:"sass-pg-login-successContainer",children:[s.jsx("div",{className:"sass-pg-login-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"currentColor",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-login-successMessage",children:[s.jsx("p",{children:r.successTitle}),s.jsx("p",{children:r.successMessage})]})]}),s.jsx("a",{href:"./login",type:"submit",className:"sass-pg-login-primary",children:r.loginButtonText})]}),f==="register"&&s.jsxs("p",{className:"sass-pg-login-switch",children:[r.alreadyHasAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:r.loginButtonText})]})]})}const zc={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Wc({API_ENV:e,texts:t}){const a={...zc,...t?.comentarios},[r,n]=I.useState("login"),[o,i]=I.useState(""),[l,h]=I.useState(""),[c,d]=I.useState(""),[u,m]=I.useState(""),[p,f]=I.useState(""),[g,A]=I.useState(!1),[b,E]=I.useState(!1),[N,S]=I.useState(null);I.useEffect(()=>{if(typeof window>"u")return;window.location.hash.includes("forgot")&&r==="login"&&n("forgot"),r==="login"&&U()});const w=B=>document.cookie.split("; ").find(V=>V.startsWith(B+"="))?.split("=")[1],U=async()=>{if(document.cookie.search(e.COGNITO_AUTH_PREFIX+"IS_AUTH=true")!==-1){if(!window)return;const B=w("redirect_after_login_1");console.log("Redirect path after login:",B,document.cookie,document.cookie.search("redirect_after_login_1=")!==-1),B&&B!==""?(window.location.pathname=B,window.location.hash="comentarios"):window.location.pathname="/auth/success"}},P=async()=>{if(e.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}let B="/auth/login";const V=w("redirect_after_login_1");V&&V!==""&&(B=V),window.location.href=`/api/auth/login?redirect=${B}`},H=async B=>{if(!b){if(B.preventDefault(),o===""||l===""){S("Complete todos los campos");return}S(null),E(!0);try{const V=e.PUBLIC_ENV==="local"?"token":await Vs("comment_login",e.CAPTCHA_KEY||"");if(!V)throw new Error("Captcha token no generado");const te=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o,password:l,token:V})});if(!te.ok){const _=await te.json().catch(()=>({}));throw new Error(_?.error||"Ha ocurrido un error")}await U();return}catch(V){S(V?.message||"Error inesperado")}finally{E(!1)}}},Y=async B=>{if(!b){B.preventDefault(),S(null),E(!0);try{const V=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o})});if(!V.ok){const te=await V.json().catch(()=>({}));throw new Error(te?.error||"Error al enviar código")}h(""),n("changePassword")}catch(V){S(V?.message||"Error inesperado")}finally{E(!1)}}},F=async B=>{if(b)return;if(B.preventDefault(),u!==p){S("Las contraseñas no coinciden");return}if(on.some(te=>!te.test(u))){S("La contraseña no cumple con los requisitos");return}S(null),E(!0);try{const te=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,code:c,newPassword:u})});if(!te.ok){const _=await te.json().catch(()=>({}));throw new Error(_?.error||"Error al cambiar contraseña")}n("feedback")}catch(te){S(te?.message||"Error inesperado")}finally{E(!1)}};return s.jsxs(s.Fragment,{children:[r==="login"&&s.jsx(Yc,{email:o,password:l,showPassword:g,loading:b,error:N,setEmail:i,setPassword:h,setShowPassword:A,onSubmit:H,onForgot:()=>{S(null),n("forgot")},handleGoogleLogin:P,t:a}),r==="forgot"&&s.jsx(Kc,{email:o,setEmail:i,loading:b,error:N,onSubmit:Y,onBack:()=>{S(null),n("login")},t:a}),r==="changePassword"&&s.jsx($c,{email:o,confirmationCode:c,newPassword:u,confirmNewPassword:p,showPassword:g,loading:b,error:N,setConfirmationCode:d,setNewPassword:m,setConfirmNewPassword:f,setShowPassword:A,onSubmit:F,onBack:()=>{S(null),n("forgot")},t:a}),r==="feedback"&&s.jsx(Zc,{onBackToLogin:()=>{S(null),n("login")},t:a})]})}function Yc({email:e,password:t,showPassword:a,loading:r,error:n,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:h,onForgot:c,handleGoogleLogin:d,t:u}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:d,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:u.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:h,className:"sass-pg-login-form","data-error":n?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:u.email}),s.jsx("input",{type:"email",value:e,onChange:m=>o(m.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:u.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:m=>i(m.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:m=>l(m.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-login-checkboxLabel",children:u.showPassword})]})]}),n&&s.jsx("p",{className:"sass-pg-login-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:r,children:r?s.jsx($e,{className:"sass-pg-login-spin"}):u.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-login-switch",children:[u.noAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./register",children:u.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-login-forgotPassword",onClick:c,children:u.forgotPasswordText})]})}function Kc({email:e,setEmail:t,loading:a,error:r,onSubmit:n,onBack:o,t:i}){return s.jsxs("form",{onSubmit:n,className:"sass-pg-login-form","data-error":r?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-login-input",placeholder:""})]}),r&&s.jsx("p",{className:"sass-pg-login-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:a,children:a?s.jsx($e,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-login-switch",style:{margin:"0 0 16px"},children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function Jc(e){const[t,a]=e.split("@");if(!t||!a)return e;let r="";t.length<=2?r=t[0]+"*":r=t[0]+"*".repeat(t.length-2)+t[t.length-1];const n=a.lastIndexOf(".");if(n===-1)return`${r}@${a}`;const o=a.slice(0,n),i=a.slice(n);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${r}@${l}${i}`}function $c({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:r,showPassword:n,loading:o,error:i,setConfirmationCode:l,setNewPassword:h,setConfirmNewPassword:c,setShowPassword:d,onSubmit:u,onBack:m,t:p}){const f=p.changePasswordMessage.replace("{{email}}",Jc(e));return s.jsxs("form",{onSubmit:u,className:"sass-pg-login-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:f}),s.jsxs("ul",{className:"sass-pg-login-formUl",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.newPasswordLabel}),s.jsx("input",{type:n?"text":"password",value:a,onChange:g=>h(g.target.value),className:"sass-pg-login-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-login-passwordChecker",children:on.map((g,A)=>{const b=g.test(a);return s.jsxs("div",{className:b?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:b?"✔":"○"}),s.jsx("div",{children:g.label})]},A)})})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:n?"text":"password",value:r,onChange:g=>c(g.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:n,onChange:g=>d(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-login-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-login-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx($e,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-login-switch",children:s.jsx("button",{type:"button",onClick:m,children:p.backButton})})]})}function Zc({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-login-form",children:[s.jsx("p",{className:"sass-pg-login-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",onClick:e,children:t.loginButtonText})]})}function Xc({containerId:e,containerId2:t}){return I.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.widgets.load(r):c<10?(c++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const r=document.getElementById(e),n=document.getElementById(t);if(!r&&!n)return;const o=r?.querySelectorAll("script[src]")??[],i=n?.querySelectorAll("script[src]")??[];[...o,...i].forEach(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(m=>{u.setAttribute(m.name,m.value)}),d.replaceWith(u)});const h=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(h)for(let d=0;d<h.length;d++)h[d]?.remove();let c=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Rc=({currentNew:e})=>e&&e?.hascontent?.hasembeddedtwitter&&s.jsx("script",{src:"https://platform.twitter.com/widgets.js"}),ed=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:r=!1,BackDropAuxHeigthMobile:n}=e,o=ws(),i=I.useMemo(()=>{const m=e?.preview?.sizes;if(m&&Array.isArray(m)&&m.length>0)return m;const p=e?.preview?.original;return p?.url?[{url:p.url,width:p.width||0,height:p.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return s.jsx("div",{className:"sass-com-img-imagePlaceholder"});const{PUBLIC_API_HOST:l="",PUBLIC_ASSETS_URL:h}=e.API_ENV,c=i[0]?.url,d=h&&h!=="false"?h:l,u=c?.startsWith("http")||c?.includes(d)?c:d+c;return s.jsx("figure",{className:"sass-com-img-figure",children:s.jsxs("span",{className:"sass-com-img-backdrop",children:[s.jsx("span",{className:"sass-com-img-backdropAux",style:{height:n||"56.25%"}}),s.jsxs("picture",{children:[s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-img-imageStyled",alt:e.preview?.description||"",src:u,style:{boxShadow:r?"0px 4px 8px 0px #00000033":"0px"}}),t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-com-img-boxPlayIcon",style:{height:a?"40%":"72px"}}),s.jsx(o,{className:"sass-com-img-playStyled",style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},td=e=>s.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),ln={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},sd=({section:e,internalPath:t,banner:a,isVisible:r=!1,stylesConfig:n,API_ENV:o,fetchConfig:i,paths:l})=>{const h=o.FETCH_SIZE_MORE_NEWS??6,[c,d]=I.useState({data:Array.from({length:h},()=>ln)}),[u,m]=I.useState(!1),p=I.useCallback(async()=>{if(!t)return;const A=new URLSearchParams({section:e,currentNewsLink:t}),b=await fetch(`/api/get-more-news?${A}`);if(!b.ok)throw new Error(`HTTP error! status: ${b.status}`);return await b.json()},[e,t]),f=I.useCallback(async()=>{const{PUBLIC_API_FRONT:A,PUBLIC_X_SECURITY_TOKEN:b,PUBLIC_API_PATH_VERSION:E,PUBLIC_PUBLICATION_ID:N}=o;if(!A||!b||!N||!E)throw new Error("Missing required environment variables");const S=await re.get(`${A}${E}/news-list-section`,{params:{size:h+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(N)},headers:{"x-api-token":b,"Content-Type":"application/json"}});return{...S.data,data:S.data.data.filter(w=>w.info.link.internal!==t)}},[e,t,o]),g=I.useCallback(async()=>{if(!(u||!t)){m(!0);try{let A;o.PUBLIC_ENV!=="prod"?A=await p():A=await f(),d({...A,data:A.data.slice(0,h)})}catch(A){console.error("[/api/get-more-news] Error:",A.message),d(void 0)}}},[u,t,o.PUBLIC_ENV,p,f]);return I.useEffect(()=>{r&&g()},[r,g]),!c?.data||c.data.length===0?null:s.jsx(ad,{news:c.data,title:"Más Noticias",...n["Modulo 1x3 Client"]??n["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:o,paths:l,isVisible:r})},ad=e=>{const{news:t,hasLines:a=!1,API_ENV:r}=e,n=o=>a&&(o+1)%3!==0?"sass-bd-m13-contentSeparator":"";return s.jsx("div",{className:"su-grid su-justify-center sass-bd-m13-newsContent",style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((o,i)=>{const{main:l,authors:h,info:c,preview:d,isVideo:u=!1,config:m,overImage:p="default",isTitle:f=!1,isLarge:g=!1,keywords:A}=o;return s.jsx("div",{className:n(i),style:{order:i},children:s.jsxs("section",{className:"sass-com-sc1-content",children:[s.jsx(M,{title:l?.title?.section,href:c?.link?.url??"invalidUrl","aria-label":l?.title?.section??"nota",target:c?.link?.target,children:s.jsx(ed,{isVisible:e.isVisible,preview:d,rounded:e.rounded,isVideo:u,isLarge:g,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(rd,{main:l,SHOW_TAG_BY_SECTION:r.SHOW_TAG_BY_SECTION,authors:h,info:c,preview:d,share:e.share,config:m,overImage:p,isTitle:f,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:A})})]})},i)})})},rd=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:r,keywords:n,info:o}=e,l=(()=>{if(!e?.authors||e.authors.length===0)return"";const d=e.authors[0],u=Ce(e.info?.date?.modified,e.DATE_CONFIG);return d&&e?.config?.showtime&&e.config?.showauthor?`${d.fullname} - ${u}`:d&&e.config?.showauthor?d.fullname:(e?.config?.showtime,"")})(),h=()=>e.main.uppertitle?s.jsx("p",{className:"sass-com-nd-uppertitle",title:e.main.uppertitle,children:e.main.uppertitle}):null,c=()=>{if(r&&n?.tags?.length&&n.tags.length>0){const d=n.tags[0],u=d.name;return s.jsxs("h3",{className:"sass-com-nd-sectionDescriptionContainer",children:[d.approved?s.jsx(M,{"aria-label":u,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:"sass-com-nd-sectionDescription",href:Ue(d,e.paths),children:u}):s.jsx("div",{className:"sass-com-nd-sectionDescription",children:u}),h()]})}else if(o?.section?.url){const d=o.section.name;return s.jsxs("h3",{className:"sass-com-nd-sectionDescriptionContainer",children:[s.jsx(M,{"aria-label":d,className:"sass-com-nd-sectionDescription",href:o.section.url,children:d}),h()]})}return null};return s.jsxs("div",{className:"sass-com-nd-boxInformation",children:[t&&s.jsx(td,{className:"sass-com-nd-dotStyles"}),s.jsx(c,{}),s.jsx("h2",{className:"sass-com-nd-articule",children:s.jsx(M,{className:"sass-com-nd-linkStyled",style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&s.jsx("p",{className:"sass-com-nd-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?ye(e.main?.subtitle?.striped):e.main?.subtitle?.striped}),(e?.config?.showtime||e.config?.showauthor)&&l&&s.jsx(s.Fragment,{children:e.authors?.[0]?.internaluser?s.jsx(M,{block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,className:"sass-com-nd-correspondentLink",href:`/${e.paths.autor}/${e.authors[0].name}`,children:l}):s.jsx("div",{className:"sass-com-nd-correspondent",children:l})})]})},nd={userGreeting:"Hola {{name}}!",logoutButton:"Cerrar Sesion"},od=({user:e,handleLogout:t,message:a,texts:r})=>{const n={...nd,...r?.comentarios},o=()=>{const h=document.querySelector(".user-actions-options");h&&h.classList.toggle("show")},i=e.firstname??"Usuario",l=n.userGreeting.replace("{{name}}",i);return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:i.charAt(0).toUpperCase()}),s.jsxs("div",{style:{flex:1},children:[s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate user-welcome",children:l}),s.jsx("div",{className:"user-actions-options su-hidden su-absolute su-p-2",children:s.jsx("button",{className:"su-bg-transparent su-border-none",onClick:()=>{t()},children:n.logoutButton})}),s.jsx("button",{className:"user-actions-span",onClick:o,children:s.jsx(Mt,{width:13,height:13,fill:"black"})})]}),s.jsx("p",{className:"comment-text su-font-normal",children:a})]})]})})},cn=async(e,t)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:r,COMMENTS_CAPTCHA_API_KEY:n}=t;try{const o=a,i=r,c=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${o}/assessments?key=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",c),c.tokenProperties?.valid===!0}catch(o){return console.error("Error verificando reCAPTCHA Enterprise:",o),!1}};async function id({publication:e,username:t,id:a,type:r,baseUrl:n,captchaToken:o,apiToken:i,securityToken:l,COMMENTS_VARS:h}){if(!e||!t||!a||!r||!o)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof r!="string"||typeof o!="string")throw new Error("Todos los parámetros deben ser strings");if(!await cn(o,h))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const c=`${n}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,d=encodeURIComponent(r),u=new URLSearchParams({publication:e,username:t??!1,id:a,type:d}),m=`${c}?${u.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:r,encodedType:d,url:m});const p=await re.get(m,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":l,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",p.data),p.status===200||p.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:p.status,data:p.data};throw new Error(`Respuesta inesperada del servidor: ${p.status}`)}catch(p){if(console.error("Error reporting comment:",p),re.isAxiosError(p)){const f=p.response?.status,g=p.response?.data;throw f===400?new Error("Datos inválidos para el reporte"):f===401?new Error("Token de API inválido"):f===403?new Error("Acceso denegado para reportar comentario"):f===404?new Error("Comentario no encontrado"):f===409?new Error("El comentario ya fue reportado por este usuario"):f===500?new Error("Error interno del servidor CMS"):new Error(g?.error||g?.message||`Error HTTP ${f}: No se pudo reportar el comentario`)}throw p}}const _t={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 ld(e){return _t[e]}const Te=300,Ie={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function cd(e){const t=e.split(" ");if(t.length!==3)return e;const[a,r,n]=t,o=r.charAt(0).toUpperCase()+r.slice(1).toLowerCase();return`${a} ${o} ${n}`}const Gt=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const r=e.current?.value||"",n=r.length>Te,{PUBLIC_ENV:o}=a,i=o==="local",l=r.trim()!==""&&(i||t!=="")&&!n,h=n?`No debes exceder el limite de ${Te} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:l,text:h}},dn=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},dd=(e,t)=>{const a=dn(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};var jt={exports:{}},Qt={exports:{}},se={};var hn;function hd(){if(hn)return se;hn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function N(w){if(typeof w=="object"&&w!==null){var U=w.$$typeof;switch(U){case t:switch(w=w.type,w){case h:case c:case r:case o:case n:case u:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case f:case p:case i:return w;default:return U}}case a:return U}}}function S(w){return N(w)===c}return se.AsyncMode=h,se.ConcurrentMode=c,se.ContextConsumer=l,se.ContextProvider=i,se.Element=t,se.ForwardRef=d,se.Fragment=r,se.Lazy=f,se.Memo=p,se.Portal=a,se.Profiler=o,se.StrictMode=n,se.Suspense=u,se.isAsyncMode=function(w){return S(w)||N(w)===h},se.isConcurrentMode=S,se.isContextConsumer=function(w){return N(w)===l},se.isContextProvider=function(w){return N(w)===i},se.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},se.isForwardRef=function(w){return N(w)===d},se.isFragment=function(w){return N(w)===r},se.isLazy=function(w){return N(w)===f},se.isMemo=function(w){return N(w)===p},se.isPortal=function(w){return N(w)===a},se.isProfiler=function(w){return N(w)===o},se.isStrictMode=function(w){return N(w)===n},se.isSuspense=function(w){return N(w)===u},se.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===o||w===n||w===u||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===f||w.$$typeof===p||w.$$typeof===i||w.$$typeof===l||w.$$typeof===d||w.$$typeof===A||w.$$typeof===b||w.$$typeof===E||w.$$typeof===g)},se.typeOf=N,se}var ae={};var un;function ud(){return un||(un=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function N(D){return typeof D=="string"||typeof D=="function"||D===r||D===c||D===o||D===n||D===u||D===m||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===p||D.$$typeof===i||D.$$typeof===l||D.$$typeof===d||D.$$typeof===A||D.$$typeof===b||D.$$typeof===E||D.$$typeof===g)}function S(D){if(typeof D=="object"&&D!==null){var de=D.$$typeof;switch(de){case t:var Kt=D.type;switch(Kt){case h:case c:case r:case o:case n:case u:return Kt;default:var Ln=Kt&&Kt.$$typeof;switch(Ln){case l:case d:case f:case p:case i:return Ln;default:return de}}case a:return de}}}var w=h,U=c,P=l,H=i,Y=t,F=d,B=r,V=f,te=p,_=a,L=o,k=n,G=u,x=!1;function W(D){return x||(x=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(D)||S(D)===h}function C(D){return S(D)===c}function T(D){return S(D)===l}function q(D){return S(D)===i}function Q(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function j(D){return S(D)===d}function z(D){return S(D)===r}function K(D){return S(D)===f}function J(D){return S(D)===p}function R(D){return S(D)===a}function ee(D){return S(D)===o}function $(D){return S(D)===n}function ne(D){return S(D)===u}ae.AsyncMode=w,ae.ConcurrentMode=U,ae.ContextConsumer=P,ae.ContextProvider=H,ae.Element=Y,ae.ForwardRef=F,ae.Fragment=B,ae.Lazy=V,ae.Memo=te,ae.Portal=_,ae.Profiler=L,ae.StrictMode=k,ae.Suspense=G,ae.isAsyncMode=W,ae.isConcurrentMode=C,ae.isContextConsumer=T,ae.isContextProvider=q,ae.isElement=Q,ae.isForwardRef=j,ae.isFragment=z,ae.isLazy=K,ae.isMemo=J,ae.isPortal=R,ae.isProfiler=ee,ae.isStrictMode=$,ae.isSuspense=ne,ae.isValidElementType=N,ae.typeOf=S})()),ae}var mn;function Es(){return mn||(mn=1,process.env.NODE_ENV==="production"?Qt.exports=hd():Qt.exports=ud()),Qt.exports}var Ts,fn;function md(){if(fn)return Ts;fn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function n(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var h=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(h.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ts=n()?Object.assign:function(o,i){for(var l,h=r(o),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var u in l)t.call(l,u)&&(h[u]=l[u]);if(e){c=e(l);for(var m=0;m<c.length;m++)a.call(l,c[m])&&(h[c[m]]=l[c[m]])}}return h},Ts}var Is,gn;function Us(){if(gn)return Is;gn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Is=e,Is}var ks,pn;function An(){return pn||(pn=1,ks=Function.call.bind(Object.prototype.hasOwnProperty)),ks}var Ls,wn;function fd(){if(wn)return Ls;wn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Us(),a={},r=An();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function n(o,i,l,h,c){if(process.env.NODE_ENV!=="production"){for(var d in o)if(r(o,d)){var u;try{if(typeof o[d]!="function"){var m=Error((h||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}u=o[d](i,d,h,l,null,t)}catch(f){u=f}if(u&&!(u instanceof Error)&&e((h||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var p=c?c():"";e("Failed "+l+" type: "+u.message+(p??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},Ls=n,Ls}var Ps,bn;function gd(){if(bn)return Ps;bn=1;var e=Es(),t=md(),a=Us(),r=An(),n=fd(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var h="Warning: "+l;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return Ps=function(l,h){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(C){var T=C&&(c&&C[c]||C[d]);if(typeof T=="function")return T}var m="<<anonymous>>",p={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:E(),arrayOf:N,element:S(),elementType:w(),instanceOf:U,node:F(),objectOf:H,oneOf:P,oneOfType:Y,shape:V,exact:te};function f(C,T){return C===T?C!==0||1/C===1/T:C!==C&&T!==T}function g(C,T){this.message=C,this.data=T&&typeof T=="object"?T:{},this.stack=""}g.prototype=Error.prototype;function A(C){if(process.env.NODE_ENV!=="production")var T={},q=0;function Q(z,K,J,R,ee,$,ne){if(R=R||m,$=$||J,ne!==a){if(h){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=R+":"+J;!T[de]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+$+"` prop on `"+R+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),T[de]=!0,q++)}}return K[J]==null?z?K[J]===null?new g("The "+ee+" `"+$+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new g("The "+ee+" `"+$+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:C(K,J,R,ee,$)}var j=Q.bind(null,!1);return j.isRequired=Q.bind(null,!0),j}function b(C){function T(q,Q,j,z,K,J){var R=q[Q],ee=k(R);if(ee!==C){var $=G(R);return new g("Invalid "+z+" `"+K+"` of type "+("`"+$+"` supplied to `"+j+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return A(T)}function E(){return A(i)}function N(C){function T(q,Q,j,z,K){if(typeof C!="function")return new g("Property `"+K+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var J=q[Q];if(!Array.isArray(J)){var R=k(J);return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected an array."))}for(var ee=0;ee<J.length;ee++){var $=C(J,ee,j,z,K+"["+ee+"]",a);if($ instanceof Error)return $}return null}return A(T)}function S(){function C(T,q,Q,j,z){var K=T[q];if(!l(K)){var J=k(K);return new g("Invalid "+j+" `"+z+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return A(C)}function w(){function C(T,q,Q,j,z){var K=T[q];if(!e.isValidElementType(K)){var J=k(K);return new g("Invalid "+j+" `"+z+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return A(C)}function U(C){function T(q,Q,j,z,K){if(!(q[Q]instanceof C)){var J=C.name||m,R=W(q[Q]);return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected ")+("instance of `"+J+"`."))}return null}return A(T)}function P(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function T(q,Q,j,z,K){for(var J=q[Q],R=0;R<C.length;R++)if(f(J,C[R]))return null;var ee=JSON.stringify(C,function(ne,D){var de=G(D);return de==="symbol"?String(D):D});return new g("Invalid "+z+" `"+K+"` of value `"+String(J)+"` "+("supplied to `"+j+"`, expected one of "+ee+"."))}return A(T)}function H(C){function T(q,Q,j,z,K){if(typeof C!="function")return new g("Property `"+K+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected an object."));for(var ee in J)if(r(J,ee)){var $=C(J,ee,j,z,K+"."+ee,a);if($ instanceof Error)return $}return null}return A(T)}function Y(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var T=0;T<C.length;T++){var q=C[T];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(q)+" at index "+T+"."),i}function Q(j,z,K,J,R){for(var ee=[],$=0;$<C.length;$++){var ne=C[$],D=ne(j,z,K,J,R,a);if(D==null)return null;D.data&&r(D.data,"expectedType")&&ee.push(D.data.expectedType)}var de=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new g("Invalid "+J+" `"+R+"` supplied to "+("`"+K+"`"+de+"."))}return A(Q)}function F(){function C(T,q,Q,j,z){return _(T[q])?null:new g("Invalid "+j+" `"+z+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return A(C)}function B(C,T,q,Q,j){return new g((C||"React class")+": "+T+" type `"+q+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function V(C){function T(q,Q,j,z,K){var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type `"+R+"` "+("supplied to `"+j+"`, expected `object`."));for(var ee in C){var $=C[ee];if(typeof $!="function")return B(j,z,K,ee,G($));var ne=$(J,ee,j,z,K+"."+ee,a);if(ne)return ne}return null}return A(T)}function te(C){function T(q,Q,j,z,K){var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type `"+R+"` "+("supplied to `"+j+"`, expected `object`."));var ee=t({},q[Q],C);for(var $ in ee){var ne=C[$];if(r(C,$)&&typeof ne!="function")return B(j,z,K,$,G(ne));if(!ne)return new g("Invalid "+z+" `"+K+"` key `"+$+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(q[Q],null," ")+`
|
|
260
|
+
`}}catch(b){console.error("insertVideos error for",p,b),A=""}else A=m;r=u,a+=A,n.lastIndex=u}return a+=e.slice(r),a=Lc(a),a}async function Dc(e){const{news:t,banners:a,newsRelatedResponses:r,newsRelatedListResponses:n,slug:o,itemList:i,socials:l,getVideos:h,commonServices:c}=e;let d=t?.body?.rendered??"";d=d.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),d=d.replace(/ /g,""),d=Bc(d,a),d=Oc(d),d=await Pc(d),d=await Mc(d,e.texts,r),d=await qc(d,h),d=Uc(d),d=kc(d);const u=t.main.sources??[],{NEWS_JOURNALIST_COMPONENT:m,CONFIG_blockDefaultTwitterHydrator:p}=O(),f=t.config.articlepreview===je.fotoGaleria&&t.hascontent?.hasgalleryimages;return s.jsxs(s.Fragment,{children:[o!=="liveblogs"&&e.showHeaderImage?f?s.jsx(an,{commonServices:c,newsformated:t,internal:t.info.link.internal}):s.jsx(Lr,{preview:t.preview}):null,s.jsx(fe,{banners:a,name:"block_1"}),s.jsx("div",{className:"sass-pg-nrs-journalistArticleContent",children:m==="op1"?s.jsx(Cc,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):s.jsx(Ic,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),s.jsx(yc,{summary:t.main.summary}),s.jsx("main",{className:"sass-pg-nrs-contentNews",suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:d}}),s.jsx(wc,{texts:e.texts,itemList:i,banners:a,slug:o,getVideos:h,newsRelatedListResponses:n??[]}),u.length>0&&s.jsxs("div",{className:"sass-pg-nrs-noteSource",children:[s.jsx(Sc,{}),s.jsx("p",{children:String(e.texts.noteSource??"")+(u.length===1?"":"s")+": "+u.map(g=>g.name).join(", ")})]}),!p&&t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&s.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const _c=e=>{const{config:t}=e,a=t.articlepreview;return!![je.videoEmbedded,je.videoYouTube,je.iframe].includes(a)},nn=async e=>{const{texts:t,autorIcon:a,commonServices:r,slug:n,noteShare:o,paths:i,banners:l,news:h,newsRelatedResponses:c=[],newsRelatedListResponses:d=[],itemList:u=[],socials:m,getVideos:p}=e;if(h)return s.jsxs(s.Fragment,{children:[s.jsx(Dc,{texts:t,autorIcon:a,socials:m,news:h,banners:l,newsRelatedResponses:c,newsRelatedListResponses:d,itemList:u,slug:n,getVideos:p,noteShare:o,paths:i,showHeaderImage:!_c(h),commonServices:r}),s.jsx(fe,{banners:l??[],name:"block_3"})]})},Gc=async e=>{const{ranking:t=[],banners:a,autor:r=[],news:n=[],newsRelatedResponses:o=[],newsRelatedListResponses:i=[],itemList:l=[],socials:h,getVideos:c}=e;if(!(!n||!n[0]))return s.jsxs(s.Fragment,{children:[s.jsx(tn,{option:e.slug,news:n,paths:e.paths,commonServices:e.commonServices,banners:e.banners,headerSectionStyles:e.headerSectionStyles,newsDescriptionSectionTag:e.newsDescriptionSectionTag}),s.jsx(lc,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:l,ranking:t,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(fe,{banners:a??[],name:"right_1"}),banner:s.jsx(fe,{banners:a??[],name:"right_2"}),complement:s.jsxs("div",{id:"comentarios",className:"sass-pg-news-complementContent",suppressHydrationWarning:!0,children:[r.length>0&&s.jsx(Gr,{texts:e.texts,autorIcon:e.autorIcon,autor:r[0],paths:e.paths}),n[0].authors.length>1&&s.jsx(jr,{news:n[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),n[0]?.keywords?.tags&&n[0]?.keywords?.tags?.length>0&&s.jsx("div",{className:"sass-pg-news-tagContent sass-note-tags-content",children:s.jsx(_r,{tags:n[0]?.keywords?.tags,paths:e.paths})})]}),children:s.jsx(nn,{texts:e.texts,autorIcon:e.autorIcon,socials:h,news:n[0],banners:a,newsRelatedResponses:o,newsRelatedListResponses:i,itemList:l,slug:e.slug,getVideos:c,noteShare:e.noteShare,paths:e.paths,commonServices:e.commonServices})})]})},jc=e=>s.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("g",{children:s.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),Qc=e=>s.jsx("form",{className:"su-w-full su-flex su-justify-center su-gap-4 sass-pg-buscar-content",children:s.jsxs("div",{className:"sass-pg-buscar-inputStyled sass-buscar-form",children:[s.jsx("input",{className:"sass-pg-buscar-inputStyledTest",defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),s.jsx("button",{className:"sass-pg-buscar-buttonStyled",type:"submit",children:s.jsx(jc,{className:"sass-pg-buscar-searchStyled"})})]})}),$e=({className:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:e,children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Fc={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},ot={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function Hc(e){return{email:{label:e?.email??ot.email.label,required:!0},given_name:{label:e?.given_name??ot.given_name.label,required:!0},family_name:{label:e?.family_name??ot.family_name.label,required:!0},password:{label:e?.password??ot.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??ot.confirmPassword.label,required:!0}}}const Ee=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],on=[{label:"La contraseña debe tener al menos 8 caracteres",test:Ee[0]},{label:"Usa un número",test:Ee[1]},{label:"Usa una letra minúscula",test:Ee[2]},{label:"Usa una letra mayúscula",test:Ee[3]},{label:"Usa un símbolo",test:Ee[4]}];function Vc({texts:e,API_ENV:t,termsAndConditionsUrl:a}){const r={...Fc,...e?.comentarios},n=I.useMemo(()=>Hc(e?.comentarios?.registerForm),[e?.comentarios?.registerForm]),o=I.useMemo(()=>[{label:r.passwordRuleMinLength,test:Ee[0]},{label:r.passwordRuleNumber,test:Ee[1]},{label:r.passwordRuleLowercase,test:Ee[2]},{label:r.passwordRuleUppercase,test:Ee[3]},{label:r.passwordRuleSymbol,test:Ee[4]}],[r.passwordRuleMinLength,r.passwordRuleNumber,r.passwordRuleLowercase,r.passwordRuleUppercase,r.passwordRuleSymbol]),[i,l]=I.useState({}),[h,c]=I.useState(!1),[d,u]=I.useState(!1),[m,p]=I.useState(null),[f,g]=I.useState("register"),A=async()=>{if(t.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}const w=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${w}`},b=(w,U)=>{l(P=>({...P,[w]:U}))},E=async w=>{w.preventDefault(),p(null),u(!0);try{const U=Object.keys(n).filter(V=>!["username","password","confirmPassword"].includes(V)).map(V=>({Name:V,Value:i[V]}));if(U.some(V=>{if(!V.Value||V.Value.trim()==="")return!0}))return u(!1),p(r.errorCompleteFields);if(i.password!==i.confirmPassword){p(r.errorPasswordMismatch);return}const P=i.password||"";if(o.some(V=>!V.test(P))){p(r.errorPasswordInvalid);return}const Y=Math.floor(Date.now()/1e3);U.push({Name:"updated_at",Value:String(Y)});const F=t.PUBLIC_ENV==="local"?"token":await Vs("comment_register",t.CAPTCHA_KEY??"");if(!F)throw new Error("Captcha token no generado");const B=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,password:i.password,userAttributes:U,token:F})});if(!B.ok){const V=await B.json().catch(()=>({}));if(V.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email})}),g("confirm");return}throw new Error(V?.error||"Error al crear usuario")}g("confirm")}catch(U){console.log(U),p(U?.message||U?.error||r.errorUnexpected)}finally{u(!1)}},N=async w=>{if(w.preventDefault(),!i.confirmationCode){p(r.errorVerificationCodeRequired);return}p(null),u(!0);try{const U=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,code:i.confirmationCode})});if(!U.ok){const P=await U.json().catch(()=>({}));throw new Error(P?.error||"Error al confirmar usuario")}g("success")}catch(U){p(U?.message||r.errorUnexpected)}finally{u(!1)}},S=i.password||"";return s.jsxs(s.Fragment,{children:[f==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:A,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:r.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:E,className:"sass-pg-login-form","data-error":m?"true":"false",children:[s.jsx("ul",{className:"sass-pg-login-formUl",children:Object.entries(n).map(([w,{label:U}])=>s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:U}),s.jsx("input",{type:w.toLowerCase().includes("password")?h?"text":"password":w==="birthdate"?"date":w==="email"?"email":w==="phone_number"?"tel":"text",name:w,value:i[w]||"",onChange:P=>b(w,P.target.value),className:"sass-pg-login-input",placeholder:""}),w==="password"&&s.jsx("div",{className:"sass-pg-login-passwordChecker",children:o.map((P,H)=>{const Y=P.test(S);return s.jsxs("div",{className:Y?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:Y?"✔":"○"}),s.jsx("div",{children:P.label})]},H)})}),w==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:h,onChange:P=>c(P.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-login-checkboxLabel",children:r.showPasswordsLabel})]})]},w))}),m&&s.jsx("p",{className:"sass-pg-login-error",children:m}),s.jsxs("p",{className:"sass-pg-login-terms",children:[r.termsPrefix," ",s.jsx("a",{href:a??"/pages/terminos-y-condiciones",target:"_blank",children:r.termsLinkText})," ",r.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:d,children:d?s.jsx($e,{}):r.createAccountButton})]})]}),f==="confirm"&&s.jsxs("form",{onSubmit:N,className:"sass-pg-login-form","data-error":m?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:r.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:i.confirmationCode||"",onChange:w=>b("confirmationCode",w.target.value),className:"sass-pg-login-input",required:!0})]}),m&&s.jsx("p",{className:"sass-pg-login-error",children:m}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:d,children:d?s.jsx($e,{}):r.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-login-switch",children:[r.alreadyConfirmedText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:r.loginButtonText})]})]}),f==="success"&&s.jsxs("form",{className:"sass-pg-login-form",children:[s.jsxs("div",{className:"sass-pg-login-successContainer",children:[s.jsx("div",{className:"sass-pg-login-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"currentColor",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-login-successMessage",children:[s.jsx("p",{children:r.successTitle}),s.jsx("p",{children:r.successMessage})]})]}),s.jsx("a",{href:"./login",type:"submit",className:"sass-pg-login-primary",children:r.loginButtonText})]}),f==="register"&&s.jsxs("p",{className:"sass-pg-login-switch",children:[r.alreadyHasAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:r.loginButtonText})]})]})}const zc={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Wc({API_ENV:e,texts:t}){const a={...zc,...t?.comentarios},[r,n]=I.useState("login"),[o,i]=I.useState(""),[l,h]=I.useState(""),[c,d]=I.useState(""),[u,m]=I.useState(""),[p,f]=I.useState(""),[g,A]=I.useState(!1),[b,E]=I.useState(!1),[N,S]=I.useState(null);I.useEffect(()=>{if(typeof window>"u")return;window.location.hash.includes("forgot")&&r==="login"&&n("forgot"),r==="login"&&U()});const w=B=>document.cookie.split("; ").find(V=>V.startsWith(B+"="))?.split("=")[1],U=async()=>{if(document.cookie.search(e.COGNITO_AUTH_PREFIX+"IS_AUTH=true")!==-1){if(!window)return;const B=w("redirect_after_login_1");console.log("Redirect path after login:",B,document.cookie,document.cookie.search("redirect_after_login_1=")!==-1),B&&B!==""?(window.location.pathname=B,window.location.hash="comentarios"):window.location.pathname="/auth/success"}},P=async()=>{if(e.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}let B="/auth/login";const V=w("redirect_after_login_1");V&&V!==""&&(B=V),window.location.href=`/api/auth/login?redirect=${B}`},H=async B=>{if(!b){if(B.preventDefault(),o===""||l===""){S("Complete todos los campos");return}S(null),E(!0);try{const V=e.PUBLIC_ENV==="local"?"token":await Vs("comment_login",e.CAPTCHA_KEY||"");if(!V)throw new Error("Captcha token no generado");const te=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o,password:l,token:V})});if(!te.ok){const _=await te.json().catch(()=>({}));throw new Error(_?.error||"Ha ocurrido un error")}await U();return}catch(V){S(V?.message||"Error inesperado")}finally{E(!1)}}},Y=async B=>{if(!b){B.preventDefault(),S(null),E(!0);try{const V=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o})});if(!V.ok){const te=await V.json().catch(()=>({}));throw new Error(te?.error||"Error al enviar código")}h(""),n("changePassword")}catch(V){S(V?.message||"Error inesperado")}finally{E(!1)}}},F=async B=>{if(b)return;if(B.preventDefault(),u!==p){S("Las contraseñas no coinciden");return}if(on.some(te=>!te.test(u))){S("La contraseña no cumple con los requisitos");return}S(null),E(!0);try{const te=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,code:c,newPassword:u})});if(!te.ok){const _=await te.json().catch(()=>({}));throw new Error(_?.error||"Error al cambiar contraseña")}n("feedback")}catch(te){S(te?.message||"Error inesperado")}finally{E(!1)}};return s.jsxs(s.Fragment,{children:[r==="login"&&s.jsx(Yc,{email:o,password:l,showPassword:g,loading:b,error:N,setEmail:i,setPassword:h,setShowPassword:A,onSubmit:H,onForgot:()=>{S(null),n("forgot")},handleGoogleLogin:P,t:a}),r==="forgot"&&s.jsx(Kc,{email:o,setEmail:i,loading:b,error:N,onSubmit:Y,onBack:()=>{S(null),n("login")},t:a}),r==="changePassword"&&s.jsx($c,{email:o,confirmationCode:c,newPassword:u,confirmNewPassword:p,showPassword:g,loading:b,error:N,setConfirmationCode:d,setNewPassword:m,setConfirmNewPassword:f,setShowPassword:A,onSubmit:F,onBack:()=>{S(null),n("forgot")},t:a}),r==="feedback"&&s.jsx(Zc,{onBackToLogin:()=>{S(null),n("login")},t:a})]})}function Yc({email:e,password:t,showPassword:a,loading:r,error:n,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:h,onForgot:c,handleGoogleLogin:d,t:u}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:d,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:u.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:h,className:"sass-pg-login-form","data-error":n?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:u.email}),s.jsx("input",{type:"email",value:e,onChange:m=>o(m.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:u.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:m=>i(m.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:m=>l(m.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-login-checkboxLabel",children:u.showPassword})]})]}),n&&s.jsx("p",{className:"sass-pg-login-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:r,children:r?s.jsx($e,{className:"sass-pg-login-spin"}):u.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-login-switch",children:[u.noAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./register",children:u.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-login-forgotPassword",onClick:c,children:u.forgotPasswordText})]})}function Kc({email:e,setEmail:t,loading:a,error:r,onSubmit:n,onBack:o,t:i}){return s.jsxs("form",{onSubmit:n,className:"sass-pg-login-form","data-error":r?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-login-input",placeholder:""})]}),r&&s.jsx("p",{className:"sass-pg-login-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:a,children:a?s.jsx($e,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-login-switch",style:{margin:"0 0 16px"},children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function Jc(e){const[t,a]=e.split("@");if(!t||!a)return e;let r="";t.length<=2?r=t[0]+"*":r=t[0]+"*".repeat(t.length-2)+t[t.length-1];const n=a.lastIndexOf(".");if(n===-1)return`${r}@${a}`;const o=a.slice(0,n),i=a.slice(n);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${r}@${l}${i}`}function $c({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:r,showPassword:n,loading:o,error:i,setConfirmationCode:l,setNewPassword:h,setConfirmNewPassword:c,setShowPassword:d,onSubmit:u,onBack:m,t:p}){const f=p.changePasswordMessage.replace("{{email}}",Jc(e));return s.jsxs("form",{onSubmit:u,className:"sass-pg-login-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:f}),s.jsxs("ul",{className:"sass-pg-login-formUl",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.newPasswordLabel}),s.jsx("input",{type:n?"text":"password",value:a,onChange:g=>h(g.target.value),className:"sass-pg-login-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-login-passwordChecker",children:on.map((g,A)=>{const b=g.test(a);return s.jsxs("div",{className:b?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:b?"✔":"○"}),s.jsx("div",{children:g.label})]},A)})})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:n?"text":"password",value:r,onChange:g=>c(g.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:n,onChange:g=>d(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-login-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-login-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx($e,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-login-switch",children:s.jsx("button",{type:"button",onClick:m,children:p.backButton})})]})}function Zc({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-login-form",children:[s.jsx("p",{className:"sass-pg-login-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",onClick:e,children:t.loginButtonText})]})}function Xc({containerId:e,containerId2:t}){return I.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.widgets.load(r):c<10?(c++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const r=document.getElementById(e),n=document.getElementById(t);if(!r&&!n)return;const o=r?.querySelectorAll("script[src]")??[],i=n?.querySelectorAll("script[src]")??[];[...o,...i].forEach(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(m=>{u.setAttribute(m.name,m.value)}),d.replaceWith(u)});const h=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(h)for(let d=0;d<h.length;d++)h[d]?.remove();let c=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Rc=({currentNew:e})=>e&&e?.hascontent?.hasembeddedtwitter&&s.jsx("script",{src:"https://platform.twitter.com/widgets.js"}),ed=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:r=!1,BackDropAuxHeigthMobile:n}=e,o=ws(),i=I.useMemo(()=>{const m=e?.preview?.sizes;if(m&&Array.isArray(m)&&m.length>0)return m;const p=e?.preview?.original;return p?.url?[{url:p.url,width:p.width||0,height:p.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return s.jsx("div",{className:"sass-com-img-imagePlaceholder"});const{PUBLIC_API_HOST:l="",PUBLIC_ASSETS_URL:h}=e.API_ENV,c=i[0]?.url,d=h&&h!=="false"?h:l,u=c?.startsWith("http")||c?.includes(d)?c:d+c;return s.jsx("figure",{className:"sass-com-img-figure",children:s.jsxs("span",{className:"sass-com-img-backdrop",children:[s.jsx("span",{className:"sass-com-img-backdropAux",style:{height:n||"56.25%"}}),s.jsxs("picture",{children:[s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-img-imageStyled",alt:e.preview?.description||"",src:u,style:{boxShadow:r?"0px 4px 8px 0px #00000033":"0px"}}),t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-com-img-boxPlayIcon",style:{height:a?"40%":"72px"}}),s.jsx(o,{className:"sass-com-img-playStyled",style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},td=e=>s.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),ln={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},sd=({section:e,internalPath:t,banner:a,isVisible:r=!1,stylesConfig:n,API_ENV:o,fetchConfig:i,paths:l})=>{const h=o.FETCH_SIZE_MORE_NEWS??6,[c,d]=I.useState({data:Array.from({length:h},()=>ln)}),[u,m]=I.useState(!1),p=I.useCallback(async()=>{if(!t)return;const A=new URLSearchParams({section:e,currentNewsLink:t}),b=await fetch(`/api/get-more-news?${A}`);if(!b.ok)throw new Error(`HTTP error! status: ${b.status}`);return await b.json()},[e,t]),f=I.useCallback(async()=>{const{PUBLIC_API_FRONT:A,PUBLIC_X_SECURITY_TOKEN:b,PUBLIC_API_PATH_VERSION:E,PUBLIC_PUBLICATION_ID:N}=o;if(!A||!b||!N||!E)throw new Error("Missing required environment variables");const S=await re.get(`${A}${E}/news-list-section`,{params:{size:h+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(N)},headers:{"x-api-token":b,"Content-Type":"application/json"}});return{...S.data,data:S.data.data.filter(w=>w.info.link.internal!==t)}},[e,t,o]),g=I.useCallback(async()=>{if(!(u||!t)){m(!0);try{let A;o.PUBLIC_ENV!=="prod"?A=await p():A=await f(),d({...A,data:A.data.slice(0,h)})}catch(A){console.error("[/api/get-more-news] Error:",A.message),d(void 0)}}},[u,t,o.PUBLIC_ENV,p,f]);return I.useEffect(()=>{r&&g()},[r,g]),!c?.data||c.data.length===0?null:s.jsx(ad,{news:c.data,title:"Más Noticias",...n["Modulo 1x3 Client"]??n["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:o,paths:l,isVisible:r})},ad=e=>{const{news:t,hasLines:a=!1,API_ENV:r}=e,n=o=>a&&(o+1)%3!==0?"sass-bd-m13-contentSeparator":"";return s.jsx("div",{className:"su-grid su-justify-center sass-bd-m13-newsContent",style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((o,i)=>{const{main:l,authors:h,info:c,preview:d,isVideo:u=!1,config:m,overImage:p="default",isTitle:f=!1,isLarge:g=!1,keywords:A}=o;return s.jsx("div",{className:n(i),style:{order:i},children:s.jsxs("section",{className:"sass-com-sc1-content",children:[s.jsx(M,{title:l?.title?.section,href:c?.link?.url??"invalidUrl","aria-label":l?.title?.section??"nota",target:c?.link?.target,children:s.jsx(ed,{isVisible:e.isVisible,preview:d,rounded:e.rounded,isVideo:u,isLarge:g,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(rd,{main:l,SHOW_TAG_BY_SECTION:r.SHOW_TAG_BY_SECTION,authors:h,info:c,preview:d,share:e.share,config:m,overImage:p,isTitle:f,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:A})})]})},i)})})},rd=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:r,keywords:n,info:o}=e,l=(()=>{if(!e?.authors||e.authors.length===0)return"";const d=e.authors[0],u=Ce(e.info?.date?.modified,e.DATE_CONFIG);return d&&e?.config?.showtime&&e.config?.showautho&&d.fullname?`${d.fullname} - ${u}`:d&&d.fullname&&e.config?.showauthor?d.fullname:(e?.config?.showtime,"")})(),h=()=>e.main.uppertitle?s.jsx("p",{className:"sass-com-nd-uppertitle",title:e.main.uppertitle,children:e.main.uppertitle}):null,c=()=>{if(r&&n?.tags?.length&&n.tags.length>0){const d=n.tags[0],u=d.name;return s.jsxs("h3",{className:"sass-com-nd-sectionDescriptionContainer",children:[d.approved?s.jsx(M,{"aria-label":u,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:"sass-com-nd-sectionDescription",href:Ue(d,e.paths),children:u}):s.jsx("div",{className:"sass-com-nd-sectionDescription",children:u}),h()]})}else if(o?.section?.url){const d=o.section.name;return s.jsxs("h3",{className:"sass-com-nd-sectionDescriptionContainer",children:[s.jsx(M,{"aria-label":d,className:"sass-com-nd-sectionDescription",href:o.section.url,children:d}),h()]})}return null};return s.jsxs("div",{className:"sass-com-nd-boxInformation",children:[t&&s.jsx(td,{className:"sass-com-nd-dotStyles"}),s.jsx(c,{}),s.jsx("h2",{className:"sass-com-nd-articule",children:s.jsx(M,{className:"sass-com-nd-linkStyled",style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&s.jsx("p",{className:"sass-com-nd-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?ye(e.main?.subtitle?.striped):e.main?.subtitle?.striped}),(e?.config?.showtime||e.config?.showauthor)&&l&&s.jsx(s.Fragment,{children:e.authors?.[0]?.internaluser?s.jsx(M,{block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,className:"sass-com-nd-correspondentLink",href:`/${e.paths.autor}/${e.authors[0].name}`,children:l}):s.jsx("div",{className:"sass-com-nd-correspondent",children:l})})]})},nd={userGreeting:"Hola {{name}}!",logoutButton:"Cerrar Sesion"},od=({user:e,handleLogout:t,message:a,texts:r})=>{const n={...nd,...r?.comentarios},o=()=>{const h=document.querySelector(".user-actions-options");h&&h.classList.toggle("show")},i=e.firstname??"Usuario",l=n.userGreeting.replace("{{name}}",i);return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:i.charAt(0).toUpperCase()}),s.jsxs("div",{style:{flex:1},children:[s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate user-welcome",children:l}),s.jsx("div",{className:"user-actions-options su-hidden su-absolute su-p-2",children:s.jsx("button",{className:"su-bg-transparent su-border-none",onClick:()=>{t()},children:n.logoutButton})}),s.jsx("button",{className:"user-actions-span",onClick:o,children:s.jsx(Mt,{width:13,height:13,fill:"black"})})]}),s.jsx("p",{className:"comment-text su-font-normal",children:a})]})]})})},cn=async(e,t)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:r,COMMENTS_CAPTCHA_API_KEY:n}=t;try{const o=a,i=r,c=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${o}/assessments?key=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",c),c.tokenProperties?.valid===!0}catch(o){return console.error("Error verificando reCAPTCHA Enterprise:",o),!1}};async function id({publication:e,username:t,id:a,type:r,baseUrl:n,captchaToken:o,apiToken:i,securityToken:l,COMMENTS_VARS:h}){if(!e||!t||!a||!r||!o)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof r!="string"||typeof o!="string")throw new Error("Todos los parámetros deben ser strings");if(!await cn(o,h))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const c=`${n}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,d=encodeURIComponent(r),u=new URLSearchParams({publication:e,username:t??!1,id:a,type:d}),m=`${c}?${u.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:r,encodedType:d,url:m});const p=await re.get(m,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":l,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",p.data),p.status===200||p.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:p.status,data:p.data};throw new Error(`Respuesta inesperada del servidor: ${p.status}`)}catch(p){if(console.error("Error reporting comment:",p),re.isAxiosError(p)){const f=p.response?.status,g=p.response?.data;throw f===400?new Error("Datos inválidos para el reporte"):f===401?new Error("Token de API inválido"):f===403?new Error("Acceso denegado para reportar comentario"):f===404?new Error("Comentario no encontrado"):f===409?new Error("El comentario ya fue reportado por este usuario"):f===500?new Error("Error interno del servidor CMS"):new Error(g?.error||g?.message||`Error HTTP ${f}: No se pudo reportar el comentario`)}throw p}}const _t={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 ld(e){return _t[e]}const Te=300,Ie={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function cd(e){const t=e.split(" ");if(t.length!==3)return e;const[a,r,n]=t,o=r.charAt(0).toUpperCase()+r.slice(1).toLowerCase();return`${a} ${o} ${n}`}const Gt=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const r=e.current?.value||"",n=r.length>Te,{PUBLIC_ENV:o}=a,i=o==="local",l=r.trim()!==""&&(i||t!=="")&&!n,h=n?`No debes exceder el limite de ${Te} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:l,text:h}},dn=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},dd=(e,t)=>{const a=dn(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};var jt={exports:{}},Qt={exports:{}},se={};var hn;function hd(){if(hn)return se;hn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function N(w){if(typeof w=="object"&&w!==null){var U=w.$$typeof;switch(U){case t:switch(w=w.type,w){case h:case c:case r:case o:case n:case u:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case f:case p:case i:return w;default:return U}}case a:return U}}}function S(w){return N(w)===c}return se.AsyncMode=h,se.ConcurrentMode=c,se.ContextConsumer=l,se.ContextProvider=i,se.Element=t,se.ForwardRef=d,se.Fragment=r,se.Lazy=f,se.Memo=p,se.Portal=a,se.Profiler=o,se.StrictMode=n,se.Suspense=u,se.isAsyncMode=function(w){return S(w)||N(w)===h},se.isConcurrentMode=S,se.isContextConsumer=function(w){return N(w)===l},se.isContextProvider=function(w){return N(w)===i},se.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},se.isForwardRef=function(w){return N(w)===d},se.isFragment=function(w){return N(w)===r},se.isLazy=function(w){return N(w)===f},se.isMemo=function(w){return N(w)===p},se.isPortal=function(w){return N(w)===a},se.isProfiler=function(w){return N(w)===o},se.isStrictMode=function(w){return N(w)===n},se.isSuspense=function(w){return N(w)===u},se.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===o||w===n||w===u||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===f||w.$$typeof===p||w.$$typeof===i||w.$$typeof===l||w.$$typeof===d||w.$$typeof===A||w.$$typeof===b||w.$$typeof===E||w.$$typeof===g)},se.typeOf=N,se}var ae={};var un;function ud(){return un||(un=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function N(D){return typeof D=="string"||typeof D=="function"||D===r||D===c||D===o||D===n||D===u||D===m||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===p||D.$$typeof===i||D.$$typeof===l||D.$$typeof===d||D.$$typeof===A||D.$$typeof===b||D.$$typeof===E||D.$$typeof===g)}function S(D){if(typeof D=="object"&&D!==null){var de=D.$$typeof;switch(de){case t:var Kt=D.type;switch(Kt){case h:case c:case r:case o:case n:case u:return Kt;default:var Ln=Kt&&Kt.$$typeof;switch(Ln){case l:case d:case f:case p:case i:return Ln;default:return de}}case a:return de}}}var w=h,U=c,P=l,H=i,Y=t,F=d,B=r,V=f,te=p,_=a,L=o,k=n,G=u,x=!1;function W(D){return x||(x=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(D)||S(D)===h}function C(D){return S(D)===c}function T(D){return S(D)===l}function q(D){return S(D)===i}function Q(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function j(D){return S(D)===d}function z(D){return S(D)===r}function K(D){return S(D)===f}function J(D){return S(D)===p}function R(D){return S(D)===a}function ee(D){return S(D)===o}function $(D){return S(D)===n}function ne(D){return S(D)===u}ae.AsyncMode=w,ae.ConcurrentMode=U,ae.ContextConsumer=P,ae.ContextProvider=H,ae.Element=Y,ae.ForwardRef=F,ae.Fragment=B,ae.Lazy=V,ae.Memo=te,ae.Portal=_,ae.Profiler=L,ae.StrictMode=k,ae.Suspense=G,ae.isAsyncMode=W,ae.isConcurrentMode=C,ae.isContextConsumer=T,ae.isContextProvider=q,ae.isElement=Q,ae.isForwardRef=j,ae.isFragment=z,ae.isLazy=K,ae.isMemo=J,ae.isPortal=R,ae.isProfiler=ee,ae.isStrictMode=$,ae.isSuspense=ne,ae.isValidElementType=N,ae.typeOf=S})()),ae}var mn;function Es(){return mn||(mn=1,process.env.NODE_ENV==="production"?Qt.exports=hd():Qt.exports=ud()),Qt.exports}var Ts,fn;function md(){if(fn)return Ts;fn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function n(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var h=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(h.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ts=n()?Object.assign:function(o,i){for(var l,h=r(o),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var u in l)t.call(l,u)&&(h[u]=l[u]);if(e){c=e(l);for(var m=0;m<c.length;m++)a.call(l,c[m])&&(h[c[m]]=l[c[m]])}}return h},Ts}var Is,gn;function Us(){if(gn)return Is;gn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Is=e,Is}var ks,pn;function An(){return pn||(pn=1,ks=Function.call.bind(Object.prototype.hasOwnProperty)),ks}var Ls,wn;function fd(){if(wn)return Ls;wn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Us(),a={},r=An();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function n(o,i,l,h,c){if(process.env.NODE_ENV!=="production"){for(var d in o)if(r(o,d)){var u;try{if(typeof o[d]!="function"){var m=Error((h||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}u=o[d](i,d,h,l,null,t)}catch(f){u=f}if(u&&!(u instanceof Error)&&e((h||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var p=c?c():"";e("Failed "+l+" type: "+u.message+(p??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},Ls=n,Ls}var Ps,bn;function gd(){if(bn)return Ps;bn=1;var e=Es(),t=md(),a=Us(),r=An(),n=fd(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var h="Warning: "+l;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return Ps=function(l,h){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(C){var T=C&&(c&&C[c]||C[d]);if(typeof T=="function")return T}var m="<<anonymous>>",p={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:E(),arrayOf:N,element:S(),elementType:w(),instanceOf:U,node:F(),objectOf:H,oneOf:P,oneOfType:Y,shape:V,exact:te};function f(C,T){return C===T?C!==0||1/C===1/T:C!==C&&T!==T}function g(C,T){this.message=C,this.data=T&&typeof T=="object"?T:{},this.stack=""}g.prototype=Error.prototype;function A(C){if(process.env.NODE_ENV!=="production")var T={},q=0;function Q(z,K,J,R,ee,$,ne){if(R=R||m,$=$||J,ne!==a){if(h){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=R+":"+J;!T[de]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+$+"` prop on `"+R+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),T[de]=!0,q++)}}return K[J]==null?z?K[J]===null?new g("The "+ee+" `"+$+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new g("The "+ee+" `"+$+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:C(K,J,R,ee,$)}var j=Q.bind(null,!1);return j.isRequired=Q.bind(null,!0),j}function b(C){function T(q,Q,j,z,K,J){var R=q[Q],ee=k(R);if(ee!==C){var $=G(R);return new g("Invalid "+z+" `"+K+"` of type "+("`"+$+"` supplied to `"+j+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return A(T)}function E(){return A(i)}function N(C){function T(q,Q,j,z,K){if(typeof C!="function")return new g("Property `"+K+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var J=q[Q];if(!Array.isArray(J)){var R=k(J);return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected an array."))}for(var ee=0;ee<J.length;ee++){var $=C(J,ee,j,z,K+"["+ee+"]",a);if($ instanceof Error)return $}return null}return A(T)}function S(){function C(T,q,Q,j,z){var K=T[q];if(!l(K)){var J=k(K);return new g("Invalid "+j+" `"+z+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return A(C)}function w(){function C(T,q,Q,j,z){var K=T[q];if(!e.isValidElementType(K)){var J=k(K);return new g("Invalid "+j+" `"+z+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return A(C)}function U(C){function T(q,Q,j,z,K){if(!(q[Q]instanceof C)){var J=C.name||m,R=W(q[Q]);return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected ")+("instance of `"+J+"`."))}return null}return A(T)}function P(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function T(q,Q,j,z,K){for(var J=q[Q],R=0;R<C.length;R++)if(f(J,C[R]))return null;var ee=JSON.stringify(C,function(ne,D){var de=G(D);return de==="symbol"?String(D):D});return new g("Invalid "+z+" `"+K+"` of value `"+String(J)+"` "+("supplied to `"+j+"`, expected one of "+ee+"."))}return A(T)}function H(C){function T(q,Q,j,z,K){if(typeof C!="function")return new g("Property `"+K+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type "+("`"+R+"` supplied to `"+j+"`, expected an object."));for(var ee in J)if(r(J,ee)){var $=C(J,ee,j,z,K+"."+ee,a);if($ instanceof Error)return $}return null}return A(T)}function Y(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var T=0;T<C.length;T++){var q=C[T];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(q)+" at index "+T+"."),i}function Q(j,z,K,J,R){for(var ee=[],$=0;$<C.length;$++){var ne=C[$],D=ne(j,z,K,J,R,a);if(D==null)return null;D.data&&r(D.data,"expectedType")&&ee.push(D.data.expectedType)}var de=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new g("Invalid "+J+" `"+R+"` supplied to "+("`"+K+"`"+de+"."))}return A(Q)}function F(){function C(T,q,Q,j,z){return _(T[q])?null:new g("Invalid "+j+" `"+z+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return A(C)}function B(C,T,q,Q,j){return new g((C||"React class")+": "+T+" type `"+q+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function V(C){function T(q,Q,j,z,K){var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type `"+R+"` "+("supplied to `"+j+"`, expected `object`."));for(var ee in C){var $=C[ee];if(typeof $!="function")return B(j,z,K,ee,G($));var ne=$(J,ee,j,z,K+"."+ee,a);if(ne)return ne}return null}return A(T)}function te(C){function T(q,Q,j,z,K){var J=q[Q],R=k(J);if(R!=="object")return new g("Invalid "+z+" `"+K+"` of type `"+R+"` "+("supplied to `"+j+"`, expected `object`."));var ee=t({},q[Q],C);for(var $ in ee){var ne=C[$];if(r(C,$)&&typeof ne!="function")return B(j,z,K,$,G(ne));if(!ne)return new g("Invalid "+z+" `"+K+"` key `"+$+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(q[Q],null," ")+`
|
|
261
261
|
Valid keys: `+JSON.stringify(Object.keys(C),null," "));var D=ne(J,$,j,z,K+"."+$,a);if(D)return D}return null}return A(T)}function _(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(_);if(C===null||l(C))return!0;var T=u(C);if(T){var q=T.call(C),Q;if(T!==C.entries){for(;!(Q=q.next()).done;)if(!_(Q.value))return!1}else for(;!(Q=q.next()).done;){var j=Q.value;if(j&&!_(j[1]))return!1}}else return!1;return!0;default:return!1}}function L(C,T){return C==="symbol"?!0:T?T["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&T instanceof Symbol:!1}function k(C){var T=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":L(T,C)?"symbol":T}function G(C){if(typeof C>"u"||C===null)return""+C;var T=k(C);if(T==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return T}function x(C){var T=G(C);switch(T){case"array":case"object":return"an "+T;case"boolean":case"date":case"regexp":return"a "+T;default:return T}}function W(C){return!C.constructor||!C.constructor.name?m:C.constructor.name}return p.checkPropTypes=n,p.resetWarningCache=n.resetWarningCache,p.PropTypes=p,p},Ps}var xs,vn;function pd(){if(vn)return xs;vn=1;var e=Us();function t(){}function a(){}return a.resetWarningCache=t,xs=function(){function r(i,l,h,c,d,u){if(u!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function n(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o},xs}var Cn;function Ad(){if(Cn)return jt.exports;if(Cn=1,process.env.NODE_ENV!=="production"){var e=Es(),t=!0;jt.exports=gd()(e.isElement,t)}else jt.exports=pd()();return jt.exports}var wd=Ad();const pe=Qe(wd);var bd=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Bs.apply(this,arguments)}function vd(e,t){if(e==null)return{};var a={},r=Object.keys(e),n,o;for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Os(e,t)}function Os(e,t){return Os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Os(e,t)}var Ht=(function(e){Cd(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Ft(r)),r.handleErrored=r.handleErrored.bind(Ft(r)),r.handleChange=r.handleChange.bind(Ft(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Ft(r)),r}var a=t.prototype;return a.getCaptchaFunction=function(n){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[n]:this.props.grecaptcha[n]:null},a.getValue=function(){var n=this.getCaptchaFunction("getResponse");return n&&this._widgetId!==void 0?n(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var n=this.getCaptchaFunction("execute");if(n&&this._widgetId!==void 0)return n(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var n=this;return new Promise(function(o,i){n.executionResolve=o,n.executionReject=i,n.execute()})},a.reset=function(){var n=this.getCaptchaFunction("reset");n&&this._widgetId!==void 0&&n(this._widgetId)},a.forceReset=function(){var n=this.getCaptchaFunction("reset");n&&n()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(n){this.props.onChange&&this.props.onChange(n),this.executionResolve&&(this.executionResolve(n),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var n=this.getCaptchaFunction("render");if(n&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=n(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(n){this.captcha=n},a.render=function(){var n=this.props;n.sitekey,n.onChange,n.theme,n.type,n.tabindex,n.onExpired,n.onErrored,n.size,n.stoken,n.grecaptcha,n.badge,n.hl,n.isolated;var o=vd(n,bd);return Ws.createElement("div",Bs({},o,{ref:this.handleRecaptchaRef}))},t})(Ws.Component);Ht.displayName="ReCAPTCHA",Ht.propTypes={sitekey:pe.string.isRequired,onChange:pe.func,grecaptcha:pe.object,theme:pe.oneOf(["dark","light"]),type:pe.oneOf(["image","audio"]),tabindex:pe.number,onExpired:pe.func,onErrored:pe.func,size:pe.oneOf(["compact","normal","invisible"]),stoken:pe.string,hl:pe.string,badge:pe.oneOf(["bottomright","bottomleft","inline"]),isolated:pe.bool},Ht.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Ms,yn;function yd(){if(yn)return Ms;yn=1;var e=Es(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=n;function i(f){return e.isMemo(f)?n:o[f.$$typeof]||t}var l=Object.defineProperty,h=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,m=Object.prototype;function p(f,g,A){if(typeof g!="string"){if(m){var b=u(g);b&&b!==m&&p(f,b,A)}var E=h(g);c&&(E=E.concat(c(g)));for(var N=i(f),S=i(g),w=0;w<E.length;++w){var U=E[w];if(!a[U]&&!(A&&A[U])&&!(S&&S[U])&&!(N&&N[U])){var P=d(g,U);try{l(f,U,P)}catch{}}}}return f}return Ms=p,Ms}var Nd=yd();const Sd=Qe(Nd);function qs(){return qs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},qs.apply(this,arguments)}function Ed(e,t){if(e==null)return{};var a={},r=Object.keys(e),n,o;for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}function Td(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ve={},Id=0;function Ud(e,t){return t=t||{},function(r){var n=r.displayName||r.name||"Component",o=(function(l){Td(h,l);function h(d,u){var m;return m=l.call(this,d,u)||this,m.state={},m.__scriptURL="",m}var c=h.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Id++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(u){var m=this;this.setState(u,function(){return m.props.asyncScriptOnLoad&&m.props.asyncScriptOnLoad(m.state)})},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var u=ve[this.__scriptURL];if(!u||!u.loaded)throw new Error("Script is not loaded.");for(var m in u.observers)u.observers[m](u);delete window[t.callbackName]},c.componentDidMount=function(){var u=this,m=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),f=t,g=f.globalName,A=f.callbackName,b=f.scriptId;if(g&&typeof window[g]<"u"&&(ve[m]={loaded:!0,observers:{}}),ve[m]){var E=ve[m];if(E&&(E.loaded||E.errored)){this.asyncScriptLoaderHandleLoad(E);return}E.observers[p]=function(P){return u.asyncScriptLoaderHandleLoad(P)};return}var N={};N[p]=function(P){return u.asyncScriptLoaderHandleLoad(P)},ve[m]={loaded:!1,observers:N};var S=document.createElement("script");S.src=m,S.async=!0;for(var w in t.attributes)S.setAttribute(w,t.attributes[w]);b&&(S.id=b);var U=function(H){if(ve[m]){var Y=ve[m],F=Y.observers;for(var B in F)H(F[B])&&delete F[B]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),S.onload=function(){var P=ve[m];P&&(P.loaded=!0,U(function(H){return A?!1:(H(P),!0)}))},S.onerror=function(){var P=ve[m];P&&(P.errored=!0,U(function(H){return H(P),!0}))},document.body.appendChild(S)},c.componentWillUnmount=function(){var u=this.__scriptURL;if(t.removeOnUnmount===!0)for(var m=document.getElementsByTagName("script"),p=0;p<m.length;p+=1)m[p].src.indexOf(u)>-1&&m[p].parentNode&&m[p].parentNode.removeChild(m[p]);var f=ve[u];f&&(delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete ve[u])},c.render=function(){var u=t.globalName,m=this.props;m.asyncScriptOnLoad;var p=m.forwardedRef,f=Ed(m,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(f[u]=typeof window[u]<"u"?window[u]:void 0),f.ref=p,I.createElement(r,f)},h})(I.Component),i=I.forwardRef(function(l,h){return I.createElement(o,qs({},l,{forwardedRef:h}))});return i.displayName="AsyncScriptLoader("+n+")",i.propTypes={asyncScriptOnLoad:pe.func},Sd(i,r)}}var Ds="onloadcallback",kd="grecaptcha";function _s(){return typeof window<"u"&&window.recaptchaOptions||{}}function Ld(){var e=_s(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Ds+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Ds+"&render=explicit"}const Nn=Ud(Ld,{callbackName:Ds,globalName:kd,attributes:_s().nonce?{nonce:_s().nonce}:{}})(Ht),Gs=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:"sass-pg-cmt-lp-spin",children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Pd={reportAbuseTitle:"Reportar Abuso",errorAlreadyReported:"Ya has reportado este comentario.",errorReportComment:"Error al reportar comentario",cancelButton:"Cancelar",reportButton:"Reportar",reportSuccessMessage:"¡Gracias por reportar!",reportCloseButton:"Cerrar"},xd=({isOpen:e,onClose:t,commentId:a,publication:r,username:n,CAPTCHA_KEY_V2:o,texts:i})=>{const l={...Pd,...i?.comentarios},h={..._t,...l.reportReasons??{}},[c,d]=I.useState("form"),[u,m]=I.useState(""),[p,f]=I.useState(""),[g,A]=I.useState(""),b=[{id:"spam",label:h.spam},{id:"inappropriate",label:h.inappropriate},{id:"hate",label:h.hate},{id:"misinformation",label:h.misinformation},{id:"terrorism",label:h.terrorism},{id:"intellectual",label:h.intellectual},{id:"bullying",label:h.bullying}],E=async()=>{if(!(!u||!a)){if(dn(document).includes(a)){f(l.errorAlreadyReported);return}d("loading"),f("");try{const w=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:r,username:n,id:a,captchaToken:g,type:_t[u]})})).json();if(w.type==="success")dd(document,a),d("success"),setTimeout(()=>{N()},3e3);else throw new Error(w.message||l.errorReportComment)}catch(S){console.error("Error reporting comment:",S),f(S.message||l.errorReportComment),d("form")}}},N=()=>{d("form"),m(""),f(""),t()};return!e||!a||!n?null:s.jsx("div",{className:"sass-pg-cmt-rp-overlay",children:s.jsxs("div",{className:"sass-pg-cmt-rp-popup",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:N,children:s.jsx(Ke,{})}),s.jsx("h2",{className:"sass-pg-cmt-rp-title",children:l.reportAbuseTitle}),c==="loading"&&s.jsx("div",{className:"sass-pg-cmt-rp-loadingContainer",children:s.jsx(Gs,{})}),c==="form"||c==="loading"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-pg-cmt-rp-optionsContainer",children:b.map(S=>s.jsxs("label",{className:"sass-pg-cmt-rp-option",children:[s.jsx("input",{type:"radio",name:"reportReason",value:S.id,checked:u===S.id,onChange:w=>m(w.target.value),className:"sass-pg-cmt-rp-radioInput"}),s.jsx("span",{className:"sass-pg-cmt-rp-radioCustom"}),s.jsx("span",{className:"sass-pg-cmt-rp-optionLabel",children:S.label})]},S.id))}),p&&s.jsx("div",{className:"sass-pg-cmt-rp-errorMessage",children:p}),s.jsx(Nn,{sitekey:o,theme:"light",size:"normal",onChange:S=>A(S??""),onExpired:()=>A("")}),s.jsxs("div",{className:"sass-pg-cmt-rp-buttons",children:[s.jsx("button",{onClick:N,className:"sass-pg-cmt-rp-cancelButton",children:l.cancelButton}),s.jsx("button",{onClick:E,disabled:!u,className:"sass-pg-cmt-rp-reportButton",children:l.reportButton})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sass-pg-cmt-rp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-rp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsx("p",{className:"sass-pg-cmt-rp-successMessage",children:l.reportSuccessMessage})]}),s.jsx("div",{className:"sass-pg-cmt-rp-buttons",children:s.jsx("button",{onClick:N,className:["sass-pg-cmt-rp-closeButton","sass-pg-cmt-rp-buttonAlone"].join(" "),children:l.reportCloseButton})})]})]})})};function Bd(e){const t=/^\[\[([^\]]+)\]\]/,a=e.match(t);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function Vt(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?Vt({comments:a.reply}).comments:a.reply};const{user:r,text:n}=Bd(a.text);return{...a,user:r||!1,text:n,reply:a.reply?Vt({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function zt({publication:e,path:t,size:a=5,sizereply:r=2,id:n,lastid:o,state:i="5,6",apiToken:l,API_ENV:h}){const{PUBLIC_ENV:c}=h;if(c==="prod"){const d=await Sn({publication:e,path:t,size:a,sizereply:r,id:n,lastid:o,state:i,apiToken:l,API_ENV:h});return Vt(d[0])}else{const d=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${r}&lastid=${o}`);if(!d.ok)throw new Error(`Error al obtener comentarios: ${d.status}`);const u=await d.json();return Vt(u.data[0])}}async function Sn({publication:e,path:t,size:a=5,sizereply:r=2,id:n,lastid:o,state:i="5,6",apiToken:l,API_ENV:h}){if(!e||!t)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof t!="string")throw new Error("Invalid input types for publication or path");if(!l)throw new Error("Missing CMS API token");const{PUBLIC_ENV:c,PUBLIC_API_HOST:d="dummy",PUBLIC_API_PATH:u,PUBLIC_API_PATH_VERSION:m}=h,p=parseInt(String(a),10),f=parseInt(String(r),10);if(isNaN(p)||p<=0)throw new Error("Invalid size parameter");if(isNaN(f)||f<0)throw new Error("Invalid sizereply parameter");const g=c!=="prod"?`${d}${u}`:"",A=new URLSearchParams({publication:e,path:t,size:p.toString(),sizereply:f.toString(),state:i});n&&A.append("id",n),o&&A.append("lastid",o);const b=`${g}${m}/newcomments/get?${A.toString()}`;try{const{data:E}=await re.get(b,{headers:{"x-api-token":l,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!E)throw new Error("No comments data received");return E.data||E||[]}catch(E){if(console.error("Error fetching comments:",E),re.isAxiosError(E)){const N=E.response?.status,S=E.response?.data;throw N===404?new Error("Comments not found"):N===403?new Error("Access forbidden - check API token"):N===401?new Error("Unauthorized - invalid API token"):N===500?new Error("Internal server error from CMS"):new Error(S?.error||S?.message||`HTTP ${N}: Failed to fetch comments`)}throw E}}const Od=(e,t)=>{const[a,r]=I.useState(void 0),{PUBLIC_PUBLICATION_ID:n}=t,o=n;return I.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:l}=t;try{const h=await zt({publication:o,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:l,API_ENV:t});r(h??[])}catch{r({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:r}},En=({username:e,date:t,DATE_CONFIG:a})=>s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate",children:e}),s.jsx("span",{className:"comment-header-dot",children:"•"}),s.jsx("span",{className:"comment-date su-truncate",children:cd(Ce(Number(t),a))})]}),Tn=({user:e})=>s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:e.picture?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),In=({isReply:e=!1,onReply:t,onFlag:a})=>s.jsxs("div",{className:"comment-actions su-flex",children:[!e&&t&&s.jsx("button",{onClick:t,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),s.jsx("button",{onClick:a,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Md={commentInputLabel:"Comentario",commentInputPlaceholder:"Ingresa un comentario"},js=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:r,texts:n})=>{const o={...Md,...n?.comentarios};return I.useEffect(()=>{const i=e.current;if(!i)return;const l=()=>{const c=i.value.length;i.parentElement&&(i.parentElement.dataset.text=`${c}/${Te}`),i.classList.toggle("over-limit",c>Te),a(!Gt(e,t,r).boolean)};return i.addEventListener("input",l),l(),()=>i.removeEventListener("input",l)},[e,t,a]),s.jsxs("div",{className:"su-relative",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:o.commentInputLabel}),s.jsx("textarea",{className:"su-w-full su-border-none su-outline-none",ref:e,name:"comment",placeholder:o.commentInputPlaceholder,rows:2})]})},Qs=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:r,API_ENV:n})=>{const o=Gt(e,t,n);return s.jsxs("div",{className:"form-actions su-flex-between",children:[s.jsx(Nn,{sitekey:n.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),s.jsxs("div",{className:"submit-zone su-relative su-flex su-flex-col su-items-end",children:[r,!o.boolean&&s.jsx("p",{className:"submit-warning su-hidden su-font-normal su-p-0",children:o.text})]})]})},qd={anonimusContinueButton:"Continuar de forma anónima",anonimusDividerOr:"o",anonimusImageAlt:"Imagen incognito",popupCloseAriaLabel:"Cerrar"},Dd={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con GOOGLE",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function _d({onClose:e,handleGoogleLogin:t,icon:a,texts:r,API_ENV:n}){const o={...Dd,...qd,...r?.comentarios},i=d=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/login"+(d?"#forgot":""))},l=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/register")},{PUBLIC_ASSETS_URL:h}=n,c=(h&&h!=="false"?h:"")+"/versions/images/anonimus-img.png";return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const u=d.target;u&&u.id==="pop-overlay"&&e()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:a?a():null}),s.jsx("button",{onClick:()=>{e()},className:"sass-pg-cmt-lp-close","aria-label":o.popupCloseAriaLabel,children:s.jsx(Ke,{})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-anonimusWrapper",children:[s.jsx("img",{className:"sass-pg-cmt-lp-anonimusImage",src:c,alt:o.anonimusImageAlt}),s.jsx("button",{onClick:()=>{e(!0)},className:"sass-pg-cmt-lp-anonimus",children:s.jsx("span",{children:o.anonimusContinueButton})})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:o.anonimusDividerOr})}),s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",onClick:()=>{i(!1)},children:o.loginButtonText}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.noAccountText,s.jsx("button",{type:"button",onClick:l,children:o.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:()=>{i(!0)},children:o.forgotPasswordText})]})})}const Gd={submitCommentButton:"Enviar Comentario"},Fs=({onClick:e,isDisabled:t,API_ENV:a,icon:r,handleGoogleLogin:n,showAlert:o,texts:i})=>{const l={...Gd,...i?.comentarios},[h,c]=I.useState(!1),[d,u]=I.useState(!1),[m,p]=I.useState(!1);I.useEffect(()=>{let g=null;return h&&(g=setTimeout(()=>{c(!1)},2400)),()=>{g&&clearTimeout(g)}},[h]),I.useEffect(()=>{if(!d||!a.CONFIG_commentsV2||!o||!document)return;const g=document.getElementById("comment-button");if(!g)return;const A=g.closest(".comment-form"),b=A?.querySelector('input[name="username"]'),E=A?.querySelector('textarea[name="comment"]'),N=A?.querySelector("textarea.g-recaptcha-response")??document.querySelector("#g-recaptcha-response");b?.value?.trim()&&E?.value?.trim()&&N?.value?.trim()&&g.click()});const f=oe("/Success.gif");return h?s.jsx("div",{className:"success-gif-container su-flex-center su-relative",children:s.jsx("img",{className:"success-gif su-absolute",src:f})}):s.jsxs(s.Fragment,{children:[m&&a.CONFIG_commentsV2&&o&&s.jsx(_d,{API_ENV:a,icon:r,handleGoogleLogin:n,texts:i,onClose:g=>{g&&u(!0),p(!1)}}),s.jsxs("button",{type:"button",onClick:async g=>{if(!d&&a.CONFIG_commentsV2&&o){p(!0),console.log("open popup");return}await e(g)&&(a.CONFIG_commentsV2&&o&&u(!1),c(!0))},id:"comment-button",className:`submit-btn su-bg-transparent su-font-bold ${t?"disabled":"active"}`,children:[l.submitCommentButton,s.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})]})},Hs=async({path:e,ref:t,captchaToken:a,button:r,user:n,id:o,addComment:i,API_ENV:l,anonimusUser:h})=>{const c=t.current?.value||"",{PUBLIC_PUBLICATION_ID:d}=l,u=d;if(console.log("check",n,h),!Gt(t,a,l).boolean||!n&&!h){console.log("warn");const p=r.nextElementSibling;return p&&(p.style.display="block"),!1}if(!n&&!h)return;const m=n?c:"[["+h+"]] "+c;try{const p=Date.now(),f=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:u,path:e,id:o,username:n?n.username:!1,comment:m,recaptchaResponse:a})});let g=null;try{g=await f.json()}catch(S){console.error("Error parsing JSON response:",S)}if(!f.ok)throw new Error(`Error al enviar comentario: ${g?.message} status: ${f.status}`);const A=Date.now(),b=Math.max(0,2400+Math.abs(A-p)),E=n||{username:h,firstname:h},N={username:E.username,firstname:E.firstname,...E.lastname&&{lastname:E.lastname},...E.picture&&{picture:E.picture}};return i({id:A.toString(),text:c,user:N,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),b}catch(p){return console.error("Error enviando comentario:",p),alert(p.message||"Error al enviar el comentario."),!1}},jd=({replyingTo:e,commentRef:t,user:a,path:r,addReply:n,closeForm:o,API_ENV:i,texts:l})=>{const[h,c]=I.useState(!0),[d,u]=I.useState(""),m=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Te}`),c(!0),o()};return s.jsxs("div",{className:"comment-form reply-form su-p-8 su-relative",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:m,children:s.jsx(Ke,{})}),s.jsx(js,{commentRef:t,captchaToken:d,setIsDisabled:c,API_ENV:i,texts:l}),s.jsx(Qs,{commentRef:t,captchaToken:d,setCaptchaToken:u,API_ENV:i,children:s.jsx(Fs,{onClick:async p=>{if(h)return;const f=await Hs({path:r,ref:t,captchaToken:d,button:p.currentTarget,user:a,id:e,addComment:n,API_ENV:i});return f&&typeof f=="number"?(setTimeout(()=>{m()},f),!0):!1},isDisabled:h,API_ENV:i,texts:l})})]})},Qd={replyingToLabel:"Respondiendo a"},Fd=({reply:e,replyingTo:t,user:a,onFlag:r,DATE_CONFIG:n,texts:o})=>{const i={...Qd,...o?.comentarios},l=e.text;let h=`${Ie.firstname} ${Ie.lastname??""}`,c=Ie.username;return e.user&&(h=`${e.user.firstname} ${e.user.lastname??""}`,c=e.user.username),s.jsx("div",{className:"comment-item reply",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative",children:[s.jsx(Tn,{user:e.user?e.user:Ie}),s.jsxs("div",{style:{flex:1},children:[s.jsx(En,{username:h,date:e.date.time,DATE_CONFIG:n}),s.jsxs("div",{className:"comment-reply-to",children:[i.replyingToLabel," ",s.jsx("strong",{children:t})]}),s.jsx("p",{className:"comment-text su-font-normal",children:l}),a?.username.toLowerCase()!==c.toLowerCase()&&s.jsx(In,{isReply:!0,onFlag:()=>r(e.id)})]})]})})},Hd={moreRepliesButton:"Más Respuestas"},Vd=({comment:e,replyingTo:t,path:a,user:r,handleReplyingTo:n,onFlag:o,API_ENV:i,texts:l})=>{const h={...Hd,...l?.comentarios},c={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[d,u]=I.useState(c),[m,p]=I.useState(!1),{PUBLIC_PUBLICATION_ID:f,PUBLIC_X_SECURITY_TOKEN:g}=i,A=e.text,b=I.useRef(null);let E=`${Ie.firstname} ${Ie.lastname??""}`,N=Ie.username;e.user&&(E=`${e.user.firstname} ${e.user.lastname??""}`,N=e.user.username);const S=w=>{u({morereply:d.morereply,reply:[w,...d.reply]})};return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative","data-hasreplies":d.reply.length>0?"true":"false",children:[s.jsx(Tn,{user:e.user?e.user:Ie}),s.jsxs("div",{style:{flex:1},children:[s.jsx(En,{username:E,date:e.date.time,DATE_CONFIG:i}),s.jsx("p",{className:"comment-text su-font-normal",children:A}),r?.username.toLowerCase()!==N.toLowerCase()&&s.jsx(In,{onReply:()=>n(e.id),onFlag:()=>o(e.id)}),t===e.id&&r&&s.jsx(jd,{replyingTo:t,commentRef:b,addReply:S,user:r,path:a,API_ENV:i,closeForm:()=>n(""),texts:l}),d.reply.length>0&&s.jsxs("div",{className:"comment-replies",children:[d.reply.map(w=>s.jsx(Fd,{user:r,reply:w,replyingTo:E,onFlag:o,DATE_CONFIG:i,texts:l},w.id)),m?s.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:s.jsx(Gs,{})}):d.morereply&&s.jsx("button",{className:"comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",onClick:async()=>{const w=d.reply[d.reply.length-1]?.id;p(!0);try{const P=await zt({publication:f??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:w,state:"5,6",apiToken:g??"",API_ENV:i});p(!1),u({morereply:P.morecomment,reply:[...d.reply,...P.comments]})}catch(U){throw p(!1),new Error(`Error al obtener comentarios: ${U}`)}},children:h.moreRepliesButton})]})]})]})})},zd=({commentRef:e,user:t,path:a,addComment:r,API_ENV:n,texts:o})=>{const[i,l]=I.useState(!0),[h,c]=I.useState("");return s.jsxs("div",{className:"comment-form su-p-8 su-relative",children:[s.jsx(js,{commentRef:e,captchaToken:h,setIsDisabled:l,API_ENV:n,texts:o}),s.jsx(Qs,{API_ENV:n,commentRef:e,captchaToken:h,setCaptchaToken:c,children:s.jsx(Fs,{onClick:async d=>{if(i)return;const u=await Hs({path:a,ref:e,captchaToken:h,button:d.currentTarget,user:t,addComment:r,API_ENV:n});return u&&typeof u=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Te}`),l(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Te}`),l(!0)},u),!0):!1},isDisabled:i,API_ENV:n,texts:o})})]})},Wd={usernameInputLabel:"Nombre",usernameInputPlaceholder:"Ingresa tu nombre"},Yd=({usernameRef:e,texts:t})=>{const a={...Wd,...t?.comentarios};return s.jsxs("div",{className:"comment-username su-font-bold su-truncate",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:a.usernameInputLabel}),s.jsx("input",{ref:e,name:"username",className:"su-w-full su-border-none su-outline-none",placeholder:a.usernameInputPlaceholder})]})},Kd=({usernameRef:e,commentRef:t,path:a,icon:r,handleGoogleLogin:n,addComment:o,API_ENV:i,texts:l})=>{const[h,c]=I.useState(!0),[d,u]=I.useState(""),m=async p=>{if(h){console.log("error");return}if(!Gt(t,d,i).boolean){console.log("invalidForm");return}const f=e.current.value,g=await Hs({path:a,ref:t,captchaToken:d,button:p.currentTarget,user:void 0,addComment:o,API_ENV:i,anonimusUser:f});return u(""),g&&typeof g=="number"?(t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Te}`),c(!0),setTimeout(()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Te}`),c(!0)},g),!0):!1};return s.jsx(s.Fragment,{children:s.jsxs("div",{className:"comment-form anoninus-form su-p-8 su-relative",children:[s.jsx(Yd,{usernameRef:e,texts:l}),s.jsx(js,{commentRef:t,captchaToken:d,setIsDisabled:c,API_ENV:i,texts:l}),s.jsx(Qs,{API_ENV:i,commentRef:t,captchaToken:d,setCaptchaToken:u,children:s.jsx(Fs,{onClick:m,isDisabled:h,API_ENV:i,handleGoogleLogin:n,icon:r,showAlert:!0,texts:l})})]})})},Jd={commentsSectionTitle:"COMENTARIOS",commentHeaderMessageEmpty:"Se el primero en compartir tu opinión de este artículo.",commentHeaderMessageWithComments:"Comparte tu opinión de este artículo.",loadMoreButton:"Más",moreRepliesButton:"Más Respuestas",anonimusPromptPrefix:"¿Querés debatir con otros lectores? Comentá ahora de forma anónima o ",anonimusPromptLinkText:"INICIA SESIÓN AQUÍ",anonimusPromptSuffix:" para responder a otros usuarios y ser parte activa de nuestra comunidad."},$d=({isAuthenticated:e,path:t,user:a,handleLogout:r,icon:n,handleGoogleLogin:o,API_ENV:i,texts:l})=>{const h={...Jd,...l?.comentarios},{PUBLIC_PUBLICATION_ID:c,PUBLIC_X_SECURITY_TOKEN:d}=i,u=c??"",m=t.replaceAll("/","|"),[p,f]=I.useState(void 0),[g,A]=I.useState(""),{comments:b,setComments:E}=Od(m,i),[N,S]=I.useState(!1),w=I.useRef(null),U=I.useRef(null),P=L=>{A(g===L?"":L)},H=L=>{E(b?{...b,comments:[L,...b.comments??[]]}:void 0)},Y=L=>{f(L)},F=async()=>{if(!b||!b.morecomment||b.comments.length===0)return;const L=b.comments[b.comments.length-1];if(!L)return;S(!0);const k=L.id;try{const G=await zt({publication:u,path:m??"",size:5,sizereply:2,id:void 0,lastid:k,state:"5,6",apiToken:d,API_ENV:i});E({morecomment:G.morecomment??!1,comments:[...b.comments,...G.comments]}),S(!1)}catch(G){throw S(!1),new Error(`Error al obtener comentarios: ${G}`)}},B=b?.comments&&b.comments.length>0,V=B?h.commentHeaderMessageWithComments:h.commentHeaderMessageEmpty,te=s.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:s.jsx(Gs,{})}),_=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname="/auth/login")};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-container",children:s.jsx(ce,{title:i.CONFIG_commentsV2||B||e?h.commentsSectionTitle:!1,children:s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-header",children:e&&a?s.jsxs(s.Fragment,{children:[s.jsx(od,{user:a,handleLogout:r,message:V,texts:l}),s.jsx(zd,{commentRef:w,user:a,addComment:H,path:m,API_ENV:i,texts:l})]}):i.CONFIG_commentsV2?s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"anonimus-message",children:[h.anonimusPromptPrefix,s.jsx("button",{className:"su-border-none su-p-0",onClick:_,children:h.anonimusPromptLinkText}),h.anonimusPromptSuffix]}),s.jsx(Kd,{usernameRef:U,commentRef:w,icon:n,handleGoogleLogin:o,addComment:H,path:m,API_ENV:i,texts:l})]}):null}),b?b.comments&&b.comments.length>0?s.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[b.comments.map(L=>s.jsx(Vd,{comment:L,replyingTo:g,handleReplyingTo:P,onFlag:Y,user:a??Ie,path:m,API_ENV:i,texts:l},L.id)),N&&te]}):null:te,b?.morecomment&&!N&&s.jsx("button",{className:"comment-replies-button su-flex-center su-rounded-full",onClick:F,children:h.loadMoreButton})]})})}),s.jsx(xd,{username:a?.username??void 0,publication:u,commentId:p,isOpen:p!==void 0,onClose:()=>f(void 0),CAPTCHA_KEY_V2:i.CAPTCHA_KEY_V2??"",texts:l})]})};function Zd({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:r,path:n,checkAuth:o,icon:i,API_ENV:l,texts:h}){const c=async()=>{if(l.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const u=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(u)}`}},d=async()=>{if(l.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),o();return}if(!a)return;const u=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${u}`};return s.jsx(s.Fragment,{children:s.jsx($d,{isAuthenticated:e,handleLogout:c,handleGoogleLogin:d,icon:i,path:n,user:e?r:void 0,API_ENV:l,texts:h})})}function Xd({isVisible:e,path:t,icon:a,API_ENV:r,texts:n}){const[o,i]=I.useState(null),[l,h]=I.useState(null),c=r?.COGNITO_AUTH_PREFIX??"ASTRO_",d=I.useCallback(async()=>{if(e){if(document.cookie.search(c+"IS_AUTH=true")===-1){i(!1),h(null);return}try{const g=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(g.isAuthenticated??!1),h(g.user??null),document.cookie="redirect_after_login_1=; Max-Age=0; path=/"}catch(f){console.error("Error checking auth:",f),i(!1),h(null)}}},[e,c]);I.useEffect(()=>{d()},[d,e]),I.useEffect(()=>{if(!l||!e||typeof window>"u")return;const f=window;if(typeof f!="function"){console.warn("gtag no está disponible todavía");return}f.gtag("set",{user_id:l.username}),console.log("username setted successfully")},[l,e]);const u="/api/auth/login",m=s.jsx("div",{className:"su-flex-center su-relative",style:{minHeight:310}});if(o===null)return m;const p=t.replaceAll("|","/");return e?s.jsx(Zd,{icon:a,isAuthenticated:o,setIsAuthenticated:i,loginUrl:u,user:l??void 0,checkAuth:d,path:p,API_ENV:r,texts:n}):m}const Rd=({internalPath:e,icon:t,API_ENV:a,texts:r})=>(I.useEffect(()=>{if(!document)return;if(document.getElementById("recaptcha-enterprise-script"))return console.log("recaptcha already appended");const o=document.createElement("script");o.id="recaptcha-enterprise-script",o.defer=!0,o.async=!0,o.src=`https://www.google.com/recaptcha/enterprise.js?render=${a.CAPTCHA_KEY}`,document.body.appendChild(o),console.log("appended recaptcha")},[]),s.jsx("div",{className:"sass-pg-news-commentLazyLoader",style:{width:"100%"},suppressHydrationWarning:!0,children:s.jsx(Xd,{path:e,icon:t,isVisible:!0,API_ENV:es(a),texts:r})})),e1=({section:e,internalPath:t,stylesConfig:a,paths:r,API_ENV:n,fetchConfig:o})=>s.jsx("div",{suppressHydrationWarning:!0,style:a["Modulo 1x3 Client"]??a["Modulo 1x3"],children:s.jsx(sd,{section:e,internalPath:t,stylesConfig:a,isVisible:!0,paths:r,fetchConfig:o,API_ENV:es(n)})});async function t1({publication:e,path:t,username:a,comment:r,id:n,recaptchaResponse:o,baseUrl:i,apiToken:l,securityToken:h,COMMENTS_VARS:c}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:r,id:n,recaptchaResponse:o}),!e||!t||!r)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,r].some(f=>typeof f!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!r.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const d=await cn(o,c);if(console.log("Verifying captcha token...",d),!d)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,m={publication:e,path:t.replace(/\|/gi,"/"),text:r.trim()};a&&(m.username=a),n&&(m.id=n);const p=new URLSearchParams(m);try{const{data:f}=await re.get(`${u}?${p.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":h,"x-api-token":l,"User-Agent":"amplifyapp-comments-saas"}});return!f||f.error?(console.error("CMS error response:",f),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",f),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(f){if(console.error("Error enviando comentario:",f),re.isAxiosError(f)){const g=f.response?.status??500,A=f.response?.data;return g===400?{type:"error",message:A?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:g===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:g===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:A?.message||"No se pudo enviar el comentario.",status:g}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const Vs=async(e,t)=>{if(!e)throw new Error("No action provided");if(!t)throw new Error("No site key provided");const a=window.grecaptcha;if(!a?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((r,n)=>{a.enterprise.ready(async()=>{try{const o=await a.enterprise.execute(t,{action:e});if(!o)throw new Error("Captcha token no generado");r(o)}catch(o){n(o)}})})},s1=async({token:e,projectId:t,captchaKey:a,apiKey:r,captchaAction:n})=>{if(!e)throw new Error("No token provided");if(!t||!a||!r)throw new Error("Missing project ID or site key");if(!n)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${t}/assessments?key=${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:n}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==n)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return i?.riskAnalysis?.score??0}catch(o){throw console.error("Recaptcha verification failed",o),new Error(String(o))}},a1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Le,{slot_id:r,cardWidth:200,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx(nt,{...l,titleGradient:!0,paths:e.paths},i)})})})},r1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Le,{slot_id:r,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return s.jsx(nt,{...l,titleGradient:!0,paths:e.paths},i)})})})},n1=e=>{const{content:t,title:a,slot_id:r}=e,n=e.slot_id&&e.slot_id!=="Nota_1";return t&&t.length!==0&&s.jsx(ce,{title:a,titleUrl:e.titleUrl,children:s.jsx(Le,{slot_id:r,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:n?o.main.title.home:o.main.title.section}}};return I.createElement(nt,{...l,key:i,titleGradient:!0,paths:e.paths})})})})},Wt=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},o1=e=>{const{content:t,title:a,isVideo:r}=e;if(!t||t.length===0)return;const n=t[0],o=t.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return n&&o&&s.jsxs(ce,{title:a,titleUrl:e.titleUrl,children:[s.jsx("div",{className:"sass-bd-dnfw-headerSection",children:s.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:"sass-bd-dnfw-image",href:n?.info?.link?.url,target:n?.info?.link?.target,children:[s.jsxs("div",{className:"sass-bd-dnfw-blockHeadContainer",children:[s.jsx("p",{className:"sass-bd-dnfw-title",children:n?.main?.title.home}),n?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-bd-dnfw-subtitle",children:n?.main?.subtitle?.striped})]}),s.jsx(ge,{preview:n.preview})]})}),s.jsxs("div",{className:"sass-bd-dnfw-containerCards",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),s.jsx("div",{className:"sass-bd-dnfw-newsContent",children:Array.isArray(o)&&o.map((l,h)=>{const c={...l,main:{...l.main,title:{...l.main.title,section:i?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:h},children:s.jsx(Se,{...c,isVideo:r,paths:e.paths})},h)})})]})]})},i1=({printEdition:e,title:t})=>e&&s.jsx(ce,{title:t,children:s.jsx("div",{className:"sass-bd-mif-content iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),Un={banner:e=>s.jsx(fe,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>s.jsx(kt,{...e}),"Modulo 1x3":e=>s.jsx(zr,{...e}),"Modulo 1x4":e=>s.jsx(Wr,{...e}),"Modulo 1x5":e=>s.jsx(Yr,{...e}),"Destacado noticias":e=>s.jsx(Hr,{...e}),"Destacado full width":e=>s.jsx(o1,{...e}),"Destacado videos":e=>s.jsx(Kr,{...e}),"Carrusel card":e=>s.jsx($r,{...e}),"Carrusel story":e=>s.jsx(a1,{...e}),"Carrusel owl":e=>s.jsx(r1,{...e}),"Modulo fotogaleria":e=>s.jsx(n1,{...e}),"Carrusel opinion":e=>s.jsx(Zr,{...e}),"Modulo 1x3 card":e=>s.jsx(Jr,{...e}),"Modulo iframe":e=>s.jsx(i1,{...e})};function zs({component:e,slot_id:t,data:a,banners:r}){if(r)return Un[e]&&s.jsx("div",{className:"home-slot",style:Wt(a),children:Un[e]({...a,banners:r,slot_id:t})})}function l1({children:e,stylesConfigEntry:t}){return s.jsx("div",{className:"home-slot",style:Wt(t),children:e})}const kn={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Qr,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,heightImageOverwrite:e.heightImageOverwrite,heightImageOverwriteMobile:e.heightImageOverwriteMobile,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(Qr,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},Super:e=>s.jsx(Je,{...e.data[0],paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas verticales":e=>s.jsx(Xl,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas horizontales":e=>s.jsx(Zl,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},Yt=({component:e,data:t,banners:a,rightOnlyBanner:r})=>s.jsx("div",{style:Wt(t),children:kn[e]&&kn[e]({...t,rightOnlyBanner:r,banners:a})}),c1=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:r,config:n,banners:o,showTagBySection:i})=>{const l=[],c=t,d=Object.keys(e).length/c;for(let u=1;u<=d;u++)for(let m=1;m<=c;m++){const p="Home_"+u+"_"+m;!e[p]||!e[p].blockSass||!e[p].blockSass[0]||!e[p].blockSass[0].value||!e[p].blockSass[0].block||e[p].blockSass[0].block==="No Mostrar"||(e[p].blockSass[0]?.block==="Modulo iframe"?l.push(s.jsxs(ms,{id:e[p].blockSass[0].key,show:!!e[p].blockSass[0].value,order:(u-1)*c+(m-1),children:[s.jsx(zs,{component:e[p].blockSass[0].block,banners:o,slot_id:p,data:{printEdition:e[p]?.blockSass[0].value,title:e[p]?.blockSass[0].title??"",titleUrl:e[p].blockSass[0].link??void 0}}),s.jsx(Ye,{children:s.jsx(_e,{banners:o,index:"dynamic_"+u+"_"+m})})]},u+"_"+m)):l.push(s.jsxs(ms,{id:e[p].blockSass[0].key,show:!!e[p].content?.data,order:(u-1)*c+(m-1),children:[s.jsx(zs,{component:e[p].blockSass[0].block,banners:o,slot_id:p,data:{...e[p].blockSass[0].block?a[e[p].blockSass[0].block]:[],content:e[p].content?.data??[],title:e[p].blockSass[0].title??void 0,titleUrl:e[p].blockSass[0].link??void 0,autorIcon:s.jsx(r,{}),paths:n.paths,showTagBySection:i}}),s.jsx(Ye,{children:s.jsx(_e,{banners:o,index:"dynamic_"+u+"_"+m})})]},u+"_"+m)))}return l},d1=({mainBlock:e,StylesConfigMain:t,config:a,banners:r})=>{const{PUBLIC_ENV:n}=O();if(n!=="local")return null;const o=e?.news?.data||[],i=(l,h)=>({...e?.news,...t[l],data:o.slice(0,h),paths:a.paths});return s.jsxs(s.Fragment,{children:[s.jsx(Yt,{component:"Super",data:i("Super",1),banners:r}),s.jsx(Ye,{children:s.jsx(_e,{banners:r,index:1})}),s.jsx(Yt,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:r}),s.jsx(Ye,{children:s.jsx(_e,{banners:r,index:1})}),s.jsx(Yt,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:r}),s.jsx(Ye,{children:s.jsx(_e,{banners:r,index:1})})]})};v.AssetsPreconnect=fa,v.AutorHeader1=ql,v.AutorHeader2=Dl,v.BannerAdvertising=fe,v.BannerAdvertisingMiddle=_e,v.CarrouselCSR=ll,v.CarrouselIRS=Le,v.CarruselCard=$r,v.CarruselOpinion=Zr,v.CommentLazyLoader=Rd,v.CommonServices=ke,v.Comscore=Ys,v.ContactInfoServer=ic,v.ContactInput=xl,v.ContactSelect=Bl,v.ContactTextarea=Ol,v.ContentLayout1=Ut,v.ContentLayoutTema=Ll,v.DEBUG_MainSlots=d1,v.DestacadoNoticias=Hr,v.DestacadoVideos=Kr,v.DynamicBlockServices=fr,v.DynamicComponents=c1,v.DynamicMainSlot=Yt,v.DynamicSlot=zs,v.EditorialBlock=tc,v.ErrorComponent=Pl,v.Font=Ta,v.Footer=Il,v.FormatAfterScripts=ma,v.FormatScripts=Zt,v.GA4=Ks,v.GTM=Js,v.GalleryHeader=an,v.GenerateBody=rl,v.GenerateHead=al,v.Header=Kl,v.HeaderSectionComponent=tn,v.HomeCard=$l,v.IframeHeader=en,v.ImageOffline=vr,v.ImageOnline=ge,v.ImageOnlineClient=br,v.IssuuServices=Zi,v.ItemListSchema=Ca,v.JournalistArticule2=Gr,v.JournalistGroup=jr,v.LayoutNewsComponent=Or,v.LinkComponent=M,v.LiveBlogHeader=Pr,v.Location=ol,v.LoginForm=Wc,v.MainComponentServices=Io,v.Marfeel=$s,v.MasNoticiasLazyLoader=e1,v.MiddleSection=Ye,v.Modulo1x3=zr,v.Modulo1x3Card=Jr,v.Modulo1x4=Wr,v.Modulo1x5=Yr,v.Modulo2Columnas=sc,v.Modulo3Columnas=Vr,v.ModuloNewsletter=ac,v.ModuloOpinion=ec,v.NewListResponseDataPH=ln,v.NewsArticle=ya,v.NewsComponent=Gc,v.NewsContent=Cs,v.NewsDescriptionComponent=Pe,v.News_Content=nn,v.NextPrev=vs,v.OrgList=Na,v.PreloadImages=Rt,v.REPORT_REASONS=_t,v.ReCaptchaRender=Mn,v.Readest=kt,v.RegisterForm=Vc,v.ScriptHydrator=Xc,v.SearchSection=Qc,v.Section=ce,v.SectionCard=Se,v.SectionCard2=nt,v.SectionCardServerComponent=Ns,v.SectionServerComponent=oc,v.ShowSection=ms,v.SocialNetworks=Ss,v.SpeculationRules=va,v.Spin=$e,v.StaticSlotWrapper=l1,v.SubscribeColumn=Nr,v.SubscribeRow=Sr,v.SubscribeWhatsAppColumn=wl,v.TagHeader=Jl,v.TagSection=_r,v.TimeLine=xr,v.TrimPathname=co,v.TwitterHydration=Rc,v.VideoBlock3=kl,v.VideoBlock4=Gl,v.VideoEmbeddedHeader=Xr,v.VideoYoutubeHeader=Rr,v.VideosSchemas=Ea,v.WebsiteList=Sa,v.addComment=t1,v.bannersReplace=gt,v.becomeVideoObject=Fe,v.buildTagUrl=Ue,v.coloringByStrokeSVGs=Tl,v.compileStyleProps=Wt,v.createAssessment=Ao,v.cutString=ye,v.decodeApiEnv=es,v.encodeApiEnv=vo,v.extractMainSlug=we,v.extractRealtedNews=so,v.extractRelatedNews=ft,v.formatDate=Ce,v.formatDateEdiciones=Xn,v.formatDateJournalistArticule=mt,v.formatDateTimeline=aa,v.formatNewsMeta=la,v.formatVideoData=ga,v.generalGetData=el,v.getCaptchaToken=Vs,v.getComments=Sn,v.getConfig=O,v.getDynamicSlots=Xi,v.getEnvironmentUrl=He,v.getEnvironmentUrlFront=ao,v.getHydratorPath=fo,v.getImageUrl=ie,v.getItemFormated=Co,v.getNextMeta=Ze,v.getPage=Re,v.getPlayIcon=As,v.getPreloadImages=So,v.getPrevMeta=Xe,v.getRelatedNewsCarrousel=go,v.getReportReasonLabel=ld,v.getResponse=Oe,v.getResponsePromise=ra,v.getSchemas=pt,v.getScriptReplaces=ts,v.getSlugs=Ua,v.getTextsStringValue=wo,v.getTypeOfNews=uo,v.getVideoRealPath=mo,v.handleGetComments=zt,v.initLibrary=Bn,v.isPhotoGallery=bo,v.metadataToJSX=ha,v.metadata_defaults=pr,v.new_speculationRules_home=pa,v.new_speculationRules_note=wa,v.new_speculationRules_noteList=ba,v.new_speculationRules_section=Aa,v.parseTags=$t,v.pathnameSplit=ca,v.processExtractedRelatedNews=oa,v.removePages=Ia,v.reportComment=id,v.shareButtons=kr,v.socialIcons=xt,v.toISOWithTimeZone=Be,v.urlReplaces=da,v.usePlayIcon=ws,v.verifyCaptchaTokenEnterprise=s1,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})}));
|