sass-template-common 0.2.78 → 0.2.80
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.
|
@@ -330,6 +330,7 @@ export declare type Config = {
|
|
|
330
330
|
articlepreview?: string;
|
|
331
331
|
configVersion?: string;
|
|
332
332
|
cookieName?: string;
|
|
333
|
+
clipUrl?: string;
|
|
333
334
|
};
|
|
334
335
|
|
|
335
336
|
export declare type ConfigDynamic = {
|
|
@@ -2411,6 +2412,7 @@ export declare interface VideoItem {
|
|
|
2411
2412
|
size?: string;
|
|
2412
2413
|
image: Preview;
|
|
2413
2414
|
code: string;
|
|
2415
|
+
clip: string;
|
|
2414
2416
|
}
|
|
2415
2417
|
|
|
2416
2418
|
export declare interface VideoResponseData {
|
|
@@ -29,6 +29,7 @@ let sa = {
|
|
|
29
29
|
VARIANT_videos: "op2",
|
|
30
30
|
VARIANT_autor: "op1",
|
|
31
31
|
VARIANT_tag: "op1",
|
|
32
|
+
S3_ID_DIR: "0000000",
|
|
32
33
|
CONFIG_comments: !1,
|
|
33
34
|
CONFIG_hasSlugRoute: !0,
|
|
34
35
|
CONFIG_slugAsSection: !0,
|
|
@@ -7736,7 +7737,6 @@ const jd = "_content_r1co8_1", Qd = "_videoContent_r1co8_20", Gd = "_articleSect
|
|
|
7736
7737
|
O,
|
|
7737
7738
|
{
|
|
7738
7739
|
href: e.searchLink ? e.searchLink : "/buscar",
|
|
7739
|
-
style: { display: "flex" },
|
|
7740
7740
|
className: be.buttonSectionSearch,
|
|
7741
7741
|
"aria-label": e.searchKeyWord,
|
|
7742
7742
|
children: /* @__PURE__ */ a(Ia, { width: 28, height: 28, color: "currentColor" })
|
|
@@ -13082,7 +13082,7 @@ const { PUBLIC_PUBLICATION_ID: a9 } = Y(), s9 = a9, r9 = (e) => {
|
|
|
13082
13082
|
] })
|
|
13083
13083
|
] });
|
|
13084
13084
|
}, Mr = ({ onClick: e, isDisabled: t }) => {
|
|
13085
|
-
const [n, s] = Te.useState(!1), { S3_ID_DIR: r } = Y();
|
|
13085
|
+
const [n, s] = Te.useState(!1), { S3_ID_DIR: r = "" } = Y();
|
|
13086
13086
|
return Te.useEffect(() => {
|
|
13087
13087
|
let o = null;
|
|
13088
13088
|
return n && (o = setTimeout(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(w,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],t):(w=typeof globalThis<"u"?globalThis:w||self,t(w["sass-template-common"]={},w["react/jsx-runtime"],w.React))})(this,(function(w,t,E){"use strict";function Or(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const ja=Or(E);let $n={PUBLIC_API_HOST:"https://dev-saas.cms-medios.com",PUBLIC_API_FRONT:"https://dev-lahora.cms-medios.com",PUBLIC_API_PATH:void 0,PUBLIC_API_PATH_VERSION:void 0,PUBLIC_X_SECURITY_TOKEN:"wj5oeACJStV3exBvodMa",PUBLIC_PUBLICATION_ID:"41",PUBLIC_TAG_TYPE:"30",PUBLIC_ENV:"local",PUBLIC_LNG:"en",PUBLIC_SERVICE_PREFIX:"false",PUBLIC_IS_SUB_PUBLICATION:void 0,PUBLIC_USERNAME_OFFLINE:"previewreactsaas",PUBLIC_PASSWORD_OFFLINE:"Y35VhZGkFtwu",PUBLIC_IS_OFFLINE:"false",PUBLIC_OFFLINE_SITE:"formula",PUBLIC_WP_API_HOST:void 0,PUBLIC_X_SECURITY_WAF_TOKEN:"false",DEPLOY_BUCKET:"false",PUBLIC_ASSETS_URL:"false",PUBLIC_BUILD_ID:"123456789",DATE_TIMEZONE:"America/Mexico_City",VARIANT_header:"op2",VARIANT_footer:"op2",VARIANT_section:"op1",VARIANT_videos:"op2",VARIANT_autor:"op1",VARIANT_tag:"op1",CONFIG_comments:!1,CONFIG_hasSlugRoute:!0,CONFIG_slugAsSection:!0,CONFIG_shareOnlyWhatsApp:!0,CONFIG_blockDefaultSectionRoute:!1,ANALYTICS_ga4:void 0,ANALYTICS_marfeel:void 0,ANALYTICS_gtm:void 0,ANALYTICS_comscore:void 0,COGNITO_AUTH_PREFIX:"ASTRO_",COGNITO_CLIENT_ID:"",COGNITO_DOMAIN:"",COGNITO_REDIRECT_URI:"",CAPTCHA_PROJECT:"",CAPTCHA_KEY:"",COMMENTS_CAPTCHA_API_KEY:"",CAPTCHA_KEY_V2:"",SHOW_TAG_BY_SECTION:!1,SHOW_NEWS_MORE_NEWS:!0,SHOW_NEWS_RELATED_NEWS:!0};function Dr(e={}){$n={...$n,...e}}function K(){return $n}const $a=()=>{const{ANALYTICS_comscore:e}=K();return e&&t.jsx("script",{id:"comscore",dangerouslySetInnerHTML:{__html:`var _comscore=_comscore||[];_comscore.push({c1:"2",c2:"${e}",options:{enableFirstPartyCookie:true,bypassUserConsentRequirementFor1PCookie:true}});(function(){var s=document.createElement("script"),el=document.getElementsByTagName("script")[0];s.defer=true;s.src="https://sb.scorecardresearch.com/cs/${e}/beacon.js";el.parentNode.insertBefore(s,el);})();`}})},Mr=(e,n)=>e&&n?{author:e?.authors[0]?.name??"",creator:e?.authors[0]?.name??"",section:e?.info?.section?.name??"",tags:n,hiddentags:String(e?.keywords?.hiddentags)??"",newsType:e?.info?.type??"",publishDate:new Date(e?.info?.date?.firstpublish??"").toISOString().split("T")[0]??""}:void 0,Qa=({id:e,dimensionValues:n={}})=>{const a=E.useMemo(()=>{const s={};return Object.keys(n).forEach(r=>{s[r]=r}),s},[n]),{ANALYTICS_ga4:o}=K();return o&&t.jsxs(t.Fragment,{children:[t.jsx("script",{defer:!0,src:"https://www.googletagmanager.com/gtag/js?"+e}),t.jsx("script",{id:"googleanalytics",defer:!0,dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || [];
|
|
1
|
+
(function(w,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],t):(w=typeof globalThis<"u"?globalThis:w||self,t(w["sass-template-common"]={},w["react/jsx-runtime"],w.React))})(this,(function(w,t,E){"use strict";function Or(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const ja=Or(E);let $n={PUBLIC_API_HOST:"https://dev-saas.cms-medios.com",PUBLIC_API_FRONT:"https://dev-lahora.cms-medios.com",PUBLIC_API_PATH:void 0,PUBLIC_API_PATH_VERSION:void 0,PUBLIC_X_SECURITY_TOKEN:"wj5oeACJStV3exBvodMa",PUBLIC_PUBLICATION_ID:"41",PUBLIC_TAG_TYPE:"30",PUBLIC_ENV:"local",PUBLIC_LNG:"en",PUBLIC_SERVICE_PREFIX:"false",PUBLIC_IS_SUB_PUBLICATION:void 0,PUBLIC_USERNAME_OFFLINE:"previewreactsaas",PUBLIC_PASSWORD_OFFLINE:"Y35VhZGkFtwu",PUBLIC_IS_OFFLINE:"false",PUBLIC_OFFLINE_SITE:"formula",PUBLIC_WP_API_HOST:void 0,PUBLIC_X_SECURITY_WAF_TOKEN:"false",DEPLOY_BUCKET:"false",PUBLIC_ASSETS_URL:"false",PUBLIC_BUILD_ID:"123456789",DATE_TIMEZONE:"America/Mexico_City",VARIANT_header:"op2",VARIANT_footer:"op2",VARIANT_section:"op1",VARIANT_videos:"op2",VARIANT_autor:"op1",VARIANT_tag:"op1",S3_ID_DIR:"0000000",CONFIG_comments:!1,CONFIG_hasSlugRoute:!0,CONFIG_slugAsSection:!0,CONFIG_shareOnlyWhatsApp:!0,CONFIG_blockDefaultSectionRoute:!1,ANALYTICS_ga4:void 0,ANALYTICS_marfeel:void 0,ANALYTICS_gtm:void 0,ANALYTICS_comscore:void 0,COGNITO_AUTH_PREFIX:"ASTRO_",COGNITO_CLIENT_ID:"",COGNITO_DOMAIN:"",COGNITO_REDIRECT_URI:"",CAPTCHA_PROJECT:"",CAPTCHA_KEY:"",COMMENTS_CAPTCHA_API_KEY:"",CAPTCHA_KEY_V2:"",SHOW_TAG_BY_SECTION:!1,SHOW_NEWS_MORE_NEWS:!0,SHOW_NEWS_RELATED_NEWS:!0};function Dr(e={}){$n={...$n,...e}}function K(){return $n}const $a=()=>{const{ANALYTICS_comscore:e}=K();return e&&t.jsx("script",{id:"comscore",dangerouslySetInnerHTML:{__html:`var _comscore=_comscore||[];_comscore.push({c1:"2",c2:"${e}",options:{enableFirstPartyCookie:true,bypassUserConsentRequirementFor1PCookie:true}});(function(){var s=document.createElement("script"),el=document.getElementsByTagName("script")[0];s.defer=true;s.src="https://sb.scorecardresearch.com/cs/${e}/beacon.js";el.parentNode.insertBefore(s,el);})();`}})},Mr=(e,n)=>e&&n?{author:e?.authors[0]?.name??"",creator:e?.authors[0]?.name??"",section:e?.info?.section?.name??"",tags:n,hiddentags:String(e?.keywords?.hiddentags)??"",newsType:e?.info?.type??"",publishDate:new Date(e?.info?.date?.firstpublish??"").toISOString().split("T")[0]??""}:void 0,Qa=({id:e,dimensionValues:n={}})=>{const a=E.useMemo(()=>{const s={};return Object.keys(n).forEach(r=>{s[r]=r}),s},[n]),{ANALYTICS_ga4:o}=K();return o&&t.jsxs(t.Fragment,{children:[t.jsx("script",{defer:!0,src:"https://www.googletagmanager.com/gtag/js?"+e}),t.jsx("script",{id:"googleanalytics",defer:!0,dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || [];
|
|
2
2
|
function gtag(){dataLayer.push(arguments);}
|
|
3
3
|
gtag('js', new Date());
|
|
4
4
|
|
|
@@ -44,7 +44,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
44
44
|
c0.6,0.2,1.1,0.2,1.5,0.1c0.5-0.1,1.4-0.6,1.6-1.1c0.2-0.5,0.2-1,0.1-1.1C19.7,17.1,19.6,17,19.4,16.9`})})})}),vt=e=>t.jsx("svg",{...e,version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",children:t.jsx("path",{fill:"currentColor",d:"M5.9,6.1l7.1,9.8l-7.1,7.9h1.6l6.2-7l5,7h5.4l-7.5-10.3l6.6-7.4h-1.6L16,12.5l-4.6-6.4L5.9,6.1L5.9,6.1zM8.2,7.4h2.5l11,15.3h-2.5L8.2,7.4z"})}),dl=e=>t.jsxs("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:[t.jsx("path",{fill:"currentColor",d:`M15,23.9c-0.7,0-7.3,0-9.2-0.6C4.6,23,3.7,22,3.2,20.8c-0.4-2-0.4-5.6-0.4-5.8c0-0.2,0-3.8,0.6-5.8C3.7,7.9,4.7,7,5.9,6.5c1.9-0.4,8.9-0.4,9.2-0.4c0.7,0,7.3,0,9.2,0.6C25.5,7,26.4,8,26.9,9.2c0,0,0,0,0,0.1c0.5,1.9,0.3,5.7,0.3,5.9
|
|
45
45
|
c0,0.1,0,3.8-0.4,5.7c-0.4,1.3-1.3,2.2-2.6,2.6C22.2,23.9,15.3,23.9,15,23.9z M15.1,7.6c-2,0-7.4,0.1-8.8,0.4C6,8.1,5.1,8.5,4.8,9.5c-0.5,1.8-0.5,5.4-0.5,5.4s0,3.6,0.4,5.4c0.1,0.3,0.5,1.2,1.6,1.5c1.4,0.4,6.8,0.5,8.7,0.5c2,0,7.4-0.1,8.8-0.4
|
|
46
46
|
c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
|
|
47
|
-
c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),t.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]}),ws=["telegram"],yn={facebook:e=>t.jsx(pn,{...e}),instagram:e=>t.jsx(An,{...e}),whatsapp:e=>t.jsx(ll,{...e}),tiktok:e=>t.jsx(cl,{...e}),youtube:e=>t.jsx(dl,{...e}),x:e=>t.jsx(vt,{...e}),gnews:e=>t.jsx(sl,{...e}),podcast:e=>t.jsx(rl,{...e}),telegram:e=>t.jsx(il,{...e})},hl=e=>{const{freeZone:n,socials:a,menu:o,customBlock:s}=e;return t.jsxs("footer",{className:Ae.content,children:[t.jsxs("section",{className:Ae.brandContent,children:[t.jsx(O,{href:"/","aria-label":"Ir a la home",children:t.jsx("span",{className:Ae.logoStyled,children:e.logo})}),t.jsx("div",{className:Ae.socialMedia,children:Object.keys(a).map(r=>a[r]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[r].title+" link",className:Ae.linkSocialNetwoks,href:a[r].url,children:yn[r]({className:`${ws.includes(r)?Ae.socialNetworkIcon_stroke:Ae.socialNetworkIcon} ${r==="instagram"?Ae.socialInstagram:""}`})},r))})]}),t.jsxs("section",{className:Ae.sectionContent,children:[t.jsx("div",{className:Ae.section,children:o.filter(r=>!r.subitem).map((r,i)=>t.jsx(O,{href:r.link?r.link:void 0,target:r.target,className:`${Ae.menuItem} footer-menu-item`,"aria-label":r.description,children:r.description},i))}),t.jsx("div",{className:Ae.section,children:n&&n.map((r,i)=>t.jsx(O,{href:r.link?r?.link:void 0,target:r.target,className:Ae.otherItems,children:r.description},i))})]}),s&&t.jsx(t.Fragment,{children:s}),t.jsxs("section",{className:Ae.copyrigth,children:[t.jsx("p",{className:Ae.copyrigthText,children:e.copyrigth}),t.jsx(O,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:t.jsx(ol,{})})]})]})},le={content:"_content_1msij_1",imageContent:"_imageContent_1msij_9",width1Autor:"_width1Autor_1msij_18",width2Autor:"_width2Autor_1msij_22",width3Autor:"_width3Autor_1msij_26",imageAutor:"_imageAutor_1msij_30",imageStyled:"_imageStyled_1msij_69",contentIconStyled:"_contentIconStyled_1msij_70",avatarContent:"_avatarContent_1msij_87",journalistSection:"_journalistSection_1msij_101",journalistInfo:"_journalistInfo_1msij_109",journalistInfoLink:"_journalistInfoLink_1msij_110",socialNetworkSection:"_socialNetworkSection_1msij_146",avatarStyled:"_avatarStyled_1msij_158",article:"_article_1msij_163",socialButton:"_socialButton_1msij_167",facebookStyled:"_facebookStyled_1msij_183",emailStyled:"_emailStyled_1msij_187",xStyled:"_xStyled_1msij_191",linkedinStyled:"_linkedinStyled_1msij_195",whatsappStyled:"_whatsappStyled_1msij_199",whatsappLink:"_whatsappLink_1msij_203",clipboardButton:"_clipboardButton_1msij_219",googleProfileButton:"_googleProfileButton_1msij_255"},ul=e=>t.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M11.7376 0H8.80322C5.52359 0 3.36594 2.11766 3.36594 5.50591V8.0471H0.431531C0.172612 8.0471 0 8.21652 0 8.47064V12.113C0 12.3671 0.172612 12.5365 0.431531 12.5365H3.36594V21.7695C3.36594 22.0237 3.53855 22.1931 3.79747 22.1931H7.68125C7.94016 22.1931 8.11278 22.0237 8.11278 21.7695V12.5365H11.565C11.8239 12.5365 11.9966 12.3671 11.9966 12.113V8.47064C11.9966 8.38593 11.9102 8.21652 11.8239 8.13181C11.7376 8.0471 11.6513 7.9624 11.4787 7.9624H8.02647V5.84474C8.02647 4.82826 8.28539 4.32002 9.66629 4.32002H11.6513C11.9102 4.32002 12.0829 4.15061 12.0829 3.89649V0.508238C12.1692 0.169413 11.9966 0 11.7376 0Z",fill:"black"})}),Ot=e=>t.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.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:"#162950",stroke:"#162950","stroke-width":"0.5"}),t.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:"#162950",stroke:"#162950","stroke-width":"0.5"}),t.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:"#162950",stroke:"#162950","stroke-width":"0.5"})]}),fl=e=>t.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),t.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]}),ml=e=>t.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),t.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]}),gl=e=>t.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})}),pl=e=>t.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})}),Al={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(gl,{className:e}),solid:e=>t.jsx(ul,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(vt,{className:e}),solid:e=>t.jsx(vt,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(cs,{className:e}),solid:e=>t.jsx(is,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(fl,{className:e}),solid:e=>t.jsx(ml,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(Ot,{className:e}),solid:e=>t.jsx(Ot,{className:e})}}};function bs({noteShare:e}){const n=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?t.jsxs("div",{className:le.socialNetworkSection,children:[e.options?.map(a=>{const o=Al[a];if(!o)return null;const s=e.variant==="outline"?o.icon.outline:o.icon.solid,r=o.url(n);return t.jsx(O,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${le.socialButton} ${le[`${a.toLowerCase()}Button`]??""} ${le[`${a.toLowerCase()}Styled`]}`,children:s("")},a)}),t.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[le.clipboardButton,"clipbtn-id"].join(" "),children:t.jsx(ls,{})}),t.jsx("button",{type:"button","aria-label":"share",className:[le.clipboardButton,"sharebtn-id"].join(" "),children:t.jsx(pl,{})})]}):null}const Ge={content:"_content_r1co8_1",videoContent:"_videoContent_r1co8_20",articleSection:"_articleSection_r1co8_27",title:"_title_r1co8_42",article:"_article_r1co8_27",correspondent:"_correspondent_r1co8_75",iframeStyled:"_iframeStyled_r1co8_84",contentFrame:"_contentFrame_r1co8_94"},yl=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${xe(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:Ge.content,children:t.jsx(bt,{children:t.jsxs("div",{className:Ge.videoContent,children:[t.jsx("p",{className:Ge.title,children:e.video.main.title}),e.type==="vy"&&t.jsx("iframe",{className:Ge.iframeStyled,src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:Ge.iframeStyled,src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:Ge.contentFrame,dangerouslySetInnerHTML:{__html:e.video.main.code}}),t.jsxs("div",{className:Ge.articleSection,children:[t.jsx("p",{className:Ge.article,children:Ue(e.video.main.description)}),t.jsx("p",{className:Ge.correspondent,children:n()})]})]})})})},ia={content:"_content_wxhkd_1",linkStyled:"_linkStyled_wxhkd_9"},Dt=e=>{const{currentPage:n,showNext:a,maxPages:o,pathname:s,query:r}=e,i=(c,d,l)=>{let h="";const u=d.split("/");return u.indexOf("page")!==-1&&u.splice(h.indexOf("page")-1,u.length-1),u.forEach((f,g)=>{g!==0&&(h+=`/${f}`)}),c==="next"?h+=`/page/${n+1}${l?`?query=${l}`:""}`:h+=`/page/${n-1}${l?`?query=${l}`:""}`};return(n>1||a&&n<o)&&t.jsxs("section",{className:ia.content,children:[n>1&&t.jsx(O,{className:ia.linkStyled,href:i("prev",s||"",r||""),children:e.texts.prevButtonText??"Anterior"}),a&&n<o&&t.jsx(O,{className:ia.linkStyled,href:i("next",s||"",r||""),children:e.texts.nextButtonText??"Siguiente"})]})},wn={content:"_content_zal5g_1",contentGrid:"_contentGrid_zal5g_8",contentGrid4:"_contentGrid4_zal5g_17",contentGrid3:"_contentGrid3_zal5g_21"},bn=e=>{const{grid:n=3}=e;return t.jsxs("section",{className:`${wn.content}`,children:[t.jsx("div",{className:`${wn.contentGrid} ${e.className?e.className:""} ${n===3?wn.contentGrid3:wn.contentGrid4} news-content`,children:e.children}),t.jsx(t.Fragment,{children:e.paginatorComponent})]})},Mt={content:"_content_15x47_1",newsDescription:"_newsDescription_15x47_15",image:"_image_15x47_41"},De=e=>{const{main:n,authors:a,info:o,preview:s,share:r,isVideo:i,config:c,overImage:d="default",isTitle:l,priorityHigh:h=!1,isLarge:u,paths:f,keywords:g}=e;return t.jsxs("section",{className:Mt.content,style:{...e.customSectionCardStyles},children:[t.jsx(O,{"aria-label":e.main?.title?.section,className:Mt.image,title:n?.title?.section,href:o?.link?.url,target:o?.link?.target,children:t.jsx(Ne,{preview:s,isVideo:i,isLarge:u,priorityHigh:h})}),t.jsx("div",{className:Mt.newsDescription,children:t.jsx(ct,{main:n,authors:a,info:o,preview:s,share:r,config:c,overImage:d,isTitle:l,paths:f,keywords:g})})]})},Re={content:"_content_14xk9_1",boxInformation:"_boxInformation_14xk9_12",titleGradient:"_titleGradient_14xk9_30",sectionDescription:"_sectionDescription_14xk9_58",articule:"_articule_14xk9_83",linkStyled:"_linkStyled_14xk9_116"},jt=e=>{const{isVideo:n,info:a,main:o,overImage:s="default",titleGradient:r=!1}=e,{SHOW_TAG_BY_SECTION:i}=K(),c=()=>{if(i&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const d=e.keywords.tags[0],l=d.name;return d.approved?t.jsx("h3",{children:t.jsx(O,{"aria-label":l,className:Re.sectionDescription,href:at(d,e.paths),children:l})}):t.jsx("div",{className:Re.sectionDescription,children:l})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(O,{className:Re.sectionDescription,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return t.jsxs("section",{className:Re.content,children:[t.jsx(O,{title:o?.title?.section,href:a.link.url,target:a.link.target,children:t.jsx(Ne,{preview:e.preview,isVideo:n})}),t.jsxs("div",{className:[Re.boxInformation,r?Re.titleGradient:""].join(" "),style:{width:s!=="default"?"90%":"",left:s==="left"?0:s==="right"?"calc(10% - 1px)":"auto",top:s!=="default"?"-1rem":""},children:[t.jsx(c,{}),t.jsx("h2",{className:Re.articule,children:t.jsx(O,{className:Re.linkStyled,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},Cs={content:"_content_kro73_1",contentLayout:"_contentLayout_kro73_5"},ca=e=>t.jsx("div",{className:Cs.content,children:t.jsx(bt,{className:`${Cs.contentLayout} ${e.className}`,children:e.children})}),_t={content:"_content_1nqra_1",before:"_before_1nqra_11",textContent:"_textContent_1nqra_22",title:"_title_1nqra_37",description:"_description_1nqra_46",linkStyled:"_linkStyled_1nqra_57"},wl=e=>{const n=e.logo;return t.jsxs("section",{className:_t.content,children:[e.backgroundImgURL&&t.jsx("img",{className:_t.before,src:e.backgroundImgURL,alt:""}),t.jsxs("div",{className:`${_t.textContent} error-text-content`,children:[t.jsx(n,{}),t.jsx("p",{className:_t.title,children:e.title}),t.jsx("p",{className:_t.description,children:e.description}),t.jsx(O,{className:_t.linkStyled,href:"/",children:e.buttonText??"Inicio"})]})]})},$t={content:"_content_zxcog_1",contentLabel:"_contentLabel_zxcog_8",label:"_label_zxcog_13",required:"_required_zxcog_22",input:"_input_zxcog_28"},bl=e=>t.jsxs("div",{className:$t.content,children:[t.jsxs("div",{className:$t.contentLabel,children:[t.jsx("label",{className:$t.label,children:e.label}),e.required&&t.jsx("span",{className:$t.required,children:"*"})]}),t.jsx("input",{className:$t.input,...e})]}),Qt={content:"_content_zgx5w_1",contentLabel:"_contentLabel_zgx5w_8",label:"_label_zgx5w_13",required:"_required_zgx5w_22",input:"_input_zgx5w_28"},Cl=e=>t.jsxs("div",{className:Qt.content,children:[t.jsxs("div",{className:Qt.contentLabel,children:[t.jsx("label",{className:Qt.label,children:e.label}),e.required&&t.jsx("span",{className:Qt.required,children:"*"})]}),t.jsxs("select",{className:Qt.input,...e,children:[t.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((n,a)=>t.jsx("option",{value:n.value,children:n.label},a))]})]}),la={content:"_content_1mi9t_1",label:"_label_1mi9t_8",input:"_input_1mi9t_17"},vl=e=>t.jsxs("div",{className:la.content,children:[t.jsx("label",{className:la.label,children:e.label}),t.jsx("textarea",{className:la.input,...e})]}),et={boxInformation:"_boxInformation_achvw_1",textBox:"_textBox_achvw_30",contentBox:"_contentBox_achvw_40",liveBox:"_liveBox_achvw_50",dot:"_dot_achvw_72",sectionDescription:"_sectionDescription_achvw_97",articule:"_articule_achvw_110",description:"_description_achvw_137"},Cn={content:"_content_1ihav_1",description:"_description_1ihav_23"},vs=e=>{let n="";return e.preview.description&&(n=e.preview.description),e.preview.copyright&&(n=`${n} ${e.preview.copyright}`),e.preview.photographer&&(n=`${n} ${e.preview.photographer}`),t.jsxs("div",{className:Cn.content,children:[t.jsx(Ne,{preview:e.preview,isLarge:!0,priorityHigh:!0}),n&&t.jsx("div",{className:Cn.description,children:n})]})},_s=e=>t.jsx(t.Fragment,{children:t.jsxs("div",{className:`${et.boxInformation} sass-liveblog-header`,children:[t.jsx(vs,{preview:e.preview}),t.jsxs("div",{className:et.textBox,children:[t.jsxs("div",{className:et.contentBox,children:[e?.info?.section&&t.jsx(O,{className:et.sectionDescription,href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsxs("div",{className:et.liveBox,children:[t.jsx("span",{className:et.dot}),t.jsx("p",{children:"EN VIVO"})]})]}),t.jsx("h1",{className:et.articule,children:e.main?.title?.section}),e.config?.showsubtitle&&t.jsx("div",{className:et.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),vn={content:"_content_oipiy_1",contentLine:"_contentLine_oipiy_17",contentText:"_contentText_oipiy_24",dateLink:"_dateLink_oipiy_37"},Ss=e=>t.jsx("section",{className:vn.content,children:e.itemList[0]?.list.items.map((n,a)=>t.jsxs("div",{className:vn.contentLine,children:[t.jsx(O,{className:vn.dateLink,href:`#item-${a+1}`,children:Ja(n.date)}),t.jsx("div",{className:vn.contentText,children:(e.itemList[0]?.list.integrated,n.title)})]},a))}),ue={content:"_content_qg1r7_1",contentInfo:"_contentInfo_qg1r7_11",imageContainer:"_imageContainer_qg1r7_19",imageStyled:"_imageStyled_qg1r7_28",contentIconStyled:"_contentIconStyled_qg1r7_39",name:"_name_qg1r7_65",email:"_email_qg1r7_74",description:"_description_qg1r7_90",contenSocialNetwork:"_contenSocialNetwork_qg1r7_102",socialIcon:"_socialIcon_qg1r7_112",socialIconLink:"_socialIconLink_qg1r7_117",socialIconLinkedIn:"_socialIconLinkedIn_qg1r7_121"},_n=e=>{if(!e||e.trim()==="")return e;const n=e.trim();return n.startsWith("http://")||n.startsWith("https://")?n:`https://${n}`},Ns=async e=>{const{autor:n,autorIcon:a}=e,o=a,s=n?.info?.image?.sizes?.[0]?.url??"",r=n?.info?.fullname??"",i=n?.info?.email??"",c=n?.addtional?.USER_SHOWEMAIL??!1,d=n?.addtional?.USER_SHOWBIO??!1,l=n?.addtional?.USER_MIBIO??"",h=_n(n?.addtional?.USER_USERFB??""),u=_n(n?.addtional?.USER_USERIG??""),f=_n(n?.addtional?.USER_USERTWT??""),g=_n(n?.addtional?.USER_USERLIN??"");return t.jsx("section",{className:`${ue.content} ${e.className?e.className:""}`,children:t.jsxs("div",{className:ue.contentInfo,children:[s?t.jsx("div",{className:`${ue.imageContainer} sass-image-autor-wrapper`,children:t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"",className:ue.imageStyled,src:await de(s)})}):t.jsx("div",{className:`${ue.contentIconStyled} sass-image-autor-wrapper`,children:t.jsx(o,{})}),t.jsx("h1",{className:ue.name,children:r}),c&&t.jsx("p",{className:ue.email,children:i}),d&&t.jsx("p",{className:ue.description,children:l}),t.jsxs("div",{className:ue.contenSocialNetwork,children:[h&&t.jsx("a",{href:h,target:"_blank",className:ue.socialIconLink,rel:"noreferrer",children:t.jsx(pn,{className:ue.socialIcon})}),u&&t.jsx("a",{href:u,target:"_blank",className:ue.socialIconLink,rel:"noreferrer",children:t.jsx(An,{className:ue.socialIcon})}),f&&t.jsx("a",{href:f,target:"_blank",className:ue.socialIconLink,rel:"noreferrer",children:t.jsx(vt,{className:ue.socialIcon})}),g&&t.jsx("a",{href:g,target:"_blank",className:`${ue.socialIconLink} ${ue.socialIconLinkedIn}`,rel:"noreferrer",children:t.jsx(Ot,{className:ue.socialIcon})})]})]})})},Ee={content:"_content_18ozj_1",contentInfo:"_contentInfo_18ozj_13",contentAuthor:"_contentAuthor_18ozj_26",imageStyled:"_imageStyled_18ozj_33",contentIconStyled:"_contentIconStyled_18ozj_42",name:"_name_18ozj_64",email:"_email_18ozj_72",description:"_description_18ozj_82",contenSocialNetwork:"_contenSocialNetwork_18ozj_93",socialIcon:"_socialIcon_18ozj_103"},Es=async e=>{const{autor:n,autorIcon:a}=e,o=a,s=n?.info?.image?.sizes?.[0]?.url??"",r=n?.info?.fullname??"",i=n?.info?.email??"",c=n?.addtional?.USER_SHOWEMAIL??!1,d=n?.addtional?.USER_SHOWBIO??!1,l=n?.addtional?.USER_MIBIO??"",h=n?.addtional?.USER_USERFB??"",u=n?.addtional?.USER_USERIG??"",f=n?.addtional?.USER_USERTWT??"",g=n?.addtional?.USER_USERLIN??"";return t.jsx("section",{className:Ee.content,children:t.jsxs("div",{className:Ee.contentInfo,children:[s?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Ee.imageStyled,src:await de(s)}):t.jsx("div",{className:Ee.contentIconStyled,children:t.jsx(o,{})}),t.jsxs("div",{className:Ee.contentAuthor,children:[t.jsx("h1",{className:Ee.name,children:r}),c&&t.jsx("p",{className:Ee.email,children:i}),d&&t.jsx("p",{className:Ee.description,children:l}),t.jsxs("div",{className:Ee.contenSocialNetwork,children:[h&&t.jsx("a",{href:h,target:"_blank",rel:"noreferrer",children:t.jsx(pn,{className:Ee.socialIcon})}),u&&t.jsx("a",{href:u,target:"_blank",rel:"noreferrer",children:t.jsx(An,{className:Ee.socialIcon,style:{padding:"4px"}})}),f&&t.jsx("a",{href:f,target:"_blank",rel:"noreferrer",children:t.jsx(vt,{className:Ee.socialIcon})}),g&&t.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:t.jsx(Ot,{className:Ee.socialIcon})})]})]})]})})},Is={content:"_content_jg6i2_1",bannerSection:"_bannerSection_jg6i2_25"},da=e=>t.jsxs("section",{className:Is.content,children:[e.children,t.jsxs("div",{className:Is.bannerSection,children:[e.bannerTop,t.jsx(gn,{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]})]}),Be={content:"_content_kmqba_1",header:"_header_kmqba_30",videos:"_videos_kmqba_56",videoContent:"_videoContent_kmqba_63",articleSection:"_articleSection_kmqba_70",contentLayoutVideoSection:"_contentLayoutVideoSection_kmqba_85",sectionVideoList:"_sectionVideoList_kmqba_93",iframeStyled:"_iframeStyled_kmqba_166",contentFrame:"_contentFrame_kmqba_172"},ha={content:"_content_1dj0q_1",linkImage:"_linkImage_1dj0q_12",playStyled:"_playStyled_1dj0q_19"},_l=async e=>{const n=mn(),a={...e,main:{...e.main,title:{...e.main.title,article:Ue(e.main.title.article,60)}}};return e&&e.info?t.jsxs("section",{className:ha.content,children:[t.jsx("a",{className:ha.linkImage,target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx("img",{src:await de(e.preview.sizes[0]?.url||"")}),t.jsx(n,{className:`${ha.playStyled} saas-image-play-icon`})]})}),t.jsx("div",{children:t.jsx(ct,{...a,paths:e.paths})})]}):null},Sl=e=>t.jsx("div",{className:Be.content,children:t.jsxs(bt,{className:Be.contentLayoutVideoSection,children:[t.jsxs("a",{className:Be.header,href:e.goBackLink??"/videos",children:[t.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"white"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),t.jsxs("div",{className:Be.videos,children:[t.jsxs("div",{className:Be.videoContent,style:e.mainVideoStyles,children:[e.type==="vy"&&t.jsx("iframe",{className:Be.iframeStyled,src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:Be.iframeStyled,src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:Be.contentFrame,dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),t.jsx("div",{className:Be.articleSection,children:t.jsx(ct,{isTitle:!0,cutSubtitle:!1,...gt({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description),paths:e.paths})})]}),t.jsxs("div",{className:Be.sectionVideoList,style:e.listVideoStyles,children:[e.banner&&t.jsx(ge,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&t.jsx("h2",{className:`${Be.relatedTitle} saas-video-related-title`,children:e.relatedName}),Array.isArray(e.videoList)&&e.videoList.map((n,a)=>E.createElement(_l,{...gt(n,!0,!1,!1),key:a,paths:e.paths}))]})]})]})}),He={content:"_content_gcte1_1",titleContent:"_titleContent_gcte1_24",title:"_title_gcte1_24",startLine:"_startLine_gcte1_88",line:"_line_gcte1_93",bottomLine:"_bottomLine_gcte1_99",childrenContent:"_childrenContent_gcte1_118",readMore:"_readMore_gcte1_131"},fe=E.forwardRef((e,n)=>{const{isTitle:a=!1,isOpinion:o=!1}=e,s=a?t.jsx("h1",{className:He.title,children:e.title}):t.jsx("h2",{className:He.title,children:e.title});return t.jsxs("section",{className:He.content,children:[e.title&&t.jsxs("div",{className:[He.titleContent,e.className??""].join(" "),"data-after":`${o}`,children:[t.jsx("hr",{className:He.startLine}),e.titleUrl?t.jsx(O,{href:e.titleUrl,children:s}):s,t.jsx("hr",{className:He.line}),e.titleUrl&&t.jsx(O,{className:He.readMore,href:e.titleUrl?.toString()??""})]}),e.title&&t.jsx("hr",{className:[He.bottomLine,e.className??""].join(" ")}),t.jsx("div",{className:He.childrenContent,ref:n,children:e.children})]})}),ua=e=>t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),Sn=e=>t.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:e.fill??"#7B888A"})}),ce={drawerStyled:"_drawerStyled_tm61w_1",sidebarCustom:"_sidebarCustom_tm61w_6",accordionStyled:"_accordionStyled_tm61w_24",accordionHeading:"_accordionHeading_tm61w_35",accordionSummeryStyled:"_accordionSummeryStyled_tm61w_44",linkStyled:"_linkStyled_tm61w_72",subLinkStyled:"_subLinkStyled_tm61w_92",inputContent:"_inputContent_tm61w_114",buttonContent:"_buttonContent_tm61w_115",inputStyled:"_inputStyled_tm61w_125",buscar:"_buscar_tm61w_141",buttonStyled:"_buttonStyled_tm61w_170",accordionDetailsStyled:"_accordionDetailsStyled_tm61w_185",footerSlider:"_footerSlider_tm61w_200",socialMedia:"_socialMedia_tm61w_211",copyRights:"_copyRights_tm61w_230",icon:"_icon_tm61w_241"},Nl=({sidebar:e,socials:n,copyrigth:a,sidebarExtra:o,searchKeyWord:s})=>t.jsxs("aside",{className:ce.drawerStyled,id:"sidebar-expandable",style:{"--header-icons":"var(--search-input-icons)"},children:[t.jsx("input",{type:"checkbox",id:"side-bar-state"}),t.jsxs("section",{className:ce.sidebarCustom,children:[t.jsx("div",{className:ce.buttonContent,children:t.jsx("label",{className:ce.buttonStyled,htmlFor:"side-bar-state",children:t.jsx(Ct,{className:ce.icon})})}),t.jsx("div",{className:ce.inputContent,children:t.jsxs("form",{className:ce.inputStyled,action:"/buscar",method:"GET",children:[t.jsx("input",{className:ce.buscar,type:"text",name:"query",placeholder:s+"..."}),t.jsx("button",{type:"submit",style:{background:"transparent",border:"none",outline:"none",padding:0,margin:0},children:t.jsx(ua,{color:"var(--search-input-icons)"})})]})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[t.jsxs("div",{children:[o,e.map((r,i)=>t.jsxs("div",{className:ce.accordionStyled,children:[t.jsx("input",{type:"checkbox",style:{display:"none"},id:"accordion_"+i}),t.jsx("h3",{className:ce.accordionHeading,children:Array.isArray(r.subitem)?t.jsxs("label",{className:ce.accordionSummeryStyled,htmlFor:"accordion_"+i,children:[r.link?t.jsx(O,{className:`${ce.linkStyledAccordion} ${ce.linkStyled}`,href:r.link?r.link:void 0,target:r.target,children:r.description}):t.jsx("div",{children:r.description}),t.jsx(Sn,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):t.jsx(O,{className:ce.linkStyled,href:r.link?r.link:void 0,target:r.target,children:r.description})}),Array.isArray(r.subitem)&&t.jsx("div",{className:ce.accordionDetailsStyled,style:{"--max-height":r.subitem.length*45+"px"},children:r.subitem.map((c,d)=>t.jsx(O,{className:ce.subLinkStyled,href:c.link?c.link:void 0,target:c.target,children:c.description},d))})]},i))]}),t.jsxs("div",{className:ce.footerSlider,children:[t.jsx("div",{className:ce.socialMedia,children:Object.keys(n).map(r=>n[r]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":n[r].title+" link",className:ce.linkSocialNetwork,href:n[r].url,children:yn[r]({className:ce.icon})},r))}),t.jsx("p",{className:ce.copyRights,children:a})]})]})]})]}),Ts=e=>t.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color}),t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color})]}),Gt={content:"_content_y5b1f_1",chipStyled:"_chipStyled_y5b1f_17",headLine:"_headLine_y5b1f_17",live:"_live_y5b1f_25",closeLiveStyled:"_closeLiveStyled_y5b1f_87"},ks=e=>{const{alertZone:n,id:a="close-alert"}=e,o=()=>t.jsx(O,{className:Gt.headLine,href:n?.data[0]?.info.link.url,target:n?.data[0]?.info.link.target,title:n?.data[0]?.main.title.home,children:n?.data[0]?.main?.title.home??""});return t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(n&&n?.data&&n?.data[0]?.main?.title.home)}),n&&n?.data&&n?.data[0]?.main?.title.home&&t.jsxs("div",{id:"alert-chip",className:Gt.content,style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[t.jsxs("div",{className:Gt.live,children:[t.jsx("div",{className:Gt.chipStyled,children:n?.entity?.description}),e.forceShow&&t.jsx(o,{}),t.jsx("label",{htmlFor:a,children:t.jsx(Ct,{className:Gt.closeLiveStyled})})]}),t.jsx(o,{})]})]})},ze={content:"_content_18yq5_1",linkStyled:"_linkStyled_18yq5_14",linkSocialNetwork:"_linkSocialNetwork_18yq5_28",title:"_title_18yq5_49",tabs:"_tabs_18yq5_60",socialNetwork:"_socialNetwork_18yq5_68",icon:"_icon_18yq5_78",facebook:"_facebook_18yq5_84",youtube:"_youtube_18yq5_88",x:"_x_18yq5_92",instagram:"_instagram_18yq5_96",gnews:"_gnews_18yq5_100",tiktok:"_tiktok_18yq5_104",whatsapp:"_whatsapp_18yq5_108"},xs=e=>{const{cintillo:n,tapeTitle:a,socials:o}=e,s="",r=n?.findIndex(i=>i.link===s)??0;return(Array.isArray(n)||e.socialIcons)&&t.jsxs("section",{className:ze.content,children:[Array.isArray(n)&&t.jsxs("div",{className:`${ze.tabs} header-page-tape-content`,children:[a!==""&&t.jsx("p",{className:ze.title,children:`${a}`}),n&&n[r]&&t.jsx(O,{className:ze.linkStyled,target:n[r]?.target,href:n[r]?.link,style:{color:n[r]?.link===s?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:n[r]?.link===s?"700":"400"},children:n[r]?.description},r),n&&n.map((i,c)=>{if(c!==r)return t.jsx(O,{className:ze.linkStyled,href:i?.link,style:{color:i?.link===s?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===s?"700":"400"},children:i?.description},c)})]}),t.jsx("div",{className:ze.socialNetwork,children:Object.keys(o).map(i=>o[i]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":o[i].title+" link",className:ze.linkSocialNetwork,href:o[i].url,children:yn[i]({className:[ze.icon,ze[i]??""].join(" ")})},i))})]})},ke={headerStyled:"_headerStyled_6yw62_1",headerContent:"_headerContent_6yw62_14",iconContent:"_iconContent_6yw62_25",menuButton:"_menuButton_6yw62_34",logoStyled:"_logoStyled_6yw62_66",buttonSection:"_buttonSection_6yw62_94",buttonSectionSearch:"_buttonSectionSearch_6yw62_109",headLineContent:"_headLineContent_6yw62_131",headLineTitle:"_headLineTitle_6yw62_144",headLine:"_headLine_6yw62_131",hasAlertZone:"_hasAlertZone_6yw62_197"},El=e=>{const{alertZone:n}=e;return t.jsxs("header",{className:ke.headerStyled,children:[e.socialIcons&&e.headerTape?.sticky&&t.jsx(xs,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),t.jsxs("div",{className:`${ke.headerContent} center-mobile-header-icon`,children:[t.jsx(ra,{id:"button-app",className:ke.menuButton,toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:t.jsx(Ts,{className:ke.startIcon,color:"var(--header-icons)",width:27,height:27})}),t.jsx("div",{className:ke.iconContent,children:t.jsx(O,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:E.createElement("span",{className:ke.logoStyled},e.icon)})}),!e.showAlertPop&&n?.data&&t.jsxs("div",{className:ke.headLineContent,children:[t.jsx("div",{className:`${ke.headLineTitle} headLineTitle`,children:n.entity.description?`${n.entity.description}`:""}),t.jsx(O,{className:ke.headLine,href:n.data[0]?.info.link.url,target:n.data[0]?.info.link.target,title:n.data[0]?.main.title.home,children:Ue(n.data[0]?.main.title.home??"",120)})]}),t.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:[ke.buttonSection,n?.data?ke.hasAlertZone:"","search-button"].join(" "),children:[t.jsx(O,{href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:`${ke.buttonSectionSearch} search-button-icon`,style:{display:"flex"},children:t.jsx(ua,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&t.jsx(ks,{alertZone:n,forceShow:e.showAlertPop})]})},Fe={ul:"_ul_oit7k_1",li:"_li_oit7k_10",liBefore:"_liBefore_oit7k_18",ulContent:"_ulContent_oit7k_29",contentModal:"_contentModal_oit7k_56",linkStyled:"_linkStyled_oit7k_68",itemLink:"_itemLink_oit7k_93"},Il=e=>{const{items:n}=e;return t.jsx("ul",{className:Fe.ul,children:n.map((a,o)=>t.jsxs("li",{className:`${Fe.liBefore} ${Fe.li}`,children:[a.link?t.jsxs(O,{"aria-label":a.description,className:Fe.linkStyled,href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&t.jsx(Sn,{})]}):t.jsxs("span",{"aria-label":a.description,className:Fe.linkStyled,children:[a.description,Array.isArray(a.subitem)&&t.jsx(Sn,{})]}),Array.isArray(a.subitem)&&t.jsx("ul",{className:Fe.ulContent,children:t.jsx("div",{className:Fe.contentModal,children:a.subitem.map((s,r)=>t.jsx("li",{className:Fe.li,children:t.jsx(O,{className:Fe.itemLink,"aria-label":s.description,href:s.link?s.link:void 0,target:s.target,children:s.description})},r))})})]},o))})},ye={headerStyled:"_headerStyled_q9qvi_1",headerContent:"_headerContent_q9qvi_23",menuButtonSection:"_menuButtonSection_q9qvi_33",menuButton:"_menuButton_q9qvi_33",buttonSection:"_buttonSection_q9qvi_84",buttonSectionSearch:"_buttonSectionSearch_q9qvi_101",hasAlertZone:"_hasAlertZone_q9qvi_112",buttonText:"_buttonText_q9qvi_131",logoContent:"_logoContent_q9qvi_141",logoStyled:"_logoStyled_q9qvi_149",headLineContent:"_headLineContent_q9qvi_173",headLineTitle:"_headLineTitle_q9qvi_188",menuSection:"_menuSection_q9qvi_204",headLine:"_headLine_q9qvi_173",line:"_line_q9qvi_256"},Tl=e=>{const{menu:n,alertZone:a}=e;return t.jsxs("header",{className:ye.headerStyled,style:{top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&t.jsx(xs,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),t.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:[ye.headerContent,a?.data?ye.hasAlertZone:""].join(" "),children:[t.jsx("div",{className:`${ye.menuButtonSection} sass-header-menu-button`,children:t.jsxs(ra,{className:ye.menuButton,id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[t.jsx(Ts,{color:"var(--header-icons)",width:27,height:27}),t.jsx("p",{className:ye.buttonText,style:{lineHeight:0},children:e.menuText})]})}),t.jsx("div",{className:ye.logoContent,children:t.jsx(O,{href:"/","aria-label":"Home",className:"header-logo-link",children:E.createElement("span",{className:`${ye.logoStyled}`},e.icon)})}),t.jsxs("div",{className:`${ye.buttonSection} sass-header-right-button-section`,children:[t.jsx(O,{href:e.searchLink?e.searchLink:"/buscar",style:{display:"flex"},className:ye.buttonSectionSearch,"aria-label":e.searchKeyWord,children:t.jsx(ua,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?t.jsxs("div",{className:ye.headLineContent,children:[t.jsx("p",{className:`${ye.headLineTitle} headLineTitle`,children:a.entity.description?`${a.entity.description}`:""}),t.jsx(O,{className:ye.headLine,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:Ue(a.data[0]?.main.title.home??"",120)})]}):t.jsx("div",{className:ye.line}),t.jsx("div",{className:ye.menuSection,style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(n)&&t.jsx(Il,{items:n})})]})]})},fa={childrenContent:"_childrenContent_wqlb4_1",childrenContentAux:"_childrenContentAux_wqlb4_12",op2:"_op2_wqlb4_25"},kl=e=>{const{alertZone:n,children:a,sidebar:o}=e;return t.jsxs(t.Fragment,{children:[t.jsx(El,{...e}),!e.showOnlyStickyHeader&&t.jsx(Tl,{...e}),t.jsxs("div",{className:[fa.childrenContent,e.showAlertPop?fa.op2:"",n?.data?fa.childrenContentAux:""].join(" "),style:e.showOnlyStickyHeader?{"--hasAlertMargin":"3.6rem !important"}:{},id:"content-layout",children:[e.showAlertPop&&t.jsx(ks,{alertZone:n,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]}),t.jsx(Nl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:o,socials:e.socials,copyrigth:e.copyrigth})]})},St={content:"_content_16ydf_1",tags:"_tags_16ydf_10",chipStyled:"_chipStyled_16ydf_20",tagLink:"_tagLink_16ydf_47",tagStyled:"_tagStyled_16ydf_53"},Us=e=>t.jsx("section",{className:St.content,children:Array.isArray(e.tags)&&t.jsxs("div",{className:St.tags,children:[t.jsx("p",{className:St.tagStyled,children:e.title?e.title:"Tags:"}),e.tags.map((n,a)=>n.approved?t.jsx(O,{href:at(n,e.paths),children:t.jsx("div",{className:`${St.chipStyled} ${St.tagLink}`,children:n.name})},a):t.jsx("div",{className:St.chipStyled,children:n.name},a))]})}),Me={contentBox:"_contentBox_1cum1_1",content:"_content_1cum1_1",imageStyled:"_imageStyled_1cum1_16",contentIconStyled:"_contentIconStyled_1cum1_23",avatarContent:"_avatarContent_1cum1_43",journalistSection:"_journalistSection_1cum1_50",journalistInfo:"_journalistInfo_1cum1_56",socialNetworkSection:"_socialNetworkSection_1cum1_75",article:"_article_1cum1_88"},Ls=async e=>{const{autor:n}=e,a=n?.addtional?.USER_SHOWBIO??!1,o=n?.info?.name??"",s=n?.info?.fullname??"",r=n?.info?.image?.sizes?.[0]?.url??"",i=n?.addtional?.USER_MIBIO??"",c=n?.addtional?.USER_USERFB??"",d=n?.addtional?.USER_USERIG??"",l=n?.addtional?.USER_USERTWT??"",h=n?.addtional?.USER_USERLIN??"";return a&&t.jsx("section",{className:Me.contentBox,children:t.jsxs("div",{className:Me.content,children:[t.jsxs("div",{className:Me.avatarContent,children:[t.jsx(O,{className:Me.journalistInfo,href:`/${e.paths.autor}/${o}`,children:r?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor-image",className:Me.imageStyled,src:await de(r)}):t.jsx("div",{className:Me.contentIconStyled,children:e.autorIcon()})}),t.jsxs("section",{className:Me.journalistSection,children:[t.jsx("h3",{className:Me.journalistInfo,children:t.jsx(O,{href:`/${e.paths.autor}/${o}`,children:s})}),t.jsxs("section",{className:Me.socialNetworkSection,children:[c&&t.jsx("a",{href:c,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),d&&t.jsx("a",{href:d,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[t.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),t.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),t.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_281_2357",children:t.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),l&&t.jsx("a",{href:l,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),h&&t.jsx("a",{href:h,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})})]})]})]}),a&&t.jsx("p",{className:Me.article,dangerouslySetInnerHTML:{__html:`${i} <a aria-label="${o}" href="/${e.paths.autor}/${o}">${e.texts.authorViewMore??"Ver más"}</a>`}})]})})},tt={content:"_content_vmnac_1",imageStyled:"_imageStyled_vmnac_20",contentIconStyled:"_contentIconStyled_vmnac_21",contentCard:"_contentCard_vmnac_31",contentInfo:"_contentInfo_vmnac_70",fullName:"_fullName_vmnac_76",LearnMoreLink:"_LearnMoreLink_vmnac_83"},qs=async e=>{const{news:n,texts:a}=e;return n.config?.showauthor&&t.jsx("div",{className:tt.content,children:Array.isArray(n.authors)&&n.authors?.map(async o=>t.jsxs("div",{className:tt.contentCard,children:[o.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:tt.imageStyled,src:await de(o.image.sizes[0]?.url||"")},o.fullname):t.jsx("div",{className:tt.contentIconStyled,children:e.autorIcon},o.fullname),t.jsxs("div",{className:tt.contentInfo,children:[o.internaluser?t.jsx("a",{className:tt.fullName,href:`/${e.paths.autor}/${o.name}`,children:o.fullname}):t.jsx("p",{className:tt.fullName,children:o.fullname}),o.internaluser&&t.jsx("a",{className:tt.LearnMoreLink,href:`/${e.paths.autor}/${o.name}`,children:a.JournalistGroupLink})]})]},`author-${o.firstname}`))})},me={content:"_content_pcdw1_1",urlTag:"_urlTag_pcdw1_12",contentInfo:"_contentInfo_pcdw1_38",imageStyled:"_imageStyled_pcdw1_55",name:"_name_pcdw1_60",description:"_description_pcdw1_65",imageContainer:"_imageContainer_pcdw1_78",contenSocialNetwork:"_contenSocialNetwork_pcdw1_129",socialIcon:"_socialIcon_pcdw1_139",socialIconLink:"_socialIconLink_pcdw1_144",socialIconLinkedIn:"_socialIconLinkedIn_pcdw1_148",contentInfoWithoutImg:"_contentInfoWithoutImg_pcdw1_152"},Nn=e=>{if(!e||e.trim()==="")return e;const n=e.trim();return n.startsWith("http://")||n.startsWith("https://")?n:`https://${n}`},xl=async e=>{const n=e.img?await de(e.img):"",a=Nn(e.social?.facebook??""),o=Nn(e.social?.instagram??""),s=Nn(e.social?.twitter??""),r=Nn(e.social?.linkedin??"");return t.jsx("section",{className:`${me.content} ${e.className}`,children:t.jsxs("div",{className:`${me.contentInfo} ${n?"":me.contentInfoWithoutImg}`,children:[e.img&&t.jsx("div",{className:`${me.imageContainer} sass-image-tag-wrapper`,children:t.jsx("img",{fetchPriority:"low",loading:"lazy",className:me.imageStyled,src:n})}),t.jsx("h1",{className:me.name,children:e.tag}),e.description&&t.jsx("div",{className:me.description,dangerouslySetInnerHTML:{__html:e.description}}),e.url&&t.jsx("a",{className:me.urlTag,href:e.url,children:e.url}),t.jsxs("div",{className:me.contenSocialNetwork,children:[a&&t.jsx("a",{href:a,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:t.jsx(pn,{className:me.socialIcon})}),o&&t.jsx("a",{href:o,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:t.jsx(An,{className:me.socialIcon})}),s&&t.jsx("a",{href:s,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:t.jsx(vt,{className:me.socialIcon})}),r&&t.jsx("a",{href:r,target:"_blank",className:`${me.socialIconLink} ${me.socialIconLinkedIn}`,rel:"noreferrer",children:t.jsx(Ot,{className:me.socialIcon})})]})]})})},Ie={content:"_content_1j0pj_1",contentNews:"_contentNews_1j0pj_10",linkTitle:"_linkTitle_1j0pj_27",tag:"_tag_1j0pj_35",tagmx:"_tagmx_1j0pj_55",titular:"_titular_1j0pj_70",correspondent:"_correspondent_1j0pj_85",correspondentLink:"_correspondentLink_1j0pj_96",description:"_description_1j0pj_107"},Nt=e=>{const{SHOW_TAG_BY_SECTION:n}=K(),a=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${xe(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return xe(e.info?.date?.modified)},o=()=>{if(n&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?t.jsxs("h3",{children:[" ",t.jsx(O,{"aria-label":i,className:Ie.tagmx,href:at(r,e.paths),children:i})]}):t.jsx("div",{className:Ie.tagmx,children:i})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(O,{className:Ie.tagmx,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},s=()=>{if(n&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?t.jsx("h3",{children:t.jsx(O,{"aria-label":i,className:Ie.tag,href:at(r,e.paths),children:i})}):t.jsx("div",{className:Ie.tag,children:i})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(O,{className:Ie.tag,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return t.jsxs("section",{className:`${Ie.content} destacado-super-content`,children:[t.jsx(O,{href:e?.info?.link?.url,target:e?.info?.link?.target,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:t.jsx(Ne,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),t.jsxs("div",{className:Ie.contentNews,style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[t.jsx(o,{}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(s,{}),t.jsx(O,{className:Ie.linkTitle,href:e?.info?.link?.url,target:e?.info?.link?.target,children:t.jsx("h1",{className:Ie.titular,style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&t.jsx("div",{className:Ie.description,dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&t.jsx(t.Fragment,{children:e.authors[0]?.internaluser?t.jsx(O,{href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:Ie.correspondent,children:a()}):t.jsx("p",{className:Ie.correspondentLink,children:a()})})]})]})},Bs=e=>{const{main:n,authors:a,info:o,preview:s,isVideo:r,config:i,itemReverseOrder:c,imageSize:d,showSuper:l}=e;return t.jsxs("section",{className:Hc.content,children:[l?t.jsx("section",{style:{...e.customSectionCardStyles},children:t.jsx(Nt,{main:n,authors:a,info:o,preview:s,isVideo:r,config:i,paths:e.paths})}):t.jsx(De,{...e,main:n,authors:a,info:o,preview:s,isVideo:r,config:i,priorityHigh:!0}),e.banners&&t.jsx(ge,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&t.jsx(ms,{block:e.block,itemReverseOrder:c,priorityHigh:!0,imageSize:d,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})]})},ma={content:"_content_1dcf7_1",firstSection:"_firstSection_1dcf7_10",secondSection:"_secondSection_1dcf7_16"},Ul=({content:e,customLargeSection:n,customSmallSection:a,paths:o})=>{const s=e[0];return Array.isArray(e)&&e.length>0&&s&&t.jsxs("section",{className:ma.content,children:[t.jsx("div",{style:n,className:ma.firstSection,children:t.jsx(Nt,{...s,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})}),t.jsx("div",{style:a,className:ma.secondSection,children:e.map((r,i)=>i>0&&E.createElement(Nt,{...r,key:i,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:o}))})]})},Ps={content:"_content_wsx1m_1",firstSection:"_firstSection_wsx1m_8"},Ll=({content:e,customLargeSection:n,customSlimSection:a,paths:o})=>Array.isArray(e)&&e.length>0&&t.jsx("section",{className:Ps.content,children:e.map((s,r)=>r===0?t.jsx("div",{style:n,className:Ps.firstSection,children:t.jsx(Nt,{...s,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r):t.jsx("section",{style:a,children:E.createElement(Nt,{...s,key:r,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r))}),lt={content:"_content_1n73e_1",sectionDescription:"_sectionDescription_1n73e_13",title:"_title_1n73e_33",subtitle:"_subtitle_1n73e_47",linkStyled:"_linkStyled_1n73e_58"},Os=e=>{const{SHOW_TAG_BY_SECTION:n}=K(),a=()=>{if(n&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],s=o.name;return o.approved?t.jsx("h3",{children:t.jsx(O,{"aria-label":s,className:lt.sectionDescription,href:at(o,e.paths),children:s})}):t.jsx("div",{className:lt.sectionDescription,children:s})}else if(e.mainNew.info?.section?.url)return t.jsx("h3",{children:t.jsx(O,{className:lt.sectionDescription,href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return t.jsxs("div",{className:lt.content,children:[t.jsx(a,{}),t.jsx(O,{className:lt.title,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&t.jsx("p",{className:lt.subtitle,children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&t.jsx(O,{href:e.goTo.url,className:lt.linkStyled,children:e.goTo.description})]})},ga={headerSection:"_headerSection_drjnj_1",headerSectionLink:"_headerSectionLink_drjnj_12",newsContent:"_newsContent_drjnj_17"},Ds=e=>{const{content:n,title:a,isVideo:o}=e;if(!n||!n[0]||n.length===0)return;const s=e.slot_id&&e.slot_id!=="Nota_1",r={...n[0],main:{...n[0].main,title:{...n[0].main.title,section:s?n[0].main.title.home:n[0].main.title.section}}},i=n.slice(1);return r&&i&&t.jsxs(fe,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:ga.headerSection,children:[t.jsx(Os,{mainNew:r,goTo:e.goTo,paths:e.paths}),t.jsx(O,{className:ga.headerSectionLink,href:r?.info?.link?.url,target:r?.info?.link?.target,children:t.jsx(Ne,{preview:r.preview})})]}),t.jsxs("div",{className:ga.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:s?c.main.title.home:c.main.title.section}}};return t.jsx("div",{style:{order:d},children:t.jsx(De,{...l,isVideo:o,paths:e.paths})},d)})]})]})},Ve={content:"_content_1stvq_1",autorContent:"_autorContent_1stvq_8",image:"_image_1stvq_24",contentIcon:"_contentIcon_1stvq_25",boxInformationContent:"_boxInformationContent_1stvq_47",autorName:"_autorName_1stvq_53",time:"_time_1stvq_85",comment:"_comment_1stvq_98",title:"_title_1stvq_107"},En=async e=>{const{data:n,autorIcon:a}=e,o=a,s=()=>n?.config?.showtime?`${xe(n.info?.date?.modified)}`:"",r=t.jsxs("div",{className:Ve.autorContent,children:[Array.isArray(n?.authors)&&Array.isArray(n?.authors[0]?.image?.sizes)&&n?.authors[0]?.image?.sizes?.length>0?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Ve.image,src:await de(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:Ve.contentIcon,children:t.jsx(o,{})}),t.jsx("p",{className:Ve.autorName,children:Ue(n?.authors[0]?.fullname??"Redacción",18)}),t.jsx("p",{className:Ve.time,children:s()})]});return t.jsxs("div",{className:Ve.content,children:[n?.authors[0]?.internaluser?t.jsx(O,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:r}):r,t.jsxs("div",{className:Ve.boxInformationContent,children:[t.jsx(O,{className:Ve.title,href:n?.info?.link?.url,target:n?.info?.link?.target,children:n?.main?.title?.home}),t.jsx("p",{className:Ve.comment,children:Ue(n?.main?.subtitle?.striped||"")})]})]})},Et={content:"_content_1d7mg_1",boxPosition:"_boxPosition_1d7mg_8",contentFlex:"_contentFlex_1d7mg_21",bannerContent:"_bannerContent_1d7mg_29",bannerContentAux:"_bannerContentAux_1d7mg_40"};function ql(e){const n=new Array(e.length),a=e.length/2;for(let o=0;o<e.length;o++)o%2===0?n[Math.floor(o/2)]=e[o]:n[a+Math.floor(o/2)]=e[o];return n}const Bl=e=>{const{isOpinion:n=!1}=e,a=r=>t.jsx("div",{className:Et.boxPosition+" banner-context",style:{order:2},children:t.jsx("div",{className:Et.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},r),o=[];for(let r=0;r<e.news.length;r++){const i=e.news[r];r===2&&o.push(a(r)),i&&o.push(t.jsx("div",{className:Et.boxPosition,style:{order:r},children:t.jsx(En,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${r}`))}const s=o.length%2===0?ql(o):o;return t.jsx("section",{style:e.customStyles,children:t.jsx(fe,{title:e.title,titleUrl:e.titleUrl,isOpinion:n,children:t.jsxs("div",{className:Et.content,children:[t.jsx("div",{className:Et.contentFlex,children:s}),t.jsx("div",{className:Et.bannerContent,children:e.halfPageBanner})]})})})},Ms={content:"_content_w9viv_1",title:"_title_w9viv_10"},Pl=e=>{const{showTitle:n=!0}=e;return t.jsxs("div",{className:Ms.content,children:[n&&t.jsx("p",{className:Ms.title,children:"Editorial"}),t.jsx(ct,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},It={content:"_content_1nd2h_1",newsContent:"_newsContent_1nd2h_8",boxPosition:"_boxPosition_1nd2h_17",bannerContent:"_bannerContent_1nd2h_23",bannerContentAux:"_bannerContentAux_1nd2h_33"},Ol=e=>{const{news:n}=e;return Array.isArray(n)&&t.jsxs("div",{className:It.content,children:[t.jsxs("div",{className:It.newsContent,children:[e.bannerArray&&e.bannerArray.map((a,o)=>t.jsx("div",{className:It.boxPosition+" banner-context",style:{order:2+5*o},children:t.jsx("div",{className:It.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},o)),n.map((a,o)=>t.jsx("div",{className:It.boxPosition,style:{order:o},children:t.jsx(De,{...a,share:e.share,paths:e.paths})},o))]}),t.jsx("div",{className:It.bannerContent,children:e.halfPageBanner})]})},Dl=e=>t.jsxs(t.Fragment,{children:[t.jsx(As,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),t.jsx(ys,{...e})]}),In={newsContent:"_newsContent_gd57q_1",newsContentWithLines:"_newsContentWithLines_gd57q_8",newsContentWithoutLines:"_newsContentWithoutLines_gd57q_13",contentSeparator:"_contentSeparator_gd57q_18"},js=e=>{const{content:n}=e;if(!n||n.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?In.contentSeparator:"",o=[];let s=0,r=1;for(let i=0;i<n.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(o.push(t.jsx("section",{className:a(s),children:e.banners?.some(h=>h.key===`${e.slot_id}_${r}`)&&t.jsx(ge,{banners:e.banners,name:`${e.slot_id}_${r}`})},s)),s++,r++);const c=e.isVideo?gt(n[i],e.showVideoTime,e.showVideosubtitle):n[i];if(!c)continue;const d=e.slot_id&&e.slot_id!=="Nota_1",l={...c,main:{...c.main,title:{...c.main.title,section:d?c.main.title.home:c.main.title.section}}};o.push(t.jsx("section",{className:a(s),children:t.jsx(De,{...l,isVideo:e.isVideo,paths:e.paths})},s)),s++}return o.length===2&&o.push(t.jsx("div",{},s)),t.jsx("div",{className:`${e.hasLines?In.newsContentWithLines:In.newsContentWithoutLines} ${In.newsContent}`,children:o})},pa=e=>t.jsx(fe,{title:e.title,titleUrl:e.titleUrl,children:t.jsx(js,{content:e.content,paths:e.paths,slot_id:e.slot_id,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle})}),$s={newsContent:"_newsContent_1sb62_1",contentSeparator:"_contentSeparator_1sb62_8"},Qs=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0||!Array.isArray(n)))return t.jsx(fe,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${$s.newsContent} ${e.hasLines?$s.contentSeparator:""}`,children:n?.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return t.jsx("section",{children:t.jsx(De,{...i,share:e.share,paths:e.paths})},s)})})})},Aa={newsContent:"_newsContent_1gbse_1",contentSeparator:"_contentSeparator_1gbse_8",newsContentWhitoutLine:"_newsContentWhitoutLine_1gbse_29"},Gs=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0))return t.jsx(fe,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${Aa.newsContent} ${e.hasLines?Aa.contentSeparator:Aa.newsContentWhitoutLine}`,children:n.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return t.jsx("section",{children:t.jsx(De,{...i,share:e.share,paths:e.paths})},s)})})})},ya={headerSection:"_headerSection_1m1sp_3",headerSectionLink:"_headerSectionLink_1m1sp_16",newsContent:"_newsContent_1m1sp_29"},Hs=e=>{const{content:n,title:a,isVideo:o=!0}=e;if(!n||n.length===0)return;const s=n[0],r=e.slot_id&&e.slot_id!=="Nota_1",i=n.slice(1);return s&&i&&t.jsxs(fe,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:ya.headerSection,children:[t.jsx(Os,{goTo:e.goTo,mainNew:gt(s),paths:e.paths}),t.jsx(O,{className:ya.headerSectionLink,href:s?.info?.link.url,target:s?.info?.link.target,"aria-label":"Video",children:t.jsx(Ne,{preview:{sizes:s?.main?.image.sizes,description:s?.main?.image.description},isVideo:o,isLarge:!0})})]}),t.jsxs("div",{className:ya.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l=gt(c),h={...l,main:{...l.main,title:{...l.main.title,section:r?l.main.title.home:l.main.title.section}}};return t.jsx("div",{style:{order:d},children:E.createElement(De,{...h,isVideo:o,key:d,paths:e.paths})},d)})]})]})},Ht={content:"_content_1qdkl_1",linkImage:"_linkImage_1qdkl_30",sectionDescription:"_sectionDescription_1qdkl_42",dateText:"_dateText_1qdkl_62",textContent:"_textContent_1qdkl_73"},Ml=async e=>{const{showNewsLikeTitle:n=!1}=e;return e&&e.info?t.jsxs("section",{className:Ht.content,style:{"--heightImageOverwrite":"100%"},children:[t.jsx(O,{className:Ht.linkImage,target:e?.info?.link?.target,title:e.main?.title?.section,href:n?e.info.link.url:e?.info?.section?.url,children:t.jsx(Ne,{preview:e.preview})}),t.jsxs("div",{className:Ht.textContent,children:[t.jsx(O,{className:Ht.sectionDescription,target:e?.info?.link?.target,href:n?e.info.link.url:e?.info?.section?.url,children:(n?e?.main?.title?.section:e?.info?.section?.name)??""}),t.jsx("p",{className:Ht.dateText,children:xe(e?.info?.date?.modified)})]})]}):null},zs={content:"_content_yx3zm_1",contentSeparator:"_contentSeparator_yx3zm_7"},wa={newsContent:"_newsContent_1uamf_1",contentSeparator:"_contentSeparator_1uamf_8",hasLinesBlock:"_hasLinesBlock_1uamf_40"},Fs=e=>{if(!e.content||e.content.length===0)return;const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(fe,{title:e.title,children:t.jsx("div",{className:`${zs.content} ${e.hasLines?zs.contentSeparator:""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx("section",{className:e.hasLines?wa.hasLinesBlock:"",children:E.createElement(Ml,{...s,key:o,showNewsLikeTitle:e.showNewsLikeTitle})},o)})})})},Vs=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(fe,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return t.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:t.jsx(jt,{...c,paths:e.paths})},i)})})})},nt={content:"_content_1mj79_1",imageStyled:"_imageStyled_1mj79_14",contentIcon:"_contentIcon_1mj79_23",boxInformation:"_boxInformation_1mj79_44",comment:"_comment_1mj79_51",title:"_title_1mj79_60",authorName:"_authorName_1mj79_81"},jl=async e=>{const{data:n}=e;return t.jsxs("div",{className:nt.content,children:[Array.isArray(n.authors)&&n?.authors[0]?.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:nt.imageStyled,src:await de(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:nt.contentIcon,children:e.autorIcon}),t.jsxs("div",{className:nt.boxInformation,children:[t.jsx("p",{className:nt.authorName,children:n?.authors[0]?.internaluser?t.jsx(O,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:n?.authors[0]?.fullname??"Redacción"}):n?.authors[0]?.fullname??"Redacción"}),t.jsx("p",{className:nt.title,children:t.jsx(O,{className:nt.linkStyled,href:n?.info?.link?.url,target:n?.info?.link?.target,children:Ue(n?.main?.title?.home,40)})}),t.jsx("p",{className:nt.comment,children:n?.main?.subtitle?.striped})]})]})},Ws=e=>{const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(fe,{titleUrl:e.titleUrl,title:e.title,children:t.jsx(it,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx(jl,{autorIcon:e.autorIcon,data:s,paths:e.paths},o)})})})},We={content:"_content_1elhb_1",newsContentSection:"_newsContentSection_1elhb_5",itemContent:"_itemContent_1elhb_10",ItemCustomContent:"_ItemCustomContent_1elhb_16"},Tn=e=>{const{item:n,option:a}=e;switch(a){case"ediciones":return t.jsx("div",{className:We.ItemCustomContent});case"columnistasnacionales":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(En,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistaslocales":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(En,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistas":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(En,{data:n,autorIcon:e.autorIcon,paths:e.paths})});default:return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(De,{...n,paths:e.paths})})}},$l=e=>{const{data:n,currentPage:a,banners:o,slug:s,ranking:r,pathname:i,texts:c={}}=e,d=[3,8,13],l={3:1,8:2,13:3};switch(e.option){case"op1":return t.jsx(da,{ranking:r,readestTitle:c.readestTitle??"",paths:e.paths,bannerTop:t.jsx(ge,{banners:o??[],name:"right_1"}),banner:t.jsx(ge,{banners:o??[],name:"right_2"}),children:t.jsx("section",{className:We.content,children:n.length>0?t.jsx(bn,{className:[We.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Dt,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((h,u)=>t.jsxs(E.Fragment,{children:[d.includes(u+1)&&t.jsx("div",{className:We.itemContent+" banner-context",children:t.jsx(ge,{banners:o??[],name:`block_2_${l[u+1]}`})}),t.jsx(Tn,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})})});case"op2":return t.jsx(t.Fragment,{children:n.length>0?t.jsx(bn,{className:"padding-0",paginatorComponent:t.jsx(Dt,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((h,u)=>t.jsxs(E.Fragment,{children:[d.includes(u+1)&&t.jsx("div",{className:We.itemContent,children:t.jsx(ge,{banners:o??[],name:`block_2_${l[u+1]}`})}),t.jsx(Tn,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})});default:return t.jsx(t.Fragment,{})}},Ys={content:"_content_gwsqy_1",contactInfoContent:"_contactInfoContent_gwsqy_7"},Ql=e=>{const{data:n}=e;return t.jsx("section",{className:Ys.content,children:n.map((a,o)=>t.jsx("div",{className:Ys.contactInfoContent,dangerouslySetInnerHTML:{__html:a.body.rendered}},o))})},ba={tagContent:"_tagContent_ee6yw_1",contentLayout2:"_contentLayout2_ee6yw_9",contentHeader:"_contentHeader_ee6yw_42"},Gl={content:"_content_1rbrt_1"},Hl=({children:e,className:n=""})=>t.jsx("div",{className:`content-layout-2 ${Gl.content} ${n}`,children:e}),zt={container:"_container_8w9ca_1",note:"_note_8w9ca_9",commercial:"_commercial_8w9ca_49",commercialContent:"_commercialContent_8w9ca_66",complement:"_complement_8w9ca_82"},zl=e=>t.jsxs("section",{className:zt.container,children:[t.jsx("div",{className:zt.note,children:e.children}),t.jsx("div",{className:zt.commercial,children:t.jsxs("div",{className:zt.commercialContent,children:[e.slug==="liveblogs"&&t.jsx(Ss,{itemList:e.itemList}),e.bannerTop,t.jsx(gn,{content:e.ranking,title:e.texts.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),t.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),t.jsx("div",{className:zt.complement,children:e.complement})]}),Fl=e=>{const n={...e.news[0],config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return t.jsx("div",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-image-description-display":"none",...e.headerSectionStyles?.liveblogs},children:t.jsx(_s,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return t.jsx("div",{className:ba.contentHeader,style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px",...e.headerSectionStyles?.common},children:t.jsx(ct,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths})})}},Ye={content:"_content_exb5o_1",contentWithinCard:"_contentWithinCard_exb5o_7",contentDate:"_contentDate_exb5o_13",dateInfo:"_dateInfo_exb5o_20",dot:"_dot_exb5o_30",contentTitle:"_contentTitle_exb5o_38",contentTextList:"_contentTextList_exb5o_47",contentButton:"_contentButton_exb5o_65",linkStyled:"_linkStyled_exb5o_71"},Vl={content:"_content_ifkxj_1"},Wl=e=>t.jsx("section",{className:Vl.content,id:e.id,children:e.children}),Yl=async(e,n,a)=>{if(!a)return e;const o=/<span data-src="(.*?)"><\/span>/g,s=[...e.matchAll(o)];let r=e;for(const i of s){const c=i[0],d=i[1]??"";let l;if(a.forEach(S=>{Array.isArray(S)&&(l=S.find(_=>d.replaceAll("/","|").includes(_?.info.link.internal||"")))}),!l){r=r.replace("ck-related-news","ck-related-news-empty");break}const h=l.preview?.sizes?.[0],u=h?await de(h.url):"",f=l.info.section?.url??"#",g=l.info.section?.name??"Sección",m=l.info.link?.url??"#",p=l.main?.title.article??"Título",A=(await Promise.all(l.preview?.sizes?.map(async S=>{const _=await de(S.url);return S.width<200?`<source srcset="${_}" media="(width < 750px)"/>`:`<source srcset="${_}" media="(width >= 750px)"/>`}))).reduce((S,_)=>S+=_,""),b=`
|
|
47
|
+
c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),t.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]}),ws=["telegram"],yn={facebook:e=>t.jsx(pn,{...e}),instagram:e=>t.jsx(An,{...e}),whatsapp:e=>t.jsx(ll,{...e}),tiktok:e=>t.jsx(cl,{...e}),youtube:e=>t.jsx(dl,{...e}),x:e=>t.jsx(vt,{...e}),gnews:e=>t.jsx(sl,{...e}),podcast:e=>t.jsx(rl,{...e}),telegram:e=>t.jsx(il,{...e})},hl=e=>{const{freeZone:n,socials:a,menu:o,customBlock:s}=e;return t.jsxs("footer",{className:Ae.content,children:[t.jsxs("section",{className:Ae.brandContent,children:[t.jsx(O,{href:"/","aria-label":"Ir a la home",children:t.jsx("span",{className:Ae.logoStyled,children:e.logo})}),t.jsx("div",{className:Ae.socialMedia,children:Object.keys(a).map(r=>a[r]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[r].title+" link",className:Ae.linkSocialNetwoks,href:a[r].url,children:yn[r]({className:`${ws.includes(r)?Ae.socialNetworkIcon_stroke:Ae.socialNetworkIcon} ${r==="instagram"?Ae.socialInstagram:""}`})},r))})]}),t.jsxs("section",{className:Ae.sectionContent,children:[t.jsx("div",{className:Ae.section,children:o.filter(r=>!r.subitem).map((r,i)=>t.jsx(O,{href:r.link?r.link:void 0,target:r.target,className:`${Ae.menuItem} footer-menu-item`,"aria-label":r.description,children:r.description},i))}),t.jsx("div",{className:Ae.section,children:n&&n.map((r,i)=>t.jsx(O,{href:r.link?r?.link:void 0,target:r.target,className:Ae.otherItems,children:r.description},i))})]}),s&&t.jsx(t.Fragment,{children:s}),t.jsxs("section",{className:Ae.copyrigth,children:[t.jsx("p",{className:Ae.copyrigthText,children:e.copyrigth}),t.jsx(O,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:t.jsx(ol,{})})]})]})},le={content:"_content_1msij_1",imageContent:"_imageContent_1msij_9",width1Autor:"_width1Autor_1msij_18",width2Autor:"_width2Autor_1msij_22",width3Autor:"_width3Autor_1msij_26",imageAutor:"_imageAutor_1msij_30",imageStyled:"_imageStyled_1msij_69",contentIconStyled:"_contentIconStyled_1msij_70",avatarContent:"_avatarContent_1msij_87",journalistSection:"_journalistSection_1msij_101",journalistInfo:"_journalistInfo_1msij_109",journalistInfoLink:"_journalistInfoLink_1msij_110",socialNetworkSection:"_socialNetworkSection_1msij_146",avatarStyled:"_avatarStyled_1msij_158",article:"_article_1msij_163",socialButton:"_socialButton_1msij_167",facebookStyled:"_facebookStyled_1msij_183",emailStyled:"_emailStyled_1msij_187",xStyled:"_xStyled_1msij_191",linkedinStyled:"_linkedinStyled_1msij_195",whatsappStyled:"_whatsappStyled_1msij_199",whatsappLink:"_whatsappLink_1msij_203",clipboardButton:"_clipboardButton_1msij_219",googleProfileButton:"_googleProfileButton_1msij_255"},ul=e=>t.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M11.7376 0H8.80322C5.52359 0 3.36594 2.11766 3.36594 5.50591V8.0471H0.431531C0.172612 8.0471 0 8.21652 0 8.47064V12.113C0 12.3671 0.172612 12.5365 0.431531 12.5365H3.36594V21.7695C3.36594 22.0237 3.53855 22.1931 3.79747 22.1931H7.68125C7.94016 22.1931 8.11278 22.0237 8.11278 21.7695V12.5365H11.565C11.8239 12.5365 11.9966 12.3671 11.9966 12.113V8.47064C11.9966 8.38593 11.9102 8.21652 11.8239 8.13181C11.7376 8.0471 11.6513 7.9624 11.4787 7.9624H8.02647V5.84474C8.02647 4.82826 8.28539 4.32002 9.66629 4.32002H11.6513C11.9102 4.32002 12.0829 4.15061 12.0829 3.89649V0.508238C12.1692 0.169413 11.9966 0 11.7376 0Z",fill:"black"})}),Ot=e=>t.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.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:"#162950",stroke:"#162950","stroke-width":"0.5"}),t.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:"#162950",stroke:"#162950","stroke-width":"0.5"}),t.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:"#162950",stroke:"#162950","stroke-width":"0.5"})]}),fl=e=>t.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),t.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]}),ml=e=>t.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),t.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]}),gl=e=>t.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})}),pl=e=>t.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})}),Al={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(gl,{className:e}),solid:e=>t.jsx(ul,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(vt,{className:e}),solid:e=>t.jsx(vt,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(cs,{className:e}),solid:e=>t.jsx(is,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(fl,{className:e}),solid:e=>t.jsx(ml,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(Ot,{className:e}),solid:e=>t.jsx(Ot,{className:e})}}};function bs({noteShare:e}){const n=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?t.jsxs("div",{className:le.socialNetworkSection,children:[e.options?.map(a=>{const o=Al[a];if(!o)return null;const s=e.variant==="outline"?o.icon.outline:o.icon.solid,r=o.url(n);return t.jsx(O,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${le.socialButton} ${le[`${a.toLowerCase()}Button`]??""} ${le[`${a.toLowerCase()}Styled`]}`,children:s("")},a)}),t.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[le.clipboardButton,"clipbtn-id"].join(" "),children:t.jsx(ls,{})}),t.jsx("button",{type:"button","aria-label":"share",className:[le.clipboardButton,"sharebtn-id"].join(" "),children:t.jsx(pl,{})})]}):null}const Ge={content:"_content_r1co8_1",videoContent:"_videoContent_r1co8_20",articleSection:"_articleSection_r1co8_27",title:"_title_r1co8_42",article:"_article_r1co8_27",correspondent:"_correspondent_r1co8_75",iframeStyled:"_iframeStyled_r1co8_84",contentFrame:"_contentFrame_r1co8_94"},yl=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${xe(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:Ge.content,children:t.jsx(bt,{children:t.jsxs("div",{className:Ge.videoContent,children:[t.jsx("p",{className:Ge.title,children:e.video.main.title}),e.type==="vy"&&t.jsx("iframe",{className:Ge.iframeStyled,src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:Ge.iframeStyled,src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:Ge.contentFrame,dangerouslySetInnerHTML:{__html:e.video.main.code}}),t.jsxs("div",{className:Ge.articleSection,children:[t.jsx("p",{className:Ge.article,children:Ue(e.video.main.description)}),t.jsx("p",{className:Ge.correspondent,children:n()})]})]})})})},ia={content:"_content_wxhkd_1",linkStyled:"_linkStyled_wxhkd_9"},Dt=e=>{const{currentPage:n,showNext:a,maxPages:o,pathname:s,query:r}=e,i=(c,d,l)=>{let h="";const u=d.split("/");return u.indexOf("page")!==-1&&u.splice(h.indexOf("page")-1,u.length-1),u.forEach((f,g)=>{g!==0&&(h+=`/${f}`)}),c==="next"?h+=`/page/${n+1}${l?`?query=${l}`:""}`:h+=`/page/${n-1}${l?`?query=${l}`:""}`};return(n>1||a&&n<o)&&t.jsxs("section",{className:ia.content,children:[n>1&&t.jsx(O,{className:ia.linkStyled,href:i("prev",s||"",r||""),children:e.texts.prevButtonText??"Anterior"}),a&&n<o&&t.jsx(O,{className:ia.linkStyled,href:i("next",s||"",r||""),children:e.texts.nextButtonText??"Siguiente"})]})},wn={content:"_content_zal5g_1",contentGrid:"_contentGrid_zal5g_8",contentGrid4:"_contentGrid4_zal5g_17",contentGrid3:"_contentGrid3_zal5g_21"},bn=e=>{const{grid:n=3}=e;return t.jsxs("section",{className:`${wn.content}`,children:[t.jsx("div",{className:`${wn.contentGrid} ${e.className?e.className:""} ${n===3?wn.contentGrid3:wn.contentGrid4} news-content`,children:e.children}),t.jsx(t.Fragment,{children:e.paginatorComponent})]})},Mt={content:"_content_15x47_1",newsDescription:"_newsDescription_15x47_15",image:"_image_15x47_41"},De=e=>{const{main:n,authors:a,info:o,preview:s,share:r,isVideo:i,config:c,overImage:d="default",isTitle:l,priorityHigh:h=!1,isLarge:u,paths:f,keywords:g}=e;return t.jsxs("section",{className:Mt.content,style:{...e.customSectionCardStyles},children:[t.jsx(O,{"aria-label":e.main?.title?.section,className:Mt.image,title:n?.title?.section,href:o?.link?.url,target:o?.link?.target,children:t.jsx(Ne,{preview:s,isVideo:i,isLarge:u,priorityHigh:h})}),t.jsx("div",{className:Mt.newsDescription,children:t.jsx(ct,{main:n,authors:a,info:o,preview:s,share:r,config:c,overImage:d,isTitle:l,paths:f,keywords:g})})]})},Re={content:"_content_14xk9_1",boxInformation:"_boxInformation_14xk9_12",titleGradient:"_titleGradient_14xk9_30",sectionDescription:"_sectionDescription_14xk9_58",articule:"_articule_14xk9_83",linkStyled:"_linkStyled_14xk9_116"},jt=e=>{const{isVideo:n,info:a,main:o,overImage:s="default",titleGradient:r=!1}=e,{SHOW_TAG_BY_SECTION:i}=K(),c=()=>{if(i&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const d=e.keywords.tags[0],l=d.name;return d.approved?t.jsx("h3",{children:t.jsx(O,{"aria-label":l,className:Re.sectionDescription,href:at(d,e.paths),children:l})}):t.jsx("div",{className:Re.sectionDescription,children:l})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(O,{className:Re.sectionDescription,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return t.jsxs("section",{className:Re.content,children:[t.jsx(O,{title:o?.title?.section,href:a.link.url,target:a.link.target,children:t.jsx(Ne,{preview:e.preview,isVideo:n})}),t.jsxs("div",{className:[Re.boxInformation,r?Re.titleGradient:""].join(" "),style:{width:s!=="default"?"90%":"",left:s==="left"?0:s==="right"?"calc(10% - 1px)":"auto",top:s!=="default"?"-1rem":""},children:[t.jsx(c,{}),t.jsx("h2",{className:Re.articule,children:t.jsx(O,{className:Re.linkStyled,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},Cs={content:"_content_kro73_1",contentLayout:"_contentLayout_kro73_5"},ca=e=>t.jsx("div",{className:Cs.content,children:t.jsx(bt,{className:`${Cs.contentLayout} ${e.className}`,children:e.children})}),_t={content:"_content_1nqra_1",before:"_before_1nqra_11",textContent:"_textContent_1nqra_22",title:"_title_1nqra_37",description:"_description_1nqra_46",linkStyled:"_linkStyled_1nqra_57"},wl=e=>{const n=e.logo;return t.jsxs("section",{className:_t.content,children:[e.backgroundImgURL&&t.jsx("img",{className:_t.before,src:e.backgroundImgURL,alt:""}),t.jsxs("div",{className:`${_t.textContent} error-text-content`,children:[t.jsx(n,{}),t.jsx("p",{className:_t.title,children:e.title}),t.jsx("p",{className:_t.description,children:e.description}),t.jsx(O,{className:_t.linkStyled,href:"/",children:e.buttonText??"Inicio"})]})]})},$t={content:"_content_zxcog_1",contentLabel:"_contentLabel_zxcog_8",label:"_label_zxcog_13",required:"_required_zxcog_22",input:"_input_zxcog_28"},bl=e=>t.jsxs("div",{className:$t.content,children:[t.jsxs("div",{className:$t.contentLabel,children:[t.jsx("label",{className:$t.label,children:e.label}),e.required&&t.jsx("span",{className:$t.required,children:"*"})]}),t.jsx("input",{className:$t.input,...e})]}),Qt={content:"_content_zgx5w_1",contentLabel:"_contentLabel_zgx5w_8",label:"_label_zgx5w_13",required:"_required_zgx5w_22",input:"_input_zgx5w_28"},Cl=e=>t.jsxs("div",{className:Qt.content,children:[t.jsxs("div",{className:Qt.contentLabel,children:[t.jsx("label",{className:Qt.label,children:e.label}),e.required&&t.jsx("span",{className:Qt.required,children:"*"})]}),t.jsxs("select",{className:Qt.input,...e,children:[t.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((n,a)=>t.jsx("option",{value:n.value,children:n.label},a))]})]}),la={content:"_content_1mi9t_1",label:"_label_1mi9t_8",input:"_input_1mi9t_17"},vl=e=>t.jsxs("div",{className:la.content,children:[t.jsx("label",{className:la.label,children:e.label}),t.jsx("textarea",{className:la.input,...e})]}),et={boxInformation:"_boxInformation_achvw_1",textBox:"_textBox_achvw_30",contentBox:"_contentBox_achvw_40",liveBox:"_liveBox_achvw_50",dot:"_dot_achvw_72",sectionDescription:"_sectionDescription_achvw_97",articule:"_articule_achvw_110",description:"_description_achvw_137"},Cn={content:"_content_1ihav_1",description:"_description_1ihav_23"},vs=e=>{let n="";return e.preview.description&&(n=e.preview.description),e.preview.copyright&&(n=`${n} ${e.preview.copyright}`),e.preview.photographer&&(n=`${n} ${e.preview.photographer}`),t.jsxs("div",{className:Cn.content,children:[t.jsx(Ne,{preview:e.preview,isLarge:!0,priorityHigh:!0}),n&&t.jsx("div",{className:Cn.description,children:n})]})},_s=e=>t.jsx(t.Fragment,{children:t.jsxs("div",{className:`${et.boxInformation} sass-liveblog-header`,children:[t.jsx(vs,{preview:e.preview}),t.jsxs("div",{className:et.textBox,children:[t.jsxs("div",{className:et.contentBox,children:[e?.info?.section&&t.jsx(O,{className:et.sectionDescription,href:e?.info?.section?.url,children:e?.info?.section?.name}),t.jsxs("div",{className:et.liveBox,children:[t.jsx("span",{className:et.dot}),t.jsx("p",{children:"EN VIVO"})]})]}),t.jsx("h1",{className:et.articule,children:e.main?.title?.section}),e.config?.showsubtitle&&t.jsx("div",{className:et.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})}),vn={content:"_content_oipiy_1",contentLine:"_contentLine_oipiy_17",contentText:"_contentText_oipiy_24",dateLink:"_dateLink_oipiy_37"},Ss=e=>t.jsx("section",{className:vn.content,children:e.itemList[0]?.list.items.map((n,a)=>t.jsxs("div",{className:vn.contentLine,children:[t.jsx(O,{className:vn.dateLink,href:`#item-${a+1}`,children:Ja(n.date)}),t.jsx("div",{className:vn.contentText,children:(e.itemList[0]?.list.integrated,n.title)})]},a))}),ue={content:"_content_qg1r7_1",contentInfo:"_contentInfo_qg1r7_11",imageContainer:"_imageContainer_qg1r7_19",imageStyled:"_imageStyled_qg1r7_28",contentIconStyled:"_contentIconStyled_qg1r7_39",name:"_name_qg1r7_65",email:"_email_qg1r7_74",description:"_description_qg1r7_90",contenSocialNetwork:"_contenSocialNetwork_qg1r7_102",socialIcon:"_socialIcon_qg1r7_112",socialIconLink:"_socialIconLink_qg1r7_117",socialIconLinkedIn:"_socialIconLinkedIn_qg1r7_121"},_n=e=>{if(!e||e.trim()==="")return e;const n=e.trim();return n.startsWith("http://")||n.startsWith("https://")?n:`https://${n}`},Ns=async e=>{const{autor:n,autorIcon:a}=e,o=a,s=n?.info?.image?.sizes?.[0]?.url??"",r=n?.info?.fullname??"",i=n?.info?.email??"",c=n?.addtional?.USER_SHOWEMAIL??!1,d=n?.addtional?.USER_SHOWBIO??!1,l=n?.addtional?.USER_MIBIO??"",h=_n(n?.addtional?.USER_USERFB??""),u=_n(n?.addtional?.USER_USERIG??""),f=_n(n?.addtional?.USER_USERTWT??""),g=_n(n?.addtional?.USER_USERLIN??"");return t.jsx("section",{className:`${ue.content} ${e.className?e.className:""}`,children:t.jsxs("div",{className:ue.contentInfo,children:[s?t.jsx("div",{className:`${ue.imageContainer} sass-image-autor-wrapper`,children:t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"",className:ue.imageStyled,src:await de(s)})}):t.jsx("div",{className:`${ue.contentIconStyled} sass-image-autor-wrapper`,children:t.jsx(o,{})}),t.jsx("h1",{className:ue.name,children:r}),c&&t.jsx("p",{className:ue.email,children:i}),d&&t.jsx("p",{className:ue.description,children:l}),t.jsxs("div",{className:ue.contenSocialNetwork,children:[h&&t.jsx("a",{href:h,target:"_blank",className:ue.socialIconLink,rel:"noreferrer",children:t.jsx(pn,{className:ue.socialIcon})}),u&&t.jsx("a",{href:u,target:"_blank",className:ue.socialIconLink,rel:"noreferrer",children:t.jsx(An,{className:ue.socialIcon})}),f&&t.jsx("a",{href:f,target:"_blank",className:ue.socialIconLink,rel:"noreferrer",children:t.jsx(vt,{className:ue.socialIcon})}),g&&t.jsx("a",{href:g,target:"_blank",className:`${ue.socialIconLink} ${ue.socialIconLinkedIn}`,rel:"noreferrer",children:t.jsx(Ot,{className:ue.socialIcon})})]})]})})},Ee={content:"_content_18ozj_1",contentInfo:"_contentInfo_18ozj_13",contentAuthor:"_contentAuthor_18ozj_26",imageStyled:"_imageStyled_18ozj_33",contentIconStyled:"_contentIconStyled_18ozj_42",name:"_name_18ozj_64",email:"_email_18ozj_72",description:"_description_18ozj_82",contenSocialNetwork:"_contenSocialNetwork_18ozj_93",socialIcon:"_socialIcon_18ozj_103"},Es=async e=>{const{autor:n,autorIcon:a}=e,o=a,s=n?.info?.image?.sizes?.[0]?.url??"",r=n?.info?.fullname??"",i=n?.info?.email??"",c=n?.addtional?.USER_SHOWEMAIL??!1,d=n?.addtional?.USER_SHOWBIO??!1,l=n?.addtional?.USER_MIBIO??"",h=n?.addtional?.USER_USERFB??"",u=n?.addtional?.USER_USERIG??"",f=n?.addtional?.USER_USERTWT??"",g=n?.addtional?.USER_USERLIN??"";return t.jsx("section",{className:Ee.content,children:t.jsxs("div",{className:Ee.contentInfo,children:[s?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Ee.imageStyled,src:await de(s)}):t.jsx("div",{className:Ee.contentIconStyled,children:t.jsx(o,{})}),t.jsxs("div",{className:Ee.contentAuthor,children:[t.jsx("h1",{className:Ee.name,children:r}),c&&t.jsx("p",{className:Ee.email,children:i}),d&&t.jsx("p",{className:Ee.description,children:l}),t.jsxs("div",{className:Ee.contenSocialNetwork,children:[h&&t.jsx("a",{href:h,target:"_blank",rel:"noreferrer",children:t.jsx(pn,{className:Ee.socialIcon})}),u&&t.jsx("a",{href:u,target:"_blank",rel:"noreferrer",children:t.jsx(An,{className:Ee.socialIcon,style:{padding:"4px"}})}),f&&t.jsx("a",{href:f,target:"_blank",rel:"noreferrer",children:t.jsx(vt,{className:Ee.socialIcon})}),g&&t.jsx("a",{href:g,target:"_blank",rel:"noreferrer",children:t.jsx(Ot,{className:Ee.socialIcon})})]})]})]})})},Is={content:"_content_jg6i2_1",bannerSection:"_bannerSection_jg6i2_25"},da=e=>t.jsxs("section",{className:Is.content,children:[e.children,t.jsxs("div",{className:Is.bannerSection,children:[e.bannerTop,t.jsx(gn,{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]})]}),Be={content:"_content_kmqba_1",header:"_header_kmqba_30",videos:"_videos_kmqba_56",videoContent:"_videoContent_kmqba_63",articleSection:"_articleSection_kmqba_70",contentLayoutVideoSection:"_contentLayoutVideoSection_kmqba_85",sectionVideoList:"_sectionVideoList_kmqba_93",iframeStyled:"_iframeStyled_kmqba_166",contentFrame:"_contentFrame_kmqba_172"},ha={content:"_content_1dj0q_1",linkImage:"_linkImage_1dj0q_12",playStyled:"_playStyled_1dj0q_19"},_l=async e=>{const n=mn(),a={...e,main:{...e.main,title:{...e.main.title,article:Ue(e.main.title.article,60)}}};return e&&e.info?t.jsxs("section",{className:ha.content,children:[t.jsx("a",{className:ha.linkImage,target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx("img",{src:await de(e.preview.sizes[0]?.url||"")}),t.jsx(n,{className:`${ha.playStyled} saas-image-play-icon`})]})}),t.jsx("div",{children:t.jsx(ct,{...a,paths:e.paths})})]}):null},Sl=e=>t.jsx("div",{className:Be.content,children:t.jsxs(bt,{className:Be.contentLayoutVideoSection,children:[t.jsxs("a",{className:Be.header,href:e.goBackLink??"/videos",children:[t.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"white"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),t.jsxs("div",{className:Be.videos,children:[t.jsxs("div",{className:Be.videoContent,style:e.mainVideoStyles,children:[e.type==="vy"&&t.jsx("iframe",{className:Be.iframeStyled,src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&t.jsx("iframe",{className:Be.iframeStyled,src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&t.jsx("div",{className:Be.contentFrame,dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),t.jsx("div",{className:Be.articleSection,children:t.jsx(ct,{isTitle:!0,cutSubtitle:!1,...gt({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description),paths:e.paths})})]}),t.jsxs("div",{className:Be.sectionVideoList,style:e.listVideoStyles,children:[e.banner&&t.jsx(ge,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&t.jsx("h2",{className:`${Be.relatedTitle} saas-video-related-title`,children:e.relatedName}),Array.isArray(e.videoList)&&e.videoList.map((n,a)=>E.createElement(_l,{...gt(n,!0,!1,!1),key:a,paths:e.paths}))]})]})]})}),He={content:"_content_gcte1_1",titleContent:"_titleContent_gcte1_24",title:"_title_gcte1_24",startLine:"_startLine_gcte1_88",line:"_line_gcte1_93",bottomLine:"_bottomLine_gcte1_99",childrenContent:"_childrenContent_gcte1_118",readMore:"_readMore_gcte1_131"},fe=E.forwardRef((e,n)=>{const{isTitle:a=!1,isOpinion:o=!1}=e,s=a?t.jsx("h1",{className:He.title,children:e.title}):t.jsx("h2",{className:He.title,children:e.title});return t.jsxs("section",{className:He.content,children:[e.title&&t.jsxs("div",{className:[He.titleContent,e.className??""].join(" "),"data-after":`${o}`,children:[t.jsx("hr",{className:He.startLine}),e.titleUrl?t.jsx(O,{href:e.titleUrl,children:s}):s,t.jsx("hr",{className:He.line}),e.titleUrl&&t.jsx(O,{className:He.readMore,href:e.titleUrl?.toString()??""})]}),e.title&&t.jsx("hr",{className:[He.bottomLine,e.className??""].join(" ")}),t.jsx("div",{className:He.childrenContent,ref:n,children:e.children})]})}),ua=e=>t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),Sn=e=>t.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:e.fill??"#7B888A"})}),ce={drawerStyled:"_drawerStyled_tm61w_1",sidebarCustom:"_sidebarCustom_tm61w_6",accordionStyled:"_accordionStyled_tm61w_24",accordionHeading:"_accordionHeading_tm61w_35",accordionSummeryStyled:"_accordionSummeryStyled_tm61w_44",linkStyled:"_linkStyled_tm61w_72",subLinkStyled:"_subLinkStyled_tm61w_92",inputContent:"_inputContent_tm61w_114",buttonContent:"_buttonContent_tm61w_115",inputStyled:"_inputStyled_tm61w_125",buscar:"_buscar_tm61w_141",buttonStyled:"_buttonStyled_tm61w_170",accordionDetailsStyled:"_accordionDetailsStyled_tm61w_185",footerSlider:"_footerSlider_tm61w_200",socialMedia:"_socialMedia_tm61w_211",copyRights:"_copyRights_tm61w_230",icon:"_icon_tm61w_241"},Nl=({sidebar:e,socials:n,copyrigth:a,sidebarExtra:o,searchKeyWord:s})=>t.jsxs("aside",{className:ce.drawerStyled,id:"sidebar-expandable",style:{"--header-icons":"var(--search-input-icons)"},children:[t.jsx("input",{type:"checkbox",id:"side-bar-state"}),t.jsxs("section",{className:ce.sidebarCustom,children:[t.jsx("div",{className:ce.buttonContent,children:t.jsx("label",{className:ce.buttonStyled,htmlFor:"side-bar-state",children:t.jsx(Ct,{className:ce.icon})})}),t.jsx("div",{className:ce.inputContent,children:t.jsxs("form",{className:ce.inputStyled,action:"/buscar",method:"GET",children:[t.jsx("input",{className:ce.buscar,type:"text",name:"query",placeholder:s+"..."}),t.jsx("button",{type:"submit",style:{background:"transparent",border:"none",outline:"none",padding:0,margin:0},children:t.jsx(ua,{color:"var(--search-input-icons)"})})]})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},children:[t.jsxs("div",{children:[o,e.map((r,i)=>t.jsxs("div",{className:ce.accordionStyled,children:[t.jsx("input",{type:"checkbox",style:{display:"none"},id:"accordion_"+i}),t.jsx("h3",{className:ce.accordionHeading,children:Array.isArray(r.subitem)?t.jsxs("label",{className:ce.accordionSummeryStyled,htmlFor:"accordion_"+i,children:[r.link?t.jsx(O,{className:`${ce.linkStyledAccordion} ${ce.linkStyled}`,href:r.link?r.link:void 0,target:r.target,children:r.description}):t.jsx("div",{children:r.description}),t.jsx(Sn,{width:13,height:13,fill:"var(--side-bar-arrow-color)"})]}):t.jsx(O,{className:ce.linkStyled,href:r.link?r.link:void 0,target:r.target,children:r.description})}),Array.isArray(r.subitem)&&t.jsx("div",{className:ce.accordionDetailsStyled,style:{"--max-height":r.subitem.length*45+"px"},children:r.subitem.map((c,d)=>t.jsx(O,{className:ce.subLinkStyled,href:c.link?c.link:void 0,target:c.target,children:c.description},d))})]},i))]}),t.jsxs("div",{className:ce.footerSlider,children:[t.jsx("div",{className:ce.socialMedia,children:Object.keys(n).map(r=>n[r]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":n[r].title+" link",className:ce.linkSocialNetwork,href:n[r].url,children:yn[r]({className:ce.icon})},r))}),t.jsx("p",{className:ce.copyRights,children:a})]})]})]})]}),Ts=e=>t.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color}),t.jsx("path",{d:"M5 22.5H25C25.6875 22.5 26.25 21.9375 26.25 21.25C26.25 20.5625 25.6875 20 25 20H5C4.3125 20 3.75 20.5625 3.75 21.25C3.75 21.9375 4.3125 22.5 5 22.5ZM5 16.25H25C25.6875 16.25 26.25 15.6875 26.25 15C26.25 14.3125 25.6875 13.75 25 13.75H5C4.3125 13.75 3.75 14.3125 3.75 15C3.75 15.6875 4.3125 16.25 5 16.25ZM3.75 8.75C3.75 9.4375 4.3125 10 5 10H25C25.6875 10 26.25 9.4375 26.25 8.75C26.25 8.0625 25.6875 7.5 25 7.5H5C4.3125 7.5 3.75 8.0625 3.75 8.75Z",fill:e.color})]}),Gt={content:"_content_y5b1f_1",chipStyled:"_chipStyled_y5b1f_17",headLine:"_headLine_y5b1f_17",live:"_live_y5b1f_25",closeLiveStyled:"_closeLiveStyled_y5b1f_87"},ks=e=>{const{alertZone:n,id:a="close-alert"}=e,o=()=>t.jsx(O,{className:Gt.headLine,href:n?.data[0]?.info.link.url,target:n?.data[0]?.info.link.target,title:n?.data[0]?.main.title.home,children:n?.data[0]?.main?.title.home??""});return t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(n&&n?.data&&n?.data[0]?.main?.title.home)}),n&&n?.data&&n?.data[0]?.main?.title.home&&t.jsxs("div",{id:"alert-chip",className:Gt.content,style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[t.jsxs("div",{className:Gt.live,children:[t.jsx("div",{className:Gt.chipStyled,children:n?.entity?.description}),e.forceShow&&t.jsx(o,{}),t.jsx("label",{htmlFor:a,children:t.jsx(Ct,{className:Gt.closeLiveStyled})})]}),t.jsx(o,{})]})]})},ze={content:"_content_18yq5_1",linkStyled:"_linkStyled_18yq5_14",linkSocialNetwork:"_linkSocialNetwork_18yq5_28",title:"_title_18yq5_49",tabs:"_tabs_18yq5_60",socialNetwork:"_socialNetwork_18yq5_68",icon:"_icon_18yq5_78",facebook:"_facebook_18yq5_84",youtube:"_youtube_18yq5_88",x:"_x_18yq5_92",instagram:"_instagram_18yq5_96",gnews:"_gnews_18yq5_100",tiktok:"_tiktok_18yq5_104",whatsapp:"_whatsapp_18yq5_108"},xs=e=>{const{cintillo:n,tapeTitle:a,socials:o}=e,s="",r=n?.findIndex(i=>i.link===s)??0;return(Array.isArray(n)||e.socialIcons)&&t.jsxs("section",{className:ze.content,children:[Array.isArray(n)&&t.jsxs("div",{className:`${ze.tabs} header-page-tape-content`,children:[a!==""&&t.jsx("p",{className:ze.title,children:`${a}`}),n&&n[r]&&t.jsx(O,{className:ze.linkStyled,target:n[r]?.target,href:n[r]?.link,style:{color:n[r]?.link===s?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:n[r]?.link===s?"700":"400"},children:n[r]?.description},r),n&&n.map((i,c)=>{if(c!==r)return t.jsx(O,{className:ze.linkStyled,href:i?.link,style:{color:i?.link===s?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===s?"700":"400"},children:i?.description},c)})]}),t.jsx("div",{className:ze.socialNetwork,children:Object.keys(o).map(i=>o[i]?.show&&t.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":o[i].title+" link",className:ze.linkSocialNetwork,href:o[i].url,children:yn[i]({className:[ze.icon,ze[i]??""].join(" ")})},i))})]})},ke={headerStyled:"_headerStyled_6yw62_1",headerContent:"_headerContent_6yw62_14",iconContent:"_iconContent_6yw62_25",menuButton:"_menuButton_6yw62_34",logoStyled:"_logoStyled_6yw62_66",buttonSection:"_buttonSection_6yw62_94",buttonSectionSearch:"_buttonSectionSearch_6yw62_109",headLineContent:"_headLineContent_6yw62_131",headLineTitle:"_headLineTitle_6yw62_144",headLine:"_headLine_6yw62_131",hasAlertZone:"_hasAlertZone_6yw62_197"},El=e=>{const{alertZone:n}=e;return t.jsxs("header",{className:ke.headerStyled,children:[e.socialIcons&&e.headerTape?.sticky&&t.jsx(xs,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),t.jsxs("div",{className:`${ke.headerContent} center-mobile-header-icon`,children:[t.jsx(ra,{id:"button-app",className:ke.menuButton,toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:t.jsx(Ts,{className:ke.startIcon,color:"var(--header-icons)",width:27,height:27})}),t.jsx("div",{className:ke.iconContent,children:t.jsx(O,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:E.createElement("span",{className:ke.logoStyled},e.icon)})}),!e.showAlertPop&&n?.data&&t.jsxs("div",{className:ke.headLineContent,children:[t.jsx("div",{className:`${ke.headLineTitle} headLineTitle`,children:n.entity.description?`${n.entity.description}`:""}),t.jsx(O,{className:ke.headLine,href:n.data[0]?.info.link.url,target:n.data[0]?.info.link.target,title:n.data[0]?.main.title.home,children:Ue(n.data[0]?.main.title.home??"",120)})]}),t.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:[ke.buttonSection,n?.data?ke.hasAlertZone:"","search-button"].join(" "),children:[t.jsx(O,{href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:`${ke.buttonSectionSearch} search-button-icon`,style:{display:"flex"},children:t.jsx(ua,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),!e.showAlertPop&&t.jsx(ks,{alertZone:n,forceShow:e.showAlertPop})]})},Fe={ul:"_ul_oit7k_1",li:"_li_oit7k_10",liBefore:"_liBefore_oit7k_18",ulContent:"_ulContent_oit7k_29",contentModal:"_contentModal_oit7k_56",linkStyled:"_linkStyled_oit7k_68",itemLink:"_itemLink_oit7k_93"},Il=e=>{const{items:n}=e;return t.jsx("ul",{className:Fe.ul,children:n.map((a,o)=>t.jsxs("li",{className:`${Fe.liBefore} ${Fe.li}`,children:[a.link?t.jsxs(O,{"aria-label":a.description,className:Fe.linkStyled,href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&t.jsx(Sn,{})]}):t.jsxs("span",{"aria-label":a.description,className:Fe.linkStyled,children:[a.description,Array.isArray(a.subitem)&&t.jsx(Sn,{})]}),Array.isArray(a.subitem)&&t.jsx("ul",{className:Fe.ulContent,children:t.jsx("div",{className:Fe.contentModal,children:a.subitem.map((s,r)=>t.jsx("li",{className:Fe.li,children:t.jsx(O,{className:Fe.itemLink,"aria-label":s.description,href:s.link?s.link:void 0,target:s.target,children:s.description})},r))})})]},o))})},ye={headerStyled:"_headerStyled_q9qvi_1",headerContent:"_headerContent_q9qvi_23",menuButtonSection:"_menuButtonSection_q9qvi_33",menuButton:"_menuButton_q9qvi_33",buttonSection:"_buttonSection_q9qvi_84",buttonSectionSearch:"_buttonSectionSearch_q9qvi_101",hasAlertZone:"_hasAlertZone_q9qvi_112",buttonText:"_buttonText_q9qvi_131",logoContent:"_logoContent_q9qvi_141",logoStyled:"_logoStyled_q9qvi_149",headLineContent:"_headLineContent_q9qvi_173",headLineTitle:"_headLineTitle_q9qvi_188",menuSection:"_menuSection_q9qvi_204",headLine:"_headLine_q9qvi_173",line:"_line_q9qvi_256"},Tl=e=>{const{menu:n,alertZone:a}=e;return t.jsxs("header",{className:ye.headerStyled,style:{top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&t.jsx(xs,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),t.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:[ye.headerContent,a?.data?ye.hasAlertZone:""].join(" "),children:[t.jsx("div",{className:`${ye.menuButtonSection} sass-header-menu-button`,children:t.jsxs(ra,{className:ye.menuButton,id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[t.jsx(Ts,{color:"var(--header-icons)",width:27,height:27}),t.jsx("p",{className:ye.buttonText,style:{lineHeight:0},children:e.menuText})]})}),t.jsx("div",{className:ye.logoContent,children:t.jsx(O,{href:"/","aria-label":"Home",className:"header-logo-link",children:E.createElement("span",{className:`${ye.logoStyled}`},e.icon)})}),t.jsxs("div",{className:`${ye.buttonSection} sass-header-right-button-section`,children:[t.jsx(O,{href:e.searchLink?e.searchLink:"/buscar",className:ye.buttonSectionSearch,"aria-label":e.searchKeyWord,children:t.jsx(ua,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?t.jsxs("div",{className:ye.headLineContent,children:[t.jsx("p",{className:`${ye.headLineTitle} headLineTitle`,children:a.entity.description?`${a.entity.description}`:""}),t.jsx(O,{className:ye.headLine,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:Ue(a.data[0]?.main.title.home??"",120)})]}):t.jsx("div",{className:ye.line}),t.jsx("div",{className:ye.menuSection,style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(n)&&t.jsx(Il,{items:n})})]})]})},fa={childrenContent:"_childrenContent_wqlb4_1",childrenContentAux:"_childrenContentAux_wqlb4_12",op2:"_op2_wqlb4_25"},kl=e=>{const{alertZone:n,children:a,sidebar:o}=e;return t.jsxs(t.Fragment,{children:[t.jsx(El,{...e}),!e.showOnlyStickyHeader&&t.jsx(Tl,{...e}),t.jsxs("div",{className:[fa.childrenContent,e.showAlertPop?fa.op2:"",n?.data?fa.childrenContentAux:""].join(" "),style:e.showOnlyStickyHeader?{"--hasAlertMargin":"3.6rem !important"}:{},id:"content-layout",children:[e.showAlertPop&&t.jsx(ks,{alertZone:n,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]}),t.jsx(Nl,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:o,socials:e.socials,copyrigth:e.copyrigth})]})},St={content:"_content_16ydf_1",tags:"_tags_16ydf_10",chipStyled:"_chipStyled_16ydf_20",tagLink:"_tagLink_16ydf_47",tagStyled:"_tagStyled_16ydf_53"},Us=e=>t.jsx("section",{className:St.content,children:Array.isArray(e.tags)&&t.jsxs("div",{className:St.tags,children:[t.jsx("p",{className:St.tagStyled,children:e.title?e.title:"Tags:"}),e.tags.map((n,a)=>n.approved?t.jsx(O,{href:at(n,e.paths),children:t.jsx("div",{className:`${St.chipStyled} ${St.tagLink}`,children:n.name})},a):t.jsx("div",{className:St.chipStyled,children:n.name},a))]})}),Me={contentBox:"_contentBox_1cum1_1",content:"_content_1cum1_1",imageStyled:"_imageStyled_1cum1_16",contentIconStyled:"_contentIconStyled_1cum1_23",avatarContent:"_avatarContent_1cum1_43",journalistSection:"_journalistSection_1cum1_50",journalistInfo:"_journalistInfo_1cum1_56",socialNetworkSection:"_socialNetworkSection_1cum1_75",article:"_article_1cum1_88"},Ls=async e=>{const{autor:n}=e,a=n?.addtional?.USER_SHOWBIO??!1,o=n?.info?.name??"",s=n?.info?.fullname??"",r=n?.info?.image?.sizes?.[0]?.url??"",i=n?.addtional?.USER_MIBIO??"",c=n?.addtional?.USER_USERFB??"",d=n?.addtional?.USER_USERIG??"",l=n?.addtional?.USER_USERTWT??"",h=n?.addtional?.USER_USERLIN??"";return a&&t.jsx("section",{className:Me.contentBox,children:t.jsxs("div",{className:Me.content,children:[t.jsxs("div",{className:Me.avatarContent,children:[t.jsx(O,{className:Me.journalistInfo,href:`/${e.paths.autor}/${o}`,children:r?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor-image",className:Me.imageStyled,src:await de(r)}):t.jsx("div",{className:Me.contentIconStyled,children:e.autorIcon()})}),t.jsxs("section",{className:Me.journalistSection,children:[t.jsx("h3",{className:Me.journalistInfo,children:t.jsx(O,{href:`/${e.paths.autor}/${o}`,children:s})}),t.jsxs("section",{className:Me.socialNetworkSection,children:[c&&t.jsx("a",{href:c,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),d&&t.jsx("a",{href:d,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[t.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),t.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),t.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_281_2357",children:t.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),l&&t.jsx("a",{href:l,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),h&&t.jsx("a",{href:h,target:"_blank","aria-label":i,rel:"noreferrer",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),t.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})})]})]})]}),a&&t.jsx("p",{className:Me.article,dangerouslySetInnerHTML:{__html:`${i} <a aria-label="${o}" href="/${e.paths.autor}/${o}">${e.texts.authorViewMore??"Ver más"}</a>`}})]})})},tt={content:"_content_vmnac_1",imageStyled:"_imageStyled_vmnac_20",contentIconStyled:"_contentIconStyled_vmnac_21",contentCard:"_contentCard_vmnac_31",contentInfo:"_contentInfo_vmnac_70",fullName:"_fullName_vmnac_76",LearnMoreLink:"_LearnMoreLink_vmnac_83"},qs=async e=>{const{news:n,texts:a}=e;return n.config?.showauthor&&t.jsx("div",{className:tt.content,children:Array.isArray(n.authors)&&n.authors?.map(async o=>t.jsxs("div",{className:tt.contentCard,children:[o.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:tt.imageStyled,src:await de(o.image.sizes[0]?.url||"")},o.fullname):t.jsx("div",{className:tt.contentIconStyled,children:e.autorIcon},o.fullname),t.jsxs("div",{className:tt.contentInfo,children:[o.internaluser?t.jsx("a",{className:tt.fullName,href:`/${e.paths.autor}/${o.name}`,children:o.fullname}):t.jsx("p",{className:tt.fullName,children:o.fullname}),o.internaluser&&t.jsx("a",{className:tt.LearnMoreLink,href:`/${e.paths.autor}/${o.name}`,children:a.JournalistGroupLink})]})]},`author-${o.firstname}`))})},me={content:"_content_pcdw1_1",urlTag:"_urlTag_pcdw1_12",contentInfo:"_contentInfo_pcdw1_38",imageStyled:"_imageStyled_pcdw1_55",name:"_name_pcdw1_60",description:"_description_pcdw1_65",imageContainer:"_imageContainer_pcdw1_78",contenSocialNetwork:"_contenSocialNetwork_pcdw1_129",socialIcon:"_socialIcon_pcdw1_139",socialIconLink:"_socialIconLink_pcdw1_144",socialIconLinkedIn:"_socialIconLinkedIn_pcdw1_148",contentInfoWithoutImg:"_contentInfoWithoutImg_pcdw1_152"},Nn=e=>{if(!e||e.trim()==="")return e;const n=e.trim();return n.startsWith("http://")||n.startsWith("https://")?n:`https://${n}`},xl=async e=>{const n=e.img?await de(e.img):"",a=Nn(e.social?.facebook??""),o=Nn(e.social?.instagram??""),s=Nn(e.social?.twitter??""),r=Nn(e.social?.linkedin??"");return t.jsx("section",{className:`${me.content} ${e.className}`,children:t.jsxs("div",{className:`${me.contentInfo} ${n?"":me.contentInfoWithoutImg}`,children:[e.img&&t.jsx("div",{className:`${me.imageContainer} sass-image-tag-wrapper`,children:t.jsx("img",{fetchPriority:"low",loading:"lazy",className:me.imageStyled,src:n})}),t.jsx("h1",{className:me.name,children:e.tag}),e.description&&t.jsx("div",{className:me.description,dangerouslySetInnerHTML:{__html:e.description}}),e.url&&t.jsx("a",{className:me.urlTag,href:e.url,children:e.url}),t.jsxs("div",{className:me.contenSocialNetwork,children:[a&&t.jsx("a",{href:a,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:t.jsx(pn,{className:me.socialIcon})}),o&&t.jsx("a",{href:o,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:t.jsx(An,{className:me.socialIcon})}),s&&t.jsx("a",{href:s,target:"_blank",className:me.socialIconLink,rel:"noreferrer",children:t.jsx(vt,{className:me.socialIcon})}),r&&t.jsx("a",{href:r,target:"_blank",className:`${me.socialIconLink} ${me.socialIconLinkedIn}`,rel:"noreferrer",children:t.jsx(Ot,{className:me.socialIcon})})]})]})})},Ie={content:"_content_1j0pj_1",contentNews:"_contentNews_1j0pj_10",linkTitle:"_linkTitle_1j0pj_27",tag:"_tag_1j0pj_35",tagmx:"_tagmx_1j0pj_55",titular:"_titular_1j0pj_70",correspondent:"_correspondent_1j0pj_85",correspondentLink:"_correspondentLink_1j0pj_96",description:"_description_1j0pj_107"},Nt=e=>{const{SHOW_TAG_BY_SECTION:n}=K(),a=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${e?.authors[0]?.fullname} - ${xe(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return xe(e.info?.date?.modified)},o=()=>{if(n&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?t.jsxs("h3",{children:[" ",t.jsx(O,{"aria-label":i,className:Ie.tagmx,href:at(r,e.paths),children:i})]}):t.jsx("div",{className:Ie.tagmx,children:i})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(O,{className:Ie.tagmx,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},s=()=>{if(n&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const r=e.keywords.tags[0],i=r.name;return r.approved?t.jsx("h3",{children:t.jsx(O,{"aria-label":i,className:Ie.tag,href:at(r,e.paths),children:i})}):t.jsx("div",{className:Ie.tag,children:i})}else if(e.info?.section?.url)return t.jsx("h3",{children:t.jsx(O,{className:Ie.tag,href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return t.jsxs("section",{className:`${Ie.content} destacado-super-content`,children:[t.jsx(O,{href:e?.info?.link?.url,target:e?.info?.link?.target,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:t.jsx(Ne,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),t.jsxs("div",{className:Ie.contentNews,style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[t.jsx(o,{}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(s,{}),t.jsx(O,{className:Ie.linkTitle,href:e?.info?.link?.url,target:e?.info?.link?.target,children:t.jsx("h1",{className:Ie.titular,style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&t.jsx("div",{className:Ie.description,dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&t.jsx(t.Fragment,{children:e.authors[0]?.internaluser?t.jsx(O,{href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:Ie.correspondent,children:a()}):t.jsx("p",{className:Ie.correspondentLink,children:a()})})]})]})},Bs=e=>{const{main:n,authors:a,info:o,preview:s,isVideo:r,config:i,itemReverseOrder:c,imageSize:d,showSuper:l}=e;return t.jsxs("section",{className:Hc.content,children:[l?t.jsx("section",{style:{...e.customSectionCardStyles},children:t.jsx(Nt,{main:n,authors:a,info:o,preview:s,isVideo:r,config:i,paths:e.paths})}):t.jsx(De,{...e,main:n,authors:a,info:o,preview:s,isVideo:r,config:i,priorityHigh:!0}),e.banners&&t.jsx(ge,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&t.jsx(ms,{block:e.block,itemReverseOrder:c,priorityHigh:!0,imageSize:d,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})]})},ma={content:"_content_1dcf7_1",firstSection:"_firstSection_1dcf7_10",secondSection:"_secondSection_1dcf7_16"},Ul=({content:e,customLargeSection:n,customSmallSection:a,paths:o})=>{const s=e[0];return Array.isArray(e)&&e.length>0&&s&&t.jsxs("section",{className:ma.content,children:[t.jsx("div",{style:n,className:ma.firstSection,children:t.jsx(Nt,{...s,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})}),t.jsx("div",{style:a,className:ma.secondSection,children:e.map((r,i)=>i>0&&E.createElement(Nt,{...r,key:i,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:o}))})]})},Ps={content:"_content_wsx1m_1",firstSection:"_firstSection_wsx1m_8"},Ll=({content:e,customLargeSection:n,customSlimSection:a,paths:o})=>Array.isArray(e)&&e.length>0&&t.jsx("section",{className:Ps.content,children:e.map((s,r)=>r===0?t.jsx("div",{style:n,className:Ps.firstSection,children:t.jsx(Nt,{...s,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r):t.jsx("section",{style:a,children:E.createElement(Nt,{...s,key:r,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:o})},r))}),lt={content:"_content_1n73e_1",sectionDescription:"_sectionDescription_1n73e_13",title:"_title_1n73e_33",subtitle:"_subtitle_1n73e_47",linkStyled:"_linkStyled_1n73e_58"},Os=e=>{const{SHOW_TAG_BY_SECTION:n}=K(),a=()=>{if(n&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],s=o.name;return o.approved?t.jsx("h3",{children:t.jsx(O,{"aria-label":s,className:lt.sectionDescription,href:at(o,e.paths),children:s})}):t.jsx("div",{className:lt.sectionDescription,children:s})}else if(e.mainNew.info?.section?.url)return t.jsx("h3",{children:t.jsx(O,{className:lt.sectionDescription,href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return t.jsxs("div",{className:lt.content,children:[t.jsx(a,{}),t.jsx(O,{className:lt.title,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&t.jsx("p",{className:lt.subtitle,children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&t.jsx(O,{href:e.goTo.url,className:lt.linkStyled,children:e.goTo.description})]})},ga={headerSection:"_headerSection_drjnj_1",headerSectionLink:"_headerSectionLink_drjnj_12",newsContent:"_newsContent_drjnj_17"},Ds=e=>{const{content:n,title:a,isVideo:o}=e;if(!n||!n[0]||n.length===0)return;const s=e.slot_id&&e.slot_id!=="Nota_1",r={...n[0],main:{...n[0].main,title:{...n[0].main.title,section:s?n[0].main.title.home:n[0].main.title.section}}},i=n.slice(1);return r&&i&&t.jsxs(fe,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:ga.headerSection,children:[t.jsx(Os,{mainNew:r,goTo:e.goTo,paths:e.paths}),t.jsx(O,{className:ga.headerSectionLink,href:r?.info?.link?.url,target:r?.info?.link?.target,children:t.jsx(Ne,{preview:r.preview})})]}),t.jsxs("div",{className:ga.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:s?c.main.title.home:c.main.title.section}}};return t.jsx("div",{style:{order:d},children:t.jsx(De,{...l,isVideo:o,paths:e.paths})},d)})]})]})},Ve={content:"_content_1stvq_1",autorContent:"_autorContent_1stvq_8",image:"_image_1stvq_24",contentIcon:"_contentIcon_1stvq_25",boxInformationContent:"_boxInformationContent_1stvq_47",autorName:"_autorName_1stvq_53",time:"_time_1stvq_85",comment:"_comment_1stvq_98",title:"_title_1stvq_107"},En=async e=>{const{data:n,autorIcon:a}=e,o=a,s=()=>n?.config?.showtime?`${xe(n.info?.date?.modified)}`:"",r=t.jsxs("div",{className:Ve.autorContent,children:[Array.isArray(n?.authors)&&Array.isArray(n?.authors[0]?.image?.sizes)&&n?.authors[0]?.image?.sizes?.length>0?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:Ve.image,src:await de(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:Ve.contentIcon,children:t.jsx(o,{})}),t.jsx("p",{className:Ve.autorName,children:Ue(n?.authors[0]?.fullname??"Redacción",18)}),t.jsx("p",{className:Ve.time,children:s()})]});return t.jsxs("div",{className:Ve.content,children:[n?.authors[0]?.internaluser?t.jsx(O,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:r}):r,t.jsxs("div",{className:Ve.boxInformationContent,children:[t.jsx(O,{className:Ve.title,href:n?.info?.link?.url,target:n?.info?.link?.target,children:n?.main?.title?.home}),t.jsx("p",{className:Ve.comment,children:Ue(n?.main?.subtitle?.striped||"")})]})]})},Et={content:"_content_1d7mg_1",boxPosition:"_boxPosition_1d7mg_8",contentFlex:"_contentFlex_1d7mg_21",bannerContent:"_bannerContent_1d7mg_29",bannerContentAux:"_bannerContentAux_1d7mg_40"};function ql(e){const n=new Array(e.length),a=e.length/2;for(let o=0;o<e.length;o++)o%2===0?n[Math.floor(o/2)]=e[o]:n[a+Math.floor(o/2)]=e[o];return n}const Bl=e=>{const{isOpinion:n=!1}=e,a=r=>t.jsx("div",{className:Et.boxPosition+" banner-context",style:{order:2},children:t.jsx("div",{className:Et.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},r),o=[];for(let r=0;r<e.news.length;r++){const i=e.news[r];r===2&&o.push(a(r)),i&&o.push(t.jsx("div",{className:Et.boxPosition,style:{order:r},children:t.jsx(En,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${r}`))}const s=o.length%2===0?ql(o):o;return t.jsx("section",{style:e.customStyles,children:t.jsx(fe,{title:e.title,titleUrl:e.titleUrl,isOpinion:n,children:t.jsxs("div",{className:Et.content,children:[t.jsx("div",{className:Et.contentFlex,children:s}),t.jsx("div",{className:Et.bannerContent,children:e.halfPageBanner})]})})})},Ms={content:"_content_w9viv_1",title:"_title_w9viv_10"},Pl=e=>{const{showTitle:n=!0}=e;return t.jsxs("div",{className:Ms.content,children:[n&&t.jsx("p",{className:Ms.title,children:"Editorial"}),t.jsx(ct,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},It={content:"_content_1nd2h_1",newsContent:"_newsContent_1nd2h_8",boxPosition:"_boxPosition_1nd2h_17",bannerContent:"_bannerContent_1nd2h_23",bannerContentAux:"_bannerContentAux_1nd2h_33"},Ol=e=>{const{news:n}=e;return Array.isArray(n)&&t.jsxs("div",{className:It.content,children:[t.jsxs("div",{className:It.newsContent,children:[e.bannerArray&&e.bannerArray.map((a,o)=>t.jsx("div",{className:It.boxPosition+" banner-context",style:{order:2+5*o},children:t.jsx("div",{className:It.bannerContentAux,children:t.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:a})})},o)),n.map((a,o)=>t.jsx("div",{className:It.boxPosition,style:{order:o},children:t.jsx(De,{...a,share:e.share,paths:e.paths})},o))]}),t.jsx("div",{className:It.bannerContent,children:e.halfPageBanner})]})},Dl=e=>t.jsxs(t.Fragment,{children:[t.jsx(As,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction}),t.jsx(ys,{...e})]}),In={newsContent:"_newsContent_gd57q_1",newsContentWithLines:"_newsContentWithLines_gd57q_8",newsContentWithoutLines:"_newsContentWithoutLines_gd57q_13",contentSeparator:"_contentSeparator_gd57q_18"},js=e=>{const{content:n}=e;if(!n||n.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?In.contentSeparator:"",o=[];let s=0,r=1;for(let i=0;i<n.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(o.push(t.jsx("section",{className:a(s),children:e.banners?.some(h=>h.key===`${e.slot_id}_${r}`)&&t.jsx(ge,{banners:e.banners,name:`${e.slot_id}_${r}`})},s)),s++,r++);const c=e.isVideo?gt(n[i],e.showVideoTime,e.showVideosubtitle):n[i];if(!c)continue;const d=e.slot_id&&e.slot_id!=="Nota_1",l={...c,main:{...c.main,title:{...c.main.title,section:d?c.main.title.home:c.main.title.section}}};o.push(t.jsx("section",{className:a(s),children:t.jsx(De,{...l,isVideo:e.isVideo,paths:e.paths})},s)),s++}return o.length===2&&o.push(t.jsx("div",{},s)),t.jsx("div",{className:`${e.hasLines?In.newsContentWithLines:In.newsContentWithoutLines} ${In.newsContent}`,children:o})},pa=e=>t.jsx(fe,{title:e.title,titleUrl:e.titleUrl,children:t.jsx(js,{content:e.content,paths:e.paths,slot_id:e.slot_id,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle})}),$s={newsContent:"_newsContent_1sb62_1",contentSeparator:"_contentSeparator_1sb62_8"},Qs=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0||!Array.isArray(n)))return t.jsx(fe,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${$s.newsContent} ${e.hasLines?$s.contentSeparator:""}`,children:n?.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return t.jsx("section",{children:t.jsx(De,{...i,share:e.share,paths:e.paths})},s)})})})},Aa={newsContent:"_newsContent_1gbse_1",contentSeparator:"_contentSeparator_1gbse_8",newsContentWhitoutLine:"_newsContentWhitoutLine_1gbse_29"},Gs=e=>{const{content:n,title:a}=e;if(!(!n||n.length===0))return t.jsx(fe,{title:a,titleUrl:e.titleUrl,children:t.jsx("div",{className:`${Aa.newsContent} ${e.hasLines?Aa.contentSeparator:Aa.newsContentWhitoutLine}`,children:n.map((o,s)=>{const r=e.slot_id&&e.slot_id!=="Nota_1",i={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return t.jsx("section",{children:t.jsx(De,{...i,share:e.share,paths:e.paths})},s)})})})},ya={headerSection:"_headerSection_1m1sp_3",headerSectionLink:"_headerSectionLink_1m1sp_16",newsContent:"_newsContent_1m1sp_29"},Hs=e=>{const{content:n,title:a,isVideo:o=!0}=e;if(!n||n.length===0)return;const s=n[0],r=e.slot_id&&e.slot_id!=="Nota_1",i=n.slice(1);return s&&i&&t.jsxs(fe,{title:a,titleUrl:e.titleUrl,children:[t.jsxs("div",{className:ya.headerSection,children:[t.jsx(Os,{goTo:e.goTo,mainNew:gt(s),paths:e.paths}),t.jsx(O,{className:ya.headerSectionLink,href:s?.info?.link.url,target:s?.info?.link.target,"aria-label":"Video",children:t.jsx(Ne,{preview:{sizes:s?.main?.image.sizes,description:s?.main?.image.description},isVideo:o,isLarge:!0})})]}),t.jsxs("div",{className:ya.newsContent,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((c,d)=>{const l=gt(c),h={...l,main:{...l.main,title:{...l.main.title,section:r?l.main.title.home:l.main.title.section}}};return t.jsx("div",{style:{order:d},children:E.createElement(De,{...h,isVideo:o,key:d,paths:e.paths})},d)})]})]})},Ht={content:"_content_1qdkl_1",linkImage:"_linkImage_1qdkl_30",sectionDescription:"_sectionDescription_1qdkl_42",dateText:"_dateText_1qdkl_62",textContent:"_textContent_1qdkl_73"},Ml=async e=>{const{showNewsLikeTitle:n=!1}=e;return e&&e.info?t.jsxs("section",{className:Ht.content,style:{"--heightImageOverwrite":"100%"},children:[t.jsx(O,{className:Ht.linkImage,target:e?.info?.link?.target,title:e.main?.title?.section,href:n?e.info.link.url:e?.info?.section?.url,children:t.jsx(Ne,{preview:e.preview})}),t.jsxs("div",{className:Ht.textContent,children:[t.jsx(O,{className:Ht.sectionDescription,target:e?.info?.link?.target,href:n?e.info.link.url:e?.info?.section?.url,children:(n?e?.main?.title?.section:e?.info?.section?.name)??""}),t.jsx("p",{className:Ht.dateText,children:xe(e?.info?.date?.modified)})]})]}):null},zs={content:"_content_yx3zm_1",contentSeparator:"_contentSeparator_yx3zm_7"},wa={newsContent:"_newsContent_1uamf_1",contentSeparator:"_contentSeparator_1uamf_8",hasLinesBlock:"_hasLinesBlock_1uamf_40"},Fs=e=>{if(!e.content||e.content.length===0)return;const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(fe,{title:e.title,children:t.jsx("div",{className:`${zs.content} ${e.hasLines?zs.contentSeparator:""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx("section",{className:e.hasLines?wa.hasLinesBlock:"",children:E.createElement(Ml,{...s,key:o,showNewsLikeTitle:e.showNewsLikeTitle})},o)})})})},Vs=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(fe,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return t.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:t.jsx(jt,{...c,paths:e.paths})},i)})})})},nt={content:"_content_1mj79_1",imageStyled:"_imageStyled_1mj79_14",contentIcon:"_contentIcon_1mj79_23",boxInformation:"_boxInformation_1mj79_44",comment:"_comment_1mj79_51",title:"_title_1mj79_60",authorName:"_authorName_1mj79_81"},jl=async e=>{const{data:n}=e;return t.jsxs("div",{className:nt.content,children:[Array.isArray(n.authors)&&n?.authors[0]?.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",className:nt.imageStyled,src:await de(n?.authors[0]?.image?.sizes[0]?.url||""),alt:n?.authors[0]?.fullname}):t.jsx("div",{className:nt.contentIcon,children:e.autorIcon}),t.jsxs("div",{className:nt.boxInformation,children:[t.jsx("p",{className:nt.authorName,children:n?.authors[0]?.internaluser?t.jsx(O,{href:n.authors[0]?.internaluser?`/${e.paths.autor}/${n?.authors[0]?.name}`:"#",children:n?.authors[0]?.fullname??"Redacción"}):n?.authors[0]?.fullname??"Redacción"}),t.jsx("p",{className:nt.title,children:t.jsx(O,{className:nt.linkStyled,href:n?.info?.link?.url,target:n?.info?.link?.target,children:Ue(n?.main?.title?.home,40)})}),t.jsx("p",{className:nt.comment,children:n?.main?.subtitle?.striped})]})]})},Ws=e=>{const n=e.slot_id&&e.slot_id!=="Nota_1";return t.jsx(fe,{titleUrl:e.titleUrl,title:e.title,children:t.jsx(it,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,o)=>{const s={...a,main:{...a.main,title:{...a.main.title,section:n?a.main.title.home:a.main.title.section}}};return t.jsx(jl,{autorIcon:e.autorIcon,data:s,paths:e.paths},o)})})})},We={content:"_content_1elhb_1",newsContentSection:"_newsContentSection_1elhb_5",itemContent:"_itemContent_1elhb_10",ItemCustomContent:"_ItemCustomContent_1elhb_16"},Tn=e=>{const{item:n,option:a}=e;switch(a){case"ediciones":return t.jsx("div",{className:We.ItemCustomContent});case"columnistasnacionales":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(En,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistaslocales":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(En,{data:n,autorIcon:e.autorIcon,paths:e.paths})});case"columnistas":return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(En,{data:n,autorIcon:e.autorIcon,paths:e.paths})});default:return t.jsx("div",{className:We.ItemCustomContent,children:t.jsx(De,{...n,paths:e.paths})})}},$l=e=>{const{data:n,currentPage:a,banners:o,slug:s,ranking:r,pathname:i,texts:c={}}=e,d=[3,8,13],l={3:1,8:2,13:3};switch(e.option){case"op1":return t.jsx(da,{ranking:r,readestTitle:c.readestTitle??"",paths:e.paths,bannerTop:t.jsx(ge,{banners:o??[],name:"right_1"}),banner:t.jsx(ge,{banners:o??[],name:"right_2"}),children:t.jsx("section",{className:We.content,children:n.length>0?t.jsx(bn,{className:[We.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Dt,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((h,u)=>t.jsxs(E.Fragment,{children:[d.includes(u+1)&&t.jsx("div",{className:We.itemContent+" banner-context",children:t.jsx(ge,{banners:o??[],name:`block_2_${l[u+1]}`})}),t.jsx(Tn,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})})});case"op2":return t.jsx(t.Fragment,{children:n.length>0?t.jsx(bn,{className:"padding-0",paginatorComponent:t.jsx(Dt,{texts:c,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(n.length<e.NEWS_PER_SECTION)}),children:Array.isArray(n)&&n?.map((h,u)=>t.jsxs(E.Fragment,{children:[d.includes(u+1)&&t.jsx("div",{className:We.itemContent,children:t.jsx(ge,{banners:o??[],name:`block_2_${l[u+1]}`})}),t.jsx(Tn,{autorIcon:e.autorIcon,item:h,option:s,paths:e.paths},u)]},u))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:c.sectionNotResultMessage})})});default:return t.jsx(t.Fragment,{})}},Ys={content:"_content_gwsqy_1",contactInfoContent:"_contactInfoContent_gwsqy_7"},Ql=e=>{const{data:n}=e;return t.jsx("section",{className:Ys.content,children:n.map((a,o)=>t.jsx("div",{className:Ys.contactInfoContent,dangerouslySetInnerHTML:{__html:a.body.rendered}},o))})},ba={tagContent:"_tagContent_ee6yw_1",contentLayout2:"_contentLayout2_ee6yw_9",contentHeader:"_contentHeader_ee6yw_42"},Gl={content:"_content_1rbrt_1"},Hl=({children:e,className:n=""})=>t.jsx("div",{className:`content-layout-2 ${Gl.content} ${n}`,children:e}),zt={container:"_container_8w9ca_1",note:"_note_8w9ca_9",commercial:"_commercial_8w9ca_49",commercialContent:"_commercialContent_8w9ca_66",complement:"_complement_8w9ca_82"},zl=e=>t.jsxs("section",{className:zt.container,children:[t.jsx("div",{className:zt.note,children:e.children}),t.jsx("div",{className:zt.commercial,children:t.jsxs("div",{className:zt.commercialContent,children:[e.slug==="liveblogs"&&t.jsx(Ss,{itemList:e.itemList}),e.bannerTop,t.jsx(gn,{content:e.ranking,title:e.texts.readestTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),t.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),t.jsx("div",{className:zt.complement,children:e.complement})]}),Fl=e=>{const n={...e.news[0],config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return t.jsx("div",{style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"420px","--news-image-description-display":"none",...e.headerSectionStyles?.liveblogs},children:t.jsx(_s,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return t.jsx("div",{className:ba.contentHeader,style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px",...e.headerSectionStyles?.common},children:t.jsx(ct,{...n,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!1,colorSubTitle:"black",isTitle:!0,paths:e.paths})})}},Ye={content:"_content_exb5o_1",contentWithinCard:"_contentWithinCard_exb5o_7",contentDate:"_contentDate_exb5o_13",dateInfo:"_dateInfo_exb5o_20",dot:"_dot_exb5o_30",contentTitle:"_contentTitle_exb5o_38",contentTextList:"_contentTextList_exb5o_47",contentButton:"_contentButton_exb5o_65",linkStyled:"_linkStyled_exb5o_71"},Vl={content:"_content_ifkxj_1"},Wl=e=>t.jsx("section",{className:Vl.content,id:e.id,children:e.children}),Yl=async(e,n,a)=>{if(!a)return e;const o=/<span data-src="(.*?)"><\/span>/g,s=[...e.matchAll(o)];let r=e;for(const i of s){const c=i[0],d=i[1]??"";let l;if(a.forEach(S=>{Array.isArray(S)&&(l=S.find(_=>d.replaceAll("/","|").includes(_?.info.link.internal||"")))}),!l){r=r.replace("ck-related-news","ck-related-news-empty");break}const h=l.preview?.sizes?.[0],u=h?await de(h.url):"",f=l.info.section?.url??"#",g=l.info.section?.name??"Sección",m=l.info.link?.url??"#",p=l.main?.title.article??"Título",A=(await Promise.all(l.preview?.sizes?.map(async S=>{const _=await de(S.url);return S.width<200?`<source srcset="${_}" media="(width < 750px)"/>`:`<source srcset="${_}" media="(width >= 750px)"/>`}))).reduce((S,_)=>S+=_,""),b=`
|
|
48
48
|
<span data-src="${d}">
|
|
49
49
|
<picture style='display: flex'>
|
|
50
50
|
${A}
|
|
@@ -156,4 +156,4 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
156
156
|
<figcaption>${q}</figcaption>
|
|
157
157
|
</figure>
|
|
158
158
|
`}}catch(b){console.error("insertVideos error for",g,b),A=""}else A=f;o=u,a+=A,s.lastIndex=u}return a+=e.slice(o),a=md(a),a}async function bd(e){const{news:n,banners:a,newsRelatedResponses:o,newsRelatedListResponses:s,slug:r,itemList:i,socials:c,getVideos:d,commonServices:l}=e;let h=n?.body?.rendered??"";h=h.replace(/ /g,""),h=pd(h,a),h=Ad(h),h=await gd(h),h=await yd(h,e.texts,o),h=await wd(h,d),h=ud(h),h=fd(h);const u=n.main.sources??[],f=n.config.articlepreview===dt.fotoGaleria&&n.hascontent?.hasgalleryimages;return t.jsxs("div",{className:kn.content,children:[r!=="liveblogs"&&e.showHeaderImage?f?t.jsx(Zs,{commonServices:l,newsformated:n,internal:n.info.link.internal}):t.jsx(vs,{preview:n.preview}):null,t.jsx(ge,{banners:a,name:"block_1"}),t.jsx("div",{className:kn.journalistArticleContent,children:t.jsx(ad,{autorIcon:e.autorIcon,socials:c,news:n,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),t.jsx(sd,{summary:n.main.summary}),t.jsx("div",{className:kn.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:h}}),t.jsx(ed,{texts:e.texts,itemList:i,banners:a,slug:r,getVideos:d,newsRelatedListResponses:s??[]}),u.length>0&&t.jsxs("div",{className:kn.noteSource,children:[t.jsx(id,{}),t.jsx("p",{children:e.texts.noteSource+(u.length===1?"":"s")+": "+u.map(g=>g.name).join(", ")})]})]})}const Cd=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(fe,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,cardWidth:200,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return t.jsx(jt,{...c,titleGradient:!0,paths:e.paths},i)})})})},vd=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(fe,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,cardWidth:343,cardGap:32,visibleItems:3,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return t.jsx(jt,{...c,titleGradient:!0,paths:e.paths},i)})})})},_d=e=>{const{content:n,title:a,slot_id:o}=e,s=e.slot_id&&e.slot_id!=="Nota_1";return n&&n.length!==0&&t.jsx(fe,{title:a,titleUrl:e.titleUrl,children:t.jsx(it,{slot_id:o,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:n.map((r,i)=>{const c={...r,main:{...r.main,title:{...r.main.title,section:s?r.main.title.home:r.main.title.section}}};return E.createElement(jt,{...c,key:i,titleGradient:!0,paths:e.paths})})})})},xn=e=>{const n={};for(const a in e)a.startsWith("--")&&(n[a]=e[a]);return n},ht={headerSection:"_headerSection_1c69w_1",title:"_title_1c69w_11",subtitle:"_subtitle_1c69w_23",newsContent:"_newsContent_1c69w_36",containerCards:"_containerCards_1c69w_44",image:"_image_1c69w_50",blockHeadContainer:"_blockHeadContainer_1c69w_56"},Sd=e=>{const{content:n,title:a,isVideo:o}=e;if(!n||n.length===0)return;const s=n[0],r=n.slice(1),i=e.slot_id&&e.slot_id!=="Nota_1";return s&&r&&t.jsxs(fe,{title:a,titleUrl:e.titleUrl,children:[t.jsx("div",{className:ht.headerSection,children:t.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:ht.image,href:s?.info?.link?.url,target:s?.info?.link?.target,children:[t.jsxs("div",{className:ht.blockHeadContainer,children:[t.jsx("p",{className:ht.title,children:s?.main?.title.home}),s?.main?.subtitle?.rendered&&t.jsx("p",{className:ht.subtitle,children:s?.main?.subtitle?.striped})]}),t.jsx(Ne,{preview:s.preview})]})}),t.jsxs("div",{className:ht.containerCards,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),t.jsx("div",{className:ht.newsContent,children:Array.isArray(r)&&r.map((c,d)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:i?c.main.title.home:c.main.title.section}}};return t.jsx("div",{style:{order:d},children:t.jsx(De,{...l,isVideo:o,paths:e.paths})},d)})})]})]})},nr={banner:e=>t.jsx(ge,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>t.jsx(gn,{...e}),"Modulo 1x3":e=>t.jsx(pa,{...e}),"Modulo 1x4":e=>t.jsx(Qs,{...e}),"Modulo 1x5":e=>t.jsx(Gs,{...e}),"Destacado noticias":e=>t.jsx(Ds,{...e}),"Destacado full width":e=>t.jsx(Sd,{...e}),"Destacado videos":e=>t.jsx(Hs,{...e}),"Carrusel card":e=>t.jsx(Vs,{...e}),"Carrusel story":e=>t.jsx(Cd,{...e}),"Carrusel owl":e=>t.jsx(vd,{...e}),"Modulo fotogaleria":e=>t.jsx(_d,{...e}),"Carrusel opinion":e=>t.jsx(Ws,{...e}),"Modulo 1x3 card":e=>t.jsx(Fs,{...e})};function va({component:e,slot_id:n,data:a,banners:o}){if(o)return nr[e]&&t.jsx("div",{className:"home-slot",style:xn(a),children:nr[e]({...a,banners:o,slot_id:n})})}function Nd({children:e,stylesConfigEntry:n}){return t.jsx("div",{className:"home-slot",style:xn(n),children:e})}const ar={Diario:e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(Bs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:n,banners:e.banners,showSuper:e.showSuper,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(Bs,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:n,banners:e.banners,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths})},Super:e=>t.jsx(Nt,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>t.jsx(Ll,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>t.jsx(Ul,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},Un=({component:e,data:n,banners:a,rightOnlyBanner:o})=>t.jsx("div",{style:xn(n),children:ar[e]&&ar[e]({...n,rightOnlyBanner:o,banners:a})}),Ed=({slots:e,DYNAMIC_SLOT_SUBINDEXES:n,stylesConfig:a,AutorIcon:o,config:s,banners:r,showTagBySection:i})=>{const c=[],l=n,h=Object.keys(e).length/l;for(let u=1;u<=h;u++)for(let f=1;f<=l;f++){const g="Home_"+u+"_"+f;!e[g]||!e[g].blockSass||!e[g].blockSass[0]||!e[g].blockSass[0].value||!e[g].blockSass[0].block||e[g].blockSass[0].block==="No Mostrar"||c.push(t.jsxs(rs,{show:!!e[g].content?.data,order:(u-1)*l+(f-1),children:[t.jsx(va,{component:e[g].blockSass[0].block,banners:r,slot_id:g,data:{...e[g].blockSass[0].block?a[e[g].blockSass[0].block]:[],content:e[g].content?.data??[],title:e[g].blockSass[0].title??void 0,titleUrl:e[g].blockSass[0].link??void 0,autorIcon:t.jsx(o,{}),paths:s.paths,showTagBySection:i}}),t.jsx(Xe,{children:t.jsx($e,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f))}return c},Id=({mainBlock:e,StylesConfigMain:n,config:a,banners:o})=>{const{PUBLIC_ENV:s}=K();if(s!=="local")return null;const r=e?.news?.data||[],i=(c,d)=>({...e?.news,...n[c],data:r.slice(0,d),paths:a.paths});return t.jsxs(t.Fragment,{children:[t.jsx(Un,{component:"Super",data:i("Super",1),banners:o}),t.jsx(Xe,{children:t.jsx($e,{banners:o,index:1})}),t.jsx(Un,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:o}),t.jsx(Xe,{children:t.jsx($e,{banners:o,index:1})}),t.jsx(Un,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:o}),t.jsx(Xe,{children:t.jsx($e,{banners:o,index:1})})]})},Td=e=>{const{config:n}=e,a=n.articlepreview;return!![dt.videoEmbedded,dt.videoYouTube,dt.iframe].includes(a)},kd=async e=>{const{custom_complement:n,ranking:a=[],banners:o,autor:s=[],news:r=[],newsRelatedResponses:i=[],newsRelatedListResponses:c=[],itemList:d=[],socials:l,getVideos:h}=e,u=e.slug==="liveblogs",{SHOW_NEWS_MORE_NEWS:f,SHOW_NEWS_RELATED_NEWS:g}=K();if(!(!r||!r[0]))return t.jsx(t.Fragment,{children:t.jsxs(Hl,{className:ba.contentLayout2,children:[t.jsx(Fl,{option:e.slug,news:r,paths:e.paths,headerSectionStyles:e.headerSectionStyles}),t.jsx($e,{banners:o,index:1}),!u&&e.commonServices&&t.jsx(hd,{news:r[0],commonServices:e.commonServices}),t.jsx(zl,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:d,ranking:a,readestCustomStyles:e.readestCustomStyles,bannerTop:t.jsx(ge,{banners:o??[],name:"right_1"}),banner:t.jsx(ge,{banners:o??[],name:"right_2"}),complement:t.jsxs("div",{id:"comentarios",suppressHydrationWarning:!0,children:[s.length>0&&t.jsx(Ls,{texts:e.texts,autorIcon:e.autorIcon,autor:s[0],paths:e.paths}),r[0].authors.length>1&&t.jsx(qs,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),t.jsx("div",{className:ba.tagContent,children:t.jsx(Us,{tags:r[0]?.keywords?.tags,paths:e.paths})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2rem"},suppressHydrationWarning:!0,children:[e.showComments&&t.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"comment",internalPath:e.internalPath,COMMENTS_VARS:e.COMMENTS_VARS,DATE_CONFIG:e.DATE_CONFIG}))}),t.jsx(Xe,{children:t.jsx($e,{banners:o,index:2})}),g&&t.jsxs(t.Fragment,{children:[t.jsx(va,{component:"Carrusel card",banners:[],slot_id:"Nota_1",data:{...e.stylesConfig["Carrusel card"],content:e.relatedNewsList??[],title:e.texts.relatedNewsTitle,titleUrl:void 0}}),t.jsx(Xe,{children:t.jsx($e,{banners:o,index:3})})]}),f&&t.jsxs(t.Fragment,{children:[t.jsx(fe,{title:e.texts.moreNewsTitle,children:t.jsx("div",{suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"more",stylesConfig:e.stylesConfig,section:r[0].info.section?.slug??"",currentNews:r[0]}))})}),t.jsx(Xe,{children:t.jsx($e,{banners:o,index:4})})]}),n&&n()]})]}),children:t.jsxs("section",{style:{"--avatar-content-align-items-desk":e.slug==="liveblogs"?"flex-start":"center"},children:[t.jsx(bd,{texts:e.texts,autorIcon:e.autorIcon,socials:l,news:r[0],banners:o,newsRelatedResponses:i,newsRelatedListResponses:c,itemList:d,slug:e.slug,getVideos:h,noteShare:e.noteShare,paths:e.paths,showHeaderImage:!Td(r[0]),commonServices:e.commonServices}),t.jsx(ge,{banners:o??[],name:"block_3"})]})})]})})},Ft={content:"_content_1046n_1",buttonStyled:"_buttonStyled_1046n_9",searchStyled:"_searchStyled_1046n_20",inputStyled:"_inputStyled_1046n_36",inputStyledTest:"_inputStyledTest_1046n_55"},xd=e=>t.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("g",{children:t.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),Ud=e=>t.jsx("form",{className:Ft.content,style:{height:e.hasContent?"218px":"50vh"},children:t.jsxs("div",{className:`${Ft.inputStyled} sass-buscar-form`,children:[t.jsx("input",{className:Ft.inputStyledTest,defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),t.jsx("button",{className:Ft.buttonStyled,type:"submit",children:t.jsx(xd,{className:Ft.searchStyled})})]})}),_a={content:"_content_io3tv_1",newsContentSection:"_newsContentSection_io3tv_5",itemContent:"_itemContent_io3tv_10"},Ld=e=>{const{data:n,option:a,autor:o,page:s,banners:r,pathname:i,ranking:c,currentPage:d,slug:l,texts:h={}}=e,u=[5,10,15],f={5:1,10:2,15:3};switch(a){case"op1":return t.jsx(t.Fragment,{children:t.jsxs(ca,{children:[t.jsx(Ns,{autor:o[0],autorIcon:e.autorIcon}),t.jsx(da,{paths:e.paths,ranking:c,readestTitle:h.readestTitle??"",bannerTop:t.jsx(ge,{banners:r??[],name:"right_1"}),banner:t.jsx(ge,{banners:r??[],name:"right_2"}),children:t.jsx("section",{className:_a.content,children:n.length>0?t.jsx(bn,{className:[_a.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx(Dt,{texts:h,pathname:i,query:"",currentPage:d,maxPages:e.paginationLimit,showNext:!(n.length<e.newsListLimit)}),children:Array.isArray(n)&&n?.map((g,m)=>t.jsxs(E.Fragment,{children:[u.includes(m+1)&&t.jsx("div",{className:_a.itemContent+" banner-context",children:t.jsx(ge,{banners:r??[],name:`block_2_${f[m+1]}`})}),t.jsx(Tn,{autorIcon:e.autorIcon,item:g,option:l,paths:e.paths},m)]},m))}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:h.autorNotResultMessage})})})})]})});case"op2":return t.jsx(t.Fragment,{children:t.jsxs(ca,{children:[t.jsx(Es,{autor:o[0],autorIcon:e.autorIcon}),Array.isArray(n)?t.jsxs(t.Fragment,{children:[t.jsx(pa,{content:n,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),t.jsx(Dt,{texts:h,query:"",pathname:i,maxPages:Number(e.paginationLimit),currentPage:Number(s),showNext:!((n.length??0)<Number(e.newsListLimit))})]}):t.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:t.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:h.autorNotResultMessage})})]})});default:return t.jsx(t.Fragment,{})}},or={content:"_content_pq89v_1",videoContent:"_videoContent_pq89v_9"},Vt={container:"_container_1xr2t_1",playStyled:"_playStyled_1xr2t_6",imageStyled:"_imageStyled_1xr2t_13",longer:"_longer_1xr2t_26",contentNews:"_contentNews_1xr2t_31",tagContent:"_tagContent_1xr2t_51",tag:"_tag_1xr2t_51",titular:"_titular_1xr2t_68",small:"_small_1xr2t_81",figure:"_figure_1xr2t_87",backDrop:"_backDrop_1xr2t_92",backDropAux:"_backDropAux_1xr2t_100"},sr=async e=>{const{size:n="longer",video:a}=e,o=a.main.image.sizes[0]?.url??"";return t.jsx("figure",{className:Vt.figure,children:t.jsxs("span",{className:Vt.backdrop,children:[t.jsx("span",{className:Vt.backDropAux}),t.jsx(O,{href:a.info.link.url,target:a.info.link.target,children:t.jsxs("div",{children:[a.main.image.sizes.map(async(s,r)=>s.width>=580?t.jsx("source",{media:"(width >=900px)",srcSet:await de(s.url)},r):t.jsx("source",{media:"(width <900px)",srcSet:await de(s.url)},r)),t.jsx("img",{fetchPriority:"low",loading:"lazy",className:[Vt.imageStyled,Vt[n]].join(" "),alt:"",src:o?await de(o):""})]})})]})})},qd=e=>{const{videos:n}=e;return t.jsx("div",{className:or.content,children:t.jsx(bt,{children:t.jsx(fe,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:or.videoContent,children:[t.jsx(sr,{video:n[0]}),t.jsx("div",{style:{display:"flex",flexDirection:"column"},children:n.slice(1).map((a,o)=>t.jsx(sr,{size:"small",video:a},`video-small-${o}`))})]})})})})},ut={content:"_content_ruy5q_1",videoContent:"_videoContent_ruy5q_9",articleSection:"_articleSection_ruy5q_21",contentLatout:"_contentLatout_ruy5q_31",title:"_title_ruy5q_36",article:"_article_ruy5q_21",correspondent:"_correspondent_ruy5q_64"},rr={container:"_container_1rq2h_1",playStyled:"_playStyled_1rq2h_9"},Bd=e=>{const{video:n}=e,a=mn();return t.jsx(O,{href:n.info.link.url?n.info.link.url:void 0,target:n.info.link.target,children:t.jsxs("section",{className:rr.container,children:[t.jsx(Ne,{isLarge:!0,preview:{sizes:n.main.image.sizes,description:n.main.description}}),t.jsx(a,{className:rr.playStyled})]})})},Pd=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${xe(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:ut.content,children:t.jsx(bt,{className:ut.contentLatout,children:t.jsx(fe,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:ut.videoContent,children:[t.jsx(Bd,{video:e.video}),t.jsxs("div",{className:ut.articleSection,children:[t.jsx(O,{className:ut.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),t.jsx("p",{className:ut.article,children:Ue(e.video.main.description)}),t.jsx("p",{className:ut.correspondent,children:n()})]})]})})})})},Od=e=>{switch(e.option){case"op1":return t.jsx(qd,{videos:e.data});case"op2":return t.jsx(Pd,{video:e.data[0]});default:return t.jsx(t.Fragment,{})}};function Dd({containerId:e,containerId2:n}){return E.useEffect(()=>{try{let a=function(){const h=window.twttr;h?.widgets?h.widgets.load(o):l<10?(l++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const o=document.getElementById(e),s=document.getElementById(n);if(!o&&!s)return;const r=o?.querySelectorAll("script[src]")??[],i=s?.querySelectorAll("script[src]")??[];[...r,...i].forEach(h=>{const u=document.createElement("script");Array.from(h.attributes).forEach(f=>{u.setAttribute(f.name,f.value)}),h.replaceWith(u)});const d=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(d)for(let h=0;h<d.length;h++)d[h]?.remove();let l=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const h=document.createElement("script");h.src="https://platform.twitter.com/widgets.js",h.async=!0,h.onload=a,document.body.appendChild(h)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Md=e=>{const{isVideo:n=!1,isLarge:a=!1,hasShadow:o=!1,BackDropAuxHeigthMobile:s}=e,r=sa(),i=E.useMemo(()=>e?.preview?.sizes||[],[e?.preview?.sizes]);if(!i.length||!i[0]?.url||i[0]?.url==="")return t.jsx("div",{className:se.imagePlaceholder});const{PUBLIC_API_HOST:c,PUBLIC_ENV:d}=K();return t.jsx("figure",{className:se.figure,children:t.jsxs("span",{className:se.backdrop,children:[t.jsx("span",{className:se.backdropAux,style:{height:s||"56.25%"}}),t.jsxs("picture",{children:[t.jsx("img",{fetchPriority:"low",loading:"lazy",className:se.imageStyled,alt:e.preview?.description||"",src:(d==="local"?c:"")+i[0]?.url,style:{boxShadow:o?"0px 4px 8px 0px #00000033":"0px"}}),n&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:se.boxPlayIcon,style:{height:a?"40%":"72px"}}),t.jsx(r,{className:se.playStyled,style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},jd=e=>t.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),ir={info:{section:{name:"",slug:"",url:""},link:{url:"/",target:"",canonical:!1,internal:""},date:{date:"",created:0,modified:0,firstpublish:0,lastpublish:0}},config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:"",homepreview:"",showcomments:!0,showtime:!0,showauthor:!0,showuppertitle:!0,showsubtitle:!0,showads:!0},main:{title:{home:"",section:"",article:""},subtitle:{rendered:"",striped:""},tags:[]},authors:[{firstname:"",lastname:"",fullname:"",image:void 0,name:"",internaluser:!1}],preview:void 0},cr=6,$d=({section:e,currentNews:n,banner:a,isVisible:o=!1,stylesConfig:s})=>{const[r,i]=E.useState({data:Array.from({length:cr},()=>ir)}),[c,d]=E.useState(!1),l=E.useCallback(async()=>{if(!(c||!n?.info?.link?.internal)){d(!0);try{const h=new URLSearchParams({section:e,currentNewsLink:n.info.link.internal}),u=await fetch(`/api/get-more-news?${h}`);if(!u.ok)throw i(void 0),new Error(`HTTP error! status: ${u.status}`);const f=await u.json();i({...f,data:f.data.slice(0,cr)})}catch(h){console.error("[/api/get-more-news] Error:",h.message),i(void 0)}}},[e,n.info.link.internal,c]);return E.useEffect(()=>{o&&l()},[o,r,l]),!r?.data||r.data.length===0?null:t.jsx(Qd,{news:r.data,title:"Más Noticias",...s["Modulo 1x3 Client"]??s["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,isVisible:o})},Qd=e=>{const{news:n,hasLines:a=!1}=e,o=s=>a&&(s+1)%3!==0?wa.contentSeparator:"";return t.jsx("div",{className:wa.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:n.map((s,r)=>{const{main:i,authors:c,info:d,preview:l,isVideo:h=!1,config:u,overImage:f="default",isTitle:g=!1,isLarge:m=!1}=s;return t.jsx("div",{className:o(r),style:{order:r},children:t.jsxs("section",{className:Mt.content,children:[t.jsx(O,{title:i?.title?.section,href:d?.link?.url??"invalidUrl","aria-label":i?.title?.section??"nota",target:d?.link?.target,children:t.jsx(Md,{isVisible:e.isVisible,preview:l,rounded:e.rounded,isVideo:h,isLarge:m,getImageUrl:e.getImageUrl})}),t.jsx("div",{className:Mt.newsDescription,children:t.jsx(Gd,{main:i,authors:c,info:d,preview:l,share:e.share,config:u,overImage:f,isTitle:g,paths:s.paths,isVisible:e.isVisible})})]})},r)})})},Gd=e=>{const{share:n=!1,cutSubtitle:a=!0}=e,s=(()=>{if(!e?.authors||e.authors.length===0)return"";const r=e.authors[0],i=xe(e.info?.date?.modified);return r&&e?.config?.showtime&&e.config?.showauthor?`${r.fullname} - ${i}`:r&&e.config?.showauthor?r.fullname:e?.config?.showtime?i:""})();return t.jsxs("div",{className:ae.boxInformation,children:[n&&t.jsx(jd,{className:ae.dotStyles}),e?.info?.section?.url&&t.jsxs("div",{className:ae.sectionDescriptionContainer,children:[t.jsx(O,{className:ae.sectionDescription,href:e.info.section.url??"invalidUrl",children:e.info.section.name}),e?.main?.uppertitle&&t.jsx("p",{className:ae.uppertitle,children:e.main.uppertitle})]}),t.jsx("h2",{className:ae.articule,children:t.jsx(O,{className:ae.linkStyled,style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&t.jsx("p",{className:ae.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?Ue(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&s&&t.jsx(t.Fragment,{children:e.authors?.[0]?.internaluser?t.jsx(O,{className:ae.correspondentLink,href:`/autor/${e.authors[0].name}`,children:s}):t.jsx("div",{className:ae.correspondent,children:s})})]})},Hd=({user:e,handleLogout:n,message:a})=>{const o=()=>{const r=document.querySelector(".user-actions-options");r&&r.classList.toggle("show")},s=e.firstname??"Usuario";return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?t.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):t.jsx("div",{className:"comment-avatar",children:s.charAt(0).toUpperCase()}),t.jsxs("div",{style:{flex:1},children:[t.jsxs("div",{className:"comment-header",children:[t.jsxs("span",{className:"comment-username user-welcome",children:["Hola ",s,"!"]}),t.jsx("div",{className:"user-actions-options",children:t.jsx("button",{onClick:()=>{n()},children:"Cerrar Sesion"})}),t.jsx("button",{className:"user-actions-span",onClick:o,children:t.jsx(Sn,{width:13,height:13,fill:"black"})})]}),t.jsx("p",{className:"comment-text",children:a})]})]})})},he={overlay:"_overlay_qj491_3",popup:"_popup_qj491_17",title:"_title_qj491_40",optionsContainer:"_optionsContainer_qj491_52",option:"_option_qj491_52",radioInput:"_radioInput_qj491_66",radioCustom:"_radioCustom_qj491_70",optionLabel:"_optionLabel_qj491_97",buttons:"_buttons_qj491_110",cancelButton:"_cancelButton_qj491_117",closeButton:"_closeButton_qj491_118",buttonAlone:"_buttonAlone_qj491_137",reportButton:"_reportButton_qj491_143",successContainer:"_successContainer_qj491_163",thumbsUp:"_thumbsUp_qj491_171",successMessage:"_successMessage_qj491_177",errorMessage:"_errorMessage_qj491_218",loadingContainer:"_loadingContainer_qj491_231"},lr=async(e,n)=>{if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:o,COMMENTS_CAPTCHA_API_KEY:s}=n;try{const r=a,i=o,l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${r}/assessments?key=${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",l),l.tokenProperties?.valid===!0}catch(r){return console.error("Error verificando reCAPTCHA Enterprise:",r),!1}};async function zd({publication:e,username:n,id:a,type:o,baseUrl:s,captchaToken:r,apiToken:i,COMMENTS_VARS:c}){if(!e||!n||!a||!o||!r)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof n!="string"||typeof a!="string"||typeof o!="string"||typeof r!="string")throw new Error("Todos los parámetros deben ser strings");if(!await lr(r,c))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const d=`${s}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,l=encodeURIComponent(o),h=new URLSearchParams({publication:e,username:n,id:a,type:l}),u=`${d}?${h.toString()}`;try{console.log("Reporting comment:",{publication:e,username:n,id:a,type:o,encodedType:l,url:u});const f=await oe.post(u,null,{headers:{"User-Agent":"Bluestack","x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",f.data),f.status===200||f.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:f.status,data:f.data};throw new Error(`Respuesta inesperada del servidor: ${f.status}`)}catch(f){if(console.error("Error reporting comment:",f),oe.isAxiosError(f)){const g=f.response?.status,m=f.response?.data;throw g===400?new Error("Datos inválidos para el reporte"):g===401?new Error("Token de API inválido"):g===403?new Error("Acceso denegado para reportar comentario"):g===404?new Error("Comentario no encontrado"):g===409?new Error("El comentario ya fue reportado por este usuario"):g===500?new Error("Error interno del servidor CMS"):new Error(m?.error||m?.message||`Error HTTP ${g}: No se pudo reportar el comentario`)}throw f}}const je={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 Fd(e){return je[e]}const ft=300,Ke={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function Vd(e){const n=e.split(" ");if(n.length!==3)return e;const[a,o,s]=n,r=o.charAt(0).toUpperCase()+o.slice(1).toLowerCase();return`${a} ${r} ${s}`}const Sa=(e,n)=>{if(!e||!e.current)return{boolean:!1,text:""};const a=e.current?.value||"",o=a.length>ft,{PUBLIC_ENV:s}=K(),r=s==="local",i=a.trim()!==""&&(r||n!=="")&&!o,c=o?`No debes exceder el limite de ${ft} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:i,text:c}},dr=e=>{const n=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!n)return[];try{return JSON.parse(decodeURIComponent(n.split("=")[1]??""))}catch{return[]}},Wd=(e,n)=>{const a=dr(e);a.includes(n)||(a.push(n),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function Yd(e){const[n,a]=e.split("@");if(!n||!a)return e;let o="";n.length<=2?o=n[0]+"*":o=n[0]+"*".repeat(n.length-2)+n[n.length-1];const s=a.lastIndexOf(".");if(s===-1)return`${o}@${a}`;const r=a.slice(0,s),i=a.slice(s);let c="";return r.length<=2?c=r[0]+"*":c=r[0]+"*".repeat(r.length-2)+r[r.length-1],`${o}@${c}${i}`}var Ln={exports:{}},qn={exports:{}},te={};var hr;function Kd(){if(hr)return te;hr=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(C){if(typeof C=="object"&&C!==null){var k=C.$$typeof;switch(k){case n:switch(C=C.type,C){case d:case l:case o:case r:case s:case u:return C;default:switch(C=C&&C.$$typeof,C){case c:case h:case m:case g:case i:return C;default:return k}}case a:return k}}}function I(C){return _(C)===l}return te.AsyncMode=d,te.ConcurrentMode=l,te.ContextConsumer=c,te.ContextProvider=i,te.Element=n,te.ForwardRef=h,te.Fragment=o,te.Lazy=m,te.Memo=g,te.Portal=a,te.Profiler=r,te.StrictMode=s,te.Suspense=u,te.isAsyncMode=function(C){return I(C)||_(C)===d},te.isConcurrentMode=I,te.isContextConsumer=function(C){return _(C)===c},te.isContextProvider=function(C){return _(C)===i},te.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===n},te.isForwardRef=function(C){return _(C)===h},te.isFragment=function(C){return _(C)===o},te.isLazy=function(C){return _(C)===m},te.isMemo=function(C){return _(C)===g},te.isPortal=function(C){return _(C)===a},te.isProfiler=function(C){return _(C)===r},te.isStrictMode=function(C){return _(C)===s},te.isSuspense=function(C){return _(C)===u},te.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===l||C===r||C===s||C===u||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===g||C.$$typeof===i||C.$$typeof===c||C.$$typeof===h||C.$$typeof===A||C.$$typeof===b||C.$$typeof===S||C.$$typeof===p)},te.typeOf=_,te}var ne={};var ur;function Jd(){return ur||(ur=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(P){return typeof P=="string"||typeof P=="function"||P===o||P===l||P===r||P===s||P===u||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===m||P.$$typeof===g||P.$$typeof===i||P.$$typeof===c||P.$$typeof===h||P.$$typeof===A||P.$$typeof===b||P.$$typeof===S||P.$$typeof===p)}function I(P){if(typeof P=="object"&&P!==null){var we=P.$$typeof;switch(we){case n:var jn=P.type;switch(jn){case d:case l:case o:case r:case s:case u:return jn;default:var Br=jn&&jn.$$typeof;switch(Br){case c:case h:case m:case g:case i:return Br;default:return we}}case a:return we}}}var C=d,k=l,q=c,G=i,X=n,H=h,M=o,ee=m,ie=g,$=a,L=r,T=s,j=u,U=!1;function F(P){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(P)||I(P)===d}function y(P){return I(P)===l}function N(P){return I(P)===c}function B(P){return I(P)===i}function Q(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function D(P){return I(P)===h}function z(P){return I(P)===o}function V(P){return I(P)===m}function W(P){return I(P)===g}function Z(P){return I(P)===a}function R(P){return I(P)===r}function Y(P){return I(P)===s}function re(P){return I(P)===u}ne.AsyncMode=C,ne.ConcurrentMode=k,ne.ContextConsumer=q,ne.ContextProvider=G,ne.Element=X,ne.ForwardRef=H,ne.Fragment=M,ne.Lazy=ee,ne.Memo=ie,ne.Portal=$,ne.Profiler=L,ne.StrictMode=T,ne.Suspense=j,ne.isAsyncMode=F,ne.isConcurrentMode=y,ne.isContextConsumer=N,ne.isContextProvider=B,ne.isElement=Q,ne.isForwardRef=D,ne.isFragment=z,ne.isLazy=V,ne.isMemo=W,ne.isPortal=Z,ne.isProfiler=R,ne.isStrictMode=Y,ne.isSuspense=re,ne.isValidElementType=_,ne.typeOf=I})()),ne}var fr;function Na(){return fr||(fr=1,process.env.NODE_ENV==="production"?qn.exports=Kd():qn.exports=Jd()),qn.exports}var Ea,mr;function Zd(){if(mr)return Ea;mr=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function s(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(i).map(function(h){return i[h]});if(d.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ea=s()?Object.assign:function(r,i){for(var c,d=o(r),l,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var u in c)n.call(c,u)&&(d[u]=c[u]);if(e){l=e(c);for(var f=0;f<l.length;f++)a.call(c,l[f])&&(d[l[f]]=c[l[f]])}}return d},Ea}var Ia,gr;function Ta(){if(gr)return Ia;gr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ia=e,Ia}var ka,pr;function Ar(){return pr||(pr=1,ka=Function.call.bind(Object.prototype.hasOwnProperty)),ka}var xa,yr;function Xd(){if(yr)return xa;yr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Ta(),a={},o=Ar();e=function(r){var i="Warning: "+r;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function s(r,i,c,d,l){if(process.env.NODE_ENV!=="production"){for(var h in r)if(o(r,h)){var u;try{if(typeof r[h]!="function"){var f=Error((d||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=r[h](i,h,d,c,null,n)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var g=l?l():"";e("Failed "+c+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},xa=s,xa}var Ua,wr;function Rd(){if(wr)return Ua;wr=1;var e=Na(),n=Zd(),a=Ta(),o=Ar(),s=Xd(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function i(){return null}return Ua=function(c,d){var l=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function u(y){var N=y&&(l&&y[l]||y[h]);if(typeof N=="function")return N}var f="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:S(),arrayOf:_,element:I(),elementType:C(),instanceOf:k,node:H(),objectOf:G,oneOf:q,oneOfType:X,shape:ee,exact:ie};function m(y,N){return y===N?y!==0||1/y===1/N:y!==y&&N!==N}function p(y,N){this.message=y,this.data=N&&typeof N=="object"?N:{},this.stack=""}p.prototype=Error.prototype;function A(y){if(process.env.NODE_ENV!=="production")var N={},B=0;function Q(z,V,W,Z,R,Y,re){if(Z=Z||f,Y=Y||W,re!==a){if(d){var P=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=Z+":"+W;!N[we]&&B<3&&(r("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[we]=!0,B++)}}return V[W]==null?z?V[W]===null?new p("The "+R+" `"+Y+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+R+" `"+Y+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:y(V,W,Z,R,Y)}var D=Q.bind(null,!1);return D.isRequired=Q.bind(null,!0),D}function b(y){function N(B,Q,D,z,V,W){var Z=B[Q],R=T(Z);if(R!==y){var Y=j(Z);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Y+"` supplied to `"+D+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return A(N)}function S(){return A(i)}function _(y){function N(B,Q,D,z,V){if(typeof y!="function")return new p("Property `"+V+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var W=B[Q];if(!Array.isArray(W)){var Z=T(W);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected an array."))}for(var R=0;R<W.length;R++){var Y=y(W,R,D,z,V+"["+R+"]",a);if(Y instanceof Error)return Y}return null}return A(N)}function I(){function y(N,B,Q,D,z){var V=N[B];if(!c(V)){var W=T(V);return new p("Invalid "+D+" `"+z+"` of type "+("`"+W+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return A(y)}function C(){function y(N,B,Q,D,z){var V=N[B];if(!e.isValidElementType(V)){var W=T(V);return new p("Invalid "+D+" `"+z+"` of type "+("`"+W+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return A(y)}function k(y){function N(B,Q,D,z,V){if(!(B[Q]instanceof y)){var W=y.name||f,Z=F(B[Q]);return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected ")+("instance of `"+W+"`."))}return null}return A(N)}function q(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?r("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):r("Invalid argument supplied to oneOf, expected an array.")),i;function N(B,Q,D,z,V){for(var W=B[Q],Z=0;Z<y.length;Z++)if(m(W,y[Z]))return null;var R=JSON.stringify(y,function(re,P){var we=j(P);return we==="symbol"?String(P):P});return new p("Invalid "+z+" `"+V+"` of value `"+String(W)+"` "+("supplied to `"+D+"`, expected one of "+R+"."))}return A(N)}function G(y){function N(B,Q,D,z,V){if(typeof y!="function")return new p("Property `"+V+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var W=B[Q],Z=T(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected an object."));for(var R in W)if(o(W,R)){var Y=y(W,R,D,z,V+"."+R,a);if(Y instanceof Error)return Y}return null}return A(N)}function X(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&r("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var N=0;N<y.length;N++){var B=y[N];if(typeof B!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(B)+" at index "+N+"."),i}function Q(D,z,V,W,Z){for(var R=[],Y=0;Y<y.length;Y++){var re=y[Y],P=re(D,z,V,W,Z,a);if(P==null)return null;P.data&&o(P.data,"expectedType")&&R.push(P.data.expectedType)}var we=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new p("Invalid "+W+" `"+Z+"` supplied to "+("`"+V+"`"+we+"."))}return A(Q)}function H(){function y(N,B,Q,D,z){return $(N[B])?null:new p("Invalid "+D+" `"+z+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return A(y)}function M(y,N,B,Q,D){return new p((y||"React class")+": "+N+" type `"+B+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function ee(y){function N(B,Q,D,z,V){var W=B[Q],Z=T(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type `"+Z+"` "+("supplied to `"+D+"`, expected `object`."));for(var R in y){var Y=y[R];if(typeof Y!="function")return M(D,z,V,R,j(Y));var re=Y(W,R,D,z,V+"."+R,a);if(re)return re}return null}return A(N)}function ie(y){function N(B,Q,D,z,V){var W=B[Q],Z=T(W);if(Z!=="object")return new p("Invalid "+z+" `"+V+"` of type `"+Z+"` "+("supplied to `"+D+"`, expected `object`."));var R=n({},B[Q],y);for(var Y in R){var re=y[Y];if(o(y,Y)&&typeof re!="function")return M(D,z,V,Y,j(re));if(!re)return new p("Invalid "+z+" `"+V+"` key `"+Y+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(B[Q],null," ")+`
|
|
159
|
-
Valid keys: `+JSON.stringify(Object.keys(y),null," "));var P=re(W,Y,D,z,V+"."+Y,a);if(P)return P}return null}return A(N)}function $(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every($);if(y===null||c(y))return!0;var N=u(y);if(N){var B=N.call(y),Q;if(N!==y.entries){for(;!(Q=B.next()).done;)if(!$(Q.value))return!1}else for(;!(Q=B.next()).done;){var D=Q.value;if(D&&!$(D[1]))return!1}}else return!1;return!0;default:return!1}}function L(y,N){return y==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function T(y){var N=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":L(N,y)?"symbol":N}function j(y){if(typeof y>"u"||y===null)return""+y;var N=T(y);if(N==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return N}function U(y){var N=j(y);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function F(y){return!y.constructor||!y.constructor.name?f:y.constructor.name}return g.checkPropTypes=s,g.resetWarningCache=s.resetWarningCache,g.PropTypes=g,g},Ua}var La,br;function e1(){if(br)return La;br=1;var e=Ta();function n(){}function a(){}return a.resetWarningCache=n,La=function(){function o(i,c,d,l,h,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function s(){return o}var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:a,resetWarningCache:n};return r.PropTypes=r,r},La}var Cr;function t1(){if(Cr)return Ln.exports;if(Cr=1,process.env.NODE_ENV!=="production"){var e=Na(),n=!0;Ln.exports=Rd()(e.isElement,n)}else Ln.exports=e1()();return Ln.exports}var n1=t1();const _e=mt(n1);var a1=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},qa.apply(this,arguments)}function o1(e,n){if(e==null)return{};var a={},o=Object.keys(e),s,r;for(r=0;r<o.length;r++)s=o[r],!(n.indexOf(s)>=0)&&(a[s]=e[s]);return a}function Bn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s1(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Ba(e,n)}function Ba(e,n){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},Ba(e,n)}var Pn=(function(e){s1(n,e);function n(){var o;return o=e.call(this)||this,o.handleExpired=o.handleExpired.bind(Bn(o)),o.handleErrored=o.handleErrored.bind(Bn(o)),o.handleChange=o.handleChange.bind(Bn(o)),o.handleRecaptchaRef=o.handleRecaptchaRef.bind(Bn(o)),o}var a=n.prototype;return a.getCaptchaFunction=function(s){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[s]:this.props.grecaptcha[s]:null},a.getValue=function(){var s=this.getCaptchaFunction("getResponse");return s&&this._widgetId!==void 0?s(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var s=this.getCaptchaFunction("execute");if(s&&this._widgetId!==void 0)return s(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var s=this;return new Promise(function(r,i){s.executionResolve=r,s.executionReject=i,s.execute()})},a.reset=function(){var s=this.getCaptchaFunction("reset");s&&this._widgetId!==void 0&&s(this._widgetId)},a.forceReset=function(){var s=this.getCaptchaFunction("reset");s&&s()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(s){this.props.onChange&&this.props.onChange(s),this.executionResolve&&(this.executionResolve(s),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var s=this.getCaptchaFunction("render");if(s&&this._widgetId===void 0){var r=document.createElement("div");this._widgetId=s(r,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(r)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(s){this.captcha=s},a.render=function(){var s=this.props;s.sitekey,s.onChange,s.theme,s.type,s.tabindex,s.onExpired,s.onErrored,s.size,s.stoken,s.grecaptcha,s.badge,s.hl,s.isolated;var r=o1(s,a1);return ja.createElement("div",qa({},r,{ref:this.handleRecaptchaRef}))},n})(ja.Component);Pn.displayName="ReCAPTCHA",Pn.propTypes={sitekey:_e.string.isRequired,onChange:_e.func,grecaptcha:_e.object,theme:_e.oneOf(["dark","light"]),type:_e.oneOf(["image","audio"]),tabindex:_e.number,onExpired:_e.func,onErrored:_e.func,size:_e.oneOf(["compact","normal","invisible"]),stoken:_e.string,hl:_e.string,badge:_e.oneOf(["bottomright","bottomleft","inline"]),isolated:_e.bool},Pn.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Pa,vr;function r1(){if(vr)return Pa;vr=1;var e=Na(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};r[e.ForwardRef]=o,r[e.Memo]=s;function i(m){return e.isMemo(m)?s:r[m.$$typeof]||n}var c=Object.defineProperty,d=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function g(m,p,A){if(typeof p!="string"){if(f){var b=u(p);b&&b!==f&&g(m,b,A)}var S=d(p);l&&(S=S.concat(l(p)));for(var _=i(m),I=i(p),C=0;C<S.length;++C){var k=S[C];if(!a[k]&&!(A&&A[k])&&!(I&&I[k])&&!(_&&_[k])){var q=h(p,k);try{c(m,k,q)}catch{}}}}return m}return Pa=g,Pa}var i1=r1();const c1=mt(i1);function Oa(){return Oa=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Oa.apply(this,arguments)}function l1(e,n){if(e==null)return{};var a={},o=Object.keys(e),s,r;for(r=0;r<o.length;r++)s=o[r],!(n.indexOf(s)>=0)&&(a[s]=e[s]);return a}function d1(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var Pe={},h1=0;function u1(e,n){return n=n||{},function(o){var s=o.displayName||o.name||"Component",r=(function(c){d1(d,c);function d(h,u){var f;return f=c.call(this,h,u)||this,f.state={},f.__scriptURL="",f}var l=d.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+h1++),this.__scriptLoaderID},l.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},l.asyncScriptLoaderHandleLoad=function(u){var f=this;this.setState(u,function(){return f.props.asyncScriptOnLoad&&f.props.asyncScriptOnLoad(f.state)})},l.asyncScriptLoaderTriggerOnScriptLoaded=function(){var u=Pe[this.__scriptURL];if(!u||!u.loaded)throw new Error("Script is not loaded.");for(var f in u.observers)u.observers[f](u);delete window[n.callbackName]},l.componentDidMount=function(){var u=this,f=this.setupScriptURL(),g=this.asyncScriptLoaderGetScriptLoaderID(),m=n,p=m.globalName,A=m.callbackName,b=m.scriptId;if(p&&typeof window[p]<"u"&&(Pe[f]={loaded:!0,observers:{}}),Pe[f]){var S=Pe[f];if(S&&(S.loaded||S.errored)){this.asyncScriptLoaderHandleLoad(S);return}S.observers[g]=function(q){return u.asyncScriptLoaderHandleLoad(q)};return}var _={};_[g]=function(q){return u.asyncScriptLoaderHandleLoad(q)},Pe[f]={loaded:!1,observers:_};var I=document.createElement("script");I.src=f,I.async=!0;for(var C in n.attributes)I.setAttribute(C,n.attributes[C]);b&&(I.id=b);var k=function(G){if(Pe[f]){var X=Pe[f],H=X.observers;for(var M in H)G(H[M])&&delete H[M]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),I.onload=function(){var q=Pe[f];q&&(q.loaded=!0,k(function(G){return A?!1:(G(q),!0)}))},I.onerror=function(){var q=Pe[f];q&&(q.errored=!0,k(function(G){return G(q),!0}))},document.body.appendChild(I)},l.componentWillUnmount=function(){var u=this.__scriptURL;if(n.removeOnUnmount===!0)for(var f=document.getElementsByTagName("script"),g=0;g<f.length;g+=1)f[g].src.indexOf(u)>-1&&f[g].parentNode&&f[g].parentNode.removeChild(f[g]);var m=Pe[u];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],n.removeOnUnmount===!0&&delete Pe[u])},l.render=function(){var u=n.globalName,f=this.props;f.asyncScriptOnLoad;var g=f.forwardedRef,m=l1(f,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(m[u]=typeof window[u]<"u"?window[u]:void 0),m.ref=g,E.createElement(o,m)},d})(E.Component),i=E.forwardRef(function(c,d){return E.createElement(r,Oa({},c,{forwardedRef:d}))});return i.displayName="AsyncScriptLoader("+s+")",i.propTypes={asyncScriptOnLoad:_e.func},c1(i,o)}}var Da="onloadcallback",f1="grecaptcha";function Ma(){return typeof window<"u"&&window.recaptchaOptions||{}}function m1(){var e=Ma(),n=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+n+"/recaptcha/enterprise.js?onload="+Da+"&render=explicit":"https://"+n+"/recaptcha/api.js?onload="+Da+"&render=explicit"}const _r=u1(m1,{callbackName:Da,globalName:f1,attributes:Ma().nonce?{nonce:Ma().nonce}:{}})(Pn),x={overlay:"_overlay_18ksj_1",header:"_header_18ksj_18",logo:"_logo_18ksj_25",card:"_card_18ksj_32",close:"_close_18ksj_47",form:"_form_18ksj_71",formUl:"_formUl_18ksj_80",field:"_field_18ksj_92",label:"_label_18ksj_99",input:"_input_18ksj_108",error:"_error_18ksj_126",primary:"_primary_18ksj_132",divider:"_divider_18ksj_170",google:"_google_18ksj_196",googleIcon:"_googleIcon_18ksj_226",spin:"_spin_18ksj_259",checkboxRow:"_checkboxRow_18ksj_281",switch:"_switch_18ksj_310",terms:"_terms_18ksj_318",message:"_message_18ksj_349",passwordChecker:"_passwordChecker_18ksj_354",valid:"_valid_18ksj_373",invalid:"_invalid_18ksj_377",forgotPassword:"_forgotPassword_18ksj_381",successContainer:"_successContainer_18ksj_400",thumbsUp:"_thumbsUp_18ksj_408",successMessage:"_successMessage_18ksj_414"},Je=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:x.spin,children:t.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),g1=({isOpen:e,onClose:n,commentId:a,publication:o,username:s,CAPTCHA_KEY_V2:r})=>{const[i,c]=E.useState("form"),[d,l]=E.useState(""),[h,u]=E.useState(""),[f,g]=E.useState(""),m=[{id:"spam",label:je.spam},{id:"inappropriate",label:je.inappropriate},{id:"hate",label:je.hate},{id:"misinformation",label:je.misinformation},{id:"terrorism",label:je.terrorism},{id:"intellectual",label:je.intellectual},{id:"bullying",label:je.bullying}],p=async()=>{if(!(!d||!a)){if(dr(document).includes(a)){u("Ya has reportado este comentario.");return}c("loading"),u("");try{const S=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:o,username:s,id:a,captchaToken:f,type:je[d]})})).json();if(S.type==="success")Wd(document,a),c("success"),setTimeout(()=>{A()},3e3);else throw new Error(S.message||"Error al reportar comentario")}catch(b){console.error("Error reporting comment:",b),u(b.message||"Error al reportar comentario"),c("form")}}},A=()=>{c("form"),l(""),u(""),n()};return!e||!a||!s?null:t.jsx("div",{className:he.overlay,children:t.jsxs("div",{className:he.popup,children:[t.jsx("button",{className:"close-reply-form",onClick:A,children:t.jsx(Ct,{})}),t.jsx("h2",{className:he.title,children:"Reportar Abuso"}),i==="loading"&&t.jsx("div",{className:he.loadingContainer,children:t.jsx(Je,{})}),i==="form"||i==="loading"?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:he.optionsContainer,children:m.map(b=>t.jsxs("label",{className:he.option,children:[t.jsx("input",{type:"radio",name:"reportReason",value:b.id,checked:d===b.id,onChange:S=>l(S.target.value),className:he.radioInput}),t.jsx("span",{className:he.radioCustom}),t.jsx("span",{className:he.optionLabel,children:b.label})]},b.id))}),h&&t.jsx("div",{className:he.errorMessage,children:h}),t.jsx(_r,{sitekey:r,theme:"light",size:"normal",onChange:b=>g(b??""),onExpired:()=>g("")}),t.jsxs("div",{className:he.buttons,children:[t.jsx("button",{onClick:A,className:he.cancelButton,children:"Cancelar"}),t.jsx("button",{onClick:p,disabled:!d,className:he.reportButton,children:"Reportar"})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:he.successContainer,children:[t.jsx("div",{className:he.thumbsUp,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:t.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),t.jsx("p",{className:he.successMessage,children:"¡Gracias por reportar!"})]}),t.jsx("div",{className:he.buttons,children:t.jsx("button",{onClick:A,className:[he.closeButton,he.buttonAlone].join(" "),children:"Cerrar"})})]})]})})};function p1(e){const n=/^\[\[([^\]]+)\]\]/,a=e.match(n);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function On(e){const n=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?On({comments:a.reply}).comments:a.reply};const{user:o,text:s}=p1(a.text);return{...a,user:o||!1,text:s,reply:a.reply?On({comments:a.reply}).comments:a.reply}});return{...e,comments:n}}async function Dn({publication:e,path:n,size:a=5,sizereply:o=2,id:s,lastid:r,state:i="5,6",apiToken:c}){const{PUBLIC_ENV:d}=K();if(d==="prod"){const l=await Sr({publication:e,path:n,size:a,sizereply:o,id:s,lastid:r,state:i,apiToken:c});return On(l[0])}else{const l=await fetch(`/api/comments-get?publication=${e}&path=${n}&size=${a}&sizereply=${o}&lastid=${r}`);if(!l.ok)throw new Error(`Error al obtener comentarios: ${l.status}`);const h=await l.json();return On(h.data[0])}}async function Sr({publication:e,path:n,size:a=5,sizereply:o=2,id:s,lastid:r,state:i="5,6",apiToken:c}){if(!e||!n)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof n!="string")throw new Error("Invalid input types for publication or path");if(!c)throw new Error("Missing CMS API token");const{PUBLIC_ENV:d,PUBLIC_API_HOST:l,PUBLIC_API_PATH:h,PUBLIC_API_PATH_VERSION:u}=K(),f=parseInt(String(a),10),g=parseInt(String(o),10);if(isNaN(f)||f<=0)throw new Error("Invalid size parameter");if(isNaN(g)||g<0)throw new Error("Invalid sizereply parameter");const m=d!=="prod"?`${l}${h}`:Xa(),p=new URLSearchParams({publication:e,path:n,size:f.toString(),sizereply:g.toString(),state:i});s&&p.append("id",s),r&&p.append("lastid",r);const A=`${m}${u}/newcomments/get?${p.toString()}`;try{console.log("Fetching comments from:",A);const{data:b}=await oe.get(A,{headers:{"x-api-token":c,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!b)throw new Error("No comments data received");return b.data||b||[]}catch(b){if(console.error("Error fetching comments:",b),oe.isAxiosError(b)){const S=b.response?.status,_=b.response?.data;throw S===404?new Error("Comments not found"):S===403?new Error("Access forbidden - check API token"):S===401?new Error("Unauthorized - invalid API token"):S===500?new Error("Internal server error from CMS"):new Error(_?.error||_?.message||`HTTP ${S}: Failed to fetch comments`)}throw b}}const{PUBLIC_PUBLICATION_ID:A1}=K(),y1=A1,w1=e=>{const[n,a]=E.useState(void 0);return E.useEffect(()=>{if(n)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:s}=K();try{const r=await Dn({publication:y1,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:s});a(r??[])}catch(r){console.error(r),a({comments:[],morecomment:!1})}})()},[n]),{comments:n,setComments:a}},Nr=({username:e,date:n,DATE_CONFIG:a})=>t.jsxs("div",{className:"comment-header",children:[t.jsx("span",{className:"comment-username",children:e}),t.jsx("span",{className:"comment-header-dot",children:"•"}),t.jsx("span",{className:"comment-date",children:Vd(xe(Number(n),a))})]}),Er=({user:e})=>t.jsx("div",{className:"comment-avatar",children:e.picture?t.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),Ir=({isReply:e=!1,onReply:n,onFlag:a})=>t.jsxs("div",{className:"comment-actions",children:[!e&&n&&t.jsx("button",{onClick:n,className:"comment-action-btn",children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[t.jsx("g",{clipPath:"url(#a)",children:t.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"a",children:t.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),t.jsx("button",{onClick:a,className:"comment-action-btn",children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[t.jsx("g",{clipPath:"url(#a)",children:t.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"a",children:t.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Tr=({commentRef:e,captchaToken:n="",setIsDisabled:a})=>(E.useEffect(()=>{const o=e.current;if(!o)return;const s=()=>{const i=o.value.length;o.parentElement&&(o.parentElement.dataset.text=`${i}/${ft}`),o.classList.toggle("over-limit",i>ft),a(!Sa(e,n).boolean)};return o.addEventListener("input",s),s(),()=>o.removeEventListener("input",s)},[e,n,a]),t.jsxs("div",{children:[t.jsx("label",{className:"comment-input-label",children:"Comentario"}),t.jsx("textarea",{ref:e,name:"comment",placeholder:"Ingresa un comentario",rows:2})]})),kr=({commentRef:e,captchaToken:n="",setCaptchaToken:a,children:o,CAPTCHA_KEY_V2:s})=>{const r=Sa(e,n);return t.jsxs("div",{className:"form-actions",children:[t.jsx(_r,{sitekey:s,theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),t.jsxs("div",{className:"submit-zone",children:[o,!r.boolean&&t.jsx("p",{className:"submit-warning",children:r.text})]})]})},xr=({onClick:e,isDisabled:n})=>{const[a,o]=E.useState(!1),{S3_ID_DIR:s}=K();return E.useEffect(()=>{let r=null;return a&&(r=setTimeout(()=>{o(!1)},2400)),()=>{r&&clearTimeout(r)}},[a]),a?t.jsx("div",{className:"success-gif-container",children:t.jsx("img",{className:"success-gif",src:pt()+"/arte/"+s+"/Success.gif"})}):t.jsxs("button",{type:"button",onClick:async r=>{await e(r)&&o(!0)},id:"comment-button",className:`submit-btn ${n?"disabled":"active"}`,children:["Enviar Comentario",t.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})},{PUBLIC_PUBLICATION_ID:b1}=K(),C1=b1,Ur=async({path:e,ref:n,captchaToken:a,button:o,user:s,id:r,addComment:i})=>{const c=n.current?.value||"";if(!Sa(n,a).boolean||!s){const d=o.nextElementSibling;return d&&(d.style.display="block"),!1}try{const d=Date.now(),l=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:C1,path:e,id:r,username:s.username,comment:c,recaptchaResponse:a})});let h=null;try{h=await l.json()}catch(m){console.error("Error parsing JSON response:",m)}if(!l.ok)throw new Error(`Error al enviar comentario: ${h?.message} status: ${l.status}`);const u=Date.now(),f=Math.max(0,2400+Math.abs(u-d)),g={username:s.username,firstname:s.firstname,...s.lastname&&{lastname:s.lastname},...s.picture&&{picture:s.picture}};return i({id:u.toString(),text:c,user:g,date:{time:Date.now()},reply:[]}),n.current&&(n.current.value=""),f}catch(d){return console.error("Error enviando comentario:",d),alert(d.message||"Error al enviar el comentario."),!1}},v1=({replyingTo:e,commentRef:n,user:a,path:o,addReply:s,closeForm:r,CAPTCHA_KEY_V2:i})=>{const[c,d]=E.useState(!0),[l,h]=E.useState(""),u=()=>{n.current?.parentElement&&(n.current.parentElement.dataset.text=`0/${ft}`),d(!0),r()};return t.jsxs("div",{className:"comment-form reply-form",children:[t.jsx("button",{className:"close-reply-form",onClick:u,children:t.jsx(Ct,{})}),t.jsx(Tr,{commentRef:n,captchaToken:l,setIsDisabled:d}),t.jsx(kr,{commentRef:n,captchaToken:l,setCaptchaToken:h,CAPTCHA_KEY_V2:i,children:t.jsx(xr,{onClick:async f=>{if(c)return;const g=await Ur({path:o,ref:n,captchaToken:l,button:f.currentTarget,user:a,id:e,addComment:s});return g&&typeof g=="number"?(setTimeout(()=>{u()},g),!0):!1},isDisabled:c})})]})},_1=({reply:e,replyingTo:n,user:a,onFlag:o,DATE_CONFIG:s})=>{const r=e.text;let i=`${Ke.firstname} ${Ke.lastname??""}`,c=Ke.username;return e.user&&(i=`${e.user.firstname} ${e.user.lastname??""}`,c=e.user.username),t.jsx("div",{className:"comment-item reply",children:t.jsxs("div",{className:"comment-header-container",children:[t.jsx(Er,{user:e.user?e.user:Ke}),t.jsxs("div",{style:{flex:1},children:[t.jsx(Nr,{username:i,date:e.date.time,DATE_CONFIG:s}),t.jsxs("div",{className:"comment-reply-to",children:["Respondiendo a ",t.jsx("strong",{children:n})]}),t.jsx("p",{className:"comment-text",children:r}),a?.username.toLowerCase()!==c.toLowerCase()&&t.jsx(Ir,{isReply:!0,onFlag:()=>o(e.id)})]})]})})},S1=({comment:e,replyingTo:n,path:a,user:o,handleReplyingTo:s,onFlag:r,CAPTCHA_KEY_V2:i,DATE_CONFIG:c})=>{const d={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[l,h]=E.useState(d),[u,f]=E.useState(!1),{PUBLIC_PUBLICATION_ID:g,PUBLIC_X_SECURITY_TOKEN:m}=K(),p=e.text,A=E.useRef(null);let b=`${Ke.firstname} ${Ke.lastname??""}`,S=Ke.username;e.user&&(b=`${e.user.firstname} ${e.user.lastname??""}`,S=e.user.username);const _=I=>{h({morereply:l.morereply,reply:[I,...l.reply]})};return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{className:"comment-header-container","data-hasreplies":l.reply.length>0?"true":"false",children:[t.jsx(Er,{user:e.user?e.user:Ke}),t.jsxs("div",{style:{flex:1},children:[t.jsx(Nr,{username:b,date:e.date.time,DATE_CONFIG:c}),t.jsx("p",{className:"comment-text",children:p}),o?.username.toLowerCase()!==S.toLowerCase()&&t.jsx(Ir,{onReply:()=>s(e.id),onFlag:()=>r(e.id)}),n===e.id&&o&&t.jsx(v1,{replyingTo:n,commentRef:A,addReply:_,user:o,path:a,CAPTCHA_KEY_V2:i,closeForm:()=>s("")}),l.reply.length>0&&t.jsxs("div",{className:"comment-replies",children:[l.reply.map(I=>t.jsx(_1,{user:o,reply:I,replyingTo:b,onFlag:r,DATE_CONFIG:c},I.id)),u?t.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:t.jsx(Je,{})}):l.morereply&&t.jsx("button",{className:"comment-replies-button reply-button",onClick:async()=>{const I=l.reply[l.reply.length-1]?.id;f(!0);try{const k=await Dn({publication:g??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:I,state:"5,6",apiToken:m??""});f(!1),h({morereply:k.morecomment,reply:[...l.reply,...k.comments]})}catch(C){throw f(!1),new Error(`Error al obtener comentarios: ${C}`)}},children:"Más Respuestas"})]})]})]})})},N1=({commentRef:e,user:n,path:a,addComment:o,CAPTCHA_KEY_V2:s})=>{const[r,i]=E.useState(!0),[c,d]=E.useState("");return t.jsxs("div",{className:"comment-form",children:[t.jsx(Tr,{commentRef:e,captchaToken:c,setIsDisabled:i}),t.jsx(kr,{CAPTCHA_KEY_V2:s,commentRef:e,captchaToken:c,setCaptchaToken:d,children:t.jsx(xr,{onClick:async l=>{if(r)return;const h=await Ur({path:a,ref:e,captchaToken:c,button:l.currentTarget,user:n,addComment:o});return h&&typeof h=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ft}`),i(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ft}`),i(!0)},h),!0):!1},isDisabled:r})})]})},{PUBLIC_PUBLICATION_ID:E1,PUBLIC_X_SECURITY_TOKEN:I1}=K(),Lr=E1??"",T1=({isAuthenticated:e,path:n,user:a,handleLogout:o,COMMENTS_VARS:s,DATE_CONFIG:r})=>{const i=n.replaceAll("/","|"),[c,d]=E.useState(void 0),[l,h]=E.useState(""),{comments:u,setComments:f}=w1(i),[g,m]=E.useState(!1),p=E.useRef(null),A=q=>{h(l===q?"":q)},b=q=>{f(u?{...u,comments:[q,...u.comments??[]]}:void 0)},S=q=>{d(q)},_=async()=>{if(!u||!u.morecomment||u.comments.length===0)return;const q=u.comments[u.comments.length-1];if(!q)return;m(!0);const G=q.id;try{const X=await Dn({publication:Lr,path:i??"",size:5,sizereply:2,id:void 0,lastid:G,state:"5,6",apiToken:I1});f({morecomment:X.morecomment??!1,comments:[...u.comments,...X.comments]}),m(!1)}catch(X){throw m(!1),new Error(`Error al obtener comentarios: ${X}`)}},I=u?.comments&&u.comments.length>0,C=I?"Comparte tu opinión de este artículo.":"Se el primero en compartir tu opinión de este artículo.",k=t.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:t.jsx(Je,{})});return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"comments-container",children:t.jsx(fe,{title:I||e?"COMENTARIOS":!1,children:t.jsxs(t.Fragment,{children:[e&&a&&t.jsxs("div",{className:"comments-header",children:[t.jsx(Hd,{user:a,handleLogout:o,message:C}),t.jsx(N1,{commentRef:p,user:a,addComment:b,path:i,CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2})]}),u?u.comments&&u.comments.length>0?t.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[u.comments.map(q=>t.jsx(S1,{comment:q,replyingTo:l,handleReplyingTo:A,onFlag:S,user:a??Ke,path:i,DATE_CONFIG:r,CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2},q.id)),g&&k]}):null:k,u?.morecomment&&!g&&t.jsx("button",{className:"comment-replies-button",onClick:_,children:"Más"})]})})}),t.jsx(g1,{username:a?.username??void 0,publication:Lr,commentId:c,isOpen:c!==void 0,onClose:()=>d(void 0),CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2})]})},k1=async(e,n)=>{if(!e)throw new Error("No action provided");if(!n)throw new Error("No site key provided");const a=window.grecaptcha;if(!a?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((o,s)=>{a.enterprise.ready(async()=>{try{const r=await a.enterprise.execute(n,{action:e});if(!r)throw new Error("Captcha token no generado");o(r)}catch(r){s(r)}})})},qr={email:{label:"Email",required:!0},given_name:{label:"Nombre",required:!0},family_name:{label:"Apellido",required:!0},password:{label:"Contraseña",required:!0},confirmPassword:{label:"Confirmar contraseña",required:!0}},Mn=[{label:"La contraseña debe tener al menos 8 caracteres",test:e=>e.length>=8},{label:"Usa un número",test:e=>/\d/.test(e)},{label:"Usa una letra minúscula",test:e=>/[a-z]/.test(e)},{label:"Usa una letra mayúscula",test:e=>/[A-Z]/.test(e)},{label:"Usa un símbolo",test:e=>/[^A-Za-z0-9]/.test(e)}];function x1({goToLogin:e,handleGoogleLogin:n,CAPTCHA_KEY:a}){const[o,s]=E.useState({}),[r,i]=E.useState(!1),[c,d]=E.useState(!1),[l,h]=E.useState(null),[u,f]=E.useState("register"),g=(b,S)=>{s(_=>({..._,[b]:S}))},m=async b=>{b.preventDefault(),h(null),d(!0);try{const S=Object.keys(qr).filter(G=>!["username","password","confirmPassword"].includes(G)).map(G=>({Name:G,Value:o[G]}));if(S.some(G=>{if(!G.Value||G.Value.trim()==="")return!0}))return d(!1),h("Complete todos los campos");if(o.password!==o.confirmPassword){h("Las contraseñas no coinciden");return}const _=o.password||"";if(Mn.some(G=>!G.test(_))){h("La contraseña no es válida");return}const C=Math.floor(Date.now()/1e3);S.push({Name:"updated_at",Value:String(C)});const k="token",q=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email,password:o.password,userAttributes:S,token:k})});if(!q.ok){const G=await q.json().catch(()=>({}));if(G.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email})}),f("confirm");return}throw new Error(G?.error||"Error al crear usuario")}f("confirm")}catch(S){console.log(S),h(S?.message||S?.error||"Error inesperado")}finally{d(!1)}},p=async b=>{if(b.preventDefault(),!o.confirmationCode){h("Debes ingresar el código de verificación");return}h(null),d(!0);try{const S=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email,code:o.confirmationCode})});if(!S.ok){const _=await S.json().catch(()=>({}));throw new Error(_?.error||"Error al confirmar usuario")}f("success")}catch(S){h(S?.message||"Error inesperado")}finally{d(!1)}},A=o.password||"";return t.jsxs(t.Fragment,{children:[u==="register"&&t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:n,className:x.google,children:[t.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:x.googleIcon}),t.jsx("span",{children:"Continuar con Google"})]}),t.jsx("div",{className:x.divider,children:t.jsx("span",{children:"o"})}),t.jsxs("form",{onSubmit:m,className:x.form,"data-error":l?"true":"false",children:[t.jsx("ul",{className:x.formUl,children:Object.entries(qr).map(([b,{label:S}])=>t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:S}),t.jsx("input",{type:b.toLowerCase().includes("password")?r?"text":"password":b==="birthdate"?"date":b==="email"?"email":b==="phone_number"?"tel":"text",name:b,value:o[b]||"",onChange:_=>g(b,_.target.value),className:x.input,placeholder:""}),b==="password"&&t.jsx("div",{className:x.passwordChecker,children:Mn.map((_,I)=>{const C=_.test(A);return t.jsxs("div",{className:C?x.valid:x.invalid,children:[t.jsx("div",{children:C?"✔":"○"}),t.jsx("div",{children:_.label})]},I)})}),b==="confirmPassword"&&t.jsxs("div",{className:x.checkboxRow,children:[t.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:r,onChange:_=>i(_.target.checked)}),t.jsx("label",{htmlFor:"showPasswordRegister",className:x.checkboxLabel,children:"Mostrar contraseñas"})]})]},b))}),l&&t.jsx("p",{className:x.error,children:l}),t.jsxs("p",{className:x.terms,children:["Al continuar, confirmo que he leído y aceptado los",t.jsx("a",{href:"/pages/politicas-de-privacidad.html",target:"_blank",children:"Términos y Condiciones"}),"de nuestra comunidad"]}),t.jsx("button",{type:"submit",className:x.primary,disabled:c,children:c?t.jsx(Je,{}):"Crear cuenta"})]})]}),u==="confirm"&&t.jsxs("form",{onSubmit:p,className:x.form,"data-error":l?"true":"false",children:[t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Código de verificación"}),t.jsx("input",{type:"text",name:"confirmationCode",value:o.confirmationCode||"",onChange:b=>g("confirmationCode",b.target.value),className:x.input,required:!0})]}),l&&t.jsx("p",{className:x.error,children:l}),t.jsx("button",{type:"submit",className:x.primary,disabled:c,children:c?t.jsx(Je,{}):"Confirmar cuenta"}),t.jsxs("p",{className:x.switch,children:["¿Ya confirmaste antes?",t.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]}),u==="success"&&t.jsxs("form",{className:x.form,children:[t.jsxs("div",{className:x.successContainer,children:[t.jsx("div",{className:x.thumbsUp,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:t.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),t.jsxs("div",{className:x.successMessage,children:[t.jsx("p",{children:"Confirmación completa."}),t.jsx("p",{children:"Ya eres parte de la comunidad!"})]})]}),t.jsx("button",{onClick:e,className:x.primary,children:"Iniciar sesión"})]}),u==="register"&&t.jsxs("p",{className:x.switch,children:["¿Ya tenés cuenta?",t.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]})}function U1({onClose:e,checkAuth:n,goToRegister:a,handleGoogleLogin:o,CAPTCHA_KEY:s}){const[r,i]=E.useState("login"),[c,d]=E.useState(""),[l,h]=E.useState(""),[u,f]=E.useState(""),[g,m]=E.useState(""),[p,A]=E.useState(""),[b,S]=E.useState(!1),[_,I]=E.useState(!1),[C,k]=E.useState(null);console.log("CAPTCHA_KEY",s);const q=async H=>{if(!_){H.preventDefault(),k(null),I(!0);try{console.log(!0,s);const M="token",ee=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:c,password:l,token:M})});if(!ee.ok){const ie=await ee.json().catch(()=>({}));throw new Error(ie?.error||"Ha ocurrido un error")}e(),await n()}catch(M){k(M?.message||"Error inesperado")}finally{I(!1)}}},G=async H=>{if(!_){H.preventDefault(),k(null),I(!0);try{const M=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c})});if(!M.ok){const ee=await M.json().catch(()=>({}));throw new Error(ee?.error||"Error al enviar código")}h(""),i("changePassword")}catch(M){k(M?.message||"Error inesperado")}finally{I(!1)}}},X=async H=>{if(_)return;if(H.preventDefault(),g!==p){k("Las contraseñas no coinciden");return}if(Mn.some(ee=>!ee.test(g))){k("La contraseña no cumple con los requisitos");return}k(null),I(!0);try{const ee=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,code:u,newPassword:g})});if(!ee.ok){const ie=await ee.json().catch(()=>({}));throw new Error(ie?.error||"Error al cambiar contraseña")}i("feedback")}catch(ee){k(ee?.message||"Error inesperado")}finally{I(!1)}};return t.jsxs(t.Fragment,{children:[r==="login"&&t.jsx(L1,{email:c,password:l,showPassword:b,loading:_,error:C,setEmail:d,setPassword:h,setShowPassword:S,onSubmit:q,onForgot:()=>{k(null),i("forgot")},onRegister:a,handleGoogleLogin:o}),r==="forgot"&&t.jsx(q1,{email:c,setEmail:d,loading:_,error:C,onSubmit:G,onBack:()=>{k(null),i("login")}}),r==="changePassword"&&t.jsx(B1,{email:c,confirmationCode:u,newPassword:g,confirmNewPassword:p,showPassword:b,loading:_,error:C,setConfirmationCode:f,setNewPassword:m,setConfirmNewPassword:A,setShowPassword:S,onSubmit:X,onBack:()=>{k(null),i("forgot")}}),r==="feedback"&&t.jsx(P1,{onBackToLogin:()=>{k(null),i("login")}})]})}function L1({email:e,password:n,showPassword:a,loading:o,error:s,setEmail:r,setPassword:i,setShowPassword:c,onSubmit:d,onForgot:l,onRegister:h,handleGoogleLogin:u}){return t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:u,className:x.google,children:[t.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:x.googleIcon}),t.jsx("span",{children:"Continuar con Google"})]}),t.jsx("div",{className:x.divider,children:t.jsx("span",{children:"o"})}),t.jsxs("form",{onSubmit:d,className:x.form,"data-error":s?"true":"false",children:[t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Email"}),t.jsx("input",{type:"email",value:e,onChange:f=>r(f.target.value),className:x.input,placeholder:""})]}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Contraseña"}),t.jsx("input",{type:a?"text":"password",value:n,onChange:f=>i(f.target.value),className:x.input,placeholder:""}),t.jsxs("div",{className:x.checkboxRow,children:[t.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:f=>c(f.target.checked)}),t.jsx("label",{htmlFor:"showPasswordLogin",className:x.checkboxLabel,children:"Mostrar contraseña"})]})]}),s&&t.jsx("p",{className:x.error,children:s}),t.jsx("button",{type:"submit",className:x.primary,disabled:o,children:o?t.jsx(Je,{}):"Iniciar Sesión"})]}),t.jsxs("p",{className:x.switch,children:["¿No tenés cuenta?",t.jsx("button",{type:"button",onClick:h,children:"Registrate"})]}),t.jsx("button",{type:"button",className:x.forgotPassword,onClick:l,children:"Olvidé mi contraseña"})]})}function q1({email:e,setEmail:n,loading:a,error:o,onSubmit:s,onBack:r}){return t.jsxs("form",{onSubmit:s,className:x.form,"data-error":o?"true":"false",children:[t.jsx("p",{className:x.message,children:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña."}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Email"}),t.jsx("input",{type:"email",value:e,name:"email",onChange:i=>n(i.target.value),className:x.input,placeholder:""})]}),o&&t.jsx("p",{className:x.error,children:o}),t.jsx("button",{type:"submit",className:x.primary,disabled:a,children:a?t.jsx(Je,{}):"Enviar código"}),t.jsx("p",{className:x.switch,children:t.jsx("button",{type:"button",onClick:r,children:"Volver"})})]})}function B1({email:e,confirmationCode:n,newPassword:a,confirmNewPassword:o,showPassword:s,loading:r,error:i,setConfirmationCode:c,setNewPassword:d,setConfirmNewPassword:l,setShowPassword:h,onSubmit:u,onBack:f}){return t.jsxs("form",{onSubmit:u,className:x.form,"data-error":i?"true":"false",children:[t.jsxs("p",{className:x.message,children:["Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a ",Yd(e),". Ingrese el código y la contraseña nueva."]}),t.jsxs("ul",{className:x.formUl,children:[t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Código de verificación"}),t.jsx("input",{type:"text",value:n,onChange:g=>c(g.target.value),className:x.input,placeholder:""})]}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Nueva contraseña"}),t.jsx("input",{type:s?"text":"password",value:a,onChange:g=>d(g.target.value),className:x.input,placeholder:"",name:"password"}),t.jsx("div",{className:x.passwordChecker,children:Mn.map((g,m)=>{const p=g.test(a);return t.jsxs("div",{className:p?x.valid:x.invalid,children:[t.jsx("div",{children:p?"✔":"○"}),t.jsx("div",{children:g.label})]},m)})})]}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Confirmar contraseña"}),t.jsx("input",{type:s?"text":"password",value:o,onChange:g=>l(g.target.value),className:x.input,placeholder:""}),t.jsxs("div",{className:x.checkboxRow,children:[t.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:s,onChange:g=>h(g.target.checked)}),t.jsx("label",{htmlFor:"showPasswordForgot",className:x.checkboxLabel,children:"Mostrar contraseñas"})]})]})]}),i&&t.jsx("p",{className:x.error,children:i}),t.jsx("button",{type:"submit",className:x.primary,style:{maxWidth:r?"revert-layer":"fit-content"},disabled:r,children:r?t.jsx(Je,{}):"Cambiar contraseña"}),t.jsx("p",{className:x.switch,children:t.jsx("button",{type:"button",onClick:f,children:"Volver"})})]})}function P1({onBackToLogin:e}){return t.jsxs("div",{className:x.form,children:[t.jsx("p",{className:x.success,children:"La contraseña fue cambiada con éxito"}),t.jsx("button",{type:"button",className:x.primary,onClick:e,children:"Iniciar Sesión"})]})}function O1({loginUrl:e,onClose:n,checkAuth:a,icon:o,COMMENTS_VARS:s}){const[r,i]=E.useState("login"),c=async()=>{if(!e)return;const d=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${d}`};return t.jsx("div",{className:x.overlay,role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const l=d.target;l&&l.id==="pop-overlay"&&n()},children:t.jsxs("div",{className:x.card,children:[t.jsxs("header",{className:x.header,children:[t.jsx("div",{className:x.logo,children:o?o():null}),t.jsx("button",{onClick:n,className:x.close,"aria-label":"Cerrar",children:t.jsx(Ct,{})})]}),r==="login"&&t.jsx(U1,{onClose:n,checkAuth:a,handleGoogleLogin:c,goToRegister:()=>i("register"),CAPTCHA_KEY:s.CAPTCHA_KEY}),r==="register"&&t.jsx(x1,{handleGoogleLogin:c,goToLogin:()=>i("login"),CAPTCHA_KEY:s.CAPTCHA_KEY})]})})}function D1({isAuthenticated:e,setIsAuthenticated:n,loginUrl:a,user:o,path:s,checkAuth:r,icon:i,COMMENTS_VARS:c,DATE_CONFIG:d}){const[l,h]=E.useState(!1),u=async()=>{{const g=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(g)}`}},f=async g=>{g.preventDefault(),a&&h(!0)};return t.jsxs(t.Fragment,{children:[l&&t.jsx(O1,{loginUrl:a,icon:i,checkAuth:r,COMMENTS_VARS:c,onClose:()=>{h(!1)}}),!e&&t.jsxs("div",{className:"auth-container",children:[t.jsx("p",{children:"Sumate a la comunidad para dejar tu comentario"}),t.jsx("a",{href:a,onClick:f,className:"login-button",children:"Iniciar Sesión"})]}),t.jsx(T1,{isAuthenticated:e,handleLogout:u,path:s,user:e?o:void 0,COMMENTS_VARS:c,DATE_CONFIG:d})]})}function M1({isVisible:e,path:n,icon:a,COMMENTS_VARS:o,DATE_CONFIG:s}){const[r,i]=E.useState(null),[c,d]=E.useState(null),l=o?.COGNITO_AUTH_PREFIX??"ASTRO_",h=E.useCallback(async()=>{if(e){if(console.log(l),document.cookie.search(l+"IS_AUTH=true")===-1){i(!1),d(null),console.log("user not logged");return}try{const m=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(m.isAuthenticated??!1),d(m.user??null)}catch(g){console.error("Error checking auth:",g),i(!1),d(null)}}},[e,l]);E.useEffect(()=>{h()},[h,e]),E.useEffect(()=>{if(!c||!e||typeof window>"u")return;const g=window;if(typeof g!="function"){console.warn("gtag no está disponible todavía");return}g.gtag("set",{user_id:c.username}),console.log("username setted successfully")},[c,e]);const u="/api/auth/login",f=t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:310,position:"relative"},children:t.jsx(Je,{})});return r===null?f:e?t.jsx(D1,{icon:a,isAuthenticated:r,setIsAuthenticated:i,loginUrl:u,user:c??void 0,checkAuth:h,path:n,COMMENTS_VARS:o,DATE_CONFIG:s}):f}const j1=({render:e,internalPath:n,section:a,currentNews:o,stylesConfig:s,icon:r,isVisibleDefault:i=!1,COMMENTS_VARS:c,DATE_CONFIG:d={PUBLIC_LNG:"es",DATE_TIMEZONE:"America/Mexico_City"}})=>{const l=E.useRef(null),[h,u]=E.useState(i);E.useEffect(()=>{if(i||h)return;const g=new IntersectionObserver(([m])=>{m?.isIntersecting&&(u(!0),g.disconnect())},{rootMargin:"0px",threshold:.1});return l.current&&g.observe(l.current),()=>g.disconnect()},[]);const f={comment:t.jsx(M1,{path:n,icon:r,isVisible:h,COMMENTS_VARS:c,DATE_CONFIG:d}),more:t.jsx($d,{section:a,currentNews:o,stylesConfig:s,isVisible:h})};return t.jsx("div",{ref:l,suppressHydrationWarning:!0,style:{...s?s["Modulo 1x3 Client"]?s["Modulo 1x3 Client"]:s["Modulo 1x3"]:{}},children:f[e]})};async function $1({publication:e,path:n,username:a,comment:o,id:s,recaptchaResponse:r,baseUrl:i,apiToken:c,securityToken:d,COMMENTS_VARS:l}){if(console.log("Adding comment with data:",{publication:e,path:n,username:a,comment:o,id:s,recaptchaResponse:r}),!e||!n||!o||!a)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,n,o,a].some(m=>typeof m!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!a.trim())return{type:"error",message:"El nombre no puede estar vacío.",status:400};if(!o.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const h=await lr(r,l);if(console.log("Verifying captcha token...",h),!h)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,f={publication:e,path:n.replace(/\|/gi,"/"),username:a??!1,text:o.trim()};s&&(f.id=s);const g=new URLSearchParams(f);try{const{data:m}=await oe.get(`${u}?${g.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":d,"x-api-token":c,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),oe.isAxiosError(m)){const p=m.response?.status??500,A=m.response?.data;return p===400?{type:"error",message:A?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:p===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:p===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:A?.message||"No se pudo enviar el comentario.",status:p}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const Q1=async({token:e,projectId:n,captchaKey:a,apiKey:o,captchaAction:s})=>{if(!e)throw new Error("No token provided");if(!n||!a||!o)throw new Error("Missing project ID or site key");if(!s)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${n}/assessments?key=${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:s}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==s)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return i?.riskAnalysis?.score??0}catch(r){throw console.error("Recaptcha verification failed",r),new Error(String(r))}};w.AssetsPreconnect=oo,w.AutorComponent=Ld,w.AutorHeader1=Ns,w.AutorHeader2=Es,w.BannerAdvertising=ge,w.BannerAdvertisingMiddle=$e,w.CarrouselCSR=Wc,w.CarrouselIRS=it,w.CarruselCard=Vs,w.CarruselOpinion=Ws,w.CommonServices=Ze,w.Comscore=$a,w.ContactInfoServer=Ql,w.ContactInput=bl,w.ContactSelect=Cl,w.ContactTextarea=vl,w.ContentLayout1=bt,w.ContentLayoutTema=ca,w.DEBUG_MainSlots=Id,w.DestacadoNoticias=Ds,w.DestacadoVideos=Hs,w.DynamicBlockServices=as,w.DynamicComponents=Ed,w.DynamicMainSlot=Un,w.DynamicSlot=va,w.EditorialBlock=Pl,w.ErrorComponent=wl,w.Font=go,w.Footer=hl,w.FormatAfterScripts=ao,w.FormatScripts=zn,w.GA4=Qa,w.GTM=Ga,w.GalleryHeader=Zs,w.GenerateBody=Gc,w.GenerateHead=Qc,w.Header=kl,w.IframeHeader=tr,w.ImageOffline=fs,w.ImageOnline=Ne,w.ImageOnlineClient=us,w.IssuuServices=Dc,w.ItemListSchema=lo,w.JournalistArticule2=Ls,w.JournalistGroup=qs,w.LayoutNewsComponent=da,w.LazyLoader=j1,w.LinkComponent=O,w.LiveBlogHeader=_s,w.Location=Fc,w.MainComponentServices=fi,w.Marfeel=Ha,w.MiddleSection=Xe,w.Modulo1x3=pa,w.Modulo1x3Card=Fs,w.Modulo1x4=Qs,w.Modulo1x5=Gs,w.Modulo2Columnas=Ol,w.Modulo3Columnas=js,w.ModuloNewsletter=Dl,w.ModuloOpinion=Bl,w.NewListResponseDataPH=ir,w.NewsArticle=ho,w.NewsComponent=kd,w.NewsContent=bn,w.NewsDescriptionComponent=ct,w.NextPrev=Dt,w.OrgList=uo,w.PreloadImages=Vn,w.REPORT_REASONS=je,w.Readest=gn,w.ScriptHydrator=Dd,w.SearchSection=Ud,w.Section=fe,w.SectionCard=De,w.SectionCard2=jt,w.SectionCardServerComponent=Tn,w.SectionServerComponent=$l,w.ShowSection=rs,w.SocialNetworks=Js,w.SpeculationRules=co,w.StaticSlotWrapper=Nd,w.SubscribeColumn=As,w.SubscribeRow=ys,w.SubscribeWhatsAppColumn=al,w.TagHeader=xl,w.TagSection=Us,w.TimeLine=Ss,w.TrimPathname=si,w.VideoBlock3=yl,w.VideoBlock4=Sl,w.VideoEmbeddedHeader=Rs,w.VideoSection=Od,w.VideoYoutubeHeader=er,w.VideosSchemas=mo,w.WebsiteList=fo,w.addComment=$1,w.bannersReplace=Rt,w.becomeVideoObject=gt,w.buildTagUrl=at,w.coloringByStrokeSVGs=ws,w.compileStyleProps=xn,w.cutString=Ue,w.extractRealtedNews=ni,w.formatDate=xe,w.formatDateEdiciones=ti,w.formatDateJournalistArticule=Qn,w.formatDateTimeline=Ja,w.formatNewsMeta=Ra,w.formatVideoData=so,w.generalGetData=$c,w.getCaptchaToken=k1,w.getComments=Sr,w.getConfig=K,w.getDynamicSlots=Mc,w.getEnvironmentUrl=pt,w.getEnvironmentUrlFront=Xa,w.getHydratorPath=li,w.getImageUrl=de,w.getNextMeta=Tt,w.getPage=xt,w.getPlayIcon=mn,w.getPreloadImages=ui,w.getPrevMeta=kt,w.getReportReasonLabel=Fd,w.getResponse=Gn,w.getResponsePromise=Za,w.getSchemas=en,w.getScriptReplaces=Wn,w.getSlugs=Ao,w.getTypeOfNews=ii,w.getVideoRealPath=ci,w.handleGetComments=Dn,w.initLibrary=Dr,w.metadataToJSX=no,w.metadata_defaults=os,w.parseTags=Hn,w.pathnameSplit=eo,w.processExtractedRelatedNews=ai,w.removePages=po,w.reportComment=zd,w.shareButtons=bs,w.socialIcons=yn,w.speculationRules=io,w.speculationRulesHome=ro,w.urlReplaces=to,w.usePlayIcon=sa,w.verifyCaptchaTokenEnterprise=Q1,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
|
|
159
|
+
Valid keys: `+JSON.stringify(Object.keys(y),null," "));var P=re(W,Y,D,z,V+"."+Y,a);if(P)return P}return null}return A(N)}function $(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every($);if(y===null||c(y))return!0;var N=u(y);if(N){var B=N.call(y),Q;if(N!==y.entries){for(;!(Q=B.next()).done;)if(!$(Q.value))return!1}else for(;!(Q=B.next()).done;){var D=Q.value;if(D&&!$(D[1]))return!1}}else return!1;return!0;default:return!1}}function L(y,N){return y==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function T(y){var N=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":L(N,y)?"symbol":N}function j(y){if(typeof y>"u"||y===null)return""+y;var N=T(y);if(N==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return N}function U(y){var N=j(y);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function F(y){return!y.constructor||!y.constructor.name?f:y.constructor.name}return g.checkPropTypes=s,g.resetWarningCache=s.resetWarningCache,g.PropTypes=g,g},Ua}var La,br;function e1(){if(br)return La;br=1;var e=Ta();function n(){}function a(){}return a.resetWarningCache=n,La=function(){function o(i,c,d,l,h,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function s(){return o}var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:a,resetWarningCache:n};return r.PropTypes=r,r},La}var Cr;function t1(){if(Cr)return Ln.exports;if(Cr=1,process.env.NODE_ENV!=="production"){var e=Na(),n=!0;Ln.exports=Rd()(e.isElement,n)}else Ln.exports=e1()();return Ln.exports}var n1=t1();const _e=mt(n1);var a1=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},qa.apply(this,arguments)}function o1(e,n){if(e==null)return{};var a={},o=Object.keys(e),s,r;for(r=0;r<o.length;r++)s=o[r],!(n.indexOf(s)>=0)&&(a[s]=e[s]);return a}function Bn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s1(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Ba(e,n)}function Ba(e,n){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},Ba(e,n)}var Pn=(function(e){s1(n,e);function n(){var o;return o=e.call(this)||this,o.handleExpired=o.handleExpired.bind(Bn(o)),o.handleErrored=o.handleErrored.bind(Bn(o)),o.handleChange=o.handleChange.bind(Bn(o)),o.handleRecaptchaRef=o.handleRecaptchaRef.bind(Bn(o)),o}var a=n.prototype;return a.getCaptchaFunction=function(s){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[s]:this.props.grecaptcha[s]:null},a.getValue=function(){var s=this.getCaptchaFunction("getResponse");return s&&this._widgetId!==void 0?s(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var s=this.getCaptchaFunction("execute");if(s&&this._widgetId!==void 0)return s(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var s=this;return new Promise(function(r,i){s.executionResolve=r,s.executionReject=i,s.execute()})},a.reset=function(){var s=this.getCaptchaFunction("reset");s&&this._widgetId!==void 0&&s(this._widgetId)},a.forceReset=function(){var s=this.getCaptchaFunction("reset");s&&s()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(s){this.props.onChange&&this.props.onChange(s),this.executionResolve&&(this.executionResolve(s),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var s=this.getCaptchaFunction("render");if(s&&this._widgetId===void 0){var r=document.createElement("div");this._widgetId=s(r,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(r)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(s){this.captcha=s},a.render=function(){var s=this.props;s.sitekey,s.onChange,s.theme,s.type,s.tabindex,s.onExpired,s.onErrored,s.size,s.stoken,s.grecaptcha,s.badge,s.hl,s.isolated;var r=o1(s,a1);return ja.createElement("div",qa({},r,{ref:this.handleRecaptchaRef}))},n})(ja.Component);Pn.displayName="ReCAPTCHA",Pn.propTypes={sitekey:_e.string.isRequired,onChange:_e.func,grecaptcha:_e.object,theme:_e.oneOf(["dark","light"]),type:_e.oneOf(["image","audio"]),tabindex:_e.number,onExpired:_e.func,onErrored:_e.func,size:_e.oneOf(["compact","normal","invisible"]),stoken:_e.string,hl:_e.string,badge:_e.oneOf(["bottomright","bottomleft","inline"]),isolated:_e.bool},Pn.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Pa,vr;function r1(){if(vr)return Pa;vr=1;var e=Na(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};r[e.ForwardRef]=o,r[e.Memo]=s;function i(m){return e.isMemo(m)?s:r[m.$$typeof]||n}var c=Object.defineProperty,d=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function g(m,p,A){if(typeof p!="string"){if(f){var b=u(p);b&&b!==f&&g(m,b,A)}var S=d(p);l&&(S=S.concat(l(p)));for(var _=i(m),I=i(p),C=0;C<S.length;++C){var k=S[C];if(!a[k]&&!(A&&A[k])&&!(I&&I[k])&&!(_&&_[k])){var q=h(p,k);try{c(m,k,q)}catch{}}}}return m}return Pa=g,Pa}var i1=r1();const c1=mt(i1);function Oa(){return Oa=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Oa.apply(this,arguments)}function l1(e,n){if(e==null)return{};var a={},o=Object.keys(e),s,r;for(r=0;r<o.length;r++)s=o[r],!(n.indexOf(s)>=0)&&(a[s]=e[s]);return a}function d1(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var Pe={},h1=0;function u1(e,n){return n=n||{},function(o){var s=o.displayName||o.name||"Component",r=(function(c){d1(d,c);function d(h,u){var f;return f=c.call(this,h,u)||this,f.state={},f.__scriptURL="",f}var l=d.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+h1++),this.__scriptLoaderID},l.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},l.asyncScriptLoaderHandleLoad=function(u){var f=this;this.setState(u,function(){return f.props.asyncScriptOnLoad&&f.props.asyncScriptOnLoad(f.state)})},l.asyncScriptLoaderTriggerOnScriptLoaded=function(){var u=Pe[this.__scriptURL];if(!u||!u.loaded)throw new Error("Script is not loaded.");for(var f in u.observers)u.observers[f](u);delete window[n.callbackName]},l.componentDidMount=function(){var u=this,f=this.setupScriptURL(),g=this.asyncScriptLoaderGetScriptLoaderID(),m=n,p=m.globalName,A=m.callbackName,b=m.scriptId;if(p&&typeof window[p]<"u"&&(Pe[f]={loaded:!0,observers:{}}),Pe[f]){var S=Pe[f];if(S&&(S.loaded||S.errored)){this.asyncScriptLoaderHandleLoad(S);return}S.observers[g]=function(q){return u.asyncScriptLoaderHandleLoad(q)};return}var _={};_[g]=function(q){return u.asyncScriptLoaderHandleLoad(q)},Pe[f]={loaded:!1,observers:_};var I=document.createElement("script");I.src=f,I.async=!0;for(var C in n.attributes)I.setAttribute(C,n.attributes[C]);b&&(I.id=b);var k=function(G){if(Pe[f]){var X=Pe[f],H=X.observers;for(var M in H)G(H[M])&&delete H[M]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),I.onload=function(){var q=Pe[f];q&&(q.loaded=!0,k(function(G){return A?!1:(G(q),!0)}))},I.onerror=function(){var q=Pe[f];q&&(q.errored=!0,k(function(G){return G(q),!0}))},document.body.appendChild(I)},l.componentWillUnmount=function(){var u=this.__scriptURL;if(n.removeOnUnmount===!0)for(var f=document.getElementsByTagName("script"),g=0;g<f.length;g+=1)f[g].src.indexOf(u)>-1&&f[g].parentNode&&f[g].parentNode.removeChild(f[g]);var m=Pe[u];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],n.removeOnUnmount===!0&&delete Pe[u])},l.render=function(){var u=n.globalName,f=this.props;f.asyncScriptOnLoad;var g=f.forwardedRef,m=l1(f,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(m[u]=typeof window[u]<"u"?window[u]:void 0),m.ref=g,E.createElement(o,m)},d})(E.Component),i=E.forwardRef(function(c,d){return E.createElement(r,Oa({},c,{forwardedRef:d}))});return i.displayName="AsyncScriptLoader("+s+")",i.propTypes={asyncScriptOnLoad:_e.func},c1(i,o)}}var Da="onloadcallback",f1="grecaptcha";function Ma(){return typeof window<"u"&&window.recaptchaOptions||{}}function m1(){var e=Ma(),n=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+n+"/recaptcha/enterprise.js?onload="+Da+"&render=explicit":"https://"+n+"/recaptcha/api.js?onload="+Da+"&render=explicit"}const _r=u1(m1,{callbackName:Da,globalName:f1,attributes:Ma().nonce?{nonce:Ma().nonce}:{}})(Pn),x={overlay:"_overlay_18ksj_1",header:"_header_18ksj_18",logo:"_logo_18ksj_25",card:"_card_18ksj_32",close:"_close_18ksj_47",form:"_form_18ksj_71",formUl:"_formUl_18ksj_80",field:"_field_18ksj_92",label:"_label_18ksj_99",input:"_input_18ksj_108",error:"_error_18ksj_126",primary:"_primary_18ksj_132",divider:"_divider_18ksj_170",google:"_google_18ksj_196",googleIcon:"_googleIcon_18ksj_226",spin:"_spin_18ksj_259",checkboxRow:"_checkboxRow_18ksj_281",switch:"_switch_18ksj_310",terms:"_terms_18ksj_318",message:"_message_18ksj_349",passwordChecker:"_passwordChecker_18ksj_354",valid:"_valid_18ksj_373",invalid:"_invalid_18ksj_377",forgotPassword:"_forgotPassword_18ksj_381",successContainer:"_successContainer_18ksj_400",thumbsUp:"_thumbsUp_18ksj_408",successMessage:"_successMessage_18ksj_414"},Je=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:x.spin,children:t.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),g1=({isOpen:e,onClose:n,commentId:a,publication:o,username:s,CAPTCHA_KEY_V2:r})=>{const[i,c]=E.useState("form"),[d,l]=E.useState(""),[h,u]=E.useState(""),[f,g]=E.useState(""),m=[{id:"spam",label:je.spam},{id:"inappropriate",label:je.inappropriate},{id:"hate",label:je.hate},{id:"misinformation",label:je.misinformation},{id:"terrorism",label:je.terrorism},{id:"intellectual",label:je.intellectual},{id:"bullying",label:je.bullying}],p=async()=>{if(!(!d||!a)){if(dr(document).includes(a)){u("Ya has reportado este comentario.");return}c("loading"),u("");try{const S=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:o,username:s,id:a,captchaToken:f,type:je[d]})})).json();if(S.type==="success")Wd(document,a),c("success"),setTimeout(()=>{A()},3e3);else throw new Error(S.message||"Error al reportar comentario")}catch(b){console.error("Error reporting comment:",b),u(b.message||"Error al reportar comentario"),c("form")}}},A=()=>{c("form"),l(""),u(""),n()};return!e||!a||!s?null:t.jsx("div",{className:he.overlay,children:t.jsxs("div",{className:he.popup,children:[t.jsx("button",{className:"close-reply-form",onClick:A,children:t.jsx(Ct,{})}),t.jsx("h2",{className:he.title,children:"Reportar Abuso"}),i==="loading"&&t.jsx("div",{className:he.loadingContainer,children:t.jsx(Je,{})}),i==="form"||i==="loading"?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:he.optionsContainer,children:m.map(b=>t.jsxs("label",{className:he.option,children:[t.jsx("input",{type:"radio",name:"reportReason",value:b.id,checked:d===b.id,onChange:S=>l(S.target.value),className:he.radioInput}),t.jsx("span",{className:he.radioCustom}),t.jsx("span",{className:he.optionLabel,children:b.label})]},b.id))}),h&&t.jsx("div",{className:he.errorMessage,children:h}),t.jsx(_r,{sitekey:r,theme:"light",size:"normal",onChange:b=>g(b??""),onExpired:()=>g("")}),t.jsxs("div",{className:he.buttons,children:[t.jsx("button",{onClick:A,className:he.cancelButton,children:"Cancelar"}),t.jsx("button",{onClick:p,disabled:!d,className:he.reportButton,children:"Reportar"})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:he.successContainer,children:[t.jsx("div",{className:he.thumbsUp,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:t.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),t.jsx("p",{className:he.successMessage,children:"¡Gracias por reportar!"})]}),t.jsx("div",{className:he.buttons,children:t.jsx("button",{onClick:A,className:[he.closeButton,he.buttonAlone].join(" "),children:"Cerrar"})})]})]})})};function p1(e){const n=/^\[\[([^\]]+)\]\]/,a=e.match(n);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function On(e){const n=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?On({comments:a.reply}).comments:a.reply};const{user:o,text:s}=p1(a.text);return{...a,user:o||!1,text:s,reply:a.reply?On({comments:a.reply}).comments:a.reply}});return{...e,comments:n}}async function Dn({publication:e,path:n,size:a=5,sizereply:o=2,id:s,lastid:r,state:i="5,6",apiToken:c}){const{PUBLIC_ENV:d}=K();if(d==="prod"){const l=await Sr({publication:e,path:n,size:a,sizereply:o,id:s,lastid:r,state:i,apiToken:c});return On(l[0])}else{const l=await fetch(`/api/comments-get?publication=${e}&path=${n}&size=${a}&sizereply=${o}&lastid=${r}`);if(!l.ok)throw new Error(`Error al obtener comentarios: ${l.status}`);const h=await l.json();return On(h.data[0])}}async function Sr({publication:e,path:n,size:a=5,sizereply:o=2,id:s,lastid:r,state:i="5,6",apiToken:c}){if(!e||!n)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof n!="string")throw new Error("Invalid input types for publication or path");if(!c)throw new Error("Missing CMS API token");const{PUBLIC_ENV:d,PUBLIC_API_HOST:l,PUBLIC_API_PATH:h,PUBLIC_API_PATH_VERSION:u}=K(),f=parseInt(String(a),10),g=parseInt(String(o),10);if(isNaN(f)||f<=0)throw new Error("Invalid size parameter");if(isNaN(g)||g<0)throw new Error("Invalid sizereply parameter");const m=d!=="prod"?`${l}${h}`:Xa(),p=new URLSearchParams({publication:e,path:n,size:f.toString(),sizereply:g.toString(),state:i});s&&p.append("id",s),r&&p.append("lastid",r);const A=`${m}${u}/newcomments/get?${p.toString()}`;try{console.log("Fetching comments from:",A);const{data:b}=await oe.get(A,{headers:{"x-api-token":c,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!b)throw new Error("No comments data received");return b.data||b||[]}catch(b){if(console.error("Error fetching comments:",b),oe.isAxiosError(b)){const S=b.response?.status,_=b.response?.data;throw S===404?new Error("Comments not found"):S===403?new Error("Access forbidden - check API token"):S===401?new Error("Unauthorized - invalid API token"):S===500?new Error("Internal server error from CMS"):new Error(_?.error||_?.message||`HTTP ${S}: Failed to fetch comments`)}throw b}}const{PUBLIC_PUBLICATION_ID:A1}=K(),y1=A1,w1=e=>{const[n,a]=E.useState(void 0);return E.useEffect(()=>{if(n)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:s}=K();try{const r=await Dn({publication:y1,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:s});a(r??[])}catch(r){console.error(r),a({comments:[],morecomment:!1})}})()},[n]),{comments:n,setComments:a}},Nr=({username:e,date:n,DATE_CONFIG:a})=>t.jsxs("div",{className:"comment-header",children:[t.jsx("span",{className:"comment-username",children:e}),t.jsx("span",{className:"comment-header-dot",children:"•"}),t.jsx("span",{className:"comment-date",children:Vd(xe(Number(n),a))})]}),Er=({user:e})=>t.jsx("div",{className:"comment-avatar",children:e.picture?t.jsx("img",{className:"comment-avatar-img",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),Ir=({isReply:e=!1,onReply:n,onFlag:a})=>t.jsxs("div",{className:"comment-actions",children:[!e&&n&&t.jsx("button",{onClick:n,className:"comment-action-btn",children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[t.jsx("g",{clipPath:"url(#a)",children:t.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"a",children:t.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),t.jsx("button",{onClick:a,className:"comment-action-btn",children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[t.jsx("g",{clipPath:"url(#a)",children:t.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"a",children:t.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),Tr=({commentRef:e,captchaToken:n="",setIsDisabled:a})=>(E.useEffect(()=>{const o=e.current;if(!o)return;const s=()=>{const i=o.value.length;o.parentElement&&(o.parentElement.dataset.text=`${i}/${ft}`),o.classList.toggle("over-limit",i>ft),a(!Sa(e,n).boolean)};return o.addEventListener("input",s),s(),()=>o.removeEventListener("input",s)},[e,n,a]),t.jsxs("div",{children:[t.jsx("label",{className:"comment-input-label",children:"Comentario"}),t.jsx("textarea",{ref:e,name:"comment",placeholder:"Ingresa un comentario",rows:2})]})),kr=({commentRef:e,captchaToken:n="",setCaptchaToken:a,children:o,CAPTCHA_KEY_V2:s})=>{const r=Sa(e,n);return t.jsxs("div",{className:"form-actions",children:[t.jsx(_r,{sitekey:s,theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),t.jsxs("div",{className:"submit-zone",children:[o,!r.boolean&&t.jsx("p",{className:"submit-warning",children:r.text})]})]})},xr=({onClick:e,isDisabled:n})=>{const[a,o]=E.useState(!1),{S3_ID_DIR:s=""}=K();return E.useEffect(()=>{let r=null;return a&&(r=setTimeout(()=>{o(!1)},2400)),()=>{r&&clearTimeout(r)}},[a]),a?t.jsx("div",{className:"success-gif-container",children:t.jsx("img",{className:"success-gif",src:pt()+"/arte/"+s+"/Success.gif"})}):t.jsxs("button",{type:"button",onClick:async r=>{await e(r)&&o(!0)},id:"comment-button",className:`submit-btn ${n?"disabled":"active"}`,children:["Enviar Comentario",t.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})},{PUBLIC_PUBLICATION_ID:b1}=K(),C1=b1,Ur=async({path:e,ref:n,captchaToken:a,button:o,user:s,id:r,addComment:i})=>{const c=n.current?.value||"";if(!Sa(n,a).boolean||!s){const d=o.nextElementSibling;return d&&(d.style.display="block"),!1}try{const d=Date.now(),l=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:C1,path:e,id:r,username:s.username,comment:c,recaptchaResponse:a})});let h=null;try{h=await l.json()}catch(m){console.error("Error parsing JSON response:",m)}if(!l.ok)throw new Error(`Error al enviar comentario: ${h?.message} status: ${l.status}`);const u=Date.now(),f=Math.max(0,2400+Math.abs(u-d)),g={username:s.username,firstname:s.firstname,...s.lastname&&{lastname:s.lastname},...s.picture&&{picture:s.picture}};return i({id:u.toString(),text:c,user:g,date:{time:Date.now()},reply:[]}),n.current&&(n.current.value=""),f}catch(d){return console.error("Error enviando comentario:",d),alert(d.message||"Error al enviar el comentario."),!1}},v1=({replyingTo:e,commentRef:n,user:a,path:o,addReply:s,closeForm:r,CAPTCHA_KEY_V2:i})=>{const[c,d]=E.useState(!0),[l,h]=E.useState(""),u=()=>{n.current?.parentElement&&(n.current.parentElement.dataset.text=`0/${ft}`),d(!0),r()};return t.jsxs("div",{className:"comment-form reply-form",children:[t.jsx("button",{className:"close-reply-form",onClick:u,children:t.jsx(Ct,{})}),t.jsx(Tr,{commentRef:n,captchaToken:l,setIsDisabled:d}),t.jsx(kr,{commentRef:n,captchaToken:l,setCaptchaToken:h,CAPTCHA_KEY_V2:i,children:t.jsx(xr,{onClick:async f=>{if(c)return;const g=await Ur({path:o,ref:n,captchaToken:l,button:f.currentTarget,user:a,id:e,addComment:s});return g&&typeof g=="number"?(setTimeout(()=>{u()},g),!0):!1},isDisabled:c})})]})},_1=({reply:e,replyingTo:n,user:a,onFlag:o,DATE_CONFIG:s})=>{const r=e.text;let i=`${Ke.firstname} ${Ke.lastname??""}`,c=Ke.username;return e.user&&(i=`${e.user.firstname} ${e.user.lastname??""}`,c=e.user.username),t.jsx("div",{className:"comment-item reply",children:t.jsxs("div",{className:"comment-header-container",children:[t.jsx(Er,{user:e.user?e.user:Ke}),t.jsxs("div",{style:{flex:1},children:[t.jsx(Nr,{username:i,date:e.date.time,DATE_CONFIG:s}),t.jsxs("div",{className:"comment-reply-to",children:["Respondiendo a ",t.jsx("strong",{children:n})]}),t.jsx("p",{className:"comment-text",children:r}),a?.username.toLowerCase()!==c.toLowerCase()&&t.jsx(Ir,{isReply:!0,onFlag:()=>o(e.id)})]})]})})},S1=({comment:e,replyingTo:n,path:a,user:o,handleReplyingTo:s,onFlag:r,CAPTCHA_KEY_V2:i,DATE_CONFIG:c})=>{const d={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[l,h]=E.useState(d),[u,f]=E.useState(!1),{PUBLIC_PUBLICATION_ID:g,PUBLIC_X_SECURITY_TOKEN:m}=K(),p=e.text,A=E.useRef(null);let b=`${Ke.firstname} ${Ke.lastname??""}`,S=Ke.username;e.user&&(b=`${e.user.firstname} ${e.user.lastname??""}`,S=e.user.username);const _=I=>{h({morereply:l.morereply,reply:[I,...l.reply]})};return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{className:"comment-header-container","data-hasreplies":l.reply.length>0?"true":"false",children:[t.jsx(Er,{user:e.user?e.user:Ke}),t.jsxs("div",{style:{flex:1},children:[t.jsx(Nr,{username:b,date:e.date.time,DATE_CONFIG:c}),t.jsx("p",{className:"comment-text",children:p}),o?.username.toLowerCase()!==S.toLowerCase()&&t.jsx(Ir,{onReply:()=>s(e.id),onFlag:()=>r(e.id)}),n===e.id&&o&&t.jsx(v1,{replyingTo:n,commentRef:A,addReply:_,user:o,path:a,CAPTCHA_KEY_V2:i,closeForm:()=>s("")}),l.reply.length>0&&t.jsxs("div",{className:"comment-replies",children:[l.reply.map(I=>t.jsx(_1,{user:o,reply:I,replyingTo:b,onFlag:r,DATE_CONFIG:c},I.id)),u?t.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:t.jsx(Je,{})}):l.morereply&&t.jsx("button",{className:"comment-replies-button reply-button",onClick:async()=>{const I=l.reply[l.reply.length-1]?.id;f(!0);try{const k=await Dn({publication:g??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:I,state:"5,6",apiToken:m??""});f(!1),h({morereply:k.morecomment,reply:[...l.reply,...k.comments]})}catch(C){throw f(!1),new Error(`Error al obtener comentarios: ${C}`)}},children:"Más Respuestas"})]})]})]})})},N1=({commentRef:e,user:n,path:a,addComment:o,CAPTCHA_KEY_V2:s})=>{const[r,i]=E.useState(!0),[c,d]=E.useState("");return t.jsxs("div",{className:"comment-form",children:[t.jsx(Tr,{commentRef:e,captchaToken:c,setIsDisabled:i}),t.jsx(kr,{CAPTCHA_KEY_V2:s,commentRef:e,captchaToken:c,setCaptchaToken:d,children:t.jsx(xr,{onClick:async l=>{if(r)return;const h=await Ur({path:a,ref:e,captchaToken:c,button:l.currentTarget,user:n,addComment:o});return h&&typeof h=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ft}`),i(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${ft}`),i(!0)},h),!0):!1},isDisabled:r})})]})},{PUBLIC_PUBLICATION_ID:E1,PUBLIC_X_SECURITY_TOKEN:I1}=K(),Lr=E1??"",T1=({isAuthenticated:e,path:n,user:a,handleLogout:o,COMMENTS_VARS:s,DATE_CONFIG:r})=>{const i=n.replaceAll("/","|"),[c,d]=E.useState(void 0),[l,h]=E.useState(""),{comments:u,setComments:f}=w1(i),[g,m]=E.useState(!1),p=E.useRef(null),A=q=>{h(l===q?"":q)},b=q=>{f(u?{...u,comments:[q,...u.comments??[]]}:void 0)},S=q=>{d(q)},_=async()=>{if(!u||!u.morecomment||u.comments.length===0)return;const q=u.comments[u.comments.length-1];if(!q)return;m(!0);const G=q.id;try{const X=await Dn({publication:Lr,path:i??"",size:5,sizereply:2,id:void 0,lastid:G,state:"5,6",apiToken:I1});f({morecomment:X.morecomment??!1,comments:[...u.comments,...X.comments]}),m(!1)}catch(X){throw m(!1),new Error(`Error al obtener comentarios: ${X}`)}},I=u?.comments&&u.comments.length>0,C=I?"Comparte tu opinión de este artículo.":"Se el primero en compartir tu opinión de este artículo.",k=t.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:t.jsx(Je,{})});return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"comments-container",children:t.jsx(fe,{title:I||e?"COMENTARIOS":!1,children:t.jsxs(t.Fragment,{children:[e&&a&&t.jsxs("div",{className:"comments-header",children:[t.jsx(Hd,{user:a,handleLogout:o,message:C}),t.jsx(N1,{commentRef:p,user:a,addComment:b,path:i,CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2})]}),u?u.comments&&u.comments.length>0?t.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[u.comments.map(q=>t.jsx(S1,{comment:q,replyingTo:l,handleReplyingTo:A,onFlag:S,user:a??Ke,path:i,DATE_CONFIG:r,CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2},q.id)),g&&k]}):null:k,u?.morecomment&&!g&&t.jsx("button",{className:"comment-replies-button",onClick:_,children:"Más"})]})})}),t.jsx(g1,{username:a?.username??void 0,publication:Lr,commentId:c,isOpen:c!==void 0,onClose:()=>d(void 0),CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2})]})},k1=async(e,n)=>{if(!e)throw new Error("No action provided");if(!n)throw new Error("No site key provided");const a=window.grecaptcha;if(!a?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((o,s)=>{a.enterprise.ready(async()=>{try{const r=await a.enterprise.execute(n,{action:e});if(!r)throw new Error("Captcha token no generado");o(r)}catch(r){s(r)}})})},qr={email:{label:"Email",required:!0},given_name:{label:"Nombre",required:!0},family_name:{label:"Apellido",required:!0},password:{label:"Contraseña",required:!0},confirmPassword:{label:"Confirmar contraseña",required:!0}},Mn=[{label:"La contraseña debe tener al menos 8 caracteres",test:e=>e.length>=8},{label:"Usa un número",test:e=>/\d/.test(e)},{label:"Usa una letra minúscula",test:e=>/[a-z]/.test(e)},{label:"Usa una letra mayúscula",test:e=>/[A-Z]/.test(e)},{label:"Usa un símbolo",test:e=>/[^A-Za-z0-9]/.test(e)}];function x1({goToLogin:e,handleGoogleLogin:n,CAPTCHA_KEY:a}){const[o,s]=E.useState({}),[r,i]=E.useState(!1),[c,d]=E.useState(!1),[l,h]=E.useState(null),[u,f]=E.useState("register"),g=(b,S)=>{s(_=>({..._,[b]:S}))},m=async b=>{b.preventDefault(),h(null),d(!0);try{const S=Object.keys(qr).filter(G=>!["username","password","confirmPassword"].includes(G)).map(G=>({Name:G,Value:o[G]}));if(S.some(G=>{if(!G.Value||G.Value.trim()==="")return!0}))return d(!1),h("Complete todos los campos");if(o.password!==o.confirmPassword){h("Las contraseñas no coinciden");return}const _=o.password||"";if(Mn.some(G=>!G.test(_))){h("La contraseña no es válida");return}const C=Math.floor(Date.now()/1e3);S.push({Name:"updated_at",Value:String(C)});const k="token",q=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email,password:o.password,userAttributes:S,token:k})});if(!q.ok){const G=await q.json().catch(()=>({}));if(G.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email})}),f("confirm");return}throw new Error(G?.error||"Error al crear usuario")}f("confirm")}catch(S){console.log(S),h(S?.message||S?.error||"Error inesperado")}finally{d(!1)}},p=async b=>{if(b.preventDefault(),!o.confirmationCode){h("Debes ingresar el código de verificación");return}h(null),d(!0);try{const S=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email,code:o.confirmationCode})});if(!S.ok){const _=await S.json().catch(()=>({}));throw new Error(_?.error||"Error al confirmar usuario")}f("success")}catch(S){h(S?.message||"Error inesperado")}finally{d(!1)}},A=o.password||"";return t.jsxs(t.Fragment,{children:[u==="register"&&t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:n,className:x.google,children:[t.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:x.googleIcon}),t.jsx("span",{children:"Continuar con Google"})]}),t.jsx("div",{className:x.divider,children:t.jsx("span",{children:"o"})}),t.jsxs("form",{onSubmit:m,className:x.form,"data-error":l?"true":"false",children:[t.jsx("ul",{className:x.formUl,children:Object.entries(qr).map(([b,{label:S}])=>t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:S}),t.jsx("input",{type:b.toLowerCase().includes("password")?r?"text":"password":b==="birthdate"?"date":b==="email"?"email":b==="phone_number"?"tel":"text",name:b,value:o[b]||"",onChange:_=>g(b,_.target.value),className:x.input,placeholder:""}),b==="password"&&t.jsx("div",{className:x.passwordChecker,children:Mn.map((_,I)=>{const C=_.test(A);return t.jsxs("div",{className:C?x.valid:x.invalid,children:[t.jsx("div",{children:C?"✔":"○"}),t.jsx("div",{children:_.label})]},I)})}),b==="confirmPassword"&&t.jsxs("div",{className:x.checkboxRow,children:[t.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:r,onChange:_=>i(_.target.checked)}),t.jsx("label",{htmlFor:"showPasswordRegister",className:x.checkboxLabel,children:"Mostrar contraseñas"})]})]},b))}),l&&t.jsx("p",{className:x.error,children:l}),t.jsxs("p",{className:x.terms,children:["Al continuar, confirmo que he leído y aceptado los",t.jsx("a",{href:"/pages/politicas-de-privacidad.html",target:"_blank",children:"Términos y Condiciones"}),"de nuestra comunidad"]}),t.jsx("button",{type:"submit",className:x.primary,disabled:c,children:c?t.jsx(Je,{}):"Crear cuenta"})]})]}),u==="confirm"&&t.jsxs("form",{onSubmit:p,className:x.form,"data-error":l?"true":"false",children:[t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Código de verificación"}),t.jsx("input",{type:"text",name:"confirmationCode",value:o.confirmationCode||"",onChange:b=>g("confirmationCode",b.target.value),className:x.input,required:!0})]}),l&&t.jsx("p",{className:x.error,children:l}),t.jsx("button",{type:"submit",className:x.primary,disabled:c,children:c?t.jsx(Je,{}):"Confirmar cuenta"}),t.jsxs("p",{className:x.switch,children:["¿Ya confirmaste antes?",t.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]}),u==="success"&&t.jsxs("form",{className:x.form,children:[t.jsxs("div",{className:x.successContainer,children:[t.jsx("div",{className:x.thumbsUp,children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:t.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),t.jsxs("div",{className:x.successMessage,children:[t.jsx("p",{children:"Confirmación completa."}),t.jsx("p",{children:"Ya eres parte de la comunidad!"})]})]}),t.jsx("button",{onClick:e,className:x.primary,children:"Iniciar sesión"})]}),u==="register"&&t.jsxs("p",{className:x.switch,children:["¿Ya tenés cuenta?",t.jsx("button",{type:"button",onClick:e,children:"Iniciar sesión"})]})]})}function U1({onClose:e,checkAuth:n,goToRegister:a,handleGoogleLogin:o,CAPTCHA_KEY:s}){const[r,i]=E.useState("login"),[c,d]=E.useState(""),[l,h]=E.useState(""),[u,f]=E.useState(""),[g,m]=E.useState(""),[p,A]=E.useState(""),[b,S]=E.useState(!1),[_,I]=E.useState(!1),[C,k]=E.useState(null);console.log("CAPTCHA_KEY",s);const q=async H=>{if(!_){H.preventDefault(),k(null),I(!0);try{console.log(!0,s);const M="token",ee=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:c,password:l,token:M})});if(!ee.ok){const ie=await ee.json().catch(()=>({}));throw new Error(ie?.error||"Ha ocurrido un error")}e(),await n()}catch(M){k(M?.message||"Error inesperado")}finally{I(!1)}}},G=async H=>{if(!_){H.preventDefault(),k(null),I(!0);try{const M=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c})});if(!M.ok){const ee=await M.json().catch(()=>({}));throw new Error(ee?.error||"Error al enviar código")}h(""),i("changePassword")}catch(M){k(M?.message||"Error inesperado")}finally{I(!1)}}},X=async H=>{if(_)return;if(H.preventDefault(),g!==p){k("Las contraseñas no coinciden");return}if(Mn.some(ee=>!ee.test(g))){k("La contraseña no cumple con los requisitos");return}k(null),I(!0);try{const ee=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,code:u,newPassword:g})});if(!ee.ok){const ie=await ee.json().catch(()=>({}));throw new Error(ie?.error||"Error al cambiar contraseña")}i("feedback")}catch(ee){k(ee?.message||"Error inesperado")}finally{I(!1)}};return t.jsxs(t.Fragment,{children:[r==="login"&&t.jsx(L1,{email:c,password:l,showPassword:b,loading:_,error:C,setEmail:d,setPassword:h,setShowPassword:S,onSubmit:q,onForgot:()=>{k(null),i("forgot")},onRegister:a,handleGoogleLogin:o}),r==="forgot"&&t.jsx(q1,{email:c,setEmail:d,loading:_,error:C,onSubmit:G,onBack:()=>{k(null),i("login")}}),r==="changePassword"&&t.jsx(B1,{email:c,confirmationCode:u,newPassword:g,confirmNewPassword:p,showPassword:b,loading:_,error:C,setConfirmationCode:f,setNewPassword:m,setConfirmNewPassword:A,setShowPassword:S,onSubmit:X,onBack:()=>{k(null),i("forgot")}}),r==="feedback"&&t.jsx(P1,{onBackToLogin:()=>{k(null),i("login")}})]})}function L1({email:e,password:n,showPassword:a,loading:o,error:s,setEmail:r,setPassword:i,setShowPassword:c,onSubmit:d,onForgot:l,onRegister:h,handleGoogleLogin:u}){return t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:u,className:x.google,children:[t.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:x.googleIcon}),t.jsx("span",{children:"Continuar con Google"})]}),t.jsx("div",{className:x.divider,children:t.jsx("span",{children:"o"})}),t.jsxs("form",{onSubmit:d,className:x.form,"data-error":s?"true":"false",children:[t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Email"}),t.jsx("input",{type:"email",value:e,onChange:f=>r(f.target.value),className:x.input,placeholder:""})]}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Contraseña"}),t.jsx("input",{type:a?"text":"password",value:n,onChange:f=>i(f.target.value),className:x.input,placeholder:""}),t.jsxs("div",{className:x.checkboxRow,children:[t.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:f=>c(f.target.checked)}),t.jsx("label",{htmlFor:"showPasswordLogin",className:x.checkboxLabel,children:"Mostrar contraseña"})]})]}),s&&t.jsx("p",{className:x.error,children:s}),t.jsx("button",{type:"submit",className:x.primary,disabled:o,children:o?t.jsx(Je,{}):"Iniciar Sesión"})]}),t.jsxs("p",{className:x.switch,children:["¿No tenés cuenta?",t.jsx("button",{type:"button",onClick:h,children:"Registrate"})]}),t.jsx("button",{type:"button",className:x.forgotPassword,onClick:l,children:"Olvidé mi contraseña"})]})}function q1({email:e,setEmail:n,loading:a,error:o,onSubmit:s,onBack:r}){return t.jsxs("form",{onSubmit:s,className:x.form,"data-error":o?"true":"false",children:[t.jsx("p",{className:x.message,children:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña."}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Email"}),t.jsx("input",{type:"email",value:e,name:"email",onChange:i=>n(i.target.value),className:x.input,placeholder:""})]}),o&&t.jsx("p",{className:x.error,children:o}),t.jsx("button",{type:"submit",className:x.primary,disabled:a,children:a?t.jsx(Je,{}):"Enviar código"}),t.jsx("p",{className:x.switch,children:t.jsx("button",{type:"button",onClick:r,children:"Volver"})})]})}function B1({email:e,confirmationCode:n,newPassword:a,confirmNewPassword:o,showPassword:s,loading:r,error:i,setConfirmationCode:c,setNewPassword:d,setConfirmNewPassword:l,setShowPassword:h,onSubmit:u,onBack:f}){return t.jsxs("form",{onSubmit:u,className:x.form,"data-error":i?"true":"false",children:[t.jsxs("p",{className:x.message,children:["Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a ",Yd(e),". Ingrese el código y la contraseña nueva."]}),t.jsxs("ul",{className:x.formUl,children:[t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Código de verificación"}),t.jsx("input",{type:"text",value:n,onChange:g=>c(g.target.value),className:x.input,placeholder:""})]}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Nueva contraseña"}),t.jsx("input",{type:s?"text":"password",value:a,onChange:g=>d(g.target.value),className:x.input,placeholder:"",name:"password"}),t.jsx("div",{className:x.passwordChecker,children:Mn.map((g,m)=>{const p=g.test(a);return t.jsxs("div",{className:p?x.valid:x.invalid,children:[t.jsx("div",{children:p?"✔":"○"}),t.jsx("div",{children:g.label})]},m)})})]}),t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:"Confirmar contraseña"}),t.jsx("input",{type:s?"text":"password",value:o,onChange:g=>l(g.target.value),className:x.input,placeholder:""}),t.jsxs("div",{className:x.checkboxRow,children:[t.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:s,onChange:g=>h(g.target.checked)}),t.jsx("label",{htmlFor:"showPasswordForgot",className:x.checkboxLabel,children:"Mostrar contraseñas"})]})]})]}),i&&t.jsx("p",{className:x.error,children:i}),t.jsx("button",{type:"submit",className:x.primary,style:{maxWidth:r?"revert-layer":"fit-content"},disabled:r,children:r?t.jsx(Je,{}):"Cambiar contraseña"}),t.jsx("p",{className:x.switch,children:t.jsx("button",{type:"button",onClick:f,children:"Volver"})})]})}function P1({onBackToLogin:e}){return t.jsxs("div",{className:x.form,children:[t.jsx("p",{className:x.success,children:"La contraseña fue cambiada con éxito"}),t.jsx("button",{type:"button",className:x.primary,onClick:e,children:"Iniciar Sesión"})]})}function O1({loginUrl:e,onClose:n,checkAuth:a,icon:o,COMMENTS_VARS:s}){const[r,i]=E.useState("login"),c=async()=>{if(!e)return;const d=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${d}`};return t.jsx("div",{className:x.overlay,role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const l=d.target;l&&l.id==="pop-overlay"&&n()},children:t.jsxs("div",{className:x.card,children:[t.jsxs("header",{className:x.header,children:[t.jsx("div",{className:x.logo,children:o?o():null}),t.jsx("button",{onClick:n,className:x.close,"aria-label":"Cerrar",children:t.jsx(Ct,{})})]}),r==="login"&&t.jsx(U1,{onClose:n,checkAuth:a,handleGoogleLogin:c,goToRegister:()=>i("register"),CAPTCHA_KEY:s.CAPTCHA_KEY}),r==="register"&&t.jsx(x1,{handleGoogleLogin:c,goToLogin:()=>i("login"),CAPTCHA_KEY:s.CAPTCHA_KEY})]})})}function D1({isAuthenticated:e,setIsAuthenticated:n,loginUrl:a,user:o,path:s,checkAuth:r,icon:i,COMMENTS_VARS:c,DATE_CONFIG:d}){const[l,h]=E.useState(!1),u=async()=>{{const g=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(g)}`}},f=async g=>{g.preventDefault(),a&&h(!0)};return t.jsxs(t.Fragment,{children:[l&&t.jsx(O1,{loginUrl:a,icon:i,checkAuth:r,COMMENTS_VARS:c,onClose:()=>{h(!1)}}),!e&&t.jsxs("div",{className:"auth-container",children:[t.jsx("p",{children:"Sumate a la comunidad para dejar tu comentario"}),t.jsx("a",{href:a,onClick:f,className:"login-button",children:"Iniciar Sesión"})]}),t.jsx(T1,{isAuthenticated:e,handleLogout:u,path:s,user:e?o:void 0,COMMENTS_VARS:c,DATE_CONFIG:d})]})}function M1({isVisible:e,path:n,icon:a,COMMENTS_VARS:o,DATE_CONFIG:s}){const[r,i]=E.useState(null),[c,d]=E.useState(null),l=o?.COGNITO_AUTH_PREFIX??"ASTRO_",h=E.useCallback(async()=>{if(e){if(console.log(l),document.cookie.search(l+"IS_AUTH=true")===-1){i(!1),d(null),console.log("user not logged");return}try{const m=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(m.isAuthenticated??!1),d(m.user??null)}catch(g){console.error("Error checking auth:",g),i(!1),d(null)}}},[e,l]);E.useEffect(()=>{h()},[h,e]),E.useEffect(()=>{if(!c||!e||typeof window>"u")return;const g=window;if(typeof g!="function"){console.warn("gtag no está disponible todavía");return}g.gtag("set",{user_id:c.username}),console.log("username setted successfully")},[c,e]);const u="/api/auth/login",f=t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:310,position:"relative"},children:t.jsx(Je,{})});return r===null?f:e?t.jsx(D1,{icon:a,isAuthenticated:r,setIsAuthenticated:i,loginUrl:u,user:c??void 0,checkAuth:h,path:n,COMMENTS_VARS:o,DATE_CONFIG:s}):f}const j1=({render:e,internalPath:n,section:a,currentNews:o,stylesConfig:s,icon:r,isVisibleDefault:i=!1,COMMENTS_VARS:c,DATE_CONFIG:d={PUBLIC_LNG:"es",DATE_TIMEZONE:"America/Mexico_City"}})=>{const l=E.useRef(null),[h,u]=E.useState(i);E.useEffect(()=>{if(i||h)return;const g=new IntersectionObserver(([m])=>{m?.isIntersecting&&(u(!0),g.disconnect())},{rootMargin:"0px",threshold:.1});return l.current&&g.observe(l.current),()=>g.disconnect()},[]);const f={comment:t.jsx(M1,{path:n,icon:r,isVisible:h,COMMENTS_VARS:c,DATE_CONFIG:d}),more:t.jsx($d,{section:a,currentNews:o,stylesConfig:s,isVisible:h})};return t.jsx("div",{ref:l,suppressHydrationWarning:!0,style:{...s?s["Modulo 1x3 Client"]?s["Modulo 1x3 Client"]:s["Modulo 1x3"]:{}},children:f[e]})};async function $1({publication:e,path:n,username:a,comment:o,id:s,recaptchaResponse:r,baseUrl:i,apiToken:c,securityToken:d,COMMENTS_VARS:l}){if(console.log("Adding comment with data:",{publication:e,path:n,username:a,comment:o,id:s,recaptchaResponse:r}),!e||!n||!o||!a)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,n,o,a].some(m=>typeof m!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!a.trim())return{type:"error",message:"El nombre no puede estar vacío.",status:400};if(!o.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const h=await lr(r,l);if(console.log("Verifying captcha token...",h),!h)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,f={publication:e,path:n.replace(/\|/gi,"/"),username:a??!1,text:o.trim()};s&&(f.id=s);const g=new URLSearchParams(f);try{const{data:m}=await oe.get(`${u}?${g.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":d,"x-api-token":c,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),oe.isAxiosError(m)){const p=m.response?.status??500,A=m.response?.data;return p===400?{type:"error",message:A?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:p===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:p===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:A?.message||"No se pudo enviar el comentario.",status:p}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const Q1=async({token:e,projectId:n,captchaKey:a,apiKey:o,captchaAction:s})=>{if(!e)throw new Error("No token provided");if(!n||!a||!o)throw new Error("Missing project ID or site key");if(!s)throw new Error("No action provided");try{const i=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${n}/assessments?key=${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:s}})})).json();if(!i?.tokenProperties?.valid)throw new Error(`The token was: ${i?.tokenProperties?.invalidReason}`);if(i.tokenProperties.action!==s)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return i?.riskAnalysis?.score??0}catch(r){throw console.error("Recaptcha verification failed",r),new Error(String(r))}};w.AssetsPreconnect=oo,w.AutorComponent=Ld,w.AutorHeader1=Ns,w.AutorHeader2=Es,w.BannerAdvertising=ge,w.BannerAdvertisingMiddle=$e,w.CarrouselCSR=Wc,w.CarrouselIRS=it,w.CarruselCard=Vs,w.CarruselOpinion=Ws,w.CommonServices=Ze,w.Comscore=$a,w.ContactInfoServer=Ql,w.ContactInput=bl,w.ContactSelect=Cl,w.ContactTextarea=vl,w.ContentLayout1=bt,w.ContentLayoutTema=ca,w.DEBUG_MainSlots=Id,w.DestacadoNoticias=Ds,w.DestacadoVideos=Hs,w.DynamicBlockServices=as,w.DynamicComponents=Ed,w.DynamicMainSlot=Un,w.DynamicSlot=va,w.EditorialBlock=Pl,w.ErrorComponent=wl,w.Font=go,w.Footer=hl,w.FormatAfterScripts=ao,w.FormatScripts=zn,w.GA4=Qa,w.GTM=Ga,w.GalleryHeader=Zs,w.GenerateBody=Gc,w.GenerateHead=Qc,w.Header=kl,w.IframeHeader=tr,w.ImageOffline=fs,w.ImageOnline=Ne,w.ImageOnlineClient=us,w.IssuuServices=Dc,w.ItemListSchema=lo,w.JournalistArticule2=Ls,w.JournalistGroup=qs,w.LayoutNewsComponent=da,w.LazyLoader=j1,w.LinkComponent=O,w.LiveBlogHeader=_s,w.Location=Fc,w.MainComponentServices=fi,w.Marfeel=Ha,w.MiddleSection=Xe,w.Modulo1x3=pa,w.Modulo1x3Card=Fs,w.Modulo1x4=Qs,w.Modulo1x5=Gs,w.Modulo2Columnas=Ol,w.Modulo3Columnas=js,w.ModuloNewsletter=Dl,w.ModuloOpinion=Bl,w.NewListResponseDataPH=ir,w.NewsArticle=ho,w.NewsComponent=kd,w.NewsContent=bn,w.NewsDescriptionComponent=ct,w.NextPrev=Dt,w.OrgList=uo,w.PreloadImages=Vn,w.REPORT_REASONS=je,w.Readest=gn,w.ScriptHydrator=Dd,w.SearchSection=Ud,w.Section=fe,w.SectionCard=De,w.SectionCard2=jt,w.SectionCardServerComponent=Tn,w.SectionServerComponent=$l,w.ShowSection=rs,w.SocialNetworks=Js,w.SpeculationRules=co,w.StaticSlotWrapper=Nd,w.SubscribeColumn=As,w.SubscribeRow=ys,w.SubscribeWhatsAppColumn=al,w.TagHeader=xl,w.TagSection=Us,w.TimeLine=Ss,w.TrimPathname=si,w.VideoBlock3=yl,w.VideoBlock4=Sl,w.VideoEmbeddedHeader=Rs,w.VideoSection=Od,w.VideoYoutubeHeader=er,w.VideosSchemas=mo,w.WebsiteList=fo,w.addComment=$1,w.bannersReplace=Rt,w.becomeVideoObject=gt,w.buildTagUrl=at,w.coloringByStrokeSVGs=ws,w.compileStyleProps=xn,w.cutString=Ue,w.extractRealtedNews=ni,w.formatDate=xe,w.formatDateEdiciones=ti,w.formatDateJournalistArticule=Qn,w.formatDateTimeline=Ja,w.formatNewsMeta=Ra,w.formatVideoData=so,w.generalGetData=$c,w.getCaptchaToken=k1,w.getComments=Sr,w.getConfig=K,w.getDynamicSlots=Mc,w.getEnvironmentUrl=pt,w.getEnvironmentUrlFront=Xa,w.getHydratorPath=li,w.getImageUrl=de,w.getNextMeta=Tt,w.getPage=xt,w.getPlayIcon=mn,w.getPreloadImages=ui,w.getPrevMeta=kt,w.getReportReasonLabel=Fd,w.getResponse=Gn,w.getResponsePromise=Za,w.getSchemas=en,w.getScriptReplaces=Wn,w.getSlugs=Ao,w.getTypeOfNews=ii,w.getVideoRealPath=ci,w.handleGetComments=Dn,w.initLibrary=Dr,w.metadataToJSX=no,w.metadata_defaults=os,w.parseTags=Hn,w.pathnameSplit=eo,w.processExtractedRelatedNews=ai,w.removePages=po,w.reportComment=zd,w.shareButtons=bs,w.socialIcons=yn,w.speculationRules=io,w.speculationRulesHome=ro,w.urlReplaces=to,w.usePlayIcon=sa,w.verifyCaptchaTokenEnterprise=Q1,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
|