sass-template-common 0.3.84 → 0.3.87
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.
|
@@ -10426,10 +10426,14 @@ const pg = async (e) => {
|
|
|
10426
10426
|
);
|
|
10427
10427
|
}
|
|
10428
10428
|
let s = e;
|
|
10429
|
-
const o = /<figure\b[^>]*>([\s\S]
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
i
|
|
10429
|
+
const o = /* @__PURE__ */ new Set(), r = /<figure\b[^>]*>(?:(?!<figure)[\s\S])*?<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g;
|
|
10430
|
+
let i = "";
|
|
10431
|
+
for (; i !== s; ) {
|
|
10432
|
+
i = s;
|
|
10433
|
+
const l = r.exec(s);
|
|
10434
|
+
if (!l) break;
|
|
10435
|
+
const d = l[0], m = l[1] ?? "";
|
|
10436
|
+
o.add(m);
|
|
10433
10437
|
const h = d.match(/<img\b[^>]*\balt=["']([^"']*)["']/), p = h ? h[1] : "imagen", g = m.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
|
|
10434
10438
|
let w = 0, _ = 0;
|
|
10435
10439
|
if (A) {
|
|
@@ -10458,12 +10462,12 @@ const pg = async (e) => {
|
|
|
10458
10462
|
isLarge: !1,
|
|
10459
10463
|
priorityHigh: !1
|
|
10460
10464
|
}, b = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(v))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
10461
|
-
s = s.replace(d, b);
|
|
10465
|
+
s = s.replace(d, b), r.lastIndex = 0;
|
|
10462
10466
|
}
|
|
10463
10467
|
const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, u = [...s.matchAll(c)];
|
|
10464
10468
|
for (const l of u) {
|
|
10465
10469
|
const d = l[0], m = l[1] ?? "";
|
|
10466
|
-
if (
|
|
10470
|
+
if (o.has(m)) continue;
|
|
10467
10471
|
const h = d.match(/\balt=["']([^"']*)["']/), p = h ? h[1] : "imagen", g = m.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
|
|
10468
10472
|
let w = 0, _ = 0;
|
|
10469
10473
|
if (A) {
|
|
@@ -10715,7 +10719,7 @@ async function Ig(e) {
|
|
|
10715
10719
|
) }),
|
|
10716
10720
|
/* @__PURE__ */ a(N0, { summary: t.main.summary }),
|
|
10717
10721
|
/* @__PURE__ */ a(
|
|
10718
|
-
"
|
|
10722
|
+
"main",
|
|
10719
10723
|
{
|
|
10720
10724
|
className: cn.contentNews,
|
|
10721
10725
|
suppressHydrationWarning: !0,
|
|
@@ -124,7 +124,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
124
124
|
</div>
|
|
125
125
|
${i(n.length)}
|
|
126
126
|
</div>
|
|
127
|
-
`}const md=e=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"currentColor",...e,children:t.jsx("path",{fill:"currentColor",d:"M9.99 0C4.47 0 0 4.48 0 10s4.47 10 9.99 10C15.52 20 20 15.52 20 10S15.52 0 9.99 0Zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 16.92 6ZM10 2.04c.83 1.2 1.48 2.53 1.91 3.96H8.09C8.52 4.57 9.17 3.24 10 2.04ZM2.26 12C2.1 11.36 2 10.69 2 10s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H2.26Zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 3.08 14Zm2.95-8H3.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 6.03 6ZM10 17.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96ZM12.34 12H7.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2Zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM14.36 12c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38Z"})}),rr={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},ir=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],h=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-embedded");return h?.code?t.jsxs("div",{className:rr.content,children:[t.jsx("div",{dangerouslySetInnerHTML:{__html:typeof h.code=="string"?h.code:""}}),h?.title&&t.jsx("p",{className:rr.title,children:h.title})]}):null}catch{return null}},xa={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},cr=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],h=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-youtube");return!h?.code||typeof h.code!="string"?null:t.jsxs("div",{className:xa.content,children:[t.jsx("iframe",{className:xa.iframeStyled,src:`https://www.youtube.com/embed/${h.code}`,frameBorder:"0",allowFullScreen:!0}),h?.title&&t.jsx("p",{className:xa.title,children:h.title})]})}catch{return null}},gd={content:"_content_ezbiw_1"},lr=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNews({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const c=r[0]?.external?.iframe;return typeof c!="string"||c.trim()===""?null:t.jsx("div",{className:gd.content,dangerouslySetInnerHTML:{__html:c}})}catch{return null}},pd={content:"_content_156j7_1"},gt={videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe",fotoGaleria:"fotogaleria"},Ad={[gt.videoEmbedded]:ir,[gt.videoYouTube]:cr,[gt.iframe]:lr},wd=({news:e,commonServices:n})=>{const{config:a,info:o}=e,s=a.articlepreview,r=o.link.internal,i=s?Ad[s]:null;return i?t.jsx("div",{className:pd.content,children:t.jsx(i,{newsformated:e,internal:r,commonServices:n})}):null},re={content:"_content_1wumw_1",imageContent:"_imageContent_1wumw_9",width1Autor:"_width1Autor_1wumw_18",width2Autor:"_width2Autor_1wumw_22",width3Autor:"_width3Autor_1wumw_26",imageAutor:"_imageAutor_1wumw_30",imageStyled:"_imageStyled_1wumw_69",contentIconStyled:"_contentIconStyled_1wumw_70",avatarContent:"_avatarContent_1wumw_87",socialActionsRow:"_socialActionsRow_1wumw_95",journalistSection:"_journalistSection_1wumw_118",authorsInfoRow:"_authorsInfoRow_1wumw_127",journalistInfo:"_journalistInfo_1wumw_142",journalistInfoLink:"_journalistInfoLink_1wumw_143",journalistInfoDate:"_journalistInfoDate_1wumw_160",socialNetworkSection:"_socialNetworkSection_1wumw_192",avatarStyled:"_avatarStyled_1wumw_210",article:"_article_1wumw_215",socialButton:"_socialButton_1wumw_219",facebookStyled:"_facebookStyled_1wumw_235",emailStyled:"_emailStyled_1wumw_239",xStyled:"_xStyled_1wumw_243",linkedinStyled:"_linkedinStyled_1wumw_247",whatsappStyled:"_whatsappStyled_1wumw_251",socialActionLink:"_socialActionLink_1wumw_255",clipboardButton:"_clipboardButton_1wumw_289",googleProfileButton:"_googleProfileButton_1wumw_325"},yd={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(Es,{className:e}),solid:e=>t.jsx(Ss,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(nt,{className:e}),solid:e=>t.jsx(nt,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(ua,{className:e}),solid:e=>t.jsx(ha,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(Ns,{className:e}),solid:e=>t.jsx(Is,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(ft,{className:e}),solid:e=>t.jsx(ft,{className:e})}}};function bd({noteShare:e}){const n=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?t.jsxs("div",{className:re.socialNetworkSection,children:[e.options?.map(a=>{const o=yd[a];if(!o)return null;const s=e.variant==="outline"?o.icon.outline:o.icon.solid,r=o.url(n);return t.jsx(B,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${re.socialButton} ${re[`${a.toLowerCase()}Button`]??""} ${re[`${a.toLowerCase()}Styled`]}`,children:s("")},a)}),t.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[re.clipboardButton,"clipbtn-id"].join(" "),children:t.jsx(fa,{})}),t.jsx("button",{type:"button","aria-label":"share",className:[re.clipboardButton,"sharebtn-id"].join(" "),children:t.jsx(ks,{})})]}):null}const Cd=async e=>{if(!e.news||!e.news.authors)return null;const{news:n,socials:a,texts:o}=e,s=n.authors.map(c=>c.internaluser?`<a href="${`/${e.paths.autor}/${c.name}`}">${c.fullname}</a>`:c.fullname).join(", "),r=()=>n.authors.length===1?re.width1Autor:n.authors.length===2?re.width2Autor:n.authors.length===3?re.width3Autor:"",{CONFIG_shareOnlyWhatsApp:i}=K();return n.config?.showauthor&&t.jsx("div",{className:`${re.content} sass-journalist-articule-4`,children:t.jsxs("div",{className:re.avatarContent,children:[t.jsxs("div",{className:re.socialActionsRow,children:[t.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[i&&t.jsxs("a",{className:re.socialActionLink,href:a[Ta.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[t.jsx("span",{children:o.WhatsAppLinkJournalist}),t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:t.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_2906_6960",children:t.jsx("rect",{width:"30",height:"30",fill:"white"})})})]})]}),e.noteShare?.googleProfile&&e.noteShare?.googleProfile!==""&&t.jsxs(B,{href:e.noteShare?.googleProfile??"",className:re.socialActionLink,children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:t.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),t.jsx("span",{children:"Seguir en"}),t.jsx(_d,{})]})]}),t.jsx("div",{style:{width:"100%"},"data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:t.jsx(bd,{noteShare:e.noteShare})})]}),t.jsxs("section",{className:re.journalistSection,children:[t.jsxs("div",{className:re.authorsInfoRow,children:[t.jsx("div",{className:`${re.imageContent} ${r()}`,style:{width:`${n.authors?.length>2?n.authors?.length*30:n.authors?.length*40}px`},children:Array.isArray(n.authors)&&n.authors?.map(async(c,h)=>c.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor",className:`${re.imageStyled} ${re.imageAutor} `,src:await de(c.image.sizes[0]?.url||"")},c.fullname):t.jsx("div",{className:`${re.contentIconStyled} ${re.imageAutor}`,children:e.autorIcon},c.fullname))}),t.jsx("div",{className:re.journalistInfoLink,dangerouslySetInnerHTML:{__html:`${o.JournalistPrefix} <h3 style="padding:0px;">${s??"Redaccion"}</h3>`}})]}),n.config?.showtime&&t.jsx("span",{className:re.journalistInfoDate,children:on(n.info.date.modified)})]})]})})},_d=()=>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:"M24 12.2727C24 11.4218 23.9221 10.6036 23.7774 9.81818H12.2449V14.4655H18.8349C18.5455 15.96 17.6772 17.2255 16.3748 18.0764V21.0982H20.3488C22.6642 19.0036 24 15.9273 24 12.2727Z",fill:"#4285F4"}),t.jsx("path",{d:"M12.2449 24C15.551 24 18.3228 22.9309 20.3488 21.0982L16.3748 18.0764C15.2839 18.7964 13.8924 19.2327 12.2449 19.2327C9.06122 19.2327 6.35622 17.1273 5.38776 14.2909H1.31354V17.3891C3.32839 21.3055 7.45826 24 12.2449 24Z",fill:"#34A853"}),t.jsx("path",{d:"M5.38776 14.28C5.14286 13.56 4.99814 12.7964 4.99814 12C4.99814 11.2036 5.14286 10.44 5.38776 9.72V6.62182H1.31354C0.478664 8.23636 0 10.0582 0 12C0 13.9418 0.478664 15.7636 1.31354 17.3782L4.48609 14.9564L5.38776 14.28Z",fill:"#FBBC05"}),t.jsx("path",{d:"M12.2449 4.77818C14.0482 4.77818 15.6512 5.38909 16.9314 6.56727L20.4378 3.13091C18.3117 1.18909 15.551 0 12.2449 0C7.45826 0 3.32839 2.69455 1.31354 6.62182L5.38776 9.72C6.35622 6.88364 9.06122 4.77818 12.2449 4.77818Z",fill:"#EA4335"})]}),vd=e=>e.replace(/<iframe(?![^>]*\bloading=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe loading="lazy"')),Sd=e=>e.replace(/<iframe(?![^>]*\btitle=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe title="frame custom content"')),Nd=e=>e.replace(/<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,""),Id=async e=>{const{PUBLIC_IS_OFFLINE:n}=K();if(!(n==="true")){const l=/<img\b[^>]*\bsrc=["']([^"']+)["']/g,d=[...e.matchAll(l)],u={};for(const f of d){const g=f[1]??"",m=e.includes(g)?{url:g}:null;if(m){const p=await de(m.url)||"";u[g]=p}}return e.replace(l,(f,g)=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${u[g]||g}"`)}let o=e;const s=/<figure\b[^>]*>([\s\S]*?)<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g,r=[...e.matchAll(s)],i=new Set;for(const l of r){const d=l[0],u=l[2]??"";i.add(u);const f=d.match(/<img\b[^>]*\balt=["']([^"']*)["']/),g=f?f[1]:"imagen",m=u.match(/__scale=([^&"']+)/),p=m?decodeURIComponent(m[1]):null;let A=0,y=0;if(p){const k=p.match(/w:(\d+)/),O=p.match(/h:(\d+)/);A=k?parseInt(k[1]):0,y=O?parseInt(O[1]):0}const v={preview:{sizes:[{scale:p||`w:${A},h:${y},t:2`,url:u,width:A,height:y}],original:{url:u.split("?")[0],width:A,height:y},copyright:!1,description:g,photographer:!1},isLarge:!1,priorityHigh:!1},C=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(v))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;o=o.replace(d,C)}const c=/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g,h=[...o.matchAll(c)];for(const l of h){const d=l[0],u=l[1]??"";if(i.has(u))continue;const f=d.match(/\balt=["']([^"']*)["']/),g=f?f[1]:"imagen",m=u.match(/__scale=([^&"']+)/),p=m?decodeURIComponent(m[1]):null;let A=0,y=0;if(p){const k=p.match(/w:(\d+)/),O=p.match(/h:(\d+)/);A=k?parseInt(k[1]):0,y=O?parseInt(O[1]):0}const v={preview:{sizes:[{scale:p||`w:${A},h:${y},t:2`,url:u,width:A,height:y}],original:{url:u.split("?")[0],width:A,height:y},copyright:!1,description:g,photographer:!1},isLarge:!1,priorityHigh:!1},C=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(v))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;o=o.replace(d,C)}return o},Ed=(e,n)=>{const a={2:1,4:2,7:3,10:4,13:5};let o=0,s=e;const r=/<(p|li|ul|ol)>\s*<\/\1>/gi,i=/<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;do s=e.replace(r,"").replace(i,"");while(s.match(r)||s.match(i));return s=s.replace(/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,c=>{const h=c.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${h}[\\s\\S]*?<\\/blockquote>`,"gi").test(s)){o++;const d=n.find(u=>u.key===`block_2_${a[o]}`);return d&&d.show?`${c}<div class="banner-context">${d.value}</div>`:c}return c}),s},kd=e=>{const n=/<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g,a=[...e.matchAll(n)];let o="",s=0;for(const r of a){const[i,c=""]=r,h=r.index,l=h+i.length;o+=e.slice(s,h);const u=[...c.matchAll(/data-src="([^"]+)"/g)].map(m=>m[1]).map(m=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${m}" class="carrusel-note-item" width="800" height="469"/>`),f="gallery_embeded"+h.toString(),g=fd({slot_id:f,children:u,visibleItems:1,cardGap:0});o+=g,s=l}return o+=e.slice(s),o},Td=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],h=i[1]??"",l=a.find(S=>h.includes(S?.[0]?.info.link.internal||""));if(!l||!l[0])continue;const d=l[0].preview?.sizes?.[0],u=d?await de(d.url):"",f=l[0].info.section?.url??"#",g=l[0].info.section?.name??"Sección",m=l[0].info.link?.url??"#",p=l[0].main?.title.article??"Título",A=(await Promise.all(l[0].preview?.sizes?.map(async(S,v)=>{const I=await de(S.url);return v===0?`<source srcset="${I}" media="(width >= 900px)"/>`:`<source srcset="${I}" media="(width < 900px)"/>`}))).reduce((S,v)=>S+=v,""),y=`
|
|
127
|
+
`}const md=e=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"currentColor",...e,children:t.jsx("path",{fill:"currentColor",d:"M9.99 0C4.47 0 0 4.48 0 10s4.47 10 9.99 10C15.52 20 20 15.52 20 10S15.52 0 9.99 0Zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 16.92 6ZM10 2.04c.83 1.2 1.48 2.53 1.91 3.96H8.09C8.52 4.57 9.17 3.24 10 2.04ZM2.26 12C2.1 11.36 2 10.69 2 10s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H2.26Zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 3.08 14Zm2.95-8H3.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 6.03 6ZM10 17.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96ZM12.34 12H7.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2Zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM14.36 12c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38Z"})}),rr={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},ir=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],h=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-embedded");return h?.code?t.jsxs("div",{className:rr.content,children:[t.jsx("div",{dangerouslySetInnerHTML:{__html:typeof h.code=="string"?h.code:""}}),h?.title&&t.jsx("p",{className:rr.title,children:h.title})]}):null}catch{return null}},xa={content:"_content_cu8lm_1",title:"_title_cu8lm_18"},cr=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNewsMultimedia({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const i=r[0],h=(Array.isArray(i?.videos)?i.videos:[]).find(l=>l?.type==="video-youtube");return!h?.code||typeof h.code!="string"?null:t.jsxs("div",{className:xa.content,children:[t.jsx("iframe",{className:xa.iframeStyled,src:`https://www.youtube.com/embed/${h.code}`,frameBorder:"0",allowFullScreen:!0}),h?.title&&t.jsx("p",{className:xa.title,children:h.title})]})}catch{return null}},gd={content:"_content_ezbiw_1"},lr=async({newsformated:e,internal:n,commonServices:a})=>{if(!n)return null;try{const o=e?.preview?.sizes?.[0]?.scale??void 0,r=(await a.getNews({path:n,imagesizes:o}))?.data?.data;if(!Array.isArray(r)||r.length===0)return null;const c=r[0]?.external?.iframe;return typeof c!="string"||c.trim()===""?null:t.jsx("div",{className:gd.content,dangerouslySetInnerHTML:{__html:c}})}catch{return null}},pd={content:"_content_156j7_1"},gt={videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe",fotoGaleria:"fotogaleria"},Ad={[gt.videoEmbedded]:ir,[gt.videoYouTube]:cr,[gt.iframe]:lr},wd=({news:e,commonServices:n})=>{const{config:a,info:o}=e,s=a.articlepreview,r=o.link.internal,i=s?Ad[s]:null;return i?t.jsx("div",{className:pd.content,children:t.jsx(i,{newsformated:e,internal:r,commonServices:n})}):null},re={content:"_content_1wumw_1",imageContent:"_imageContent_1wumw_9",width1Autor:"_width1Autor_1wumw_18",width2Autor:"_width2Autor_1wumw_22",width3Autor:"_width3Autor_1wumw_26",imageAutor:"_imageAutor_1wumw_30",imageStyled:"_imageStyled_1wumw_69",contentIconStyled:"_contentIconStyled_1wumw_70",avatarContent:"_avatarContent_1wumw_87",socialActionsRow:"_socialActionsRow_1wumw_95",journalistSection:"_journalistSection_1wumw_118",authorsInfoRow:"_authorsInfoRow_1wumw_127",journalistInfo:"_journalistInfo_1wumw_142",journalistInfoLink:"_journalistInfoLink_1wumw_143",journalistInfoDate:"_journalistInfoDate_1wumw_160",socialNetworkSection:"_socialNetworkSection_1wumw_192",avatarStyled:"_avatarStyled_1wumw_210",article:"_article_1wumw_215",socialButton:"_socialButton_1wumw_219",facebookStyled:"_facebookStyled_1wumw_235",emailStyled:"_emailStyled_1wumw_239",xStyled:"_xStyled_1wumw_243",linkedinStyled:"_linkedinStyled_1wumw_247",whatsappStyled:"_whatsappStyled_1wumw_251",socialActionLink:"_socialActionLink_1wumw_255",clipboardButton:"_clipboardButton_1wumw_289",googleProfileButton:"_googleProfileButton_1wumw_325"},yd={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(Es,{className:e}),solid:e=>t.jsx(Ss,{className:e})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(nt,{className:e}),solid:e=>t.jsx(nt,{className:e})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(ua,{className:e}),solid:e=>t.jsx(ha,{className:e})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(Ns,{className:e}),solid:e=>t.jsx(Is,{className:e})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>t.jsx(ft,{className:e}),solid:e=>t.jsx(ft,{className:e})}}};function bd({noteShare:e}){const n=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");return e?t.jsxs("div",{className:re.socialNetworkSection,children:[e.options?.map(a=>{const o=yd[a];if(!o)return null;const s=e.variant==="outline"?o.icon.outline:o.icon.solid,r=o.url(n);return t.jsx(B,{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`Compartir en ${a}`,className:`${re.socialButton} ${re[`${a.toLowerCase()}Button`]??""} ${re[`${a.toLowerCase()}Styled`]}`,children:s("")},a)}),t.jsx("button",{type:"button","data-text":"Link copiado","data-active":"false","aria-label":"copy",className:[re.clipboardButton,"clipbtn-id"].join(" "),children:t.jsx(fa,{})}),t.jsx("button",{type:"button","aria-label":"share",className:[re.clipboardButton,"sharebtn-id"].join(" "),children:t.jsx(ks,{})})]}):null}const Cd=async e=>{if(!e.news||!e.news.authors)return null;const{news:n,socials:a,texts:o}=e,s=n.authors.map(c=>c.internaluser?`<a href="${`/${e.paths.autor}/${c.name}`}">${c.fullname}</a>`:c.fullname).join(", "),r=()=>n.authors.length===1?re.width1Autor:n.authors.length===2?re.width2Autor:n.authors.length===3?re.width3Autor:"",{CONFIG_shareOnlyWhatsApp:i}=K();return n.config?.showauthor&&t.jsx("div",{className:`${re.content} sass-journalist-articule-4`,children:t.jsxs("div",{className:re.avatarContent,children:[t.jsxs("div",{className:re.socialActionsRow,children:[t.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[i&&t.jsxs("a",{className:re.socialActionLink,href:a[Ta.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[t.jsx("span",{children:o.WhatsAppLinkJournalist}),t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:t.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_2906_6960",children:t.jsx("rect",{width:"30",height:"30",fill:"white"})})})]})]}),e.noteShare?.googleProfile&&e.noteShare?.googleProfile!==""&&t.jsxs(B,{href:e.noteShare?.googleProfile??"",className:re.socialActionLink,children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:t.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),t.jsx("span",{children:"Seguir en"}),t.jsx(_d,{})]})]}),t.jsx("div",{style:{width:"100%"},"data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:t.jsx(bd,{noteShare:e.noteShare})})]}),t.jsxs("section",{className:re.journalistSection,children:[t.jsxs("div",{className:re.authorsInfoRow,children:[t.jsx("div",{className:`${re.imageContent} ${r()}`,style:{width:`${n.authors?.length>2?n.authors?.length*30:n.authors?.length*40}px`},children:Array.isArray(n.authors)&&n.authors?.map(async(c,h)=>c.image?t.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"autor",className:`${re.imageStyled} ${re.imageAutor} `,src:await de(c.image.sizes[0]?.url||"")},c.fullname):t.jsx("div",{className:`${re.contentIconStyled} ${re.imageAutor}`,children:e.autorIcon},c.fullname))}),t.jsx("div",{className:re.journalistInfoLink,dangerouslySetInnerHTML:{__html:`${o.JournalistPrefix} <h3 style="padding:0px;">${s??"Redaccion"}</h3>`}})]}),n.config?.showtime&&t.jsx("span",{className:re.journalistInfoDate,children:on(n.info.date.modified)})]})]})})},_d=()=>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:"M24 12.2727C24 11.4218 23.9221 10.6036 23.7774 9.81818H12.2449V14.4655H18.8349C18.5455 15.96 17.6772 17.2255 16.3748 18.0764V21.0982H20.3488C22.6642 19.0036 24 15.9273 24 12.2727Z",fill:"#4285F4"}),t.jsx("path",{d:"M12.2449 24C15.551 24 18.3228 22.9309 20.3488 21.0982L16.3748 18.0764C15.2839 18.7964 13.8924 19.2327 12.2449 19.2327C9.06122 19.2327 6.35622 17.1273 5.38776 14.2909H1.31354V17.3891C3.32839 21.3055 7.45826 24 12.2449 24Z",fill:"#34A853"}),t.jsx("path",{d:"M5.38776 14.28C5.14286 13.56 4.99814 12.7964 4.99814 12C4.99814 11.2036 5.14286 10.44 5.38776 9.72V6.62182H1.31354C0.478664 8.23636 0 10.0582 0 12C0 13.9418 0.478664 15.7636 1.31354 17.3782L4.48609 14.9564L5.38776 14.28Z",fill:"#FBBC05"}),t.jsx("path",{d:"M12.2449 4.77818C14.0482 4.77818 15.6512 5.38909 16.9314 6.56727L20.4378 3.13091C18.3117 1.18909 15.551 0 12.2449 0C7.45826 0 3.32839 2.69455 1.31354 6.62182L5.38776 9.72C6.35622 6.88364 9.06122 4.77818 12.2449 4.77818Z",fill:"#EA4335"})]}),vd=e=>e.replace(/<iframe(?![^>]*\bloading=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe loading="lazy"')),Sd=e=>e.replace(/<iframe(?![^>]*\btitle=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe title="frame custom content"')),Nd=e=>e.replace(/<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,""),Id=async e=>{const{PUBLIC_IS_OFFLINE:n}=K();if(!(n==="true")){const l=/<img\b[^>]*\bsrc=["']([^"']+)["']/g,d=[...e.matchAll(l)],u={};for(const f of d){const g=f[1]??"",m=e.includes(g)?{url:g}:null;if(m){const p=await de(m.url)||"";u[g]=p}}return e.replace(l,(f,g)=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${u[g]||g}"`)}let o=e;const s=new Set,r=/<figure\b[^>]*>(?:(?!<figure)[\s\S])*?<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g;let i="";for(;i!==o;){i=o;const l=r.exec(o);if(!l)break;const d=l[0],u=l[1]??"";s.add(u);const f=d.match(/<img\b[^>]*\balt=["']([^"']*)["']/),g=f?f[1]:"imagen",m=u.match(/__scale=([^&"']+)/),p=m?decodeURIComponent(m[1]):null;let A=0,y=0;if(p){const k=p.match(/w:(\d+)/),O=p.match(/h:(\d+)/);A=k?parseInt(k[1]):0,y=O?parseInt(O[1]):0}const v={preview:{sizes:[{scale:p||`w:${A},h:${y},t:2`,url:u,width:A,height:y}],original:{url:u.split("?")[0],width:A,height:y},copyright:!1,description:g,photographer:!1},isLarge:!1,priorityHigh:!1},C=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(v))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;o=o.replace(d,C),r.lastIndex=0}const c=/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g,h=[...o.matchAll(c)];for(const l of h){const d=l[0],u=l[1]??"";if(s.has(u))continue;const f=d.match(/\balt=["']([^"']*)["']/),g=f?f[1]:"imagen",m=u.match(/__scale=([^&"']+)/),p=m?decodeURIComponent(m[1]):null;let A=0,y=0;if(p){const k=p.match(/w:(\d+)/),O=p.match(/h:(\d+)/);A=k?parseInt(k[1]):0,y=O?parseInt(O[1]):0}const v={preview:{sizes:[{scale:p||`w:${A},h:${y},t:2`,url:u,width:A,height:y}],original:{url:u.split("?")[0],width:A,height:y},copyright:!1,description:g,photographer:!1},isLarge:!1,priorityHigh:!1},C=`<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(v))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;o=o.replace(d,C)}return o},Ed=(e,n)=>{const a={2:1,4:2,7:3,10:4,13:5};let o=0,s=e;const r=/<(p|li|ul|ol)>\s*<\/\1>/gi,i=/<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;do s=e.replace(r,"").replace(i,"");while(s.match(r)||s.match(i));return s=s.replace(/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,c=>{const h=c.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${h}[\\s\\S]*?<\\/blockquote>`,"gi").test(s)){o++;const d=n.find(u=>u.key===`block_2_${a[o]}`);return d&&d.show?`${c}<div class="banner-context">${d.value}</div>`:c}return c}),s},kd=e=>{const n=/<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g,a=[...e.matchAll(n)];let o="",s=0;for(const r of a){const[i,c=""]=r,h=r.index,l=h+i.length;o+=e.slice(s,h);const u=[...c.matchAll(/data-src="([^"]+)"/g)].map(m=>m[1]).map(m=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${m}" class="carrusel-note-item" width="800" height="469"/>`),f="gallery_embeded"+h.toString(),g=fd({slot_id:f,children:u,visibleItems:1,cardGap:0});o+=g,s=l}return o+=e.slice(s),o},Td=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],h=i[1]??"",l=a.find(S=>h.includes(S?.[0]?.info.link.internal||""));if(!l||!l[0])continue;const d=l[0].preview?.sizes?.[0],u=d?await de(d.url):"",f=l[0].info.section?.url??"#",g=l[0].info.section?.name??"Sección",m=l[0].info.link?.url??"#",p=l[0].main?.title.article??"Título",A=(await Promise.all(l[0].preview?.sizes?.map(async(S,v)=>{const I=await de(S.url);return v===0?`<source srcset="${I}" media="(width >= 900px)"/>`:`<source srcset="${I}" media="(width < 900px)"/>`}))).reduce((S,v)=>S+=v,""),y=`
|
|
128
128
|
<span data-src="${h}">
|
|
129
129
|
<picture style='display: flex'>
|
|
130
130
|
${A}
|
|
@@ -155,5 +155,5 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
155
155
|
${I}
|
|
156
156
|
<figcaption>${O}</figcaption>
|
|
157
157
|
</figure>
|
|
158
|
-
`}}catch(y){console.error("insertVideos error for",g,y),A=""}else A=f;o=u,a+=A,s.lastIndex=u}return a+=e.slice(o),a=Nd(a),a}async function Ud(e){const{news:n,banners:a,newsRelatedResponses:o,newsRelatedListResponses:s,slug:r,itemList:i,socials:c,getVideos:h,commonServices:l}=e;let d=n?.body?.rendered??"";d=d.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),d=d.replace(/ /g,""),d=Ed(d,a),d=kd(d),d=await Id(d),d=await Td(d,e.texts,o),d=await xd(d,h),d=vd(d),d=Sd(d);const u=n.main.sources??[],{NEWS_JOURNALIST_COMPONENT:f}=K(),g=n.config.articlepreview===gt.fotoGaleria&&n.hascontent?.hasgalleryimages;return t.jsxs("div",{className:Pn.content,children:[r!=="liveblogs"&&e.showHeaderImage?g?t.jsx(sr,{commonServices:l,newsformated:n,internal:n.info.link.internal}):t.jsx(Us,{preview:n.preview}):null,t.jsx(pe,{banners:a,name:"block_1"}),t.jsx("div",{className:Pn.journalistArticleContent,children:f==="op1"?t.jsx(dd,{autorIcon:e.autorIcon,socials:c,news:n,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):t.jsx(Cd,{autorIcon:e.autorIcon,socials:c,news:n,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),t.jsx(ud,{summary:n.main.summary}),t.jsx("div",{className:Pn.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:d}}),t.jsx(id,{texts:e.texts,itemList:i,banners:a,slug:r,getVideos:h,newsRelatedListResponses:s??[]}),u.length>0&&t.jsxs("div",{className:Pn.noteSource,children:[t.jsx(md,{}),t.jsx("p",{children:e.texts.noteSource+(u.length===1?"":"s")+": "+u.map(m=>m.name).join(", ")})]}),n&&n.hascontent&&n.hascontent.hasembeddedtwitter&&t.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const Ld=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(ht,{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(Qt,{...c,titleGradient:!0,paths:e.paths},i)})})})},qd=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(ht,{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(Qt,{...c,titleGradient:!0,paths:e.paths},i)})})})},Bd=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(ht,{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(Qt,{...c,key:i,titleGradient:!0,paths:e.paths})})})})},On=e=>{const n={};for(const a in e)a.startsWith("--")&&(n[a]=e[a]);return n},pt={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"},Pd=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:pt.headerSection,children:t.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:pt.image,href:s?.info?.link?.url,target:s?.info?.link?.target,children:[t.jsxs("div",{className:pt.blockHeadContainer,children:[t.jsx("p",{className:pt.title,children:s?.main?.title.home}),s?.main?.subtitle?.rendered&&t.jsx("p",{className:pt.subtitle,children:s?.main?.subtitle?.striped})]}),t.jsx(Ne,{preview:s.preview})]})}),t.jsxs("div",{className:pt.containerCards,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),t.jsx("div",{className:pt.newsContent,children:Array.isArray(r)&&r.map((c,h)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:i?c.main.title.home:c.main.title.section}}};return t.jsx("div",{style:{order:h},children:t.jsx($e,{...l,isVideo:o,paths:e.paths})},h)})})]})]})},Od=({printEdition:e,title:n})=>e&&t.jsx(fe,{title:n,children:t.jsx("div",{className:"iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),dr={banner:e=>t.jsx(pe,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>t.jsx(Cn,{...e}),"Modulo 1x3":e=>t.jsx(Na,{...e}),"Modulo 1x4":e=>t.jsx(Js,{...e}),"Modulo 1x5":e=>t.jsx(Zs,{...e}),"Destacado noticias":e=>t.jsx(Vs,{...e}),"Destacado full width":e=>t.jsx(Pd,{...e}),"Destacado videos":e=>t.jsx(Xs,{...e}),"Carrusel card":e=>t.jsx(tr,{...e}),"Carrusel story":e=>t.jsx(Ld,{...e}),"Carrusel owl":e=>t.jsx(qd,{...e}),"Modulo fotogaleria":e=>t.jsx(Bd,{...e}),"Carrusel opinion":e=>t.jsx(nr,{...e}),"Modulo 1x3 card":e=>t.jsx(er,{...e}),"Modulo iframe":e=>t.jsx(Od,{...e})};function Kt({component:e,slot_id:n,data:a,banners:o}){if(o)return dr[e]&&t.jsx("div",{className:"home-slot",style:On(a),children:dr[e]({...a,banners:o,slot_id:n})})}function Dd({children:e,stylesConfigEntry:n}){return t.jsx("div",{className:"home-slot",style:On(n),children:e})}const hr={Diario:e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(Hs,{...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(Hs,{...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(kt,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>t.jsx(jl,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>t.jsx(Ml,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},Dn=({component:e,data:n,banners:a,rightOnlyBanner:o})=>t.jsx("div",{style:On(n),children:hr[e]&&hr[e]({...n,rightOnlyBanner:o,banners:a})}),Md=({slots:e,DYNAMIC_SLOT_SUBINDEXES:n,stylesConfig:a,AutorIcon:o,config:s,banners:r,showTagBySection:i})=>{const c=[],l=n,d=Object.keys(e).length/l;for(let u=1;u<=d;u++)for(let f=1;f<=l;f++){const g="Home_"+u+"_"+f;!e[g]||!e[g].blockSass||!e[g].blockSass[0]||!e[g].blockSass[0].value||!e[g].blockSass[0].block||e[g].blockSass[0].block==="No Mostrar"||(e[g].blockSass[0]?.block==="Modulo iframe"?c.push(t.jsxs(da,{show:!!e[g].blockSass[0].value,order:(u-1)*l+(f-1),children:[t.jsx(Kt,{component:e[g].blockSass[0].block,banners:r,slot_id:g,data:{printEdition:e[g]?.blockSass[0].value,title:e[g]?.blockSass[0].title??"",titleUrl:e[g].blockSass[0].link??void 0}}),t.jsx(He,{children:t.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f)):c.push(t.jsxs(da,{show:!!e[g].content?.data,order:(u-1)*l+(f-1),children:[t.jsx(Kt,{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(He,{children:t.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f)))}return c},jd=({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,h)=>({...e?.news,...n[c],data:r.slice(0,h),paths:a.paths});return t.jsxs(t.Fragment,{children:[t.jsx(Dn,{component:"Super",data:i("Super",1),banners:o}),t.jsx(He,{children:t.jsx(je,{banners:o,index:1})}),t.jsx(Dn,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:o}),t.jsx(He,{children:t.jsx(je,{banners:o,index:1})}),t.jsx(Dn,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:o}),t.jsx(He,{children:t.jsx(je,{banners:o,index:1})})]})},$d=e=>{const{config:n}=e,a=n.articlepreview;return!![gt.videoEmbedded,gt.videoYouTube,gt.iframe].includes(a)},Gd=async e=>{const{custom_complement:n,ranking:a=[],banners:o,autor:s=[],news:r=[],newsRelatedResponses:i=[],newsRelatedListResponses:c=[],itemList:h=[],socials:l,getVideos:d}=e,u=e.slug==="liveblogs",{SHOW_NEWS_MORE_NEWS:f,SHOW_NEWS_RELATED_NEWS:g,MORE_NEWS_SSR:m}=K();if(!(!r||!r[0]))return t.jsx(t.Fragment,{children:t.jsxs(Jl,{className:Wt.contentLayout2,children:[t.jsx(Xl,{option:e.slug,news:r,paths:e.paths,headerSectionStyles:e.headerSectionStyles}),t.jsx(je,{banners:o,index:1}),!u&&e.commonServices&&t.jsx(wd,{news:r[0],commonServices:e.commonServices}),t.jsx(Zl,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:h,ranking:a,readestCustomStyles:e.readestCustomStyles,bannerTop:t.jsx(pe,{banners:o??[],name:"right_1"}),banner:t.jsx(pe,{banners:o??[],name:"right_2"}),complement:t.jsxs("div",{id:"comentarios",className:Wt.complementContent,suppressHydrationWarning:!0,children:[s.length>0&&t.jsx(Gs,{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}),r[0]?.keywords?.tags&&r[0]?.keywords?.tags?.length>0&&t.jsx("div",{className:`${Wt.tagContent} sass-note-tags-content`,children:t.jsx($s,{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",{className:Wt.commentsSeparator,suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"comment",internalPath:e.internalPath,API_ENV:e.API_ENV}))}),t.jsx(He,{children:t.jsx(je,{banners:o,index:2})}),g&&t.jsxs(t.Fragment,{children:[t.jsx(Kt,{component:"Carrusel card",banners:[],slot_id:"Nota_1",data:{...e.stylesConfig["Carrusel card"],content:e.relatedNewsList??[],title:e.texts.relatedNewsTitle,titleUrl:void 0,paths:e.paths}}),t.jsx(He,{children:t.jsx(je,{banners:o,index:3})})]}),f&&t.jsxs(t.Fragment,{children:[m?t.jsx(Kt,{component:"Modulo 1x3",banners:[],slot_id:"Nota_2",data:{...e.stylesConfig?e.stylesConfig["Modulo 1x3 Client"]?e.stylesConfig["Modulo 1x3 Client"]:e.stylesConfig["Modulo 1x3"]:{},content:e.moreNewsSSR??[],title:e.texts.moreNewsTitle,paths:e.paths,titleUrl:void 0}}):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??"",internalPath:e.internalPath,paths:e.paths,API_ENV:e.API_ENV,fetchConfig:e.fetchConfig}))})}),t.jsx(He,{children:t.jsx(je,{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(Ud,{texts:e.texts,autorIcon:e.autorIcon,socials:l,news:r[0],banners:o,newsRelatedResponses:i,newsRelatedListResponses:c,itemList:h,slug:e.slug,getVideos:d,noteShare:e.noteShare,paths:e.paths,showHeaderImage:!$d(r[0]),commonServices:e.commonServices}),t.jsx(pe,{banners:o??[],name:"block_3"})]})})]})})},Jt={content:"_content_1046n_1",buttonStyled:"_buttonStyled_1046n_9",searchStyled:"_searchStyled_1046n_20",inputStyled:"_inputStyled_1046n_36",inputStyledTest:"_inputStyledTest_1046n_55"},Qd=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"})})}),Hd=e=>t.jsx("form",{className:Jt.content,children:t.jsxs("div",{className:`${Jt.inputStyled} sass-buscar-form`,children:[t.jsx("input",{className:Jt.inputStyledTest,defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),t.jsx("button",{className:Jt.buttonStyled,type:"submit",children:t.jsx(Qd,{className:Jt.searchStyled})})]})}),Ua={content:"_content_io3tv_1",newsContentSection:"_newsContentSection_io3tv_5",itemContent:"_itemContent_io3tv_10"},Fd=e=>{const{data:n,option:a,autor:o,page:s,banners:r,pathname:i,ranking:c,currentPage:h,slug:l,texts:d={}}=e,u=[5,10,15],{SUB_PUBLICATION_PREFIX_IN_ROUTES:f}=K(),g={5:1,10:2,15:3};switch(a){case"op1":return t.jsx(t.Fragment,{children:t.jsxs(Aa,{children:[t.jsx(Bs,{autor:o[0],autorIcon:e.autorIcon}),t.jsx(ya,{paths:e.paths,ranking:c,readestTitle:d.readestTitle??"",bannerTop:t.jsx(pe,{banners:r??[],name:"right_1"}),banner:t.jsx(pe,{banners:r??[],name:"right_2"}),children:t.jsx("section",{className:Ua.content,children:n.length>0?t.jsx(In,{className:[Ua.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx($t,{block_subPublication:f?.autor,texts:d,pathname:i,query:"",currentPage:h,maxPages:e.paginationLimit,showNext:!(n.length<e.newsListLimit)}),children:Array.isArray(n)&&n?.map((m,p)=>t.jsxs(E.Fragment,{children:[u.includes(p+1)&&t.jsx("div",{className:Ua.itemContent+" banner-context",children:t.jsx(pe,{banners:r??[],name:`block_2_${g[p+1]}`})}),t.jsx(Bn,{autorIcon:e.autorIcon,item:m,option:l,paths:e.paths},p)]},p))}):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:d.autorNotResultMessage})})})})]})});case"op2":return t.jsx(t.Fragment,{children:t.jsxs(Aa,{children:[t.jsx(Ps,{autor:o[0],autorIcon:e.autorIcon}),Array.isArray(n)?t.jsxs(t.Fragment,{children:[t.jsx(Na,{content:n,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),t.jsx($t,{block_subPublication:f?.autor,texts:d,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:d.autorNotResultMessage})})]})});default:return t.jsx(t.Fragment,{})}},ur={content:"_content_pq89v_1",videoContent:"_videoContent_pq89v_9"},Zt={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"},fr=async e=>{const{size:n="longer",video:a}=e,o=a.main.image.sizes[0]?.url??"";return t.jsx("figure",{className:Zt.figure,children:t.jsxs("span",{className:Zt.backdrop,children:[t.jsx("span",{className:Zt.backDropAux}),t.jsx(B,{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:[Zt.imageStyled,Zt[n]].join(" "),alt:"",src:o?await de(o):""})]})})]})})},zd=e=>{const{videos:n}=e;return t.jsx("div",{className:ur.content,children:t.jsx(St,{children:t.jsx(fe,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:ur.videoContent,children:[t.jsx(fr,{video:n[0]}),t.jsx("div",{style:{display:"flex",flexDirection:"column"},children:n.slice(1).map((a,o)=>t.jsx(fr,{size:"small",video:a},`video-small-${o}`))})]})})})})},At={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"},mr={container:"_container_1rq2h_1",playStyled:"_playStyled_1rq2h_9"},Vd=e=>{const{video:n}=e,a=bn();return t.jsx(B,{href:n.info.link.url?n.info.link.url:void 0,target:n.info.link.target,children:t.jsxs("section",{className:mr.container,children:[t.jsx(Ne,{isLarge:!0,preview:{sizes:n.main.image.sizes,description:n.main.description}}),t.jsx(a,{className:mr.playStyled})]})})},Wd=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${Le(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:At.content,children:t.jsx(St,{className:At.contentLatout,children:t.jsx(fe,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:At.videoContent,children:[t.jsx(Vd,{video:e.video}),t.jsxs("div",{className:At.articleSection,children:[t.jsx(B,{className:At.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),t.jsx("p",{className:At.article,children:qe(e.video.main.description)}),t.jsx("p",{className:At.correspondent,children:n()})]})]})})})})},Yd=e=>{switch(e.option){case"op1":return t.jsx(zd,{videos:e.data});case"op2":return t.jsx(Wd,{video:e.data[0]});default:return t.jsx(t.Fragment,{})}};function Kd({containerId:e,containerId2:n}){return E.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.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(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(f=>{u.setAttribute(f.name,f.value)}),d.replaceWith(u)});const h=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(h)for(let d=0;d<h.length;d++)h[d]?.remove();let l=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Jd=e=>{const{isVideo:n=!1,isLarge:a=!1,hasShadow:o=!1,BackDropAuxHeigthMobile:s}=e,r=ma(),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_ASSETS_URL:h}=e.API_ENV,l=i[0]?.url,d=h&&h!=="false"?h:c,u=l?.startsWith("http")||l?.includes(d)?l:d+l;return 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:u,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"}})]})]})]})})},Zd=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"})}),gr={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},Xd=({section:e,internalPath:n,banner:a,isVisible:o=!1,stylesConfig:s,API_ENV:r,fetchConfig:i,paths:c})=>{const h=r.FETCH_SIZE_MORE_NEWS??6,[l,d]=E.useState({data:Array.from({length:h},()=>gr)}),[u,f]=E.useState(!1),g=E.useCallback(async()=>{if(!n)return;const A=new URLSearchParams({section:e,currentNewsLink:n}),y=await fetch(`/api/get-more-news?${A}`);if(!y.ok)throw new Error(`HTTP error! status: ${y.status}`);return await y.json()},[e,n]),m=E.useCallback(async()=>{const{PUBLIC_API_FRONT:A,PUBLIC_X_SECURITY_TOKEN:y,PUBLIC_API_PATH_VERSION:S,PUBLIC_PUBLICATION_ID:v}=r;if(!A||!y||!v||!S)throw new Error("Missing required environment variables");const I=await oe.get(`${A}${S}/news-list-section`,{params:{size:h+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(v)},headers:{"x-api-token":y,"Content-Type":"application/json"}});return{...I.data,data:I.data.data.filter(C=>C.info.link.internal!==n)}},[e,n,r]),p=E.useCallback(async()=>{if(!(u||!n)){f(!0);try{let A;r.PUBLIC_ENV!=="prod"?A=await g():A=await m(),d({...A,data:A.data.slice(0,h)})}catch(A){console.error("[/api/get-more-news] Error:",A.message),d(void 0)}}},[u,n,r.PUBLIC_ENV,g,m]);return E.useEffect(()=>{o&&p()},[o,p]),!l?.data||l.data.length===0?null:t.jsx(Rd,{news:l.data,title:"Más Noticias",...s["Modulo 1x3 Client"]??s["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:r,paths:c,isVisible:o})},Rd=e=>{const{news:n,hasLines:a=!1,API_ENV:o}=e,s=r=>a&&(r+1)%3!==0?ka.contentSeparator:"";return t.jsx("div",{className:ka.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:n.map((r,i)=>{const{main:c,authors:h,info:l,preview:d,isVideo:u=!1,config:f,overImage:g="default",isTitle:m=!1,isLarge:p=!1,keywords:A}=r;return t.jsx("div",{className:s(i),style:{order:i},children:t.jsxs("section",{className:Gt.content,children:[t.jsx(B,{title:c?.title?.section,href:l?.link?.url??"invalidUrl","aria-label":c?.title?.section??"nota",target:l?.link?.target,children:t.jsx(Jd,{isVisible:e.isVisible,preview:d,rounded:e.rounded,isVideo:u,isLarge:p,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),t.jsx("div",{className:Gt.newsDescription,children:t.jsx(e1,{main:c,SHOW_TAG_BY_SECTION:o.SHOW_TAG_BY_SECTION,authors:h,info:l,preview:d,share:e.share,config:f,overImage:g,isTitle:m,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:A})})]})},i)})})},e1=e=>{const{share:n=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:o,keywords:s,info:r}=e,c=(()=>{if(!e?.authors||e.authors.length===0)return"";const d=e.authors[0],u=Le(e.info?.date?.modified,e.DATE_CONFIG);return d&&e?.config?.showtime&&e.config?.showauthor?`${d.fullname} - ${u}`:d&&e.config?.showauthor?d.fullname:e?.config?.showtime?u:""})(),h=()=>e.main.uppertitle?t.jsx("p",{className:te.uppertitle,title:e.main.uppertitle,children:e.main.uppertitle}):null,l=()=>{if(o&&s?.tags?.length&&s.tags.length>0){const d=s.tags[0],u=d.name;return t.jsxs("h3",{className:te.sectionDescriptionContainer,children:[d.approved?t.jsx(B,{"aria-label":u,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:te.sectionDescription,href:et(d,e.paths),children:u}):t.jsx("div",{className:te.sectionDescription,children:u}),h()]})}else if(r?.section?.url){const d=r.section.name;return t.jsxs("h3",{className:te.sectionDescriptionContainer,children:[t.jsx(B,{"aria-label":d,className:te.sectionDescription,href:r.section.url,children:d}),h()]})}return null};return t.jsxs("div",{className:te.boxInformation,children:[n&&t.jsx(Zd,{className:te.dotStyles}),t.jsx(l,{}),t.jsx("h2",{className:te.articule,children:t.jsx(B,{className:te.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:te.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?qe(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&c&&t.jsx(t.Fragment,{children:e.authors?.[0]?.internaluser?t.jsx(B,{block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,className:te.correspondentLink,href:`/${e.paths.autor}/${e.authors[0].name}`,children:c}):t.jsx("div",{className:te.correspondent,children:c})})]})},t1=({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(xn,{width:13,height:13,fill:"black"})})]}),t.jsx("p",{className:"comment-text",children:a})]})]})})},ge={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"},pr=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 n1({publication:e,username:n,id:a,type:o,baseUrl:s,captchaToken:r,apiToken:i,securityToken:c,COMMENTS_VARS:h}){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 pr(r,h))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const l=`${s}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,d=encodeURIComponent(o),u=new URLSearchParams({publication:e,username:n??!1,id:a,type:d}),f=`${l}?${u.toString()}`;try{console.log("Reporting comment:",{publication:e,username:n,id:a,type:o,encodedType:d,url:f});const g=await oe.get(f,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":c,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",g.data),g.status===200||g.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:g.status,data:g.data};throw new Error(`Respuesta inesperada del servidor: ${g.status}`)}catch(g){if(console.error("Error reporting comment:",g),oe.isAxiosError(g)){const m=g.response?.status,p=g.response?.data;throw m===400?new Error("Datos inválidos para el reporte"):m===401?new Error("Token de API inválido"):m===403?new Error("Acceso denegado para reportar comentario"):m===404?new Error("Comentario no encontrado"):m===409?new Error("El comentario ya fue reportado por este usuario"):m===500?new Error("Error interno del servidor CMS"):new Error(p?.error||p?.message||`Error HTTP ${m}: No se pudo reportar el comentario`)}throw g}}const Qe={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 a1(e){return Qe[e]}const wt=300,Xe={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function o1(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 La=(e,n,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const o=e.current?.value||"",s=o.length>wt,{PUBLIC_ENV:r}=a,i=r==="local",c=o.trim()!==""&&(i||n!=="")&&!s,h=s?`No debes exceder el limite de ${wt} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:c,text:h}},Ar=e=>{const n=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!n)return[];try{return JSON.parse(decodeURIComponent(n.split("=")[1]??""))}catch{return[]}},s1=(e,n)=>{const a=Ar(e);a.includes(n)||(a.push(n),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function r1(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 Mn={exports:{}},jn={exports:{}},ne={};var wr;function i1(){if(wr)return ne;wr=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,h=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function v(C){if(typeof C=="object"&&C!==null){var k=C.$$typeof;switch(k){case n:switch(C=C.type,C){case h:case l:case o:case r:case s:case u:return C;default:switch(C=C&&C.$$typeof,C){case c:case d:case m:case g:case i:return C;default:return k}}case a:return k}}}function I(C){return v(C)===l}return ne.AsyncMode=h,ne.ConcurrentMode=l,ne.ContextConsumer=c,ne.ContextProvider=i,ne.Element=n,ne.ForwardRef=d,ne.Fragment=o,ne.Lazy=m,ne.Memo=g,ne.Portal=a,ne.Profiler=r,ne.StrictMode=s,ne.Suspense=u,ne.isAsyncMode=function(C){return I(C)||v(C)===h},ne.isConcurrentMode=I,ne.isContextConsumer=function(C){return v(C)===c},ne.isContextProvider=function(C){return v(C)===i},ne.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===n},ne.isForwardRef=function(C){return v(C)===d},ne.isFragment=function(C){return v(C)===o},ne.isLazy=function(C){return v(C)===m},ne.isMemo=function(C){return v(C)===g},ne.isPortal=function(C){return v(C)===a},ne.isProfiler=function(C){return v(C)===r},ne.isStrictMode=function(C){return v(C)===s},ne.isSuspense=function(C){return v(C)===u},ne.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===d||C.$$typeof===A||C.$$typeof===y||C.$$typeof===S||C.$$typeof===p)},ne.typeOf=v,ne}var ae={};var yr;function c1(){return yr||(yr=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,h=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function v(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===d||P.$$typeof===A||P.$$typeof===y||P.$$typeof===S||P.$$typeof===p)}function I(P){if(typeof P=="object"&&P!==null){var ye=P.$$typeof;switch(ye){case n:var zn=P.type;switch(zn){case h:case l:case o:case r:case s:case u:return zn;default:var $r=zn&&zn.$$typeof;switch($r){case c:case d:case m:case g:case i:return $r;default:return ye}}case a:return ye}}}var C=h,k=l,O=c,Q=i,J=n,H=d,D=o,ee=m,ce=g,$=a,L=r,T=s,j=u,U=!1;function z(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.")),w(P)||I(P)===h}function w(P){return I(P)===l}function N(P){return I(P)===c}function q(P){return I(P)===i}function G(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function M(P){return I(P)===d}function F(P){return I(P)===o}function V(P){return I(P)===m}function W(P){return I(P)===g}function X(P){return I(P)===a}function R(P){return I(P)===r}function Y(P){return I(P)===s}function ie(P){return I(P)===u}ae.AsyncMode=C,ae.ConcurrentMode=k,ae.ContextConsumer=O,ae.ContextProvider=Q,ae.Element=J,ae.ForwardRef=H,ae.Fragment=D,ae.Lazy=ee,ae.Memo=ce,ae.Portal=$,ae.Profiler=L,ae.StrictMode=T,ae.Suspense=j,ae.isAsyncMode=z,ae.isConcurrentMode=w,ae.isContextConsumer=N,ae.isContextProvider=q,ae.isElement=G,ae.isForwardRef=M,ae.isFragment=F,ae.isLazy=V,ae.isMemo=W,ae.isPortal=X,ae.isProfiler=R,ae.isStrictMode=Y,ae.isSuspense=ie,ae.isValidElementType=v,ae.typeOf=I})()),ae}var br;function qa(){return br||(br=1,process.env.NODE_ENV==="production"?jn.exports=i1():jn.exports=c1()),jn.exports}var Ba,Cr;function l1(){if(Cr)return Ba;Cr=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 h=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(h.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(d){l[d]=d}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ba=s()?Object.assign:function(r,i){for(var c,h=o(r),l,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var u in c)n.call(c,u)&&(h[u]=c[u]);if(e){l=e(c);for(var f=0;f<l.length;f++)a.call(c,l[f])&&(h[l[f]]=c[l[f]])}}return h},Ba}var Pa,_r;function Oa(){if(_r)return Pa;_r=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pa=e,Pa}var Da,vr;function Sr(){return vr||(vr=1,Da=Function.call.bind(Object.prototype.hasOwnProperty)),Da}var Ma,Nr;function d1(){if(Nr)return Ma;Nr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Oa(),a={},o=Sr();e=function(r){var i="Warning: "+r;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function s(r,i,c,h,l){if(process.env.NODE_ENV!=="production"){for(var d in r)if(o(r,d)){var u;try{if(typeof r[d]!="function"){var f=Error((h||"React class")+": "+c+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=r[d](i,d,h,c,null,n)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var g=l?l():"";e("Failed "+c+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},Ma=s,Ma}var ja,Ir;function h1(){if(Ir)return ja;Ir=1;var e=qa(),n=l1(),a=Oa(),o=Sr(),s=d1(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return ja=function(c,h){var l=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(w){var N=w&&(l&&w[l]||w[d]);if(typeof N=="function")return N}var f="<<anonymous>>",g={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:S(),arrayOf:v,element:I(),elementType:C(),instanceOf:k,node:H(),objectOf:Q,oneOf:O,oneOfType:J,shape:ee,exact:ce};function m(w,N){return w===N?w!==0||1/w===1/N:w!==w&&N!==N}function p(w,N){this.message=w,this.data=N&&typeof N=="object"?N:{},this.stack=""}p.prototype=Error.prototype;function A(w){if(process.env.NODE_ENV!=="production")var N={},q=0;function G(F,V,W,X,R,Y,ie){if(X=X||f,Y=Y||W,ie!==a){if(h){var P=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ye=X+":"+W;!N[ye]&&q<3&&(r("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+X+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[ye]=!0,q++)}}return V[W]==null?F?V[W]===null?new p("The "+R+" `"+Y+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new p("The "+R+" `"+Y+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:w(V,W,X,R,Y)}var M=G.bind(null,!1);return M.isRequired=G.bind(null,!0),M}function y(w){function N(q,G,M,F,V,W){var X=q[G],R=T(X);if(R!==w){var Y=j(X);return new p("Invalid "+F+" `"+V+"` of type "+("`"+Y+"` supplied to `"+M+"`, expected ")+("`"+w+"`."),{expectedType:w})}return null}return A(N)}function S(){return A(i)}function v(w){function N(q,G,M,F,V){if(typeof w!="function")return new p("Property `"+V+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var W=q[G];if(!Array.isArray(W)){var X=T(W);return new p("Invalid "+F+" `"+V+"` of type "+("`"+X+"` supplied to `"+M+"`, expected an array."))}for(var R=0;R<W.length;R++){var Y=w(W,R,M,F,V+"["+R+"]",a);if(Y instanceof Error)return Y}return null}return A(N)}function I(){function w(N,q,G,M,F){var V=N[q];if(!c(V)){var W=T(V);return new p("Invalid "+M+" `"+F+"` of type "+("`"+W+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return A(w)}function C(){function w(N,q,G,M,F){var V=N[q];if(!e.isValidElementType(V)){var W=T(V);return new p("Invalid "+M+" `"+F+"` of type "+("`"+W+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return A(w)}function k(w){function N(q,G,M,F,V){if(!(q[G]instanceof w)){var W=w.name||f,X=z(q[G]);return new p("Invalid "+F+" `"+V+"` of type "+("`"+X+"` supplied to `"+M+"`, expected ")+("instance of `"+W+"`."))}return null}return A(N)}function O(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&(arguments.length>1?r("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):r("Invalid argument supplied to oneOf, expected an array.")),i;function N(q,G,M,F,V){for(var W=q[G],X=0;X<w.length;X++)if(m(W,w[X]))return null;var R=JSON.stringify(w,function(ie,P){var ye=j(P);return ye==="symbol"?String(P):P});return new p("Invalid "+F+" `"+V+"` of value `"+String(W)+"` "+("supplied to `"+M+"`, expected one of "+R+"."))}return A(N)}function Q(w){function N(q,G,M,F,V){if(typeof w!="function")return new p("Property `"+V+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var W=q[G],X=T(W);if(X!=="object")return new p("Invalid "+F+" `"+V+"` of type "+("`"+X+"` supplied to `"+M+"`, expected an object."));for(var R in W)if(o(W,R)){var Y=w(W,R,M,F,V+"."+R,a);if(Y instanceof Error)return Y}return null}return A(N)}function J(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&r("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var N=0;N<w.length;N++){var q=w[N];if(typeof q!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(q)+" at index "+N+"."),i}function G(M,F,V,W,X){for(var R=[],Y=0;Y<w.length;Y++){var ie=w[Y],P=ie(M,F,V,W,X,a);if(P==null)return null;P.data&&o(P.data,"expectedType")&&R.push(P.data.expectedType)}var ye=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new p("Invalid "+W+" `"+X+"` supplied to "+("`"+V+"`"+ye+"."))}return A(G)}function H(){function w(N,q,G,M,F){return $(N[q])?null:new p("Invalid "+M+" `"+F+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return A(w)}function D(w,N,q,G,M){return new p((w||"React class")+": "+N+" type `"+q+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function ee(w){function N(q,G,M,F,V){var W=q[G],X=T(W);if(X!=="object")return new p("Invalid "+F+" `"+V+"` of type `"+X+"` "+("supplied to `"+M+"`, expected `object`."));for(var R in w){var Y=w[R];if(typeof Y!="function")return D(M,F,V,R,j(Y));var ie=Y(W,R,M,F,V+"."+R,a);if(ie)return ie}return null}return A(N)}function ce(w){function N(q,G,M,F,V){var W=q[G],X=T(W);if(X!=="object")return new p("Invalid "+F+" `"+V+"` of type `"+X+"` "+("supplied to `"+M+"`, expected `object`."));var R=n({},q[G],w);for(var Y in R){var ie=w[Y];if(o(w,Y)&&typeof ie!="function")return D(M,F,V,Y,j(ie));if(!ie)return new p("Invalid "+F+" `"+V+"` key `"+Y+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(q[G],null," ")+`
|
|
158
|
+
`}}catch(y){console.error("insertVideos error for",g,y),A=""}else A=f;o=u,a+=A,s.lastIndex=u}return a+=e.slice(o),a=Nd(a),a}async function Ud(e){const{news:n,banners:a,newsRelatedResponses:o,newsRelatedListResponses:s,slug:r,itemList:i,socials:c,getVideos:h,commonServices:l}=e;let d=n?.body?.rendered??"";d=d.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),d=d.replace(/ /g,""),d=Ed(d,a),d=kd(d),d=await Id(d),d=await Td(d,e.texts,o),d=await xd(d,h),d=vd(d),d=Sd(d);const u=n.main.sources??[],{NEWS_JOURNALIST_COMPONENT:f}=K(),g=n.config.articlepreview===gt.fotoGaleria&&n.hascontent?.hasgalleryimages;return t.jsxs("div",{className:Pn.content,children:[r!=="liveblogs"&&e.showHeaderImage?g?t.jsx(sr,{commonServices:l,newsformated:n,internal:n.info.link.internal}):t.jsx(Us,{preview:n.preview}):null,t.jsx(pe,{banners:a,name:"block_1"}),t.jsx("div",{className:Pn.journalistArticleContent,children:f==="op1"?t.jsx(dd,{autorIcon:e.autorIcon,socials:c,news:n,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):t.jsx(Cd,{autorIcon:e.autorIcon,socials:c,news:n,texts:e.texts,noteShare:e.noteShare,paths:e.paths})}),t.jsx(ud,{summary:n.main.summary}),t.jsx("main",{className:Pn.contentNews,suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:d}}),t.jsx(id,{texts:e.texts,itemList:i,banners:a,slug:r,getVideos:h,newsRelatedListResponses:s??[]}),u.length>0&&t.jsxs("div",{className:Pn.noteSource,children:[t.jsx(md,{}),t.jsx("p",{children:e.texts.noteSource+(u.length===1?"":"s")+": "+u.map(m=>m.name).join(", ")})]}),n&&n.hascontent&&n.hascontent.hasembeddedtwitter&&t.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const Ld=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(ht,{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(Qt,{...c,titleGradient:!0,paths:e.paths},i)})})})},qd=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(ht,{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(Qt,{...c,titleGradient:!0,paths:e.paths},i)})})})},Bd=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(ht,{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(Qt,{...c,key:i,titleGradient:!0,paths:e.paths})})})})},On=e=>{const n={};for(const a in e)a.startsWith("--")&&(n[a]=e[a]);return n},pt={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"},Pd=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:pt.headerSection,children:t.jsxs("a",{style:{"--heightImageOverwriteMobile":"200%"},className:pt.image,href:s?.info?.link?.url,target:s?.info?.link?.target,children:[t.jsxs("div",{className:pt.blockHeadContainer,children:[t.jsx("p",{className:pt.title,children:s?.main?.title.home}),s?.main?.subtitle?.rendered&&t.jsx("p",{className:pt.subtitle,children:s?.main?.subtitle?.striped})]}),t.jsx(Ne,{preview:s.preview})]})}),t.jsxs("div",{className:pt.containerCards,children:[t.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),t.jsx("div",{className:pt.newsContent,children:Array.isArray(r)&&r.map((c,h)=>{const l={...c,main:{...c.main,title:{...c.main.title,section:i?c.main.title.home:c.main.title.section}}};return t.jsx("div",{style:{order:h},children:t.jsx($e,{...l,isVideo:o,paths:e.paths})},h)})})]})]})},Od=({printEdition:e,title:n})=>e&&t.jsx(fe,{title:n,children:t.jsx("div",{className:"iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),dr={banner:e=>t.jsx(pe,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>t.jsx(Cn,{...e}),"Modulo 1x3":e=>t.jsx(Na,{...e}),"Modulo 1x4":e=>t.jsx(Js,{...e}),"Modulo 1x5":e=>t.jsx(Zs,{...e}),"Destacado noticias":e=>t.jsx(Vs,{...e}),"Destacado full width":e=>t.jsx(Pd,{...e}),"Destacado videos":e=>t.jsx(Xs,{...e}),"Carrusel card":e=>t.jsx(tr,{...e}),"Carrusel story":e=>t.jsx(Ld,{...e}),"Carrusel owl":e=>t.jsx(qd,{...e}),"Modulo fotogaleria":e=>t.jsx(Bd,{...e}),"Carrusel opinion":e=>t.jsx(nr,{...e}),"Modulo 1x3 card":e=>t.jsx(er,{...e}),"Modulo iframe":e=>t.jsx(Od,{...e})};function Kt({component:e,slot_id:n,data:a,banners:o}){if(o)return dr[e]&&t.jsx("div",{className:"home-slot",style:On(a),children:dr[e]({...a,banners:o,slot_id:n})})}function Dd({children:e,stylesConfigEntry:n}){return t.jsx("div",{className:"home-slot",style:On(n),children:e})}const hr={Diario:e=>{if(!e?.data||e.data.length===0)return;const n=e.data.slice(1);return t.jsx(Hs,{...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(Hs,{...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(kt,{...e.data[0],paths:e.paths}),"3 notas verticales":e=>t.jsx(jl,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths}),"3 notas horizontales":e=>t.jsx(Ml,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths})},Dn=({component:e,data:n,banners:a,rightOnlyBanner:o})=>t.jsx("div",{style:On(n),children:hr[e]&&hr[e]({...n,rightOnlyBanner:o,banners:a})}),Md=({slots:e,DYNAMIC_SLOT_SUBINDEXES:n,stylesConfig:a,AutorIcon:o,config:s,banners:r,showTagBySection:i})=>{const c=[],l=n,d=Object.keys(e).length/l;for(let u=1;u<=d;u++)for(let f=1;f<=l;f++){const g="Home_"+u+"_"+f;!e[g]||!e[g].blockSass||!e[g].blockSass[0]||!e[g].blockSass[0].value||!e[g].blockSass[0].block||e[g].blockSass[0].block==="No Mostrar"||(e[g].blockSass[0]?.block==="Modulo iframe"?c.push(t.jsxs(da,{show:!!e[g].blockSass[0].value,order:(u-1)*l+(f-1),children:[t.jsx(Kt,{component:e[g].blockSass[0].block,banners:r,slot_id:g,data:{printEdition:e[g]?.blockSass[0].value,title:e[g]?.blockSass[0].title??"",titleUrl:e[g].blockSass[0].link??void 0}}),t.jsx(He,{children:t.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f)):c.push(t.jsxs(da,{show:!!e[g].content?.data,order:(u-1)*l+(f-1),children:[t.jsx(Kt,{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(He,{children:t.jsx(je,{banners:r,index:"dynamic_"+u+"_"+f})})]},u+"_"+f)))}return c},jd=({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,h)=>({...e?.news,...n[c],data:r.slice(0,h),paths:a.paths});return t.jsxs(t.Fragment,{children:[t.jsx(Dn,{component:"Super",data:i("Super",1),banners:o}),t.jsx(He,{children:t.jsx(je,{banners:o,index:1})}),t.jsx(Dn,{component:"3 notas verticales",data:i("3 notas verticales",3),banners:o}),t.jsx(He,{children:t.jsx(je,{banners:o,index:1})}),t.jsx(Dn,{component:"3 notas horizontales",data:i("3 notas horizontales",3),banners:o}),t.jsx(He,{children:t.jsx(je,{banners:o,index:1})})]})},$d=e=>{const{config:n}=e,a=n.articlepreview;return!![gt.videoEmbedded,gt.videoYouTube,gt.iframe].includes(a)},Gd=async e=>{const{custom_complement:n,ranking:a=[],banners:o,autor:s=[],news:r=[],newsRelatedResponses:i=[],newsRelatedListResponses:c=[],itemList:h=[],socials:l,getVideos:d}=e,u=e.slug==="liveblogs",{SHOW_NEWS_MORE_NEWS:f,SHOW_NEWS_RELATED_NEWS:g,MORE_NEWS_SSR:m}=K();if(!(!r||!r[0]))return t.jsx(t.Fragment,{children:t.jsxs(Jl,{className:Wt.contentLayout2,children:[t.jsx(Xl,{option:e.slug,news:r,paths:e.paths,headerSectionStyles:e.headerSectionStyles}),t.jsx(je,{banners:o,index:1}),!u&&e.commonServices&&t.jsx(wd,{news:r[0],commonServices:e.commonServices}),t.jsx(Zl,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:h,ranking:a,readestCustomStyles:e.readestCustomStyles,bannerTop:t.jsx(pe,{banners:o??[],name:"right_1"}),banner:t.jsx(pe,{banners:o??[],name:"right_2"}),complement:t.jsxs("div",{id:"comentarios",className:Wt.complementContent,suppressHydrationWarning:!0,children:[s.length>0&&t.jsx(Gs,{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}),r[0]?.keywords?.tags&&r[0]?.keywords?.tags?.length>0&&t.jsx("div",{className:`${Wt.tagContent} sass-note-tags-content`,children:t.jsx($s,{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",{className:Wt.commentsSeparator,suppressHydrationWarning:!0,"data-hydrate":"LazyLoader","data-props":encodeURIComponent(JSON.stringify({render:"comment",internalPath:e.internalPath,API_ENV:e.API_ENV}))}),t.jsx(He,{children:t.jsx(je,{banners:o,index:2})}),g&&t.jsxs(t.Fragment,{children:[t.jsx(Kt,{component:"Carrusel card",banners:[],slot_id:"Nota_1",data:{...e.stylesConfig["Carrusel card"],content:e.relatedNewsList??[],title:e.texts.relatedNewsTitle,titleUrl:void 0,paths:e.paths}}),t.jsx(He,{children:t.jsx(je,{banners:o,index:3})})]}),f&&t.jsxs(t.Fragment,{children:[m?t.jsx(Kt,{component:"Modulo 1x3",banners:[],slot_id:"Nota_2",data:{...e.stylesConfig?e.stylesConfig["Modulo 1x3 Client"]?e.stylesConfig["Modulo 1x3 Client"]:e.stylesConfig["Modulo 1x3"]:{},content:e.moreNewsSSR??[],title:e.texts.moreNewsTitle,paths:e.paths,titleUrl:void 0}}):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??"",internalPath:e.internalPath,paths:e.paths,API_ENV:e.API_ENV,fetchConfig:e.fetchConfig}))})}),t.jsx(He,{children:t.jsx(je,{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(Ud,{texts:e.texts,autorIcon:e.autorIcon,socials:l,news:r[0],banners:o,newsRelatedResponses:i,newsRelatedListResponses:c,itemList:h,slug:e.slug,getVideos:d,noteShare:e.noteShare,paths:e.paths,showHeaderImage:!$d(r[0]),commonServices:e.commonServices}),t.jsx(pe,{banners:o??[],name:"block_3"})]})})]})})},Jt={content:"_content_1046n_1",buttonStyled:"_buttonStyled_1046n_9",searchStyled:"_searchStyled_1046n_20",inputStyled:"_inputStyled_1046n_36",inputStyledTest:"_inputStyledTest_1046n_55"},Qd=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"})})}),Hd=e=>t.jsx("form",{className:Jt.content,children:t.jsxs("div",{className:`${Jt.inputStyled} sass-buscar-form`,children:[t.jsx("input",{className:Jt.inputStyledTest,defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),t.jsx("button",{className:Jt.buttonStyled,type:"submit",children:t.jsx(Qd,{className:Jt.searchStyled})})]})}),Ua={content:"_content_io3tv_1",newsContentSection:"_newsContentSection_io3tv_5",itemContent:"_itemContent_io3tv_10"},Fd=e=>{const{data:n,option:a,autor:o,page:s,banners:r,pathname:i,ranking:c,currentPage:h,slug:l,texts:d={}}=e,u=[5,10,15],{SUB_PUBLICATION_PREFIX_IN_ROUTES:f}=K(),g={5:1,10:2,15:3};switch(a){case"op1":return t.jsx(t.Fragment,{children:t.jsxs(Aa,{children:[t.jsx(Bs,{autor:o[0],autorIcon:e.autorIcon}),t.jsx(ya,{paths:e.paths,ranking:c,readestTitle:d.readestTitle??"",bannerTop:t.jsx(pe,{banners:r??[],name:"right_1"}),banner:t.jsx(pe,{banners:r??[],name:"right_2"}),children:t.jsx("section",{className:Ua.content,children:n.length>0?t.jsx(In,{className:[Ua.newsContentSection,"padding-0"].join(" "),paginatorComponent:t.jsx($t,{block_subPublication:f?.autor,texts:d,pathname:i,query:"",currentPage:h,maxPages:e.paginationLimit,showNext:!(n.length<e.newsListLimit)}),children:Array.isArray(n)&&n?.map((m,p)=>t.jsxs(E.Fragment,{children:[u.includes(p+1)&&t.jsx("div",{className:Ua.itemContent+" banner-context",children:t.jsx(pe,{banners:r??[],name:`block_2_${g[p+1]}`})}),t.jsx(Bn,{autorIcon:e.autorIcon,item:m,option:l,paths:e.paths},p)]},p))}):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:d.autorNotResultMessage})})})})]})});case"op2":return t.jsx(t.Fragment,{children:t.jsxs(Aa,{children:[t.jsx(Ps,{autor:o[0],autorIcon:e.autorIcon}),Array.isArray(n)?t.jsxs(t.Fragment,{children:[t.jsx(Na,{content:n,title:"",hasLines:!0,banners:e.banners,bannerPositionIndex:[1,6,12],paths:e.paths,slot_id:"block_2"}),t.jsx($t,{block_subPublication:f?.autor,texts:d,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:d.autorNotResultMessage})})]})});default:return t.jsx(t.Fragment,{})}},ur={content:"_content_pq89v_1",videoContent:"_videoContent_pq89v_9"},Zt={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"},fr=async e=>{const{size:n="longer",video:a}=e,o=a.main.image.sizes[0]?.url??"";return t.jsx("figure",{className:Zt.figure,children:t.jsxs("span",{className:Zt.backdrop,children:[t.jsx("span",{className:Zt.backDropAux}),t.jsx(B,{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:[Zt.imageStyled,Zt[n]].join(" "),alt:"",src:o?await de(o):""})]})})]})})},zd=e=>{const{videos:n}=e;return t.jsx("div",{className:ur.content,children:t.jsx(St,{children:t.jsx(fe,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:ur.videoContent,children:[t.jsx(fr,{video:n[0]}),t.jsx("div",{style:{display:"flex",flexDirection:"column"},children:n.slice(1).map((a,o)=>t.jsx(fr,{size:"small",video:a},`video-small-${o}`))})]})})})})},At={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"},mr={container:"_container_1rq2h_1",playStyled:"_playStyled_1rq2h_9"},Vd=e=>{const{video:n}=e,a=bn();return t.jsx(B,{href:n.info.link.url?n.info.link.url:void 0,target:n.info.link.target,children:t.jsxs("section",{className:mr.container,children:[t.jsx(Ne,{isLarge:!0,preview:{sizes:n.main.image.sizes,description:n.main.description}}),t.jsx(a,{className:mr.playStyled})]})})},Wd=e=>{const n=()=>e?.video.main.author?`${e?.video.main.author} - ${Le(e.video.info.date.created)}`:e?.video.main.author;return t.jsx("div",{className:At.content,children:t.jsx(St,{className:At.contentLatout,children:t.jsx(fe,{title:"Videos",isTitle:!0,children:t.jsxs("div",{className:At.videoContent,children:[t.jsx(Vd,{video:e.video}),t.jsxs("div",{className:At.articleSection,children:[t.jsx(B,{className:At.title,href:e.video.info.link.url,target:e.video.info.link.target,children:e.video.main.title}),t.jsx("p",{className:At.article,children:qe(e.video.main.description)}),t.jsx("p",{className:At.correspondent,children:n()})]})]})})})})},Yd=e=>{switch(e.option){case"op1":return t.jsx(zd,{videos:e.data});case"op2":return t.jsx(Wd,{video:e.data[0]});default:return t.jsx(t.Fragment,{})}};function Kd({containerId:e,containerId2:n}){return E.useEffect(()=>{try{let a=function(){const d=window.twttr;d?.widgets?d.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(d=>{const u=document.createElement("script");Array.from(d.attributes).forEach(f=>{u.setAttribute(f.name,f.value)}),d.replaceWith(u)});const h=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(h)for(let d=0;d<h.length;d++)h[d]?.remove();let l=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const d=document.createElement("script");d.src="https://platform.twitter.com/widgets.js",d.async=!0,d.onload=a,document.body.appendChild(d)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const Jd=e=>{const{isVideo:n=!1,isLarge:a=!1,hasShadow:o=!1,BackDropAuxHeigthMobile:s}=e,r=ma(),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_ASSETS_URL:h}=e.API_ENV,l=i[0]?.url,d=h&&h!=="false"?h:c,u=l?.startsWith("http")||l?.includes(d)?l:d+l;return 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:u,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"}})]})]})]})})},Zd=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"})}),gr={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},Xd=({section:e,internalPath:n,banner:a,isVisible:o=!1,stylesConfig:s,API_ENV:r,fetchConfig:i,paths:c})=>{const h=r.FETCH_SIZE_MORE_NEWS??6,[l,d]=E.useState({data:Array.from({length:h},()=>gr)}),[u,f]=E.useState(!1),g=E.useCallback(async()=>{if(!n)return;const A=new URLSearchParams({section:e,currentNewsLink:n}),y=await fetch(`/api/get-more-news?${A}`);if(!y.ok)throw new Error(`HTTP error! status: ${y.status}`);return await y.json()},[e,n]),m=E.useCallback(async()=>{const{PUBLIC_API_FRONT:A,PUBLIC_X_SECURITY_TOKEN:y,PUBLIC_API_PATH_VERSION:S,PUBLIC_PUBLICATION_ID:v}=r;if(!A||!y||!v||!S)throw new Error("Missing required environment variables");const I=await oe.get(`${A}${S}/news-list-section`,{params:{size:h+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(v)},headers:{"x-api-token":y,"Content-Type":"application/json"}});return{...I.data,data:I.data.data.filter(C=>C.info.link.internal!==n)}},[e,n,r]),p=E.useCallback(async()=>{if(!(u||!n)){f(!0);try{let A;r.PUBLIC_ENV!=="prod"?A=await g():A=await m(),d({...A,data:A.data.slice(0,h)})}catch(A){console.error("[/api/get-more-news] Error:",A.message),d(void 0)}}},[u,n,r.PUBLIC_ENV,g,m]);return E.useEffect(()=>{o&&p()},[o,p]),!l?.data||l.data.length===0?null:t.jsx(Rd,{news:l.data,title:"Más Noticias",...s["Modulo 1x3 Client"]??s["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:r,paths:c,isVisible:o})},Rd=e=>{const{news:n,hasLines:a=!1,API_ENV:o}=e,s=r=>a&&(r+1)%3!==0?ka.contentSeparator:"";return t.jsx("div",{className:ka.newsContent,style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:n.map((r,i)=>{const{main:c,authors:h,info:l,preview:d,isVideo:u=!1,config:f,overImage:g="default",isTitle:m=!1,isLarge:p=!1,keywords:A}=r;return t.jsx("div",{className:s(i),style:{order:i},children:t.jsxs("section",{className:Gt.content,children:[t.jsx(B,{title:c?.title?.section,href:l?.link?.url??"invalidUrl","aria-label":c?.title?.section??"nota",target:l?.link?.target,children:t.jsx(Jd,{isVisible:e.isVisible,preview:d,rounded:e.rounded,isVideo:u,isLarge:p,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),t.jsx("div",{className:Gt.newsDescription,children:t.jsx(e1,{main:c,SHOW_TAG_BY_SECTION:o.SHOW_TAG_BY_SECTION,authors:h,info:l,preview:d,share:e.share,config:f,overImage:g,isTitle:m,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:A})})]})},i)})})},e1=e=>{const{share:n=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:o,keywords:s,info:r}=e,c=(()=>{if(!e?.authors||e.authors.length===0)return"";const d=e.authors[0],u=Le(e.info?.date?.modified,e.DATE_CONFIG);return d&&e?.config?.showtime&&e.config?.showauthor?`${d.fullname} - ${u}`:d&&e.config?.showauthor?d.fullname:e?.config?.showtime?u:""})(),h=()=>e.main.uppertitle?t.jsx("p",{className:te.uppertitle,title:e.main.uppertitle,children:e.main.uppertitle}):null,l=()=>{if(o&&s?.tags?.length&&s.tags.length>0){const d=s.tags[0],u=d.name;return t.jsxs("h3",{className:te.sectionDescriptionContainer,children:[d.approved?t.jsx(B,{"aria-label":u,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:te.sectionDescription,href:et(d,e.paths),children:u}):t.jsx("div",{className:te.sectionDescription,children:u}),h()]})}else if(r?.section?.url){const d=r.section.name;return t.jsxs("h3",{className:te.sectionDescriptionContainer,children:[t.jsx(B,{"aria-label":d,className:te.sectionDescription,href:r.section.url,children:d}),h()]})}return null};return t.jsxs("div",{className:te.boxInformation,children:[n&&t.jsx(Zd,{className:te.dotStyles}),t.jsx(l,{}),t.jsx("h2",{className:te.articule,children:t.jsx(B,{className:te.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:te.description,style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?qe(e.main.subtitle.striped):e.main.subtitle.striped}),(e?.config?.showtime||e.config?.showauthor)&&c&&t.jsx(t.Fragment,{children:e.authors?.[0]?.internaluser?t.jsx(B,{block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,className:te.correspondentLink,href:`/${e.paths.autor}/${e.authors[0].name}`,children:c}):t.jsx("div",{className:te.correspondent,children:c})})]})},t1=({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(xn,{width:13,height:13,fill:"black"})})]}),t.jsx("p",{className:"comment-text",children:a})]})]})})},ge={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"},pr=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 n1({publication:e,username:n,id:a,type:o,baseUrl:s,captchaToken:r,apiToken:i,securityToken:c,COMMENTS_VARS:h}){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 pr(r,h))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const l=`${s}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,d=encodeURIComponent(o),u=new URLSearchParams({publication:e,username:n??!1,id:a,type:d}),f=`${l}?${u.toString()}`;try{console.log("Reporting comment:",{publication:e,username:n,id:a,type:o,encodedType:d,url:f});const g=await oe.get(f,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":c,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",g.data),g.status===200||g.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:g.status,data:g.data};throw new Error(`Respuesta inesperada del servidor: ${g.status}`)}catch(g){if(console.error("Error reporting comment:",g),oe.isAxiosError(g)){const m=g.response?.status,p=g.response?.data;throw m===400?new Error("Datos inválidos para el reporte"):m===401?new Error("Token de API inválido"):m===403?new Error("Acceso denegado para reportar comentario"):m===404?new Error("Comentario no encontrado"):m===409?new Error("El comentario ya fue reportado por este usuario"):m===500?new Error("Error interno del servidor CMS"):new Error(p?.error||p?.message||`Error HTTP ${m}: No se pudo reportar el comentario`)}throw g}}const Qe={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 a1(e){return Qe[e]}const wt=300,Xe={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function o1(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 La=(e,n,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const o=e.current?.value||"",s=o.length>wt,{PUBLIC_ENV:r}=a,i=r==="local",c=o.trim()!==""&&(i||n!=="")&&!s,h=s?`No debes exceder el limite de ${wt} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:c,text:h}},Ar=e=>{const n=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!n)return[];try{return JSON.parse(decodeURIComponent(n.split("=")[1]??""))}catch{return[]}},s1=(e,n)=>{const a=Ar(e);a.includes(n)||(a.push(n),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function r1(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 Mn={exports:{}},jn={exports:{}},ne={};var wr;function i1(){if(wr)return ne;wr=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,h=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function v(C){if(typeof C=="object"&&C!==null){var k=C.$$typeof;switch(k){case n:switch(C=C.type,C){case h:case l:case o:case r:case s:case u:return C;default:switch(C=C&&C.$$typeof,C){case c:case d:case m:case g:case i:return C;default:return k}}case a:return k}}}function I(C){return v(C)===l}return ne.AsyncMode=h,ne.ConcurrentMode=l,ne.ContextConsumer=c,ne.ContextProvider=i,ne.Element=n,ne.ForwardRef=d,ne.Fragment=o,ne.Lazy=m,ne.Memo=g,ne.Portal=a,ne.Profiler=r,ne.StrictMode=s,ne.Suspense=u,ne.isAsyncMode=function(C){return I(C)||v(C)===h},ne.isConcurrentMode=I,ne.isContextConsumer=function(C){return v(C)===c},ne.isContextProvider=function(C){return v(C)===i},ne.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===n},ne.isForwardRef=function(C){return v(C)===d},ne.isFragment=function(C){return v(C)===o},ne.isLazy=function(C){return v(C)===m},ne.isMemo=function(C){return v(C)===g},ne.isPortal=function(C){return v(C)===a},ne.isProfiler=function(C){return v(C)===r},ne.isStrictMode=function(C){return v(C)===s},ne.isSuspense=function(C){return v(C)===u},ne.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===d||C.$$typeof===A||C.$$typeof===y||C.$$typeof===S||C.$$typeof===p)},ne.typeOf=v,ne}var ae={};var yr;function c1(){return yr||(yr=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,h=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function v(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===d||P.$$typeof===A||P.$$typeof===y||P.$$typeof===S||P.$$typeof===p)}function I(P){if(typeof P=="object"&&P!==null){var ye=P.$$typeof;switch(ye){case n:var zn=P.type;switch(zn){case h:case l:case o:case r:case s:case u:return zn;default:var $r=zn&&zn.$$typeof;switch($r){case c:case d:case m:case g:case i:return $r;default:return ye}}case a:return ye}}}var C=h,k=l,O=c,Q=i,J=n,H=d,D=o,ee=m,ce=g,$=a,L=r,T=s,j=u,U=!1;function z(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.")),w(P)||I(P)===h}function w(P){return I(P)===l}function N(P){return I(P)===c}function q(P){return I(P)===i}function G(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function M(P){return I(P)===d}function F(P){return I(P)===o}function V(P){return I(P)===m}function W(P){return I(P)===g}function X(P){return I(P)===a}function R(P){return I(P)===r}function Y(P){return I(P)===s}function ie(P){return I(P)===u}ae.AsyncMode=C,ae.ConcurrentMode=k,ae.ContextConsumer=O,ae.ContextProvider=Q,ae.Element=J,ae.ForwardRef=H,ae.Fragment=D,ae.Lazy=ee,ae.Memo=ce,ae.Portal=$,ae.Profiler=L,ae.StrictMode=T,ae.Suspense=j,ae.isAsyncMode=z,ae.isConcurrentMode=w,ae.isContextConsumer=N,ae.isContextProvider=q,ae.isElement=G,ae.isForwardRef=M,ae.isFragment=F,ae.isLazy=V,ae.isMemo=W,ae.isPortal=X,ae.isProfiler=R,ae.isStrictMode=Y,ae.isSuspense=ie,ae.isValidElementType=v,ae.typeOf=I})()),ae}var br;function qa(){return br||(br=1,process.env.NODE_ENV==="production"?jn.exports=i1():jn.exports=c1()),jn.exports}var Ba,Cr;function l1(){if(Cr)return Ba;Cr=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 h=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(h.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(d){l[d]=d}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ba=s()?Object.assign:function(r,i){for(var c,h=o(r),l,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var u in c)n.call(c,u)&&(h[u]=c[u]);if(e){l=e(c);for(var f=0;f<l.length;f++)a.call(c,l[f])&&(h[l[f]]=c[l[f]])}}return h},Ba}var Pa,_r;function Oa(){if(_r)return Pa;_r=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pa=e,Pa}var Da,vr;function Sr(){return vr||(vr=1,Da=Function.call.bind(Object.prototype.hasOwnProperty)),Da}var Ma,Nr;function d1(){if(Nr)return Ma;Nr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Oa(),a={},o=Sr();e=function(r){var i="Warning: "+r;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function s(r,i,c,h,l){if(process.env.NODE_ENV!=="production"){for(var d in r)if(o(r,d)){var u;try{if(typeof r[d]!="function"){var f=Error((h||"React class")+": "+c+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=r[d](i,d,h,c,null,n)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var g=l?l():"";e("Failed "+c+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},Ma=s,Ma}var ja,Ir;function h1(){if(Ir)return ja;Ir=1;var e=qa(),n=l1(),a=Oa(),o=Sr(),s=d1(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return ja=function(c,h){var l=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(w){var N=w&&(l&&w[l]||w[d]);if(typeof N=="function")return N}var f="<<anonymous>>",g={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:S(),arrayOf:v,element:I(),elementType:C(),instanceOf:k,node:H(),objectOf:Q,oneOf:O,oneOfType:J,shape:ee,exact:ce};function m(w,N){return w===N?w!==0||1/w===1/N:w!==w&&N!==N}function p(w,N){this.message=w,this.data=N&&typeof N=="object"?N:{},this.stack=""}p.prototype=Error.prototype;function A(w){if(process.env.NODE_ENV!=="production")var N={},q=0;function G(F,V,W,X,R,Y,ie){if(X=X||f,Y=Y||W,ie!==a){if(h){var P=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ye=X+":"+W;!N[ye]&&q<3&&(r("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+X+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[ye]=!0,q++)}}return V[W]==null?F?V[W]===null?new p("The "+R+" `"+Y+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new p("The "+R+" `"+Y+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:w(V,W,X,R,Y)}var M=G.bind(null,!1);return M.isRequired=G.bind(null,!0),M}function y(w){function N(q,G,M,F,V,W){var X=q[G],R=T(X);if(R!==w){var Y=j(X);return new p("Invalid "+F+" `"+V+"` of type "+("`"+Y+"` supplied to `"+M+"`, expected ")+("`"+w+"`."),{expectedType:w})}return null}return A(N)}function S(){return A(i)}function v(w){function N(q,G,M,F,V){if(typeof w!="function")return new p("Property `"+V+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var W=q[G];if(!Array.isArray(W)){var X=T(W);return new p("Invalid "+F+" `"+V+"` of type "+("`"+X+"` supplied to `"+M+"`, expected an array."))}for(var R=0;R<W.length;R++){var Y=w(W,R,M,F,V+"["+R+"]",a);if(Y instanceof Error)return Y}return null}return A(N)}function I(){function w(N,q,G,M,F){var V=N[q];if(!c(V)){var W=T(V);return new p("Invalid "+M+" `"+F+"` of type "+("`"+W+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return A(w)}function C(){function w(N,q,G,M,F){var V=N[q];if(!e.isValidElementType(V)){var W=T(V);return new p("Invalid "+M+" `"+F+"` of type "+("`"+W+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return A(w)}function k(w){function N(q,G,M,F,V){if(!(q[G]instanceof w)){var W=w.name||f,X=z(q[G]);return new p("Invalid "+F+" `"+V+"` of type "+("`"+X+"` supplied to `"+M+"`, expected ")+("instance of `"+W+"`."))}return null}return A(N)}function O(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&(arguments.length>1?r("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):r("Invalid argument supplied to oneOf, expected an array.")),i;function N(q,G,M,F,V){for(var W=q[G],X=0;X<w.length;X++)if(m(W,w[X]))return null;var R=JSON.stringify(w,function(ie,P){var ye=j(P);return ye==="symbol"?String(P):P});return new p("Invalid "+F+" `"+V+"` of value `"+String(W)+"` "+("supplied to `"+M+"`, expected one of "+R+"."))}return A(N)}function Q(w){function N(q,G,M,F,V){if(typeof w!="function")return new p("Property `"+V+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var W=q[G],X=T(W);if(X!=="object")return new p("Invalid "+F+" `"+V+"` of type "+("`"+X+"` supplied to `"+M+"`, expected an object."));for(var R in W)if(o(W,R)){var Y=w(W,R,M,F,V+"."+R,a);if(Y instanceof Error)return Y}return null}return A(N)}function J(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&r("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var N=0;N<w.length;N++){var q=w[N];if(typeof q!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(q)+" at index "+N+"."),i}function G(M,F,V,W,X){for(var R=[],Y=0;Y<w.length;Y++){var ie=w[Y],P=ie(M,F,V,W,X,a);if(P==null)return null;P.data&&o(P.data,"expectedType")&&R.push(P.data.expectedType)}var ye=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new p("Invalid "+W+" `"+X+"` supplied to "+("`"+V+"`"+ye+"."))}return A(G)}function H(){function w(N,q,G,M,F){return $(N[q])?null:new p("Invalid "+M+" `"+F+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return A(w)}function D(w,N,q,G,M){return new p((w||"React class")+": "+N+" type `"+q+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function ee(w){function N(q,G,M,F,V){var W=q[G],X=T(W);if(X!=="object")return new p("Invalid "+F+" `"+V+"` of type `"+X+"` "+("supplied to `"+M+"`, expected `object`."));for(var R in w){var Y=w[R];if(typeof Y!="function")return D(M,F,V,R,j(Y));var ie=Y(W,R,M,F,V+"."+R,a);if(ie)return ie}return null}return A(N)}function ce(w){function N(q,G,M,F,V){var W=q[G],X=T(W);if(X!=="object")return new p("Invalid "+F+" `"+V+"` of type `"+X+"` "+("supplied to `"+M+"`, expected `object`."));var R=n({},q[G],w);for(var Y in R){var ie=w[Y];if(o(w,Y)&&typeof ie!="function")return D(M,F,V,Y,j(ie));if(!ie)return new p("Invalid "+F+" `"+V+"` key `"+Y+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(q[G],null," ")+`
|
|
159
159
|
Valid keys: `+JSON.stringify(Object.keys(w),null," "));var P=ie(W,Y,M,F,V+"."+Y,a);if(P)return P}return null}return A(N)}function $(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every($);if(w===null||c(w))return!0;var N=u(w);if(N){var q=N.call(w),G;if(N!==w.entries){for(;!(G=q.next()).done;)if(!$(G.value))return!1}else for(;!(G=q.next()).done;){var M=G.value;if(M&&!$(M[1]))return!1}}else return!1;return!0;default:return!1}}function L(w,N){return w==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function T(w){var N=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":L(N,w)?"symbol":N}function j(w){if(typeof w>"u"||w===null)return""+w;var N=T(w);if(N==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return N}function U(w){var N=j(w);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function z(w){return!w.constructor||!w.constructor.name?f:w.constructor.name}return g.checkPropTypes=s,g.resetWarningCache=s.resetWarningCache,g.PropTypes=g,g},ja}var $a,Er;function u1(){if(Er)return $a;Er=1;var e=Oa();function n(){}function a(){}return a.resetWarningCache=n,$a=function(){function o(i,c,h,l,d,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}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},$a}var kr;function f1(){if(kr)return Mn.exports;if(kr=1,process.env.NODE_ENV!=="production"){var e=qa(),n=!0;Mn.exports=h1()(e.isElement,n)}else Mn.exports=u1()();return Mn.exports}var m1=f1();const ve=yt(m1);var g1=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Ga(){return Ga=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},Ga.apply(this,arguments)}function p1(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 $n(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A1(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Qa(e,n)}function Qa(e,n){return Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},Qa(e,n)}var Gn=(function(e){A1(n,e);function n(){var o;return o=e.call(this)||this,o.handleExpired=o.handleExpired.bind($n(o)),o.handleErrored=o.handleErrored.bind($n(o)),o.handleChange=o.handleChange.bind($n(o)),o.handleRecaptchaRef=o.handleRecaptchaRef.bind($n(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=p1(s,g1);return Ya.createElement("div",Ga({},r,{ref:this.handleRecaptchaRef}))},n})(Ya.Component);Gn.displayName="ReCAPTCHA",Gn.propTypes={sitekey:ve.string.isRequired,onChange:ve.func,grecaptcha:ve.object,theme:ve.oneOf(["dark","light"]),type:ve.oneOf(["image","audio"]),tabindex:ve.number,onExpired:ve.func,onErrored:ve.func,size:ve.oneOf(["compact","normal","invisible"]),stoken:ve.string,hl:ve.string,badge:ve.oneOf(["bottomright","bottomleft","inline"]),isolated:ve.bool},Gn.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var Ha,Tr;function w1(){if(Tr)return Ha;Tr=1;var e=qa(),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,h=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,f=Object.prototype;function g(m,p,A){if(typeof p!="string"){if(f){var y=u(p);y&&y!==f&&g(m,y,A)}var S=h(p);l&&(S=S.concat(l(p)));for(var v=i(m),I=i(p),C=0;C<S.length;++C){var k=S[C];if(!a[k]&&!(A&&A[k])&&!(I&&I[k])&&!(v&&v[k])){var O=d(p,k);try{c(m,k,O)}catch{}}}}return m}return Ha=g,Ha}var y1=w1();const b1=yt(y1);function Fa(){return Fa=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},Fa.apply(this,arguments)}function C1(e,n){if(e==null)return{};var a={},o=Object.keys(e),s,r;for(r=0;r<o.length;r++)s=o[r],!(n.indexOf(s)>=0)&&(a[s]=e[s]);return a}function _1(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var De={},v1=0;function S1(e,n){return n=n||{},function(o){var s=o.displayName||o.name||"Component",r=(function(c){_1(h,c);function h(d,u){var f;return f=c.call(this,d,u)||this,f.state={},f.__scriptURL="",f}var l=h.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+v1++),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=De[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,y=m.scriptId;if(p&&typeof window[p]<"u"&&(De[f]={loaded:!0,observers:{}}),De[f]){var S=De[f];if(S&&(S.loaded||S.errored)){this.asyncScriptLoaderHandleLoad(S);return}S.observers[g]=function(O){return u.asyncScriptLoaderHandleLoad(O)};return}var v={};v[g]=function(O){return u.asyncScriptLoaderHandleLoad(O)},De[f]={loaded:!1,observers:v};var I=document.createElement("script");I.src=f,I.async=!0;for(var C in n.attributes)I.setAttribute(C,n.attributes[C]);y&&(I.id=y);var k=function(Q){if(De[f]){var J=De[f],H=J.observers;for(var D in H)Q(H[D])&&delete H[D]}};A&&typeof window<"u"&&(window[A]=function(){return u.asyncScriptLoaderTriggerOnScriptLoaded()}),I.onload=function(){var O=De[f];O&&(O.loaded=!0,k(function(Q){return A?!1:(Q(O),!0)}))},I.onerror=function(){var O=De[f];O&&(O.errored=!0,k(function(Q){return Q(O),!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=De[u];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],n.removeOnUnmount===!0&&delete De[u])},l.render=function(){var u=n.globalName,f=this.props;f.asyncScriptOnLoad;var g=f.forwardedRef,m=C1(f,["asyncScriptOnLoad","forwardedRef"]);return u&&typeof window<"u"&&(m[u]=typeof window[u]<"u"?window[u]:void 0),m.ref=g,E.createElement(o,m)},h})(E.Component),i=E.forwardRef(function(c,h){return E.createElement(r,Fa({},c,{forwardedRef:h}))});return i.displayName="AsyncScriptLoader("+s+")",i.propTypes={asyncScriptOnLoad:ve.func},b1(i,o)}}var za="onloadcallback",N1="grecaptcha";function Va(){return typeof window<"u"&&window.recaptchaOptions||{}}function I1(){var e=Va(),n=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+n+"/recaptcha/enterprise.js?onload="+za+"&render=explicit":"https://"+n+"/recaptcha/api.js?onload="+za+"&render=explicit"}const xr=S1(I1,{callbackName:za,globalName:N1,attributes:Va().nonce?{nonce:Va().nonce}:{}})(Gn),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"},Re=()=>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"})}),E1=({isOpen:e,onClose:n,commentId:a,publication:o,username:s,CAPTCHA_KEY_V2:r})=>{const[i,c]=E.useState("form"),[h,l]=E.useState(""),[d,u]=E.useState(""),[f,g]=E.useState(""),m=[{id:"spam",label:Qe.spam},{id:"inappropriate",label:Qe.inappropriate},{id:"hate",label:Qe.hate},{id:"misinformation",label:Qe.misinformation},{id:"terrorism",label:Qe.terrorism},{id:"intellectual",label:Qe.intellectual},{id:"bullying",label:Qe.bullying}],p=async()=>{if(!(!h||!a)){if(Ar(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:Qe[h]})})).json();if(S.type==="success")s1(document,a),c("success"),setTimeout(()=>{A()},3e3);else throw new Error(S.message||"Error al reportar comentario")}catch(y){console.error("Error reporting comment:",y),u(y.message||"Error al reportar comentario"),c("form")}}},A=()=>{c("form"),l(""),u(""),n()};return!e||!a||!s?null:t.jsx("div",{className:ge.overlay,children:t.jsxs("div",{className:ge.popup,children:[t.jsx("button",{className:"close-reply-form",onClick:A,children:t.jsx(Nt,{})}),t.jsx("h2",{className:ge.title,children:"Reportar Abuso"}),i==="loading"&&t.jsx("div",{className:ge.loadingContainer,children:t.jsx(Re,{})}),i==="form"||i==="loading"?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ge.optionsContainer,children:m.map(y=>t.jsxs("label",{className:ge.option,children:[t.jsx("input",{type:"radio",name:"reportReason",value:y.id,checked:h===y.id,onChange:S=>l(S.target.value),className:ge.radioInput}),t.jsx("span",{className:ge.radioCustom}),t.jsx("span",{className:ge.optionLabel,children:y.label})]},y.id))}),d&&t.jsx("div",{className:ge.errorMessage,children:d}),t.jsx(xr,{sitekey:r,theme:"light",size:"normal",onChange:y=>g(y??""),onExpired:()=>g("")}),t.jsxs("div",{className:ge.buttons,children:[t.jsx("button",{onClick:A,className:ge.cancelButton,children:"Cancelar"}),t.jsx("button",{onClick:p,disabled:!h,className:ge.reportButton,children:"Reportar"})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:ge.successContainer,children:[t.jsx("div",{className:ge.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:ge.successMessage,children:"¡Gracias por reportar!"})]}),t.jsx("div",{className:ge.buttons,children:t.jsx("button",{onClick:A,className:[ge.closeButton,ge.buttonAlone].join(" "),children:"Cerrar"})})]})]})})};function k1(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 Qn(e){const n=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?Qn({comments:a.reply}).comments:a.reply};const{user:o,text:s}=k1(a.text);return{...a,user:o||!1,text:s,reply:a.reply?Qn({comments:a.reply}).comments:a.reply}});return{...e,comments:n}}async function Hn({publication:e,path:n,size:a=5,sizereply:o=2,id:s,lastid:r,state:i="5,6",apiToken:c,API_ENV:h}){const{PUBLIC_ENV:l}=h;if(l==="prod"){const d=await Ur({publication:e,path:n,size:a,sizereply:o,id:s,lastid:r,state:i,apiToken:c,API_ENV:h});return Qn(d[0])}else{const d=await fetch(`/api/comments-get?publication=${e}&path=${n}&size=${a}&sizereply=${o}&lastid=${r}`);if(!d.ok)throw new Error(`Error al obtener comentarios: ${d.status}`);const u=await d.json();return Qn(u.data[0])}}async function Ur({publication:e,path:n,size:a=5,sizereply:o=2,id:s,lastid:r,state:i="5,6",apiToken:c,API_ENV:h}){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:l,PUBLIC_API_HOST:d,PUBLIC_API_PATH:u,PUBLIC_API_PATH_VERSION:f}=h,g=parseInt(String(a),10),m=parseInt(String(o),10);if(isNaN(g)||g<=0)throw new Error("Invalid size parameter");if(isNaN(m)||m<0)throw new Error("Invalid sizereply parameter");const p=l!=="prod"?`${d}${u}`:"",A=new URLSearchParams({publication:e,path:n,size:g.toString(),sizereply:m.toString(),state:i});s&&A.append("id",s),r&&A.append("lastid",r);const y=`${p}${f}/newcomments/get?${A.toString()}`;try{console.log("Fetching comments from:",y);const{data:S}=await oe.get(y,{headers:{"x-api-token":c,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!S)throw new Error("No comments data received");return S.data||S||[]}catch(S){if(console.error("Error fetching comments:",S),oe.isAxiosError(S)){const v=S.response?.status,I=S.response?.data;throw v===404?new Error("Comments not found"):v===403?new Error("Access forbidden - check API token"):v===401?new Error("Unauthorized - invalid API token"):v===500?new Error("Internal server error from CMS"):new Error(I?.error||I?.message||`HTTP ${v}: Failed to fetch comments`)}throw S}}const T1=(e,n)=>{const[a,o]=E.useState(void 0),{PUBLIC_PUBLICATION_ID:s}=n,r=s;return E.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:c}=n;try{const h=await Hn({publication:r,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:c,API_ENV:n});o(h??[])}catch(h){console.error(h),o({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:o}},Lr=({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:o1(Le(Number(n),a))})]}),qr=({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()}),Br=({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"})})})]})})]}),Pr=({commentRef:e,captchaToken:n="",setIsDisabled:a,API_ENV:o})=>(E.useEffect(()=>{const s=e.current;if(!s)return;const r=()=>{const c=s.value.length;s.parentElement&&(s.parentElement.dataset.text=`${c}/${wt}`),s.classList.toggle("over-limit",c>wt),a(!La(e,n,o).boolean)};return s.addEventListener("input",r),r(),()=>s.removeEventListener("input",r)},[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})]})),Or=({commentRef:e,captchaToken:n="",setCaptchaToken:a,children:o,API_ENV:s})=>{const r=La(e,n,s);return t.jsxs("div",{className:"form-actions",children:[t.jsx(xr,{sitekey:s.CAPTCHA_KEY_V2??"",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})]})]})},Dr=({onClick:e,isDisabled:n,API_ENV:a})=>{const[o,s]=E.useState(!1),{S3_ID_DIR:r="",PUBLIC_ENV:i,PUBLIC_API_HOST:c,PUBLIC_ASSETS_URL:h}=a;E.useEffect(()=>{let d=null;return o&&(d=setTimeout(()=>{s(!1)},2400)),()=>{d&&clearTimeout(d)}},[o]);const l=i=="local"?c:h&&h!=="false"?h:"";return o?t.jsx("div",{className:"success-gif-container",children:t.jsx("img",{className:"success-gif",src:l+"/arte/"+r+"/Success.gif"})}):t.jsxs("button",{type:"button",onClick:async d=>{await e(d)&&s(!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"})})]})},Mr=async({path:e,ref:n,captchaToken:a,button:o,user:s,id:r,addComment:i,API_ENV:c})=>{const h=n.current?.value||"",{PUBLIC_PUBLICATION_ID:l}=c,d=l;if(!La(n,a,c).boolean||!s){const u=o.nextElementSibling;return u&&(u.style.display="block"),!1}try{const u=Date.now(),f=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:d,path:e,id:r,username:s.username,comment:h,recaptchaResponse:a})});let g=null;try{g=await f.json()}catch(y){console.error("Error parsing JSON response:",y)}if(!f.ok)throw new Error(`Error al enviar comentario: ${g?.message} status: ${f.status}`);const m=Date.now(),p=Math.max(0,2400+Math.abs(m-u)),A={username:s.username,firstname:s.firstname,...s.lastname&&{lastname:s.lastname},...s.picture&&{picture:s.picture}};return i({id:m.toString(),text:h,user:A,date:{time:Date.now()},reply:[]}),n.current&&(n.current.value=""),p}catch(u){return console.error("Error enviando comentario:",u),alert(u.message||"Error al enviar el comentario."),!1}},x1=({replyingTo:e,commentRef:n,user:a,path:o,addReply:s,closeForm:r,API_ENV:i})=>{const[c,h]=E.useState(!0),[l,d]=E.useState(""),u=()=>{n.current?.parentElement&&(n.current.parentElement.dataset.text=`0/${wt}`),h(!0),r()};return t.jsxs("div",{className:"comment-form reply-form",children:[t.jsx("button",{className:"close-reply-form",onClick:u,children:t.jsx(Nt,{})}),t.jsx(Pr,{commentRef:n,captchaToken:l,setIsDisabled:h,API_ENV:i}),t.jsx(Or,{commentRef:n,captchaToken:l,setCaptchaToken:d,API_ENV:i,children:t.jsx(Dr,{onClick:async f=>{if(c)return;const g=await Mr({path:o,ref:n,captchaToken:l,button:f.currentTarget,user:a,id:e,addComment:s,API_ENV:i});return g&&typeof g=="number"?(setTimeout(()=>{u()},g),!0):!1},isDisabled:c,API_ENV:i})})]})},U1=({reply:e,replyingTo:n,user:a,onFlag:o,DATE_CONFIG:s})=>{const r=e.text;let i=`${Xe.firstname} ${Xe.lastname??""}`,c=Xe.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(qr,{user:e.user?e.user:Xe}),t.jsxs("div",{style:{flex:1},children:[t.jsx(Lr,{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(Br,{isReply:!0,onFlag:()=>o(e.id)})]})]})})},L1=({comment:e,replyingTo:n,path:a,user:o,handleReplyingTo:s,onFlag:r,API_ENV:i})=>{const c={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[h,l]=E.useState(c),[d,u]=E.useState(!1),{PUBLIC_PUBLICATION_ID:f,PUBLIC_X_SECURITY_TOKEN:g}=i,m=e.text,p=E.useRef(null);let A=`${Xe.firstname} ${Xe.lastname??""}`,y=Xe.username;e.user&&(A=`${e.user.firstname} ${e.user.lastname??""}`,y=e.user.username);const S=v=>{l({morereply:h.morereply,reply:[v,...h.reply]})};return t.jsx("div",{className:"comment-item",children:t.jsxs("div",{className:"comment-header-container","data-hasreplies":h.reply.length>0?"true":"false",children:[t.jsx(qr,{user:e.user?e.user:Xe}),t.jsxs("div",{style:{flex:1},children:[t.jsx(Lr,{username:A,date:e.date.time,DATE_CONFIG:i}),t.jsx("p",{className:"comment-text",children:m}),o?.username.toLowerCase()!==y.toLowerCase()&&t.jsx(Br,{onReply:()=>s(e.id),onFlag:()=>r(e.id)}),n===e.id&&o&&t.jsx(x1,{replyingTo:n,commentRef:p,addReply:S,user:o,path:a,API_ENV:i,closeForm:()=>s("")}),h.reply.length>0&&t.jsxs("div",{className:"comment-replies",children:[h.reply.map(v=>t.jsx(U1,{user:o,reply:v,replyingTo:A,onFlag:r,DATE_CONFIG:i},v.id)),d?t.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:t.jsx(Re,{})}):h.morereply&&t.jsx("button",{className:"comment-replies-button reply-button",onClick:async()=>{const v=h.reply[h.reply.length-1]?.id;u(!0);try{const C=await Hn({publication:f??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:v,state:"5,6",apiToken:g??"",API_ENV:i});u(!1),l({morereply:C.morecomment,reply:[...h.reply,...C.comments]})}catch(I){throw u(!1),new Error(`Error al obtener comentarios: ${I}`)}},children:"Más Respuestas"})]})]})]})})},q1=({commentRef:e,user:n,path:a,addComment:o,API_ENV:s})=>{const[r,i]=E.useState(!0),[c,h]=E.useState("");return t.jsxs("div",{className:"comment-form",children:[t.jsx(Pr,{commentRef:e,captchaToken:c,setIsDisabled:i,API_ENV:s}),t.jsx(Or,{API_ENV:s,commentRef:e,captchaToken:c,setCaptchaToken:h,children:t.jsx(Dr,{onClick:async l=>{if(r)return;const d=await Mr({path:a,ref:e,captchaToken:c,button:l.currentTarget,user:n,addComment:o,API_ENV:s});return d&&typeof d=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${wt}`),i(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${wt}`),i(!0)},d),!0):!1},isDisabled:r,API_ENV:s})})]})},B1=({isAuthenticated:e,path:n,user:a,handleLogout:o,API_ENV:s})=>{const{PUBLIC_PUBLICATION_ID:r,PUBLIC_X_SECURITY_TOKEN:i}=s,c=r??"",h=n.replaceAll("/","|"),[l,d]=E.useState(void 0),[u,f]=E.useState(""),{comments:g,setComments:m}=T1(h,s),[p,A]=E.useState(!1),y=E.useRef(null),S=J=>{f(u===J?"":J)},v=J=>{m(g?{...g,comments:[J,...g.comments??[]]}:void 0)},I=J=>{d(J)},C=async()=>{if(!g||!g.morecomment||g.comments.length===0)return;const J=g.comments[g.comments.length-1];if(!J)return;A(!0);const H=J.id;try{const D=await Hn({publication:c,path:h??"",size:5,sizereply:2,id:void 0,lastid:H,state:"5,6",apiToken:i,API_ENV:s});m({morecomment:D.morecomment??!1,comments:[...g.comments,...D.comments]}),A(!1)}catch(D){throw A(!1),new Error(`Error al obtener comentarios: ${D}`)}},k=g?.comments&&g.comments.length>0,O=k?"Comparte tu opinión de este artículo.":"Se el primero en compartir tu opinión de este artículo.",Q=t.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:t.jsx(Re,{})});return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"comments-container",children:t.jsx(fe,{title:k||e?"COMENTARIOS":!1,children:t.jsxs(t.Fragment,{children:[e&&a&&t.jsxs("div",{className:"comments-header",children:[t.jsx(t1,{user:a,handleLogout:o,message:O}),t.jsx(q1,{commentRef:y,user:a,addComment:v,path:h,API_ENV:s})]}),g?g.comments&&g.comments.length>0?t.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[g.comments.map(J=>t.jsx(L1,{comment:J,replyingTo:u,handleReplyingTo:S,onFlag:I,user:a??Xe,path:h,API_ENV:s},J.id)),p&&Q]}):null:Q,g?.morecomment&&!p&&t.jsx("button",{className:"comment-replies-button",onClick:C,children:"Más"})]})})}),t.jsx(E1,{username:a?.username??void 0,publication:c,commentId:l,isOpen:l!==void 0,onClose:()=>d(void 0),CAPTCHA_KEY_V2:s.CAPTCHA_KEY_V2??""})]})},Wa=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)}})})},jr={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}},Fn=[{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 P1({goToLogin:e,handleGoogleLogin:n,API_ENV:a}){const[o,s]=E.useState({}),[r,i]=E.useState(!1),[c,h]=E.useState(!1),[l,d]=E.useState(null),[u,f]=E.useState("register"),g=(y,S)=>{s(v=>({...v,[y]:S}))},m=async y=>{y.preventDefault(),d(null),h(!0);try{const S=Object.keys(jr).filter(Q=>!["username","password","confirmPassword"].includes(Q)).map(Q=>({Name:Q,Value:o[Q]}));if(S.some(Q=>{if(!Q.Value||Q.Value.trim()==="")return!0}))return h(!1),d("Complete todos los campos");if(o.password!==o.confirmPassword){d("Las contraseñas no coinciden");return}const v=o.password||"";if(Fn.some(Q=>!Q.test(v))){d("La contraseña no es válida");return}const C=Math.floor(Date.now()/1e3);S.push({Name:"updated_at",Value:String(C)});const k=a.PUBLIC_ENV==="local"?"token":await Wa("comment_register",a.CAPTCHA_KEY??"");if(!k)throw new Error("Captcha token no generado");const O=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(!O.ok){const Q=await O.json().catch(()=>({}));if(Q.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(Q?.error||"Error al crear usuario")}f("confirm")}catch(S){console.log(S),d(S?.message||S?.error||"Error inesperado")}finally{h(!1)}},p=async y=>{if(y.preventDefault(),!o.confirmationCode){d("Debes ingresar el código de verificación");return}d(null),h(!0);try{const S=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o.email,code:o.confirmationCode})});if(!S.ok){const v=await S.json().catch(()=>({}));throw new Error(v?.error||"Error al confirmar usuario")}f("success")}catch(S){d(S?.message||"Error inesperado")}finally{h(!1)}},A=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(jr).map(([y,{label:S}])=>t.jsxs("div",{className:x.field,children:[t.jsx("label",{className:x.label,children:S}),t.jsx("input",{type:y.toLowerCase().includes("password")?r?"text":"password":y==="birthdate"?"date":y==="email"?"email":y==="phone_number"?"tel":"text",name:y,value:o[y]||"",onChange:v=>g(y,v.target.value),className:x.input,placeholder:""}),y==="password"&&t.jsx("div",{className:x.passwordChecker,children:Fn.map((v,I)=>{const C=v.test(A);return t.jsxs("div",{className:C?x.valid:x.invalid,children:[t.jsx("div",{children:C?"✔":"○"}),t.jsx("div",{children:v.label})]},I)})}),y==="confirmPassword"&&t.jsxs("div",{className:x.checkboxRow,children:[t.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:r,onChange:v=>i(v.target.checked)}),t.jsx("label",{htmlFor:"showPasswordRegister",className:x.checkboxLabel,children:"Mostrar contraseñas"})]})]},y))}),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(Re,{}):"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:y=>g("confirmationCode",y.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(Re,{}):"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 O1({onClose:e,checkAuth:n,goToRegister:a,handleGoogleLogin:o,API_ENV:s}){const[r,i]=E.useState("login"),[c,h]=E.useState(""),[l,d]=E.useState(""),[u,f]=E.useState(""),[g,m]=E.useState(""),[p,A]=E.useState(""),[y,S]=E.useState(!1),[v,I]=E.useState(!1),[C,k]=E.useState(null),O=async H=>{if(!v){H.preventDefault(),k(null),I(!0);try{const D=s.PUBLIC_ENV==="local"?"token":await Wa("comment_login",s.CAPTCHA_KEY||"");if(!D)throw new Error("Captcha token no generado");const ee=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:c,password:l,token:D})});if(!ee.ok){const ce=await ee.json().catch(()=>({}));throw new Error(ce?.error||"Ha ocurrido un error")}e(),await n()}catch(D){k(D?.message||"Error inesperado")}finally{I(!1)}}},Q=async H=>{if(!v){H.preventDefault(),k(null),I(!0);try{const D=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c})});if(!D.ok){const ee=await D.json().catch(()=>({}));throw new Error(ee?.error||"Error al enviar código")}d(""),i("changePassword")}catch(D){k(D?.message||"Error inesperado")}finally{I(!1)}}},J=async H=>{if(v)return;if(H.preventDefault(),g!==p){k("Las contraseñas no coinciden");return}if(Fn.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 ce=await ee.json().catch(()=>({}));throw new Error(ce?.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(D1,{email:c,password:l,showPassword:y,loading:v,error:C,setEmail:h,setPassword:d,setShowPassword:S,onSubmit:O,onForgot:()=>{k(null),i("forgot")},onRegister:a,handleGoogleLogin:o}),r==="forgot"&&t.jsx(M1,{email:c,setEmail:h,loading:v,error:C,onSubmit:Q,onBack:()=>{k(null),i("login")}}),r==="changePassword"&&t.jsx(j1,{email:c,confirmationCode:u,newPassword:g,confirmNewPassword:p,showPassword:y,loading:v,error:C,setConfirmationCode:f,setNewPassword:m,setConfirmNewPassword:A,setShowPassword:S,onSubmit:J,onBack:()=>{k(null),i("forgot")}}),r==="feedback"&&t.jsx($1,{onBackToLogin:()=>{k(null),i("login")}})]})}function D1({email:e,password:n,showPassword:a,loading:o,error:s,setEmail:r,setPassword:i,setShowPassword:c,onSubmit:h,onForgot:l,onRegister:d,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:h,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(Re,{}):"Iniciar Sesión"})]}),t.jsxs("p",{className:x.switch,children:["¿No tenés cuenta?",t.jsx("button",{type:"button",onClick:d,children:"Registrate"})]}),t.jsx("button",{type:"button",className:x.forgotPassword,onClick:l,children:"Olvidé mi contraseña"})]})}function M1({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(Re,{}):"Enviar código"}),t.jsx("p",{className:x.switch,children:t.jsx("button",{type:"button",onClick:r,children:"Volver"})})]})}function j1({email:e,confirmationCode:n,newPassword:a,confirmNewPassword:o,showPassword:s,loading:r,error:i,setConfirmationCode:c,setNewPassword:h,setConfirmNewPassword:l,setShowPassword:d,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 ",r1(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=>h(g.target.value),className:x.input,placeholder:"",name:"password"}),t.jsx("div",{className:x.passwordChecker,children:Fn.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=>d(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(Re,{}):"Cambiar contraseña"}),t.jsx("p",{className:x.switch,children:t.jsx("button",{type:"button",onClick:f,children:"Volver"})})]})}function $1({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 G1({loginUrl:e,onClose:n,checkAuth:a,icon:o,API_ENV:s}){const[r,i]=E.useState("login"),c=async()=>{if(s.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),n(),a();return}if(!e)return;const h=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${h}`};return t.jsx("div",{className:x.overlay,role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:h=>{const l=h.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(Nt,{})})]}),r==="login"&&t.jsx(O1,{onClose:n,checkAuth:a,handleGoogleLogin:c,goToRegister:()=>i("register"),API_ENV:s}),r==="register"&&t.jsx(P1,{handleGoogleLogin:c,goToLogin:()=>i("login"),API_ENV:s})]})})}function Q1({isAuthenticated:e,setIsAuthenticated:n,loginUrl:a,user:o,path:s,checkAuth:r,icon:i,API_ENV:c,commentLabel:h}){const[l,d]=E.useState(!1),u=async()=>{if(c.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),n(!1);else{const g=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(g)}`}},f=async g=>{g.preventDefault(),a&&d(!0)};return t.jsxs(t.Fragment,{children:[l&&t.jsx(G1,{loginUrl:a,icon:i,checkAuth:r,API_ENV:c,onClose:()=>{d(!1)}}),!e&&t.jsxs("div",{className:"auth-container",children:[t.jsx("p",{children:"Súmate a la comunidad para dejar tu comentario"}),t.jsx("a",{href:a,onClick:f,className:"login-button",children:h||"Iniciar Sesión"})]}),t.jsx(B1,{isAuthenticated:e,handleLogout:u,path:s,user:e?o:void 0,API_ENV:c})]})}function H1({isVisible:e,path:n,icon:a,API_ENV:o,commentLabel:s}){const[r,i]=E.useState(null),[c,h]=E.useState(null),l=o?.COGNITO_AUTH_PREFIX??"ASTRO_",d=E.useCallback(async()=>{if(e){if(document.cookie.search(l+"IS_AUTH=true")===-1){i(!1),h(null);return}try{const m=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(m.isAuthenticated??!1),h(m.user??null)}catch(g){console.error("Error checking auth:",g),i(!1),h(null)}}},[e,l]);E.useEffect(()=>{d()},[d,e]),E.useEffect(()=>{if(!c||!e||typeof window>"u")return;const g=window;if(typeof g!="function"){console.warn("gtag no está disponible todavía");return}g.gtag("set",{user_id:c.username}),console.log("username setted successfully")},[c,e]);const u="/api/auth/login",f=t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:310,position:"relative"},children:t.jsx(Re,{})});return r===null?f:e?t.jsx(Q1,{icon:a,isAuthenticated:r,setIsAuthenticated:i,loginUrl:u,user:c??void 0,checkAuth:d,path:n,API_ENV:o,commentLabel:s}):f}const F1=({render:e,internalPath:n,section:a,stylesConfig:o,icon:s,isVisibleDefault:r=!1,paths:i,API_ENV:c,fetchConfig:h,commentLabel:l})=>{const d=E.useRef(null),[u,f]=E.useState(r);E.useEffect(()=>{if(r||u)return;const m=new IntersectionObserver(([p])=>{p?.isIntersecting&&(f(!0),m.disconnect())},{rootMargin:"0px",threshold:.1});return d.current&&m.observe(d.current),()=>m.disconnect()},[]);const g={comment:t.jsx(H1,{path:n,icon:s,isVisible:u,API_ENV:c,commentLabel:l}),more:t.jsx(Xd,{section:a,internalPath:n,stylesConfig:o,isVisible:u,paths:i,fetchConfig:h,API_ENV:c})};return t.jsx("div",{ref:d,suppressHydrationWarning:!0,style:{...o?o["Modulo 1x3 Client"]?o["Modulo 1x3 Client"]:o["Modulo 1x3"]:{}},children:g[e]})};async function z1({publication:e,path:n,username:a,comment:o,id:s,recaptchaResponse:r,baseUrl:i,apiToken:c,securityToken:h,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 d=await pr(r,l);if(console.log("Verifying captcha token...",d),!d)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const u=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,f={publication:e,path: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":h,"x-api-token":c,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),oe.isAxiosError(m)){const p=m.response?.status??500,A=m.response?.data;return p===400?{type:"error",message:A?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:p===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:p===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:A?.message||"No se pudo enviar el comentario.",status:p}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const V1=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))}};b.AssetsPreconnect=mo,b.AutorComponent=Fd,b.AutorHeader1=Bs,b.AutorHeader2=Ps,b.BannerAdvertising=pe,b.BannerAdvertisingMiddle=je,b.CarrouselCSR=nl,b.CarrouselIRS=ht,b.CarruselCard=tr,b.CarruselOpinion=nr,b.CommonServices=tt,b.Comscore=Ka,b.ContactInfoServer=Yl,b.ContactInput=Il,b.ContactSelect=El,b.ContactTextarea=kl,b.ContentLayout1=St,b.ContentLayoutTema=Aa,b.DEBUG_MainSlots=jd,b.DestacadoNoticias=Vs,b.DestacadoVideos=Xs,b.DynamicBlockServices=us,b.DynamicComponents=Md,b.DynamicMainSlot=Dn,b.DynamicSlot=Kt,b.EditorialBlock=Ql,b.ErrorComponent=Nl,b.Font=So,b.Footer=_l,b.FormatAfterScripts=fo,b.FormatScripts=Kn,b.GA4=Ja,b.GTM=Za,b.GalleryHeader=sr,b.GenerateBody=Zc,b.GenerateHead=Jc,b.Header=Ol,b.IframeHeader=lr,b.ImageOffline=ws,b.ImageOnline=Ne,b.ImageOnlineClient=As,b.IssuuServices=zc,b.ItemListSchema=yo,b.JournalistArticule2=Gs,b.JournalistGroup=Qs,b.LayoutNewsComponent=ya,b.LazyLoader=F1,b.LinkComponent=B,b.LiveBlogHeader=Ls,b.Location=el,b.MainComponentServices=Ci,b.Marfeel=Xa,b.MiddleSection=He,b.Modulo1x3=Na,b.Modulo1x3Card=er,b.Modulo1x4=Js,b.Modulo1x5=Zs,b.Modulo2Columnas=Hl,b.Modulo3Columnas=Ys,b.ModuloNewsletter=Fl,b.ModuloOpinion=Gl,b.NewListResponseDataPH=gr,b.NewsArticle=bo,b.NewsComponent=Gd,b.NewsContent=In,b.NewsDescriptionComponent=ut,b.NextPrev=$t,b.OrgList=Co,b.PreloadImages=Zn,b.REPORT_REASONS=Qe,b.Readest=Cn,b.ScriptHydrator=Kd,b.SearchSection=Hd,b.Section=fe,b.SectionCard=$e,b.SectionCard2=Qt,b.SectionCardServerComponent=Bn,b.SectionServerComponent=Wl,b.ShowSection=da,b.SocialNetworks=Ta,b.SpeculationRules=wo,b.StaticSlotWrapper=Dd,b.SubscribeColumn=_s,b.SubscribeRow=vs,b.SubscribeWhatsAppColumn=fl,b.TagHeader=Dl,b.TagSection=$s,b.TimeLine=qs,b.TrimPathname=di,b.VideoBlock3=Sl,b.VideoBlock4=Ul,b.VideoEmbeddedHeader=ir,b.VideoSection=Yd,b.VideoYoutubeHeader=cr,b.VideosSchemas=vo,b.WebsiteList=_o,b.addComment=z1,b.bannersReplace=sn,b.becomeVideoObject=bt,b.buildTagUrl=et,b.coloringByStrokeSVGs=Cl,b.compileStyleProps=On,b.createAssessment=Ai,b.cutString=qe,b.extractMainSlug=Te,b.extractRealtedNews=Wn,b.formatDate=Le,b.formatDateEdiciones=ii,b.formatDateJournalistArticule=on,b.formatDateTimeline=so,b.formatNewsMeta=co,b.formatVideoData=go,b.generalGetData=Yc,b.getCaptchaToken=Wa,b.getComments=Ur,b.getConfig=K,b.getDynamicSlots=Vc,b.getEnvironmentUrl=Ut,b.getEnvironmentUrlFront=ci,b.getHydratorPath=mi,b.getImageUrl=de,b.getNextMeta=Lt,b.getPage=Bt,b.getPlayIcon=bn,b.getPreloadImages=bi,b.getPrevMeta=qt,b.getRelatedNewsCarrousel=gi,b.getReportReasonLabel=a1,b.getResponse=it,b.getResponsePromise=ro,b.getSchemas=rn,b.getScriptReplaces=Xn,b.getSlugs=Io,b.getTypeOfNews=ui,b.getVideoRealPath=fi,b.handleGetComments=Hn,b.initLibrary=Hr,b.metadataToJSX=uo,b.metadata_defaults=fs,b.parseTags=Yn,b.pathnameSplit=lo,b.processExtractedRelatedNews=io,b.removePages=No,b.reportComment=n1,b.shareButtons=Ts,b.socialIcons=Sn,b.speculationRules=Ao,b.speculationRulesHome=po,b.urlReplaces=ho,b.usePlayIcon=ma,b.verifyCaptchaTokenEnterprise=V1,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
|