"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[207,2802,3047,3096,3149,4353,4434,4445,7341,8594],{4434:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o});var l=a(95155),s=a(12115),i=a(27331),n=a(35704),r=a(40207),c=a(56860);let d=e=>{var t,a;return window.scrollTo(0,(null===(t=e.current)||void 0===t?void 0:t.offsetTop)||0+((null===(a=e.current)||void 0===a?void 0:a.offsetHeight)||0))};function o(e){let{title:t,description:a,subcategories:o,items:x,type:m,banner_title:p,banner_description:g}=e,[h,u]=(0,s.useState)([]),[j,v]=(0,s.useState)([]),[f,w]=(0,s.useState)(1),[b,N]=(0,s.useState)(!1),[y,F]=(0,s.useState)(6),[k,_]=(0,s.useState)(!0),[A,E]=s.useState(null),[z,S]=s.useState(!0),[$,C]=(0,s.useState)(null),I=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(A){S(!0);let e=setTimeout(()=>T(A),500);return()=>clearTimeout(e)}u(j),S(!1)},[A,j]),(0,s.useEffect)(()=>{let e=function(){function e(){return window.innerWidth}return window.addEventListener("resize",e),e()>992?12:6}();if(F(e),e>6&&_(!1),null==x?void 0:x.results){let t=x.results.slice(0,e);e0&&x.results[0].data&&x.results[0].data.category&&x.results[0].data.category.id&&C(x.results[0].data.category.id),S(!1)},[]);let L=async(e,t,a)=>await fetch("/api/posts?type=".concat(e,"&limit=").concat(t,"&page=").concat(a,"&customType=post")).then(e=>e.json()).then(e=>e),V=async(e,t,a)=>await fetch("/api/posts?category=".concat(e,"&limit=").concat(t,"&page=").concat(a,"&customType=post&type=Research")).then(e=>e.json()).then(e=>e),U=async(e,t,a)=>await fetch("/api/posts?s=".concat(e,"&customType=post&type=Research").concat($?"&category="+$:"","&limit=").concat(t,"&page=").concat(a)).then(e=>e.json()).then(e=>e),B=async()=>{let e;let t=f+1;w(t),(e=$?await V($,y,t):A?await U(A,y,t):await L(m||"",y,t))&&u([...h,...e.results]),y*t{let t;S(!0);let a=e.value;w(1),a?(t=await V(a,y,1),C(a)):(t=await L(m||"",y,1),C(null)),1*y{w(1);let t=e?await U(e,y,1):j;1*yE(e.target.value),placeholder:"Buscar reportes",background:"VioletaClaro",icon:"search"})}),(0,l.jsx)("div",{}),o&&o.length>0&&(0,l.jsx)("div",{className:"col-span-1 md:flex md:justify-end",children:(0,l.jsx)("div",{className:"w-full md:max-w-[296px]",children:(0,l.jsx)(n.l6,{onChange:G,options:(()=>{let e=(null==o?void 0:o.map(e=>({label:e.data.name[0].text,value:e.id})))||[];return e.unshift({label:"Todos los reportes",value:0}),e})()})})})]}),t&&t[0]&&t[0].text&&(0,l.jsxs)("div",{className:"my-8 max-w-[816px]",children:[t&&(0,l.jsx)("div",{className:"text-xl md:text-2xl font-semibold pt-3",children:(0,i.e)(t)}),a&&(0,l.jsx)("div",{className:"mb-10",children:(0,i.e)(a)})]})]}),z?(0,l.jsx)(n.y$,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:I,className:"mb-8 md:mb-10",children:h&&h.length?(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:h.map((e,t)=>{let a={parent:e.data.category.slug||"",child:(0,c.Y)(e.data.date)||""};return(0,l.jsxs)(s.Fragment,{children:[k&&3===t&&p&&(0,l.jsx)("div",{className:"col-span-1 md:col-span-3",children:(0,l.jsx)(r.default,{title:p,description:g})}),!k&&6===t&&p&&(0,l.jsx)("div",{className:"col-span-1 md:col-span-3",children:(0,l.jsx)(r.default,{title:p,description:g})}),(0,l.jsx)(n.CK,{...e.data,caption:a,showExcerpt:!0,locked:e.data.private,link:e})]},e.id)})}):(0,l.jsxs)("div",{className:"text-center my-6",children:[(0,l.jsx)("img",{src:"/static/img/no-content.png",alt:"\xedcono de error",className:"inline-block mb-4"}),(0,l.jsx)("div",{className:"text-xl md:text-2xl font-semibold",children:"Research"===m&&"No encontramos posts relacionados"})]})}),(0,l.jsxs)("div",{className:"flex justify-center items-center relative h-14",children:[b&&(0,l.jsx)(n.$n,{variant:"Secundario",direction:"right",onClick:B,children:"Mostrar m\xe1s"}),(0,l.jsx)("div",{className:"absolute right-0",children:(0,l.jsx)(n.WL,{})})]})]})]})})}},2802:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var l=a(95155),s=a(12115),i=a(35704),n=a(62362),r=a(43777);let c=e=>{let{title:t,description:a,items:c,cta_main_title:d,cta_main_link:o,cta_main_variant:x="Primario",cta_secondary_title:m,cta_secondary_link:p,cta_secondary_variant:g="Secundario",title_secondary:h,description_secondary:u}=e,{user:j}=(0,s.useContext)(n.default);return(0,l.jsx)("section",{className:"relative flex justify-center items-center lg:min-h-[490px] sm:max-w-[540px] md:max-w-[720px] lg:max-w-[960px] xl:max-w-[1230px] mx-auto",children:(0,l.jsxs)("div",{className:"relative w-full h-full mx-auto px-4",children:[(0,l.jsxs)("div",{className:"relative z-10 max-w-[496px] xl:max-w-[816px] mx-auto text-center",children:[t&&(0,l.jsx)("div",{className:"mb-8",children:(0,l.jsx)(r.$,{field:j&&h?h:t})}),a&&(0,l.jsx)("div",{className:"mb-4 max-w-[500px] mx-auto",children:(0,l.jsx)(r.$,{field:j&&u?u:a})}),(0,l.jsxs)("div",{className:"flex justify-center items-center gap-4 text-center",children:[!j&&d&&o&&(0,l.jsx)(i.$n,{variant:x,link:o,children:d}),j&&m&&p&&(0,l.jsxs)(i.$n,{variant:g,link:p,children:[m,"3"]})]})]}),(0,l.jsx)("div",{className:"w-full absolute top-[calc(50%-175px)] bottom-0 left-0 right-0 z-0 lg:block hidden",children:null==c?void 0:c.map((e,t)=>(0,l.jsx)("div",{className:"absolute top-0 bottom-0 ".concat(0===t?"left-[-173px]":"right-[-173px]"),children:(0,l.jsx)(i._V,{...e.images,fluid:!0,width:330,height:330,alt:e.images.alt})},e.images?"".concat(e.images.id,"-").concat(t):t))})]})})}},77341:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var l=a(95155),s=a(58803),i=a.n(s);a(12115);var n=a(43777),r=a(42837);function c(e){let{link:t,title:a}=e,s=t&&t[0].oembed.embed_url,c=s&&(s.indexOf("youtube")>-1||s.indexOf("youtu")>-1||s.indexOf("vimeo")>-1);return(0,l.jsx)("section",{children:(0,l.jsxs)("div",{className:"relative w-full h-full mx-auto sm:max-w-[540px] md:max-w-[720px] lg:max-w-[960px] xl:max-w-[1230px] sm:px-0 px-4",children:[c?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)("div",{className:"mb-4 w-full flex items-center",children:(0,l.jsx)(n.$,{field:a})}),(0,l.jsxs)("div",{className:"".concat(c?"relative pb-[40%] lg:pb-[56.25%] h-0 max-h-[300px] overflow-hidden max-w-[1000px] mx-auto":""),children:[(0,l.jsx)(n.$,{field:t,components:r.u}),c&&(0,l.jsx)(i(),{id:"f514f132f194257c",children:"iframe{width:100%;height:100%;position:absolute;top:0;left:0}"})]})]})})}},40207:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var l=a(95155);a(12115);var s=a(35704),i=a(43777),n=a(27331);let r=e=>{let{caption:t,caption_secondary:a,title:r,title_secondary:c,description:d,description_secondary:o,cta_text:x,cta_text_secondary:m,cta_link:p,cta_link_secondary:g}=e;return(0,l.jsx)("section",{className:"w-full pb-10",children:(0,l.jsx)("div",{className:"relative w-full h-full mx-auto sm:max-w-[540px] md:max-w-[720px] lg:max-w-[960px] xl:max-w-[1230px] sm:px-0 px-4",children:(0,l.jsx)("div",{className:"bg-[#06083F] rounded-lg text-white p-6 md:p-8 lg:p-[63px_82px_55px]",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[(0,l.jsxs)("div",{className:"texts",children:[t&&(0,l.jsx)("p",{className:"text-white mb-2 lg:mb-4",children:t}),r&&(0,l.jsx)("h2",{className:"text-2xl leading-6 lg:text-3xl lg:leading-[38px] font-semibold",children:(0,n.e)(r)}),d&&(0,l.jsx)("div",{className:"mt-2 lg:mt-4",children:(0,l.jsx)(i.$,{field:d})})]}),p&&x&&(0,l.jsx)("div",{className:"cta lg:flex lg:items-center lg:justify-end lg:text-right",children:(0,l.jsx)(s.$n,{variant:"Primario",link:p,blockXs:!0,children:x})}),!p&&!x&&(0,l.jsx)("div",{className:"cta lg:flex lg:items-center lg:justify-end lg:text-right",children:(0,l.jsx)(s.$n,{variant:"Primario",link:{url:"https://micuenta.invertironline.com/registrarme"},blockXs:!0,children:"Quiero abrir mi cuenta"})})]})})})})}},98594:(e,t,a)=>{a.r(t),a.d(t,{color:()=>c,default:()=>d});var l=a(95155),s=a(12115),i=(a(929),a(23299),a(35704)),n=a(43777),r=a(27331);a(71411);let c={lightGrey:"#F7F7F7",black:"#1A1A1A",violet:"#30315E",white:"#FFFFFF"};function d(e){let{title:t,description:a,caption:d,align:o,type:x,contents_type:m,background:p,items:g,cta_link:h,cta_text:u,divider:j,image:v}=e,[f,w]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=()=>{window.innerWidth<992&&w(!0)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]);let b=()=>"Productos"===m?"product":"Novedades"===m?"post":"bullet",N=(null==g?void 0:g.length)&&g.length>=4?4:null==g?void 0:g.length;return(0,l.jsxs)("section",{className:"py-6 lg:py-14 ".concat("Gris"===p?"bg-[#F7F7F7]":"bg-white"," text-[#1A1A1A]"),children:[j&&(0,l.jsx)(i.cG,{background:c.lightGrey}),(0,l.jsxs)("div",{className:"relative w-full h-full mx-auto sm:max-w-[540px] md:max-w-[720px] lg:max-w-[960px] xl:max-w-[1230px] sm:px-0 px-4",children:[v&&v.url&&(0,l.jsx)("div",{className:"hidden lg:block absolute top-[-40px] right-[-70px] z-0",children:(0,l.jsx)(i._V,{...v,width:350,height:250,alt:""})}),(0,l.jsxs)("div",{className:"mb-6 lg:mb-8 featured__text-container ".concat("Centro"===o?"lg:text-center lg:max-w-none":"lg:text-left lg:max-w-[504px]"),children:[d&&(0,l.jsx)("p",{className:"text-[#30315E]",children:d}),t&&(0,l.jsx)("h3",{className:"mb-2 lg:mb-4 font-semibold",children:(0,r.e)(t)}),a&&(0,l.jsx)(n.$,{field:a})]})]}),g&&g.length?(0,l.jsxs)(l.Fragment,{children:[!1,(0,l.jsx)("div",{className:"relative w-full h-full mx-auto sm:max-w-[540px] md:max-w-[720px] lg:max-w-[960px] xl:max-w-[1230px] sm:px-0 px-4",children:(0,l.jsx)("div",{className:"grid gap-4 featured__content mb-6 grid-cols-1 ".concat(1===N?"md:grid-cols-1":2===N?"md:grid-cols-2":3===N?"md:grid-cols-3":"md:grid-cols-4"),children:g.map((e,t)=>"product"===b()?(0,l.jsx)(i.tZ,{...e.data,link:e},"card-product-".concat(t)):"post"===b()?(0,l.jsx)(i.Iu,{...e.data,link:e,size:Number(N),showExcerpt:1===Number(N)},"card-standard-".concat(t)):(0,l.jsx)(i.CK,{...e.data,caption:{parent:m,child:e&&e.data&&e.data.category?e.data.category.slug:""},showExcerpt:!0,link:e},"card-bullets-".concat(t)))})})]}):(0,l.jsx)("div",{className:"relative w-full h-full mx-auto sm:max-w-[540px] md:max-w-[720px] lg:max-w-[960px] xl:max-w-[1230px] sm:px-0 px-4",children:(0,l.jsx)(i.$D,{title:"Novedades"===m?"No encontramos novedades relacionadas":"Research"===m?"No encontramos posts relacionados":"Academy"===m?"No encontramos cursos relacionados":void 0})}),u&&h&&(0,l.jsx)("div",{className:"relative w-full h-full mx-auto sm:max-w-[540px] md:max-w-[720px] lg:max-w-[960px] xl:max-w-[1230px] sm:px-0 px-4",children:(0,l.jsx)("div",{className:"featured__ctas lg:text-center ".concat("Academy"===m?"lg:flex":""),children:(0,l.jsx)(i.$n,{variant:"Secundario",link:h,className:"Academy"===m?"lg:mx-auto":"",children:u})})})]})}},83149:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var l=a(95155),s=a(12115),i=a(35704),n=a(27331);let r=e=>{var t,a;let{image:r,link:c,title:d}=e,[o,x]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=()=>{window.innerWidth<992&&x(!0)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),(0,l.jsx)("section",{className:"pb-10 min-h-[200px]",children:(0,l.jsx)("div",{children:r&&r.url?(0,l.jsxs)(l.Fragment,{children:[d&&(0,l.jsx)("h4",{className:"text-[20px] leading-[24px] lg:text-[24px] lg:leading-[29px] mb-6",children:(0,n.e)(d)}),c&&"Any"!==c.link_type?(0,l.jsx)(i.N_,{document:c,children:(0,l.jsx)("div",{className:"text-center flex justify-center",children:o?(0,l.jsx)(i._V,{...r.mobile,fluid:!0,alt:null===(t=r.mobile)||void 0===t?void 0:t.alt}):(0,l.jsx)(i._V,{...r,width:r.dimensions.width>1230?1230:r.dimensions.width,fluid:!0,alt:r.alt})})}):(0,l.jsx)("div",{className:"text-center flex justify-center",children:o?(0,l.jsx)(i._V,{...r.mobile,fluid:!0,alt:null===(a=r.mobile)||void 0===a?void 0:a.alt}):(0,l.jsx)(i._V,{...r,width:r.dimensions.width>1230?1230:r.dimensions.width,fluid:!0,alt:r.alt})})]}):(0,l.jsx)("h3",{className:"text-center flex justify-center",children:"Ingresar una imagen"})})})}},43047:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var l=a(95155),s=a(12115);let i=e=>{switch(e){case"Inicial":default:return"bg-[#F4F4FF]";case"Intermedio":return"bg-[#30315E]";case"Avanzado":return"bg-[#06083F]"}},n=e=>"Inicial"!==e?"text-white":"text-[#06083F]",r=e=>"Inicial"!==e?"text-[#F7F7F7]":"text-[#06083F]",c=e=>"".concat("transition-all duration-500 ease-in-out overflow-hidden"," ").concat(e?"max-h-[500px]":"max-h-0"," lg:max-h-none"),d=e=>"ml-2 transform ".concat(e?"rotate-180":"rotate-0"," lg:hidden"),o=e=>"linear-gradient(".concat(e?"white":"#06083F"," 40%, rgba(255, 255, 255, 0) 0%)");var x=a(43777),m=a(35704);function p(e){let{caption:t,title:a,description:p,items:g,image:h,level:u,cta_text:j,cta_link:v}=e,[f,w]=(0,s.useState)("Inicial"),b=e=>{w(t=>t===e?null:e)},N=f===u,y="Inicial"===u,F=i(u),k=n(u),_=r(u),A=c(N),E=d(N),z=g.length>4?4:g.length;return(0,l.jsx)("section",{className:"".concat(F," ").concat(k," ").concat("Avanzado"===u?"mb-8 lg:mb-10 pb-0":""),children:(0,l.jsxs)("div",{className:"relative w-full mx-auto px-4 sm:max-w-[540px] md:max-w-[720px] lg:max-w-[960px] xl:max-w-[1230px]",children:[(0,l.jsx)("div",{className:"hidden lg:block h-[43px] absolute left-[50px] top-0 w-[2px] z-0 bg-left bg-[length:6px_16px] bg-repeat-y",style:{backgroundImage:o("Inicial"!==u)}}),(0,l.jsx)("div",{className:"relative",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2",children:[(0,l.jsxs)("div",{className:"pt-[30px] lg:pt-[60px] mb-[18px]",children:[(0,l.jsxs)("div",{className:"mb-2 lg:mb-4",children:["Inicial"===u&&(0,l.jsx)("img",{src:"/static/img/nivel-inicial.png",alt:"Nivel inicial",width:54,height:42}),"Intermedio"===u&&(0,l.jsx)("img",{src:"/static/img/nivel-intermedio.png",alt:"Nivel intermedio",width:54,height:42}),"Avanzado"===u&&(0,l.jsx)("img",{src:"/static/img/nivel-avanzado.png",alt:"Nivel avanzado",width:54,height:42})]}),t&&(0,l.jsx)("div",{className:"mb-2 ".concat(_," volanta"),children:t}),a&&(0,l.jsxs)("div",{className:"mb-3 lg:mb-4 flex items-center cursor-pointer level__title",onClick:()=>u&&b(u),children:[(0,l.jsx)(x.$,{field:a}),(0,l.jsx)(m.yQ,{className:E,stroke:y?"#1A1A1A":"white"})]}),(0,l.jsxs)("div",{className:A,children:[p&&(0,l.jsx)("div",{className:"mb-2 lg:mb-4",children:(0,l.jsx)(x.$,{field:p})}),j&&v&&(0,l.jsx)(m.$n,{variant:"Secundario",link:v,negative:!y,children:j})]})]}),(0,l.jsx)("div",{className:"hidden lg:block absolute right-[-30px] top-0 w-[440px] h-[450px] pt-2 overflow-hidden z-0 inicial:top-0 inicial:bottom-auto intermedio:top-1/2 intermedio:mt-[-225px] intermedio:bottom-auto",children:h&&h.url&&(0,l.jsx)(m._V,{alt:h.alt,...h,width:h.dimensions.width,height:h.dimensions.height,fluid:!0})})]})}),(0,l.jsx)("div",{className:A,children:(0,l.jsx)("div",{className:"relative z-[1] pb-10",children:(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-".concat(z>4?4:z," gap-4"),children:g&&g.map((e,t)=>(0,s.createElement)(m.Mb,{...e,level:u,link:e,key:"".concat(e.link.key,"-").concat(t)}))})})}),(0,l.jsx)("div",{className:"hidden lg:block h-[43px] absolute left-[50px] bottom-0 w-[2px] z-0 bg-left bg-[length:6px_16px] bg-repeat-y",style:{backgroundImage:o("Inicial"!==u)}})]})})}},34445:(e,t,a)=>{a.r(t),a.d(t,{default:()=>d});var l=a(95155),s=a(12115),i=a(43777);let n=()=>crypto.randomUUID(),r=e=>{let{title:t,description:a,price:s,background:i}=e;return(0,l.jsxs)("div",{className:"\n p-4 lg:p-6 \n rounded-lg\n text-center\n transition-shadow duration-300 ease-in-out\n \n // --- Sombras con valores arbitrarios (reemplazan a 'simpleShadow' y 'hoverShadow') ---\n shadow-[0_0_10px_rgba(63,63,63,0.15)]\n hover:shadow-[0_0_16px_rgba(63,63,63,0.3)]\n \n // --- L\xf3gica de colores de fondo y texto (reemplaza a 'getBackgroundColor') ---\n ".concat((()=>{switch(i){case"Blanco":default:return"bg-[#FFFFFF] text-[#1A1A1A]";case"Gris":return"bg-[#F7F7F7] text-[#1A1A1A]";case"Violeta":case"VioletaClaro":return"bg-[#F4F4FF] text-[#1A1A1A]";case"Dark":return"bg-[#30315E] text-[#FFFFFF]";case"Dorado":return"bg-[#C1A97D] text-[#FFFFFF]";case"Plateado":return"bg-[#999999] text-[#FFFFFF]";case"Negro":return"bg-[#1A1A1A] text-[#FFFFFF]"}})(),"\n "),children:[t&&(0,l.jsx)("h2",{className:"\n text-2xl mb-2\n // --- L\xf3gica de peso de fuente para el t\xedtulo ---\n ".concat("Blanco"===i?"font-normal":"font-semibold","\n "),children:t}),a&&(0,l.jsx)("p",{className:"text-base text-white my-4",children:a}),s&&(0,l.jsx)("p",{className:"text-xl font-bold mt-4",children:s})]})},c=e=>{let{className:t=""}=e;return(0,l.jsx)("svg",{className:"w-5 h-5 transition-transform duration-200 ".concat(t),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})})},d=e=>{let{items:t=[],category:a,background:d,legal:o}=e,[x,m]=(0,s.useState)(!0),p=(0,s.useRef)(null),g=()=>{m(!x)};return(0,l.jsx)("section",{className:"".concat("Gris"===d?"bg-gray-50":"bg-white"," py-0 lg:py-6 lg:pb-16"),children:(0,l.jsx)("div",{className:"container mx-auto max-w-[540px] sm:max-w-[720px] md:max-w-[960px] lg:max-w-[1230px] px-4 sm:px-4 md:px-0",children:(0,l.jsxs)("div",{className:"lg:flex lg:justify-between",children:[(0,l.jsx)("div",{className:"lg:w-48 lg:shrink-0",children:x?(0,l.jsxs)("h4",{onClick:g,className:"cursor-pointer flex items-center justify-between py-6 lg:cursor-default lg:max-w-48 lg:py-0 text-purple-600 font-medium",children:[(0,l.jsx)("span",{className:"text-black",children:a}),(0,l.jsx)(c,{className:"text-purple-600 transform rotate-180 lg:hidden"})]}):(0,l.jsx)("div",{className:"sticky top-16 bg-gray-50 shadow-md z-50 px-6 py-4 lg:bg-transparent lg:shadow-none lg:px-0 lg:py-0 lg:static",children:(0,l.jsxs)("h4",{onClick:g,className:"cursor-pointer flex items-center justify-between lg:cursor-default lg:max-w-48 text-purple-600 font-medium",children:[(0,l.jsx)("span",{children:a}),(0,l.jsx)(c,{className:"text-purple-600 lg:hidden"})]})})}),(0,l.jsxs)("div",{ref:p,className:"\n transition-all duration-300 ease-in-out overflow-hidden\n ".concat(x?"max-h-0 lg:max-h-none pb-0":"max-h-[2000px] lg:max-h-none pb-6 lg:pb-0","\n lg:flex-1 lg:ml-14\n border-b border-indigo-900 lg:border-b-0\n px-1 pt-1 lg:px-0 lg:pt-0\n "),children:[(0,l.jsx)("div",{className:"grid gap-6 p-1 ".concat((()=>{let e=t.length;return e>3||3===e?"lg:grid-cols-3":2===e?"lg:grid-cols-2":"lg:grid-cols-1"})()),children:t.map(e=>{let t=n();return(0,l.jsxs)(s.Fragment,{children:[e.group_title&&e.group_title[0]&&e.group_title[0].text&&(0,l.jsx)("div",{className:"font-bold mt-2 lg:col-span-full lg:mb-2 lg:mt-14 first:mt-0",children:(0,l.jsx)(i.$,{field:e.group_title})}),(0,l.jsx)(r,{...e})]},t)})}),o&&(0,l.jsx)("div",{className:"text-xs text-gray-600 mt-4 lg:mt-6",children:(0,l.jsx)(i.$,{field:o,components:{paragraph:e=>{let{text:t}=e;return(0,l.jsx)("p",{className:"text-xs",children:t})}}})})]})]})})})}},33096:(e,t,a)=>{a.r(t),a.d(t,{default:()=>d});var l=a(95155),s=a(12115),i=a(48173),n=a.n(i);let r={color:{lightGrey:"#F5F5F5",black:"#000000",violet:"#4A00E0"},breakpoint:{lgMin:"(min-width: 1024px)",lgMax:"(max-width: 1023px)"}},c="\n .tabs-countries-wrapper {\n padding-bottom: 12px;\n }\n @media ".concat(r.breakpoint.lgMin," {\n .tabs-countries-wrapper {\n padding-bottom: 64px;\n }\n }\n\n .tabs-list {\n display: flex;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n\n .tab-item a {\n display: flex;\n vertical-align: middle;\n padding: 12px 40px 12px;\n border-bottom: 1px solid ").concat(r.color.black,";\n font-weight: 400;\n color: ").concat(r.color.violet,";\n text-decoration: none;\n transition: background-color 0.2s;\n }\n \n .tab-item a:hover {\n background: ").concat(r.color.lightGrey,";\n }\n\n .tab-item.active a {\n padding-bottom: 11px;\n border-bottom: 2px solid ").concat(r.color.black,";\n font-weight: 600;\n margin-bottom: -1px;\n color: ").concat(r.color.black,";\n }\n \n .tab-item img {\n margin-right: 8px;\n }\n\n .tabs-title {\n display: flex;\n align-items: center;\n font-weight: 600;\n margin-right: 34px;\n }\n @media ").concat(r.breakpoint.lgMax," {\n .tabs-title {\n display: none;\n }\n }\n"),d=e=>{let{arg_link:t,eeuu_link:a,title:i}=e,[r,d]=(0,s.useState)("");(0,s.useEffect)(()=>{{let e=window.location.pathname.split("/").filter(Boolean);d(e.length>0?e[0]:"")}},[]),console.log("Current Parent:",r),console.log("Argentina Link UID:",t.uid),console.log("EEUU Link UID:",a.uid);let o=t.uid===r,x=a.uid===r;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("style",{children:c}),(0,l.jsx)("section",{className:"tabs-countries-wrapper",children:(0,l.jsx)("div",{className:"container mx-auto max-w-[540px] sm:max-w-[720px] md:max-w-[960px] lg:max-w-[1230px] px-4 sm:px-4 md:px-0",children:(0,l.jsxs)("ul",{className:"tabs-list",id:"tabs",children:[i&&(0,l.jsx)("li",{className:"tabs-title",children:i}),(0,l.jsx)("li",{className:"tab-item ".concat(o?"active":""),children:(0,l.jsx)(n(),{href:t.parent?"/[parent]/[uid]":"/[parent]",as:t.parent?"/".concat(t.parent.uid,"/").concat(t.uid):"/".concat(t.uid),scroll:!1,passHref:!0,children:(0,l.jsxs)("div",{className:"flex row",children:[(0,l.jsx)("img",{src:"/static/img/flag-arg.svg",alt:"Bandera Argentina",width:24,height:24}),"Argentina"]})})}),(0,l.jsx)("li",{className:"tab-item ".concat(x?"active":""),children:(0,l.jsx)(n(),{href:a.parent?"/[parent]/[uid]":"/[parent]",as:a.parent?"/".concat(a.parent.uid,"/").concat(a.uid):"/".concat(a.uid),scroll:!1,passHref:!0,children:(0,l.jsxs)("div",{className:"flex row",children:[(0,l.jsx)("img",{src:"/static/img/flag-eeuu.svg",alt:"Bandera EEUU",width:24,height:24}),(0,l.jsx)("span",{className:"hidden-small",children:" Estados Unidos"})]})})})]})})})]})}}}]);