1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,982635,e=>{"use strict";var t=e.i(729234),s=e.i(912361),a=e.i(850902),r=e.i(526895),l=e.i(116986),i=e.i(833515),n=e.i(920479),o=s,c=e.i(946266);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class m extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,n.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,s=(0,n.isHTMLElement)(e)&&e.offsetWidth||0,a=(0,n.isHTMLElement)(e)&&e.offsetHeight||0,r=getComputedStyle(t),l=this.props.sizeRef.current;l.height=parseFloat(r.height),l.width=parseFloat(r.width),l.top=t.offsetTop,l.left=t.offsetLeft,l.right=s-l.width-l.left,l.bottom=a-l.height-l.top,l.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function x({children:e,isPresent:a,anchorX:r,anchorY:l,root:i,pop:n}){let u=(0,o.useId)(),p=(0,o.useRef)(null),h=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:f}=(0,o.useContext)(c.MotionConfigContext),g=function(...e){return s.useCallback(function(...e){return t=>{let s=!1,a=e.map(e=>{let a=d(e,t);return s||"function"!=typeof a||(s=!0),a});if(s)return()=>{for(let t=0;t<a.length;t++){let s=a[t];"function"==typeof s?s():d(e[t],null)}}}}(...e),e)}(p,!1!==n?e.props?.ref??e?.ref:void 0);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:s,left:o,right:c,bottom:d,direction:m}=h.current;if(a||!1===n||!p.current||!e||!t)return;let x="rtl"===m,g="left"===r?x?`right: ${c}`:`left: ${o}`:x?`left: ${o}`:`right: ${c}`,b="bottom"===l?`bottom: ${d}`:`top: ${s}`;p.current.dataset.motionPopId=u;let j=document.createElement("style");f&&(j.nonce=f);let y=i??document.head;return y.appendChild(j),j.sheet&&j.sheet.insertRule(` 2 [data-motion-pop-id="${u}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${g}px !important; 7 ${b}px !important; 8 } 9 `),()=>{p.current?.removeAttribute("data-motion-pop-id"),y.contains(j)&&y.removeChild(j)}},[a]),(0,t.jsx)(m,{isPresent:a,childRef:p,sizeRef:h,pop:n,children:!1===n?e:o.cloneElement(e,{ref:g})})}let u=({children:e,initial:a,isPresent:n,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:m,anchorX:u,anchorY:h,root:f})=>{let g=(0,r.useConstant)(p),b=(0,s.useId)(),j=(0,s.useRef)(n),y=(0,s.useRef)(o);(0,l.useIsomorphicLayoutEffect)(()=>{j.current=n,y.current=o});let w=!0,v=(0,s.useMemo)(()=>(w=!1,{id:b,initial:a,isPresent:n,custom:c,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;o&&o()},register:e=>(g.set(e,!1),()=>{g.delete(e),j.current||g.size||y.current?.()})}),[n,g,o]);return d&&w&&(v={...v}),(0,s.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[n]),s.useEffect(()=>{n||g.size||!o||o()},[n]),e=(0,t.jsx)(x,{pop:"popLayout"===m,isPresent:n,anchorX:u,anchorY:h,root:f,children:e}),(0,t.jsx)(i.PresenceContext.Provider,{value:v,children:e})};function p(){return new Map}var h=e.i(587129);let f=e=>e.key||"";function g(e){let t=[];return s.Children.forEach(e,e=>{(0,s.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:i,initial:n=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:m=!1,anchorX:x="left",anchorY:p="top",root:b})=>{let[j,y]=(0,h.usePresence)(m),w=(0,s.useMemo)(()=>g(e),[e]),v=m&&!j?[]:w.map(f),N=(0,s.useRef)(!0),k=(0,s.useRef)(w),P=(0,r.useConstant)(()=>new Map),S=(0,s.useRef)(new Set),[$,C]=(0,s.useState)(w),[_,L]=(0,s.useState)(w);(0,l.useIsomorphicLayoutEffect)(()=>{N.current=!1,k.current=w;for(let e=0;e<_.length;e++){let t=f(_[e]);v.includes(t)?(P.delete(t),S.current.delete(t)):!0!==P.get(t)&&P.set(t,!1)}},[_,v.length,v.join("-")]);let I=[];if(w!==$){let e=[...w];for(let t=0;t<_.length;t++){let s=_[t],a=f(s);v.includes(a)||(e.splice(t,0,s),I.push(s))}return"wait"===d&&I.length&&(e=I),L(g(e)),C(w),null}let{forceRender:A}=(0,s.useContext)(a.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:_.map(e=>{let s=f(e),a=(!m||!!j)&&(w===_||v.includes(s));return(0,t.jsx)(u,{isPresent:a,initial:(!N.current||!!n)&&void 0,custom:i,presenceAffectsLayout:c,mode:d,root:b,onExitComplete:a?void 0:()=>
9{if(S.current.has(s)||!P.has(s))return;S.current.add(s),P.set(s,!0);let e=!0;P.forEach(t=>{t||(e=!1)}),e&&(A?.(),L(k.current),m&&y?.(),o&&o())},anchorX:x,anchorY:p,children:e},s)})})}],982635)},538848,e=>{"use strict";var t=e.i(729234),s=e.i(297905),a=e.i(169715);e.i(663956);var r=e.i(632057),l=e.i(11624),i=e.i(367985),n=e.i(174863);e.s(["Footer",0,({background:e}={})=>{let o=(0,i.useTenant)(),c=(0,n.useTranslations)("common"),d=(0,n.useTranslations)("footer");return(0,t.jsx)("footer",{className:"bg-dark",style:e?{background:e}:void 0,children:(0,t.jsx)("div",{className:"gutter py-16 pb-28 xl:pb-16",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"grid xl:grid-cols-4 gap-4 xl:gap-16",children:[(0,t.jsx)("div",{className:"xl:col-span-2",children:(0,t.jsx)("h3",{className:"title text-3xl xl:text-5xl font-semibold text-white",children:o.footerCta})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-x-4 gap-y-3 lg:hidden",children:[o.links.googlePlay&&(0,t.jsxs)(a.default,{target:"_blank",href:o.links.googlePlay,className:"inline-flex items-center gap-2 rounded-lg py-3 px-4 bg-secondary border-white min-w-[200px] justify-center",children:[(0,t.jsx)(l.GooglePlayIcon,{className:"w-7 h-7 fill-dark"}),(0,t.jsx)("span",{className:"text-dark text-xl",children:"Google Play"})]}),o.links.appStore&&(0,t.jsxs)(a.default,{target:"_blank",href:o.links.appStore,className:"inline-flex items-center gap-2 rounded-lg py-3 px-4 bg-secondary border-white min-w-[200px] justify-center",children:[(0,t.jsx)(l.AppleIcon,{className:"w-7 h-7 fill-dark"}),(0,t.jsx)("span",{className:"text-dark text-xl",children:"App Store"})]})]}),(0,t.jsx)("div",{children:o.features.app&&(0,t.jsx)("div",{className:"hidden justify-start bg-primary-dark overflow-hidden lg:inline-flex items-center rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-center rounded-lg bg-primary-dark",children:[(0,t.jsx)("div",{className:"p-2 text-white text-left text-xl xl:text-2xl font-semibold",children:d("downloadApp")}),(0,t.jsx)(s.default,{src:o.assets.appQrWhite,alt:`download ${o.name} qr`,className:"grow w-32 h-32",width:500,height:500,quality:100})]})})}),(0,t.jsx)("div",{className:"xl:mt-0 pt-4",children:(o.links.instagram||o.links.x||o.links.youtube)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-white text-lg font-bold mb-4",children:c("followUs")}),(0,t.jsxs)("div",{className:"flex items-center w-full gap-4",children:[o.links.instagram&&(0,t.jsx)(r.FooterIcon,{link:o.links.instagram,ariaLabel:"instagram button",children:(0,t.jsx)(l.InstagramIcon,{className:"fill-dark"})}),o.links.x&&(0,t.jsx)(r.FooterIcon,{link:o.links.x,ariaLabel:"x button",children:(0,t.jsx)(l.XIcon,{className:"fill-dark"})}),o.links.youtube&&(0,t.jsx)(r.FooterIcon,{link:o.links.youtube,ariaLabel:"youtube icon",children:(0,t.jsx)(l.YoutubeIcon,{className:"fill-dark"})}),o.links.linkedin&&(0,t.jsx)(r.FooterIcon,{link:o.links.linkedin,ariaLabel:"linkedin icon",children:(0,t.jsx)(l.LinkedinIcon,{className:"fill-dark"})})]})]})})]}),(0,t.jsx)("div",{className:"border-b-2 border-white my-12"}),(0,t.jsxs)("div",{className:"grid xl:grid-cols-4 gap-8 xl:gap-16",children:[(0,t.jsx)("div",{className:"xl:col-span-2",children:(0,t.jsx)(s.default,{className:"w-32 xl:w-60",src:o.assets.logoWhite,alt:`${o.name} logo`,width:500,height:500,quality:100})}),(0,t.jsxs)("div",{className:"text-white grid gap-2 xl:gap-3 text-base xl:text-lg",children:[(0,t.jsx)(a.default,{href:"/ayuda-y-soporte",children:c("helpAndSupport")}),(0,t.jsx)("a",{target:"_blank",href:"https://reto.education/aviso-de-privacidad",children:c("privacy")}),(0,t.jsx)("a",{target:"_blank",href:"https://reto.education/terminos-y-condiciones",children:c("terms")})]}),(0,t.jsxs)("div",{className:"text-white text-base",children:[(0,t.jsx)("p",{className:"mb-4",children:d("mellowDescription")}),(0,t.jsxs)("p",{children:[d("mellowWelcome")," ",(0,t.jsx)(a.default,{target:"_blank",href:"https://mellow.cc/",children:(0,t.jsx)("span",{className:"underline",children:d("mellowName")})})]})]})]})]})})})}])},13182,e=>{"use strict";var t=e.i(729234),s=e.i(297905),a=e.i(169715),r=e.i(912361),l=e.i(982635),i=e.i(114304),n=e.i(11624),o=e.i(608376),c=e.i(728442),d=e.i(367985),m=e.i(174863);let x=({title:e,children:s})=>(0,t.jsxs)("div",{className:"group/flyout relative hover:bg-neutral-100 px-4 py-2 cursor-pointer flex justify-between items-center gap-4 last:rounded-b-xl first:rounded-t-xl",children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)("div",{className:"opacity-0 group-hover/flyout:opacity-100 pointer-events-none group-hover/flyout:pointer-events-auto absolute left-full top-0",children:(0,t.jsx)("nav",{className:"grid rounded-xl border-black border bg-white min-w-[200px]",children:s})})]}),u=({href:e,title:s,mobile:r=!1})=>r?(0,t.jsx)(a.default,{href:e,className:"border-b border-black w-full pb-2",children:s}):(0,t.jsx)(a.default,{href:e,className:"hover:bg-neutral-100 px-4 py-2 no-handle-click-resources-menu last:rounded-b-xl first:rounded-t-xl",children:(0,t.jsx)("span",{children:s})}),p=({href:e,title:s})=>(0,t.jsx)(a.default,{href:e,className:"text-xl text-primary-dark font-semibold first-letter:capitalize inline-block",children:s});e.s(["Header",0,()=>{let[e,h]=(0,r.useState)(!1),{currentUser:f}=(0,o.useAuth)(),g=(0,d.useTenant)(),b=(0,m.useTranslations)("common"),j=g.features.resources&&(g.features.webinars||g.features.podcasts),y=g.calculators?.pages??[],w=g.features.membership||g.features.app||g.features.exams&&!!g.exams[0]||g.features.events||j||y.length>0;return(0,t.jsxs)("header",{className:"sticky top-0 right-0 left-0 z-50",children:[(0,t.jsx)("div",{className:"relative z-50",children:(0,t.jsx)("div",{className:"pt-8 gutter bg-background",children:(0,t.jsxs)("div",{className:"container flex border-b border-dark justify-between items-center pb-4 bg-background",children:[(0,t.jsxs)("div",{onClick:()=>h(!e),className:"lg:hidden w-6 h-6 cursor-pointer",children:[(0,t.jsx)("div",{className:"h-1/5 bg-black"}),(0,t.jsx)("div",{className:"h-1/5 invisible"}),(0,t.jsx)("div",{className:"h-1/5 bg-black"}),(0,t.jsx)("div",{className:"h-1/5 invisible"}),(0,t.jsx)("div",{className:"h-1/5 bg-black"})]}),(0,t.jsxs)("div",{className:"flex gap-8 items-center",children:[(0,t.jsx)(a.default,{href:"/",children:(0,t.jsx)(s.default,{width:500,height:400,src:g.assets.logo,className:"w-28 lg:w-40",alt:`logo ${g.name}`,quality:100,priority:!0})}),(0,t.jsxs)("div",{className:"hidden lg:block space-x-8",children:[w&&(0,t.jsx)("div",{className:"inline-flex items-center",children:(0,t.jsxs)("div",{className:"group cursor-pointer flex gap-1 items-center text-xl text-primary-dark font-semibold relative",children:[b("membership"),(0,t.jsx)(n.DownArrowIcon,{className:"h-6 w-6 fill-primary-dark"}),(0,t.jsx)("div",{className:"opacity-0 group-hover:opacity-100 duration-150 pointer-events-none group-hover:pointer-events-auto absolute top-0 left-0 right-0 pt-10",children:(0,t.jsxs)("nav",{className:"grid rounded-xl border-black border bg-white lg:min-w-[290px]",children:[g.features.membership&&(0,t.jsx)(u,{href:"/membership",title:b("membership")}),g.features.app&&(0,t.jsx)(u,{href:"/app",title:b("appName",{name:g.name})}),g.features.exams&&g.exams[0]&&(0,t.jsx)(u,{href:`/examenes/${g.exams[0].slug}`,title:b("examName",{examName:g.exams[0].name})}),g.features.events&&(0,t.jsx)(u,{href:"/eventos",title:b("events")}),j&&(0,t.jsxs)(x,{title:b("resources"),children:[g.features.webinars&&(0,t.jsx)(u,{href:"/recursos/webinars",title:b("webinars")}),g.features.podcasts&&(0,t.jsx)(u,{href:"/recursos/podcasts",title:b("podcasts")})]}),1===y.length&&(0,t.jsx)(u,{href:`/calculadoras/${y[0].slug}`,title:b("calculators")}),y.length>1&&(0,t.jsx)(x,{title:b("calculators"),children:y.map(e=>(0,t.jsx)(u,{href:`/calculadoras/${e.slug}`,title:e.name},e.slug))})]})})]})}),g.features.blog&&(0,t.jsx)(p,{href:"/blog/posts",title:b("blog",{shortSpecialty:g.specialtyDiminutive})}),g.features.jobs&&(0,t.jsx)(p,{href:"/bolsa-de-empleo",title:b("jobs")}
9),g.features.benefits&&(0,t.jsx)(p,{href:"/beneficios",title:b("clubBenefits")}),(0,t.jsx)(p,{href:"/nosotros",title:b("about")})]})]}),(0,t.jsxs)("nav",{className:"hidden lg:flex items-center space-x-8 font-medium",children:[g.features.preRegistration&&(0,t.jsx)(a.default,{href:"/pre-registration#pre-registration-form",className:"bg-primary py-2 text-xl px-8 rounded-full text-white font-bold duration-150 hover:opacity-90",children:b("preRegistration")}),!f&&g.features.auth&&(0,t.jsxs)(a.default,{id:"login-button",href:"/auth/login",className:"bg-primary inline-flex gap-2 items-center to-secondary py-2 text-xl px-8 rounded-full border-primary text-white font-bold duration-150",children:[b("start"),(0,t.jsx)(n.LeftArrowIcon,{className:"fill-white w-5 h-5 rotate-180"})]}),f&&(0,t.jsx)(a.default,{id:"profile-button",href:"/perfil",className:"cursor-pointer",children:(0,t.jsx)(n.LoginIcon,{})})]}),(f||g.features.auth)&&(0,t.jsx)(a.default,{href:f?"/perfil":"/auth/login",className:"lg:hidden cursor-pointer",children:(0,t.jsx)(n.LoginIcon,{})})]})})}),(0,t.jsx)(l.AnimatePresence,{children:e&&(0,t.jsx)(i.motion.div,{initial:{opacity:0,y:-200},animate:{opacity:1,y:0},exit:{opacity:0,y:-200},className:"lg:hidden fixed top-0 right-0 bottom-0 left-0 z-40",children:(0,t.jsx)("div",{className:"bg-background shadow-lg px-4 pt-16",children:(0,t.jsxs)("nav",{className:"grid gap-2 items-center text-center font-medium py-8",children:[(0,t.jsx)("div",{children:w&&(0,t.jsx)(c.Accordion,{title:b("membership"),className:"font-medium text-md pb-0",align:"center",children:(0,t.jsxs)("div",{className:"grid space-y-2",children:[g.features.membership&&(0,t.jsx)(u,{href:"/membership",title:b("membership"),mobile:!0}),g.features.app&&(0,t.jsx)(u,{href:"/app",title:b("appName",{name:g.name}),mobile:!0}),g.features.exams&&g.exams[0]&&(0,t.jsx)(u,{href:`/examenes/${g.exams[0].slug}`,title:b("examName",{examName:g.exams[0].name}),mobile:!0}),g.features.events&&(0,t.jsx)(u,{href:"/eventos",title:b("events"),mobile:!0}),j&&(0,t.jsx)(c.Accordion,{title:b("resources"),className:"font-medium text-md pb-0",align:"center",children:(0,t.jsxs)("div",{className:"grid space-y-2",children:[g.features.webinars&&(0,t.jsx)(u,{href:"/recursos/webinars",title:b("webinars"),mobile:!0}),g.features.podcasts&&(0,t.jsx)(u,{href:"/recursos/podcasts",title:b("podcasts"),mobile:!0})]})}),1===y.length&&(0,t.jsx)(u,{href:`/calculadoras/${y[0].slug}`,title:b("calculators"),mobile:!0}),y.length>1&&(0,t.jsx)(c.Accordion,{title:b("calculators"),className:"font-medium text-md pb-0",align:"center",children:(0,t.jsx)("div",{className:"grid space-y-2",children:y.map(e=>(0,t.jsx)(u,{href:`/calculadoras/${e.slug}`,title:e.name,mobile:!0},e.slug))})})]})})}),g.features.blog&&(0,t.jsx)(u,{href:"/blog/posts",title:b("articles"),mobile:!0}),g.features.jobs&&(0,t.jsx)(u,{href:"/bolsa-de-empleo",title:b("jobs"),mobile:!0}),g.features.benefits&&(0,t.jsx)(u,{href:"/beneficios",title:b("clubBenefits"),mobile:!0}),(0,t.jsx)(u,{href:"/nosotros",title:b("about"),mobile:!0}),g.features.preRegistration&&(0,t.jsx)(a.default,{href:"/pre-registration",className:"bg-linear-to-r from-primary to-secondary py-2 px-8 rounded-full text-white font-bold text-center",children:b("preRegistration")})]})})})})]})}])},480234,506928,e=>{"use strict";e.s([],480234),e.i(13182),e.i(769826),e.i(724293),e.i(871041),e.i(207636),e.i(333216),e.i(624150),e.i(538848);var t=e.i(729234),s=e.i(114304),a=e.i(11624);e.s(["Popup",0,({className:e,children:r,setState:l,title:i,isLoading:n})=>(0,t.jsx)(s.motion.div,{initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},style:{zIndex:100},className:"fixed z-100 top-0 right-0 left-0 bottom-0 bg-black/60 flex justify-center items-center",children:(0,t.jsxs)(s.motion.div,{initial:{y:"-100%"},animate:{y:0},exit:{y:"-100%"},transition:{duration:.2},className:`max-w-3xl z-100 w-full max-h-screen relative overflow-scroll sm:overflow-auto bg-white rounded-3xl ${e}`,children:[(0,t.jsxs)("div",{className:"flex justify-between items-center border-b py-2 lg:py-3 bg-primary-dark",children:[(0,t.jsx)("div",{className:"flex items-center gap-4 opacity-0",children:(0,t.jsx)("button",{className:"bg-white rounded-lg px-4 py-2 flex gap-2 items-center",children:(0,t.jsx)(a.DeleteIcon,{className:"w-8 h-8 fill-primary"})})}),(0,t.jsx)("div",{className:"flex items-center gap-4",children:(0,t.jsx)("h1",{className:"title text-white text-xl lg:text-2xl xl:text-3xl text-center",children:i})}),(0,t.jsx)("div",{className:"flex items-center gap-4",children:(0,t.jsx)("button",{onClick:()=>l(null),className:"rounded-lg px-4 py-2 flex gap-2 items-center cursor-pointer",children:(0,t.jsx)(a.DeleteIcon,{className:"w-8 h-8 fill-white"})})})]}),n&&(0,t.jsx)("div",{className:"absolute top-0 right-0 bottom-0 left-0 flex justify-center items-center pt-[56px] pointer-events-none",children:(0,t.jsx)("span",{className:"big-dark-loader"})}),(0,t.jsx)("div",{className:`p-4 sm:p-8 ${n&&"opacity-0"} duration-150`,children:r})]})})],506928),e.i(160843)},724293,116781,871041,333216,e=>{"use strict";var t=e.i(729234),s=e.i(169715),a=e.i(297905);let r={en:[],es:["Ver más","Conocer más","Saber más","Descubre","Leer más","Aprende más","Ver más","Conocer más","Saber más","Descubre","Leer más","Aprende más"]};e.s(["buttonTextList",0,r],116781);var l=e.i(11624);e.s(["Post",0,({resource:e,index:i,className:n})=>{let o=`/blog/${e.slug}`;return(0,t.jsxs)("div",{className:`flex text-primary-dark bg-primary-light flex-col h-full border-b border-primary border p-3 rounded-2xl gap-4 items-start ${n}`,children:[(0,t.jsx)(s.default,{href:o,className:"w-full",children:(0,t.jsx)(a.default,{className:"w-full aspect-video object-cover rounded-lg",src:e?.media_url||"/posts/generic_blog_post_md.png",height:500,width:500,alt:e.media_alt||e.title,quality:100})}),(0,t.jsxs)("div",{className:"grow flex flex-col",children:[(0,t.jsx)(s.default,{href:o,children:(0,t.jsx)("div",{className:"font font-semibold text-base sm:text-lg mb-4 leading-tight sm:leading-tight",dangerouslySetInnerHTML:{__html:e.title}})}),e.description&&(0,t.jsx)("p",{className:"text-md mb-4 line-clamp-7",dangerouslySetInnerHTML:{__html:e.description.replaceAll(" […]","...")}}),(0,t.jsx)("div",{className:"grow"}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(s.default,{href:o,className:"flex gap-2 items-center",children:[(0,t.jsx)("p",{className:"text-primary-dark font-semibold",children:r.es[i]}),(0,t.jsx)(l.ArrowIcon,{className:"fill-primary-dark"})]})})]})]})}],724293),e.i(663956);var i=e.i(402717),n=e.i(972340),o=e.i(71076);e.s(["MediaPopup",0,({selectedVideo:e,selectedImage:s,selectedPDF:r,closeModal:c,selectedPodcast:d})=>(0,t.jsx)(t.Fragment,{children:(e||s||r||d)&&(0,t.jsx)("div",{className:"fixed top-0 bottom-0 right-0 left-0 bg-black/60 z-50",children:(0,t.jsx)("div",{className:"flex items-center justify-center w-full h-full lg:px-16 max-w-4xl mx-auto",children:(0,t.jsxs)("div",{className:"w-full h-full flex flex-col justify-center gap-8 items-end",children:[(0,t.jsx)("div",{onClick:c,className:"w-8 h-8 cursor-pointer absolute top-8 right-8 z-20",children:(0,t.jsx)(l.CloseIcon,{})}),e&&(0,t.jsx)("div",{className:"aspect-video w-full",children:(0,t.jsx)(i.YoutubeVideo,{url:e})}),r&&(0,t.jsx)("div",{className:"w-full h-full py-16",children:(0,t.jsx)(n.PDFViewer,{pdfUrl:r})}),d&&(0,t.jsx)("div",{className:"w-full h-full py-16 flex items-center",children:(0,t.jsx)(o.SpotifyPodcastPlayer,{podcastUrl:d,width:"800px",height:"400px"})}),s&&(0,t.jsx)("div",{className:"w-full h-full flex items-center justify-center py-16",children:(0,t.jsx)(a.default,{src:s,alt:"pop up image",width:800,height:800,quality:100})})]})})})})],871041),e.s(["Resource",0,({resource:e,className:s,openModal:r})=>(0,t.jsxs)("div",{className:`flex flex-col h-full border-b border-primary-dark bg-white border-2 p-3 rounded-xl gap-4 items-start ${s}`,children:[(0,t.jsx)(a.default,{className:"w-full aspect-[16/9] object-cover rounded-xl cursor-pointer",src:e?.thumbnail||"/posts/generic_blog_post_md.png",height:500,width:500,alt:e.thumbnail_alt||e.title,quality:100,onClick:()=>r(e)}),(0,t.jsx)("div",{className:"flex-grow flex flex-col w-full",children:(0,t.jsx)("p",{onClick:()=>r(e),className:"font font-semibold text-base sm:text-lg mb-4 leading-tight sm:leading-tight cursor-pointer",dangerouslySetInnerHTML:{__html:e.title}}
9)})]})],333216)},624150,e=>{"use strict";e.s(["ResourcesSlider",()=>u],624150);var t=e.i(729234),s=e.i(169715),a=e.i(912361),r=e.i(848541);e.i(480234);var l=e.i(724293);e.i(459629);var i=e.i(94441);let n=({})=>{let e=(0,r.useQuery)({queryKey:["atlas-web","blog","posts"],queryFn:async()=>(await i.atlasHttpClient.getBlogPosts({})).data.posts});return(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"relative z-20 snap-center w-full",children:(0,t.jsxs)("div",{className:"relative z-20",children:[e.isLoading&&(0,t.jsx)("div",{className:"grid gap-16",children:(0,t.jsxs)("div",{className:"flex items-start gap-8",children:[(0,t.jsx)("div",{className:"animated-background h-96 min-w-[280px] sm:min-w-[340px] rounded-xl"}),(0,t.jsx)("div",{className:"animated-background h-96 min-w-[280px] sm:min-w-[340px] rounded-xl"}),(0,t.jsx)("div",{className:"animated-background h-96 min-w-[280px] sm:min-w-[340px] rounded-xl"}),(0,t.jsx)("div",{className:"animated-background h-96 min-w-[280px] sm:min-w-[340px] rounded-xl"})]})}),e.data&&(0,t.jsx)("div",{className:"grid gap-24",children:(0,t.jsxs)("div",{className:"flex snap-x snap-proximity overflow-x-scroll max-w-full pb-8 items-start gap-8 lg:px-0 background-scrollbar",children:[e.data[0]&&(0,t.jsx)(l.Post,{className:"snap-start min-w-[280px] sm:min-w-[340px] border-none",resource:e.data[0],index:0}),e.data[1]&&(0,t.jsx)(l.Post,{className:"snap-start min-w-[280px] sm:min-w-[340px] border-none",resource:e.data[1],index:1}),e.data[2]&&(0,t.jsx)(l.Post,{className:"snap-start min-w-[280px] sm:min-w-[340px] border-none",resource:e.data[2],index:2}),e.data[3]&&(0,t.jsx)(l.Post,{className:"snap-start min-w-[280px] sm:min-w-[340px] border-none",resource:e.data[3],index:3}),e.data[4]&&(0,t.jsx)(l.Post,{className:"snap-start min-w-[280px] sm:min-w-[340px] border-none",resource:e.data[4],index:4}),e.data[5]&&(0,t.jsx)(l.Post,{className:"snap-start min-w-[280px] sm:min-w-[340px] border-none",resource:e.data[5],index:5}),e.data[6]&&(0,t.jsx)(l.Post,{className:"snap-start min-w-[280px] sm:min-w-[340px] border-none",resource:e.data[6],index:6})]})})]})})})};var o=e.i(11624),c=e.i(333216);let d=({openModal:e,category:s})=>{let a=(0,r.useQuery)({queryKey:["atlas-web","resources","feed",s],queryFn:async()=>{let e=await i.atlasHttpClient.getResourceFeedByCategory("video"===s?"webinar":"podcast");return e.data?.resources??[]}});return(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"relative z-20 snap-center w-full",children:(0,t.jsxs)("div",{className:"relative z-20",children:[a.isLoading&&(0,t.jsx)("div",{className:"grid gap-16",children:(0,t.jsxs)("div",{className:"flex items-start gap-8",children:[(0,t.jsx)("div",{className:"animated-background h-80 min-w-[280px] sm:min-w-[340px] rounded-xl"}),(0,t.jsx)("div",{className:"animated-background h-80 min-w-[280px] sm:min-w-[340px] rounded-xl"}),(0,t.jsx)("div",{className:"animated-background h-80 min-w-[280px] sm:min-w-[340px] rounded-xl"}),(0,t.jsx)("div",{className:"animated-background h-80 min-w-[280px] sm:min-w-[340px] rounded-xl"})]})}),a.data&&(0,t.jsx)("div",{className:"grid gap-24",children:(0,t.jsxs)("div",{className:"flex snap-x snap-proximity overflow-x-auto max-w-full pb-8 items-start gap-8 lg:px-0 background-scrollbar",children:[a.data[0]&&(0,t.jsx)(c.Resource,{openModal:e,className:"snap-start min-w-[280px] sm:min-w-[340px] max-w-[400px]",resource:a.data[0]}),a.data[1]&&(0,t.jsx)(c.Resource,{openModal:e,className:"snap-start min-w-[280px] sm:min-w-[340px] max-w-[400px]",resource:a.data[1]}),a.data[2]&&(0,t.jsx)(c.Resource,{openModal:e,className:"snap-start min-w-[280px] sm:min-w-[340px] max-w-[400px]",resource:a.data[2]}),a.data[3]&&(0,t.jsx)(c.Resource,{openModal:e,className:"snap-start min-w-[280px] sm:min-w-[340px] max-w-[400px]",resource:a.data[3]}),a.data[4]&&(0,t.jsx)(c.Resource,{openModal:e,className:"snap-start min-w-[280px] sm:min-w-[340px] max-w-[400px]",resource:a.data[4]}),a.data[5]&&(0,t.jsx)(c.Resource,{openModal:e,className:"snap-start min-w-[280px] sm:min-w-[340px] max-w-[400px]",resource:a.data[5]}),a.data[6]&&(0,t.jsx)(c.Resource,{openModal:e,className:"snap-start min-w-[280px] sm:min-w-[340px] max-w-[400px]",resource:a.data[6]})]})})]})})})};var m=e.i(174863),x=e.i(367985);let u=({openModal:e,initialSection:r="blogs",sectionsToShow:l,initialPosts:i})=>{let c=(0,m.useTranslations)("resourcesSlider"),u=(0,m.useTranslations)("common"),p=(0,x.useTenant)(),h=(l??["blogs","webinars","podcasts"]).filter(e=>"blogs"===e?p.features.blog:"webinars"===e?p.features.webinars:"podcasts"===e&&p.features.podcasts),f=h.find(e=>e===r)||h[0],[g,b]=(0,a.useState)(f||"blogs");return(0,t.jsx)("section",{className:"gutter relative bg-primary-dark overflow-hidden pt-8 lg:pt-16",children:(0,t.jsx)("div",{className:"container relative ",children:(0,t.jsxs)("div",{className:"relative z-20",children:[(0,t.jsx)("h2",{className:"title text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-2",children:c("title")}),(0,t.jsxs)("div",{className:"lg:flex justify-between",children:[(0,t.jsxs)("p",{className:"text-xl sm:text-2xl lg:text-3xl font-semibold text-white mb-4",children:["blogs"===g&&c("blogsDescription"),"webinars"===g&&c("videosDescription"),"podcasts"===g&&c("videosDescription")]}),(0,t.jsx)("div",{className:"flex",children:(0,t.jsxs)(s.default,{href:` 10 ${"blogs"===g?"/blog/posts":""} 11 ${"webinars"===g?"/recursos/webinars":""} 12 ${"podcasts"===g?"/recursos/podcasts":""} 13 `,className:"flex gap-2 items-center px-16 bg-dark rounded-full border border-dark mb-4 lg:mb-0 py-1",children:[(0,t.jsx)("p",{className:"text-white font-bold text-xl lg:text-2xl",children:u("seeMore")}),(0,t.jsx)(o.LeftArrowIcon,{className:"fill-white w-5 h-5 lg:w-6 lg:h-6 rotate-180"})]})})]}),(0,t.jsxs)("div",{className:"lg:flex py- lg:py-16 gap-16",children:[(0,t.jsx)("div",{className:"flex lg:flex-col gap-8 relative z-30 mb-8",children:h.map(e=>(0,t.jsxs)("button",{onClick:()=>b(e),className:`flex flex-col items-center duration-150 cursor-pointer ${g!==e&&"opacity-60"}`,children:[(0,t.jsxs)("div",{className:"bg-white p-3 aspect-square rounded-full",children:["blogs"===e&&(0,t.jsx)(o.Newsp
13aperIcon,{className:"fill-dark w-7 h-7"}),"webinars"===e&&(0,t.jsx)(o.MediaIcon,{className:"fill-dark w-7 h-7"}),"podcasts"===e&&(0,t.jsx)(o.MicrophoneIcon,{className:"fill-dark w-7 h-7"})]}),(0,t.jsx)("p",{className:"text-white font-bold",children:"blogs"===e?c("blogs"):"webinars"===e?c("videos"):c("podcasts")})]},e))}),(0,t.jsxs)("div",{className:"flex-1 lg:w-4/5",children:["blogs"===g&&(0,t.jsx)(n,{initialPosts:i}),"webinars"===g&&(0,t.jsx)(d,{openModal:e,category:"video"}),"podcasts"===g&&(0,t.jsx)(d,{openModal:e,category:"podcast"})]})]})]})})})}},207636,e=>{"use strict";var t=e.i(729234),s=e.i(297905),a=e.i(169715),r=e.i(174863),l=e.i(367985),i=e.i(11624);e.s(["Reviews",0,()=>{let e=(0,r.useTranslations)("homepage"),n=(0,l.useTenant)();return n.features.reviews&&0!==n.reviews.length?(0,t.jsx)("section",{className:"gutter",children:(0,t.jsxs)("div",{className:"container py-16",children:[(0,t.jsxs)("div",{className:"sm:flex items-center gap-4 mb-4",children:[(0,t.jsxs)("div",{className:"flex gap-3 sm:gap-5 mb-4",children:[(0,t.jsx)(i.FilledStarIcon,{className:"w-6 h-6 fill-primary-dark"}),(0,t.jsx)(i.FilledStarIcon,{className:"w-6 h-6 fill-primary-dark"}),(0,t.jsx)(i.FilledStarIcon,{className:"w-6 h-6 fill-primary-dark"}),(0,t.jsx)(i.FilledStarIcon,{className:"w-6 h-6 fill-primary-dark"}),(0,t.jsx)(i.FilledStarIcon,{className:"w-6 h-6 fill-primary-dark"})]}),(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-2xl font-normal",children:e("reviewsCount")})})]}),(0,t.jsx)("h2",{className:"title text-primary-dark text-4xl sm:text-5xl lg:text-7xl mb-4 sm:mb-8 font-semibold",children:e("reviewsTitle",{name:n.name})}),(0,t.jsx)("div",{children:(0,t.jsxs)(a.default,{href:"/auth/registro",className:"inline-flex items-center gap-3 py-3 px-4 lg:px-16 border border-dark bg-primary min-w-[180px] justify-center rounded-full mb-12",children:[(0,t.jsx)("span",{className:"text-white text-xl lg:text-3xl font-bold",children:e("reviewsCta",{shortName:n.shortName})}),(0,t.jsx)(i.LeftArrowIcon,{className:"rotate-180 fill-white h-6 w-6"})]})}),(0,t.jsx)("div",{className:`flex snap-x xl:snap-none xl:overflow-x-hidden snap-proximity overflow-x-scroll gap-4 lg:gap-8 2xl:gap-12 pb-8 xl:pb-0 xl:grid ${3===n.reviews.length?"xl:grid-cols-3":4===n.reviews.length?"xl:grid-cols-4":""}`,children:n.reviews.map((a,r)=>(0,t.jsxs)("div",{className:`flex ${(e=>{switch(e){case"primary":default:return"bg-primary/90 text-white";case"secondary":return"bg-secondary/90 text-primary-dark";case"primary-light":return"bg-primary/60 text-primary-dark"}})(a.variant)} rounded-3xl flex-col min-w-[290px] sm:min-w-[320px] xl:min-w-0`,children:[(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)("p",{className:"title text-4xl lg:text-3xl 2xl:text-5xl font-bold mb-4",children:e(a.titleKey)}),(0,t.jsx)("p",{className:"text-lg 2xl:text-xl",children:e(a.textKey)})]}),(0,t.jsx)("div",{className:"grow"}),(0,t.jsxs)("div",{className:"bg-white rounded-3xl border border-dark flex justify-between mt-2 p-4",children:[(0,t.jsxs)("div",{className:"text-base text-primary-dark 2xl:text-xl",children:[(0,t.jsx)("p",{className:"font-bold",children:e(a.authorKey)}),(0,t.jsx)("p",{children:e(a.roleKey,{specialistName:n.specialistName})})]}),(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)(s.default,{alt:"image doctor",src:a.photo,width:100,height:100,className:"rounded-full -mt-8"})})]})]},r))})]})}):null}])},769826,e=>{"use strict";var t=e.i(729234),s=e.i(169715),a=e.i(297905),r=e.i(912361),l=e.i(114304),i=e.i(982635),n=e.i(848541),o=e.i(11624),c=e.i(174863),d=e.i(367985);e.i(459629);var m=e.i(94441);let x=()=>(0,t.jsxs)("div",{className:"no-handle-click grid border-b border-gray-400 pb-4 md:pb-0 md:border-0 grid-cols-2 lg:grid-cols-3 gap-8 items-start no-handle-click",children:[(0,t.jsx)("div",{className:"animated-background bg-gray-100 w-full aspect-video object-cover rounded-xl no-handle-click"}),(0,t.jsxs)("div",{className:"lg:col-span-2 space-y-1 sm:space-y-2 no-handle-click",children:[(0,t.jsx)("div",{className:"animated-background w-full h-4 rounded-xl no-handle-click"}),(0,t.jsx)("div",{className:"animated-background w-1/2 h-4 rounded-xl no-handle-click"}),(0,t.jsx)("div",{className:"animated-background w-full h-4 rounded-xl no-handle-click"}),(0,t.jsx)("div",{className:"animated-background w-1/3 h-4 rounded-xl no-handle-click "})]})]}),u=({searchMenuValue:e,openModal:l,searchState:i,isSearched:o})=>{let[u,p]=(0,r.useState)(null);(0,c.useTranslations)("common");let h=(0,c.useTranslations)("search"),f=(0,d.useTenant)(),g=(0,n.useQuery)({queryKey:["atlas-web","resources","search",{q:e}],queryFn:async()=>
13{if(e.length>=3){let{data:t,status:s,message:a}=await m.atlasHttpClient.searchResources(e);return 200!==s?void p(a):t}},gcTime:3e5}),b=g.data?.posts?.length||0,j=g.data?.resources?.length||0;return(0,t.jsxs)(t.Fragment,{children:[i&&o&&(0,t.jsxs)(t.Fragment,{children:[g.data?.posts.map((e,r)=>{if(r+1<=5)return(0,t.jsx)(s.default,{href:`/blog/${e.slug}`,className:"block py-4 px-4 first:pt-4 last:pb-4 duration-150 hover:bg-primary-light text-primary-dark fisrt:rounded-t-2xl",children:(0,t.jsxs)("div",{className:"no-handle-click grid md:pb-0 md:border-0 grid-cols-[180px_1fr] gap-8 items-start",children:[(0,t.jsx)(a.default,{className:"no-handle-click w-full aspect-video object-cover rounded-lg",src:e.media_url||f.assets.notFoundImage,alt:e.media_alt||"",width:500,height:300,quality:100}),(0,t.jsxs)("div",{className:"no-handle-click",children:[(0,t.jsx)("div",{className:"",children:(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{className:"no-handle-click bg-primary/90 text-sm xl:text-base font-semibold sm:text-base text-white px-2 py-1 mr-1 rounded-lg",children:"ArtÃculo"}),(0,t.jsx)("span",{className:"no-handle-click text-sm xl:text-base font-semibold sm:text-base",dangerouslySetInnerHTML:{__html:e.title}})]})}),(0,t.jsx)("p",{className:"no-handle-click hidden lg:block line-clamp-2!",dangerouslySetInnerHTML:{__html:e.description||""}})]})]})},r)}),(0,t.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-3",children:g.data?.resources.map((e,s)=>{if(s+1<=5)return(0,t.jsx)("div",{onClick:()=>l(e),className:"block py-4 px-4 first:pt-4 last:pb-4 duration-150 cursor-pointer hover:bg-primary-light text-primary-dark",children:(0,t.jsxs)("div",{className:"no-handle-click md:pb-0 md:border-0 grid-cols-[180px_1fr] gap-8 items-start",children:[(0,t.jsx)(a.default,{className:"no-handle-click w-full aspect-video object-cover rounded-xl mb-2",src:e.thumbnail||f.assets.notFoundImage,alt:e.thumbnail_alt,width:500,height:300,quality:100}),(0,t.jsx)("div",{className:"no-handle-click",children:(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{className:"no-handle-click bg-primary/90 text-sm xl:text-base font-semibold sm:text-base text-white px-2 py-1 mr-1 rounded-lg",children:"Recurso"}),(0,t.jsx)("span",{className:"no-handle-click text-sm xl:text-base font-semibold sm:text-base",dangerouslySetInnerHTML:{__html:e.title}})]})})]})},s)})}),g.isError&&(0,t.jsx)("div",{className:"no-handle-click px-4 py-4 space-y-4",children:u&&(0,t.jsx)("p",{className:"text-red-500",children:u})})]}),g.isLoading&&(0,t.jsxs)("div",{className:"no-handle-click px-4 py-4 space-y-4",children:[(0,t.jsx)(x,{}),(0,t.jsx)(x,{}),(0,t.jsx)(x,{})]}),g.data?.posts&&!g.isLoading&&g.isFetched&&o&&0===b+j&&(0,t.jsxs)("div",{className:"no-handle-click h-full p-4 flex items-end text-dark",children:[h("noResults")," ",e]})]})};e.s(["SearchMenu",0,({openModal:e})=>{let s=(0,c.useTranslations)("search"),[a,n]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=e=>{let t=e.target;t instanceof HTMLElement&&!t.classList.contains("no-handle-click")&&n(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[]);let[d,m]=(0,r.useState)(""),[x,p]=(0,r.useState)(""),[h,f]=(0,r.useState)(!1),[g,b]=(0,r.useState)([]);(0,r.useEffect)(()=>b(function(){let e=localStorage.getItem("items");if(e)try{let t=JSON.parse(e);if(Array.isArray(t)&&t.every(e=>"string"==typeof e))return t.reverse()}catch{}return[]}()),[]);let j=({key:e,handleFocusAndBlur:t})=>{if("focus"===t&&n(!0),e){if(e.length>=3){f(!0),p(e),m(e);let t=[],s=localStorage.getItem("items");if(s)try{let e=JSON.parse(s);Array.isArray(e)&&e.every(e=>"string"==typeof e)&&(t=e)}catch{}t.includes(e)&&(t=t.filter(t=>t!==e)),t.push(e),t.length>10&&t.shift(),localStorage.setItem("items",JSON.stringify(t)),n(!0)}}else d.length>=3&&(f(!0),p(d))};return(0,t.jsxs)("div",{className:"no-handle-click relative z-30 max-w-3xl w-full",children:[(0,t.jsxs)("div",{className:"no-handle-click w-full rounded-full border border-primary flex items-stretch z-10 duration-300 bg-white",children:[(0,t.jsx)("div",{className:"no-handle-click px-2 sm:px-4 grow",children:(0,t.jsx)("input",{autoComplete:"off",id:"search-input",placeholder:s("placeholder"),type:"text",className:"no-handle-click w-full h-full mr-2 text-sm lg:text-base focus-within:ring-0 focus-within:border-none border-none bg-transparent text-primary-dark py-0",onChange:e=>m(e.target.value),onKeyUp:e=>{"Enter"===e.code&&(j({key:d}),f(!0)),"Backspace"===e.code&&f(!1)},value:d,onFocus:()=>{a||n(!0)}})}),(0,t.jsx)("div",{onClick:()=>j({handleFocusAndBlur:"focus"}),className:"no-handle-click cursor-pointer p-2 xl:-16 bg-primary flex justify-center items-center w-20 rounded-r-full",children:(0,t.jsx)(o.MagnifierIcon,{className:"h-7 w-7 fill-white"})})]}),(0,t.jsx)(i.AnimatePresence,{children:(d.length>=1||g.length>0)&&a&&(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:-50}
13,animate:{opacity:1,y:0},exit:{opacity:0,y:d.length>=1&&!a?0:-50},className:"no-handle-click max-w-xl lg:max-w-6xl min-h-[400px] w-full bg-white absolute top-16 left-0 right-12 -z-10 border border-primary rounded-2xl max-h-[500px] overflow-y-scroll",children:[!h&&(0,t.jsx)("div",{className:"py-4 no-handle-click",children:g.map((e,s)=>(0,t.jsxs)("div",{onClick:()=>j({key:e}),className:"no-handle-click no-blur flex gap-4 px-6 py-2 items-center hover:bg-primary-light duration-100 cursor-pointer text-primary-dark",children:[(0,t.jsx)(o.HistoryIcon,{}),e]},s))}),x&&(0,t.jsx)(u,{searchMenuValue:x,openModal:e,isSearched:h,searchState:a})]})})]})}])},728442,e=>{"use strict";var t=e.i(729234),s=e.i(912361),a=e.i(114304),r=e.i(982635),l=e.i(11624);e.s(["Accordion",0,({title:e,children:i,className:n,initialState:o,align:c})=>{let[d,m]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{m(!!o)},[o]),(0,t.jsxs)(a.motion.div,{className:"",children:[(0,t.jsxs)("div",{className:` 14 ${"center"===c&&"justify-center"} 15 ${"right"===c&&"justify-end"} 16 flex items-center gap-2 border-b border-black pb-2 cursor-pointer`,onClick:()=>m(!d),children:[(0,t.jsx)(a.motion.div,{animate:{rotate:180*!!d},children:(0,t.jsx)(l.AccordionArrowIcon,{className:"stroke-primary"})}),(0,t.jsx)(a.motion.p,{layout:"position",className:`cursor-pointer ${n}`,children:e})]}),(0,t.jsx)(r.AnimatePresence,{children:d&&(0,t.jsx)(a.motion.div,{className:"pt-2",layout:"position",initial:{opacity:0}
16,animate:{opacity:1},exit:{opacity:0},children:i})})]})}])},919316,e=>{"use strict";var t=e.i(729234),s=e.i(297905),a=e.i(169715),r=e.i(912361);e.s(["Ad",0,({ad:e})=>{let{isAndroid:l,isIOS:i}=function(){let[e,t]=(0,r.useState)(!1),[s,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{{let e=window.navigator.userAgent;t(/iPad|iPhone|iPod/.test(e)),a(/Android/.test(e))}},[]),{isIOS:e,isAndroid:s}}(),n=e.cta_url;return(l&&e.cta_android_url&&(n=e.cta_android_url),i&&e.cta_ios_url&&(n=e.cta_ios_url),n)?(0,t.jsxs)("span",{className:"grid justify-end",children:[(0,t.jsx)(a.default,{href:n,target:"_blank",children:(0,t.jsx)(s.default,{src:e.media_url,width:Number(e.size.split("x")[0]),height:Number(e.size.split("x")[1]),className:`shadow-lg ${e.analytics_class_id}`,id:e.analytics_id,quality:100,alt:`Ad - ${e.analytics_id}`,priority:!0})}),(0,t.jsx)("p",{className:"text-right",children:"Ads"})]}):(0,t.jsxs)("span",{className:"grid justify-end",children:[(0,t.jsx)(s.default,{src:e.media_url,width:Number(e.size.split("x")[0]),height:Number(e.size.split("x")[1]),id:e.analytics_id,quality:100,className:`${e.analytics_class_id}`,alt:`Ad - ${e.analytics_id}`}),(0,t.jsx)("p",{className:"text-right",children:"Ads"})]})}],919316)},663956,829999,460303,402717,972340,71076,391673,632057,403735,518269,225857,643347,498292,e=>{"use strict";e.i(728442);var t=e.i(729234);e.s(["ButtonWithBorder",0,({onClick:e,buttonText:s,isActive:a,fullWidth:r=!1,submit:l=!1,className:i})=>(0,t.jsx)("button",{onClick:e,className:` 17 px-4 lg:px-12 py-2 border border-primary rounded-full duration-150 hover:bg-primary hover:text-white text-primary font-semibold 18 ${a?"bg-primary text-white":"bg-white"} 19 ${r?"w-full":""} 20 ${i&&i} 21 `,type:l?"submit":"button",children:s})],829999);var s=e.i(11624);e.s(["ButtonWithArrow",0,({buttonText:e,className:a,children:r})=>(0,t.jsx)("div",{className:a,children:(0,t.jsxs)("button",{className:"flex gap-4 items-center",children:[(0,t.jsxs)("p",{className:"text-primary font-semibold",children:[e&&e," ",r]}),(0,t.jsx)(s.ArrowIcon,{className:"fill-primary"})]})})],460303),e.s(["YoutubeVideo",0,({url:e,className:s,autoplayOff:a})=>{let r,l=(r=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|v=|\?v=)([^#\&\?]*).*/))&&r[2]?r[2]:"error",i=`https://www.youtube.com/embed/${l}${!a?"?autoplay=1":""}`;return(0,t.jsx)("div",{className:`w-full h-full aspect-[16/9] ${s}`,children:(0,t.jsx)("iframe",{width:"100%",height:"100%",src:i,title:"YouTube Video",allow:"autoplay; encrypted-media",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})})}],402717),e.s(["PDFViewer",0,({pdfUrl:e})=>(0,t.jsx)("iframe",{src:e,title:"PDF Viewer",width:"100%",height:"100%"})],972340),e.s(["SpotifyPodcastPlayer",0,({podcastUrl:e,width:s,height:a})=>(0,t.jsx)("div",{className:"mx-auto",children:(0,t.jsx)("iframe",{title:"Spotify Podcast Player",src:`https://open.spotify.com/embed-podcast${e.split(".com")[1]}?autoplay=1`,width:s||"600px",height:a||"240px",className:"max-w-full aspect-[16/9]",frameBorder:"0",allow:"encrypted-media"})})],71076);var a=e.i(982635),r=e.i(114304);e.s(["TextInput",0,({handleChange:e,handleBlur:s,value:l,placeholder:i,name:n,errors:o,showErrors:c,isWhite:d,maxLength:m})=>(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:n,className:`border ${d?"border-white":"border-gray-500"} rounded-md px-4 py-2 block `,children:(0,t.jsx)("input",{maxLength:m||100,id:n,onBlur:s,name:n,value:l,onChange:e,className:`lg:text-base xl:text-lg border-none p-0 w-full focus-within:ring-0 bg-transparent focus:bg-transparent ${m&&"text-center"} ${d?"text-white placeholder:text-white":"text-gray-500 placeholder:text-gray-500"} text-sm`,type:"text",placeholder:i||""})}),(0,t.jsx)(a.AnimatePresence,{children:o&&c&&(0,t.jsx)(r.motion.p,{layout:"position",className:`lg:text-base px-4 ${d?"text-white":"text-gray-500"} `,initial:{opacity:.5},animate:{opacity:1},exit:{opacity:.5},children:o})})]})],391673);var l=e.i(169715);e.s(["FooterIcon",0,({children:e,link:s,ariaLabel:a})=>(0,t.jsx)(l.default,{href:s,target:"_blank","aria-label":a||"social media button",children:(0,t.jsx)("div",{className:"flex justify-center items-center p-2 rounded-full bg-white",children:(0,t.jsx)("div",{className:"flex justify-center items-center w-6 h-6",children:e})})})],632057),e.i(512710),e.i(919316),e.s(["SocialMediaButton",0,({children:e,link:s,className:a})=>(0,t.jsx)(l.default,{href:s,target:"_blank",children:(0,t.jsx)("button",{className:`flex cursor-pointer justify-center items-center p-2 rounded-full ${a}`,children:(0,t.jsx)("div",{className:"flex justify-center items-center w-6 h-6 xl:w-8 xl:h-8",children:e})})})],403735),e.s(["CheckboxOptions",0,({options:e,name:s,handleChange:l,handleBlur:i,errors:n,showErrors:o,gap:c=""})=>(0,t.jsxs)("div",{className:"my-2",children:[(0,t.jsx)("div",{className:"space-y-2",children:e?.map((e,a)=>(0,t.jsxs)("div",{className:"flex items-center",style:{gap:c},children:[(0,t.jsx)("input",{className:"m-0 cursor-pointer mr-2",type:"radio",onChange:l,onBlur:i,name:s,value:e.id,id:e.name},a),(0,t.jsx)("label",{id:e.name,htmlFor:e.name,className:"cursor-pointer",children:e.name})]},a))}),(0,t.jsx)(a.AnimatePresence,{children:n&&o&&(0,t.jsx)(r.motion.p,{layout:"position",className:"text-sm px-4 text-gray-500",initial:{opacity:.5}
21,animate:{opacity:1},exit:{opacity:.5},children:n})})]})],518269),e.s(["TextareaInput",0,({handleChange:e,handleBlur:s,value:l,placeholder:i,name:n,errors:o,showErrors:c,shadow:d=!0})=>(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:n,className:"rounded-md block",children:(0,t.jsx)("textarea",{id:n,onBlur:s,name:n,value:l,onChange:e,className:` ${d?"shadow-lg border-none":"border-gray-500"} bg-white focus-within:ring-0 focus-within:border-gray-500 rounded-lg h-28 w-full xl:text-lg`,placeholder:i})}),(0,t.jsx)(a.AnimatePresence,{children:o&&c&&(0,t.jsx)(r.motion.p,{layout:"position",className:"px-4 text-gray-500",initial:{opacity:.5},animate:{opacity:1},exit:{opacity:.5},children:o})})]})],225857),e.s(["Arrow",0,({type:e,onClick:a})=>(0,t.jsx)("div",{className:`absolute top-[50%] translate-y-[-60%] cursor-pointer z-20 22 ${"left"===e&&"-left-8 lg:-left-16"} 23 ${"right"===e&&"-right-8 lg:-right-16"} 24 `,onClick:a,children:(0,t.jsx)(s.SliderArrowIcon,{className:`w-[40px] lg:w-[80px] fill-primary scale-y-150 ${"left"===e?"rotate-180":""} stroke-primary`})})],643347),e.i(774400),e.i(413061),e.i(756149),e.s(["SelectInput",0,({placeholder:e,options:s,value:l,name:i,handleChange:n,handleBlur:o,errors:c,showErrors:d,useId:m})=>(0,t.jsxs)("div",{children:[(0,t.jsxs)("select",{onBlur:o,value:l,onChange:n,id:i,name:i,className:"bg-transparent w-full rounded-md outline-none focus-within:ring-0 focus-within:border-gray-500 ring-0 py-2 px-4 ring-gray-500 text-gray-500 text-sm lg:text-base",children:[(0,t.jsx)("option",{className:"text-gray-500 lg:text-base",value:"",disabled:!0,selected:!0,hidden:!0,children:e}),s?.map((e,s)=>(0,t.jsx)("option",{className:"text-gray-500 lg:text-base",value:m?e.id:s+1,children:e.name},s))]}),(0,t.jsx)(a.AnimatePresence,{children:c&&d&&(0,t.jsx)(r.motion.p,{layout:"position",className:"px-4 text-gray-500",initial:{opacity:.5},animate:{opacity:1},exit:{opacity:.5},children:c})})]})],498292),e.s([],663956)},774400,e=>{"use strict";var t=e.i(729234),s=e.i(912361);e.s(["Loader",0,function({percentage:e}){let[a,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{setTimeout(()=>{r(!0)},1e3)},[]),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100px",height:"100px",children:(0,t.jsx)("circle",{className:"small-circle stroke-primary duration-1000",style:{strokeDashoffset:a?(100-e)*5.4:480},cx:"50",cy:"50",r:"40",strokeLinecap:"round"})}),(0,t.jsx)("div",{className:"absolute top-0 bottom-0 right-0 left-0 flex flex-col items-center justify-center",children:(0,t.jsxs)("p",{className:"text-xl font-bold text-primary",children:[e,"%"]})})]})}])},512710,e=>{"use strict";var t=e.i(729234),s=e.i(520133),a=e.i(187370),r=e.i(174863);e.s(["Pagination",0,({page:e,limit:l,elements:i,callback:n})=>{let o=(0,s.useRouter)(),c=(0,s.usePathname)(),d=(0,a.useSearchParams)(),m=(0,r.useTranslations)("common"),x=[];for(let t=0;t<Number(e);t++)x.push(t+1);let u=e=>{if(n)return n(e);let t=new URLSearchParams(d?.toString());t.set("page",e.toString()),o.push(`${c}?${t.toString()}`)};return(0,t.jsxs)("div",{className:"flex gap-4 justify-center text-sm lg:text-base xl:text-lg font-medium",children:[e>4&&(0,t.jsx)("div",{onClick:()=>u(1),className:"hidden sm:block text-primary py-2 px-3 border border-primary hover:text-white hover:bg-primary duration-150 cursor-pointer rounded shrink-0",children:"1..."}),(e>1||l==i)&&x.map((s,a)=>
24{if(x.length-s<=4)return(0,t.jsx)("div",{onClick:()=>u(s),className:` 25 text-primary py-2 px-3 border border-primary hover:text-white hover:bg-primary rounded aspect-square shrink-0 w-auto h-auto lg:min-w-12 flex items-center justify-center 26 duration-150 cursor-pointer ${s===e&&"bg-primary text-white"} 27 `,children:s},a)}),i===l&&(0,t.jsx)("div",{onClick:()=>u(e+1),className:"text-primary py-2 px-3 border border-primary hover:text-white hover:bg-primary duration-150 cursor-pointer rounded shrink-0 flex items-center justify-center",children:m("next")})]})}])},413061,e=>{"use strict";var t=e.i(729234),s=e.i(912361),a=e.i(11624),r=e.i(114304),l=e.i(982635);e.s(["PasswordInput",0,({handleChange:e,handleBlur:i,value:n,placeholder:o,name:c,errors:d,showErrors:m})=>{let[x,u]=(0,s.useState)(!1);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{style:{gridTemplateColumns:"1fr 24px"},className:"grid items-center border border-gray-500 rounded-md px-4 py-2 text-sm",children:[(0,t.jsx)("input",{id:c,onBlur:i,name:c,value:n,onChange:e,className:"text-sm border-none p-0 w-full focus-within:ring-0 bg-transparent lg:text-base focus:bg-transparent placeholder:text-gray-500 text-gray-500",type:x?"text":"password",placeholder:o}),(0,t.jsx)("div",{onClick:()=>u(!x),className:"cursor-pointer h-6 w-6 flex justify-center items-center",children:(0,t.jsx)(l.AnimatePresence,{children:x?(0,t.jsx)(a.HiddePasswordIcon,{}):(0,t.jsx)(a.ShowPasswordIcon,{})})})]}),(0,t.jsx)(l.AnimatePresence,{children:!!(d&&m)&&(0,t.jsx)(r.motion.p,{className:"lg:text-base px-4 text-gray-500",layout:"position",initial:{opacity:.5},animate:{opacity:1},exit:{opacity:.5},children:d})})]})}])},520133,e=>{"use strict";var t=e.i(187370),s=e.i(912361),a=e.i(548726),r=s["use".trim()],l=e.i(246633);function i(e){let t;return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&(null==(t="object"==typeof e?e.pathname:e)||!!t.startsWith("/"))}function n(e,t){return e.replace(RegExp(`^${t}`),"")||"/"}function o(e,t){return t===e||t.startsWith(`${e}/`)}function c(e,t,s){return"string"==typeof e?e:e[t]||s}function d(e){let t=function(){try{return"true"===l.default.env._next_intl_trailing_slash}catch{return!1}}(),[s,...a]=e.split("#"),r=a.join("#"),i=s;if("/"!==i){let e=i.endsWith("/");t&&!e?i+="/":!t&&e&&(i=i.slice(0,-1))}return r&&(i+="#"+r),i}function m(e,t){let s,a=d(e),r=d(t);return(s=a.replace(/\/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)"),RegExp(`^${s}$`)).test(r)}function x(e,t){return"never"!==t.mode&&t.prefixes?.[e]||"/"+e}function u(e){return e.includes("[[...")}function p(e){return e.includes("[...")}function h(e){return e.includes("[")}function f(e,t){let s=e.split("/"),a=t.split("/"),r=Math.max(s.length,a.length);for(let e=0;e<r;e++){let t=s[e],r=a[e];if(!t&&r)return -1;if(t&&!r)return 1;if(t||r){if(!h(t)&&h(r))return -1;if(h(t)&&!h(r))return 1;if(!p(t)&&p(r))return -1;if(p(t)&&!p(r))return 1;if(!u(t)&&u(r))return -1;if(u(t)&&!u(r))return 1}}return 0}var g=e.i(169715);function b(e){let t=new URLSearchParams;for(let[s,a]of Object.entries(e))Array.isArray(a)?a.forEach(e=>{t.append(s,String(e))}):t.set(s,String(a));return"?"+t.toString()}function j(e,t,s){if(!e||s===t||null==s)return;let{name:a,...r}=e;r.path||(r.path=function(){try{return l.default.env._next_intl_base_path||""}catch{return""}}()||"/");let i=`${a}=${s};`;for(let[e,t]of Object.entries(r))i+=`${"maxAge"===e?"max-age":e}`,"boolean"!=typeof t&&(i+="="+t),i+=";";document.cookie=i}var y=e.i(729234);let w=g.default;function v({curLocale:e,linkRef:t,locale:s,localeCookie:a,onClick:r,prefetch:l,...i}){return(0,y.jsx)(w,{ref:t,hrefLang:s,onClick:function(t){j(a,e,s),r&&r(t)},prefetch:!1,...i})}var N=(0,s.forwardRef)(function({locale:e,localeCookie:t,...s},r){let l=(0,a.useLocale)();return null!=e&&e!==l?(0,y.jsx)(v,{curLocale:l,linkRef:r,locale:e,localeCookie:t,...s}):(0,y.jsx)(w,{ref:r,...s})});let{Link:k,redirect:P,usePathname:S,useRouter:$}=function(e){let{Link:l,config:u,getPathname:p,...h}=function(e,a){var l,n,o;let m={...l=a||{},localePrefix:"object"==typeof(o=l.localePrefix)?o:{mode:o||"always"}
27,localeCookie:!!((n=l.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof n&&n},localeDetection:l.localeDetection??!0,alternateLinks:l.alternateLinks??!0},u=m.pathnames,p=(0,s.forwardRef)(function({href:t,locale:s,...a},l){let n,o;"object"==typeof t?(n=t.pathname,o=t.params):n=t;let c=i(t),d=e(),x="function"==typeof d.then?r(d):d,p=c?h({locale:s||x,href:null==u?n:{pathname:n,params:o},forcePrefix:null!=s||void 0}):n;return(0,y.jsx)(N,{ref:l,href:"object"==typeof t?{...t,pathname:p}:p,locale:s,localeCookie:m.localeCookie,...a})});function h(e){let t,{forcePrefix:s,href:a,locale:r}=e;return null==u?"object"==typeof a?(t=a.pathname,a.query&&(t+=b(a.query))):t=a:t=function({pathname:e,locale:t,params:s,pathnames:a,query:r}){function l(e){let l,i=a[e];return i?(l=c(i,t,e),s&&Object.entries(s).forEach(([e,t])=>{let s,a;Array.isArray(t)?(s=`(\\[)?\\[...${e}\\](\\])?`,a=t.map(e=>String(e)).join("/")):(s=`\\[${e}\\]`,a=String(t)),l=l.replace(RegExp(s,"g"),()=>a)}),l=new URL(l=l.replace(/\[\[\.\.\..+\]\]/g,""),"http://l").pathname):l=e,l=d(l),r&&(l+=b(r)),l}if("string"==typeof e)return l(e);{let{pathname:t,...s}=e;return{...s,pathname:l(t)}}}({locale:r,..."string"==typeof a?{pathname:a}:a,pathnames:m.pathnames}),function(e,t,s,a){var r,l;let n,o,{mode:c}=s.localePrefix;if(void 0!==a)n=a;else if(i(e)){let e=s.domains?.find(e=>e.locales.includes(t)),a=e?.localePrefix||c;"always"===a?n=!0:"as-needed"===a&&(n=e?t!==e.defaultLocale:t!==s.defaultLocale)}return n?(r=x(t,s.localePrefix),l=e,o=r,/^\/(\?.*)?$/.test(l)&&(l=l.slice(1)),o+=l):e}(t,r,m,s)}function f(e){return function(t,...s){return e(h(t),...s)}}return{config:m,Link:p,redirect:f(t.redirect),permanentRedirect:f(t.permanentRedirect),getPathname:h}}(a.useLocale,e);return{...h,Link:l,usePathname:function(){let e,r,l=(e=(0,t.usePathname)(),r=(0,a.useLocale)(),(0,s.useMemo)(()=>{if(!e)return e;let t=e,s=x(r,u.localePrefix);if(o(s,e))t=n(e,s);else if("never"!==u.localePrefix.mode&&u.localePrefix.prefixes){let s="/"+r;o(s,e)&&(t=n(e,s))}return t},[u.localePrefix,r,e])),i=(0,a.useLocale)();return(0,s.useMemo)(()=>l&&u.pathnames?function(e,t,s){let a=Object.keys(s).sort(f),r=decodeURI(t);for(let t of a){let a=s[t];if("string"==typeof a){if(m(a,r))return t}else if(m(c(a,e,t),r))return t}return t}(i,l,u.pathnames):l,[i,l])},useRouter:function(){let e=(0,t.useRouter)(),r=(0,a.useLocale)();return(0,s.useMemo)(()=>{function t(e){return function(t,s){let{locale:a,...l}=s||{},i=[p({href:t,locale:a||r,forcePrefix:null!=a||void 0})];Object.keys(l).length>0&&i.push(l),j(u.localeCookie,r,a),e(...i)}}return{...e,push:t(e.push),replace:t(e.replace),prefetch:t(e.prefetch)}},[r,e])},getPathname:p}}({locales:["es"],defaultLocale:"es",localePrefix:"as-needed"});e.s(["Link",0,k,"usePathname",0,S,"useRouter",0,$],520133)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.