(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5935],{36773:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/aprendizaje/courses",function(){return t(15185)}])},68210:function(e,s){"use strict";s.Z={src:"/_next/static/media/clock.a54152dc.svg",height:46,width:46,blurWidth:0,blurHeight:0}},28385:function(e,s,t){"use strict";var r=t(85893);t(67294),s.Z=function(e){let{color:s="#fff"}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"Capa_2","data-name":"Capa 2",viewBox:"0 0 19.28 17.32",width:19,fill:s,children:(0,r.jsxs)("g",{id:"Capa_1-2","data-name":"Capa 1",children:[(0,r.jsx)("path",{d:"M14.02 14.31c-.23.6-.44 1.13-.65 1.67l-.39.99c-.07.19-.2.32-.4.34-.22.02-.35-.11-.45-.27-.19-.3-.38-.6-.56-.9-.07-.12-.16-.15-.3-.11-.34.1-.68.18-1.02.28-.2.06-.38.04-.53-.12-.15-.16-.11-.34-.04-.52.17-.44.34-.88.52-1.32.09-.23.09-.23-.17-.23H2.5c-.41 0-.81.03-1.22-.03-.62-.08-1-.42-1.16-1.03-.06-.23-.08-.47-.08-.71V2.62c0-.39-.05-.77-.01-1.16C.1.49.56.04 1.53 0h16c.3 0 .6.04.88.14.52.19.81.62.86 1.17.04.5 0 1 0 1.5v9.65c0 .26 0 .52-.1.77-.2.52-.6.78-1.14.84-.27.03-.26.03-.16.28.17.43.34.87.51 1.31.07.18.12.36-.03.52-.15.16-.34.18-.55.12-.33-.1-.66-.17-.98-.28-.17-.05-.26 0-.35.13-.18.29-.36.58-.54.86-.1.17-.23.3-.44.28-.22-.02-.34-.16-.41-.36-.31-.8-.63-1.6-.94-2.41-.02-.06-.05-.12-.1-.25ZM9.65.86H1.76c-.73 0-.88.16-.88.89v9.29c0 .5-.01 1 0 1.5 0 .46.2.66.66.72.11.01.21.01.32.01.44 0 .88-.03 1.32-.03h6.85c.74 0 .54.11.82-.55l.06-.15c.05-.11.04-.16-.1-.19-.5-.09-.75-.45-.66-.96.04-.21.1-.41.16-.62.1-.34.09-.37-.21-.54-.2-.12-.39-.22-.57-.37-.4-.35-.43-.79-.08-1.19.19-.22.44-.37.66-.54.11-.08.13-.16.08-.29-.11-.27-.26-.53-.32-.82-.11-.52.16-.91.69-.99.23-.04.47-.05.7-.04.22.01.33-.07.37-.29.03-.2.08-.39.14-.58.2-.66.72-.86 1.31-.52.2.11.38.24.57.38.13.1.23.09.35-.02.21-.19.42-.39.67-.54.43-.24.85-.13 1.1.29.14.23.21.48.29.72.1.28.14.29.42.26.29-.03.58-.08.88-.02.38.08.61.37.62.75 0 .21-.06.41-.11.61-.16.59-.29.51.34.86.06.03.11.11.17.07.06-.03.03-.12.03-.19V1.4c-.02-.29-.17-.47-.46-.51-.13-.02-.27-.03-.4-.03H9.66Zm5.78 11.79c.1-.01.11-.09.12-.15.05-.2.08-.41.14-.6.15-.49.43-.7.93-.73l.58-.03c.13 0 .17-.06.11-.18-.08-.18-.16-.37-.23-.55-.18-.49-.08-.84.33-1.17.15-.12.3-.24.46-.35.1-.08.11-.14-.01-.2-.21-.12-.43-.24-.63-.39a.91.91 0 0 1-.37-.78c0-.24.08-.46.15-.68q.11-.34-.25-.32c-.18.01-.36.04-.54.03-.36 0-.64-.16-.82-.48-.13-.23-.2-.48-.28-.73-.05-.13-.1-.15-.21-.06-.15.14-.31.27-.47.4-.35.28-.73.32-1.12.09-.19-.11-.37-.23-.55-.36-.14-.1-.2-.06-.23.09-.04.18-.08.37-.13.55-.14.53-.44.77-.99.79h-.48c-.21.01-.24.05-.15.24.1.22.2.44.26.67.08.33.02.62-.23.86-.18.19-.4.33-.61.49-.1.08-.1.14.01.21.2.12.41.25.6.39.3.22.43.53.37.91-.04.24-.12.47-.19.7-.04.15 0 .2.15.19.22-.02.44-.03.66-.04.38-.01.66.16.85.49.12.21.18.44.26.67.05.16.1.22.25.08.13-.13.28-.25.43-.36.41-.32.76-.34 1.2-.07.16.1.31.21.47.31.04.03.09.05.13.07Zm-3.53-.33c-.11.29-.21.54-.31.79-.24.61-.48 1.23-.72 1.84-.03.09-.13.2-.06.27.06.06.17-.02.26-.04.14-.03.27-.08.4-.11.28-.07.42 0 .58.23.13.2.25.4.39.62.03-.05.05-.06.06-.09.26-.66.51-1.32.77-1.97.05-.13.05-.19-.12-.16-.37.06-.65-.09-.83-.41-.1-.17-.16-.35-.23-.53-.05-.14-.08-.28-.2-.45Zm3.67 3.59s.05-.02.06-.03c.11-.18.23-.36.34-.54.17-.26.32-.32.61-.25.17.04.35.09.52.14.05.01.11.06.15 0 .04-.05 0-.1-.02-.15-.14-.37-.28-.73-.43-1.1-.14-.36-.29-.72-.44-1.12-.03.07-.04.11-.06.14-.22.54-.66.71-1.18.45-.14-.07-.27-.16-.41-.25-.06-.04-.1-.1-.21-.09.37.94.72 1.86 1.09 2.78Zm2.84-4.97v-.96c0-.11.05-.28-.03-.32-.11-.05-.19.11-.29.16-.2.11-.22.25-.12.45.12.23.22.47.28.73.11.47-.11.84-.58.96-.17.05-.36.06-.53.07-.12 0-.15.05-.11.17.12.3.24.61.36.91.02.06.06.1.12.12.44.16.88-.14.92-.6.05-.6-.04-1.2 0-1.7Z",className:"cls-1"}),(0,r.jsx)("path",{d:"M9.72 2.94H5.46c-.32 0-.5-.18-.47-.48.02-.2.15-.35.36-.37h8.67c.33 0 .5.15.49.44 0 .24-.15.4-.4.41H9.73ZM5.94 11.18H3.3c-.29-.02-.45-.18-.45-.44 0-.25.16-.41.45-.44H8.41c.11 0 .23 0 .34.03.19.06.3.23.29.43-.01.21-.13.36-.33.39-.09.02-.19.02-.28.02H5.95ZM5.94 6.33h2.58c.36 0 .55.21.49.52-.03.18-.14.3-.32.34-.1.02-.2.02-.3.02H3.47c-.09 0-.17 0-.26-.01-.25-.04-.37-.2-.36-.45 0-.24.14-.39.38-.41.21-.02.43 0 .64 0h2.06ZM4.46 8.15c-.03.16.11.18.31.18h3.8c.32 0 .51.21.46.51-.03.21-.18.34-.42.35H3.33c-.3 0-.45-.13-.46-.38-.02-.3.13-.47.43-.47.28 0 .56-.01.84 0 .19 0 .35 0 .32-.18ZM5.95 4.36h2.64c.32 0 .5.24.42.55-.05.19-.2.31-.44.31H3.33c-.33 0-.48-.16-.47-.46 0-.26.16-.4.45-.4h2.64ZM14.04 11.65c-1.4.02-2.62-1.17-2.64-2.58-.02-1.49 1.15-2.72 2.61-2.73 1.44-.02 2.67 1.16 2.69 2.57.02 1.54-1.12 2.71-2.66 2.74Zm.01-4.43c-1-.03-1.78.83-1.79 1.75-.01 1.02.78 1.81 1.79 1.81s1.79-.79 1.79-1.81c0-.96-.81-1.75-1.79-1.75Z",className:"cls-1"})]})})}},78571:function(e,s,t){"use strict";var r=t(85893);t(67294),s.Z=function(){return(0,r.jsxs)("svg",{width:"23",height:"23",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"iconGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,r.jsx)("stop",{offset:"15%",stopColor:"#94C12E"}),(0,r.jsx)("stop",{offset:"50%",stopColor:"#04BBF1"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"#1D4370"})]})}),(0,r.jsx)("path",{fill:"url(#iconGradient)",d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 18a8 8 0 1 1 0-16.001A8 8 0 0 1 12 20Z"}),(0,r.jsx)("path",{fill:"url(#iconGradient)",d:"M12 6a3.5 3.5 0 0 0-3.5 3.5 1 1 0 0 0 2 0A1.5 1.5 0 1 1 12 11a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-1.16A3.49 3.49 0 0 0 12 6Z"}),(0,r.jsx)("path",{fill:"url(#iconGradient)",d:"M12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})]})}},48078:function(e,s,t){"use strict";var r=t(85893),c=t(62641),a=t.n(c);s.Z=function(e){let{messaje:s}=e;return(0,r.jsx)("span",{className:a().empty__span,children:s})}},18911:function(e,s,t){"use strict";var r=t(85893);t(41664);var c=t(67294),a=t(73476),i=t.n(a);s.Z=function(e){let{setCurrentPage:s,totalPages:t,currentpage:a}=e,[o,n]=(0,c.useState)([1]),l=()=>{let e=[];if(t>=4){if(a<=5){for(let s=1;s<=4;s++)e.push(s);e.push("..."),e.push(t)}else if(a>5){e.push(1),e.push("...");for(let s=a-2;s<=a;s++)e.push(s);e.push("..."),e.push(t)}}else for(let s=1;s<=t;s++)e.push(s);n(e)};(0,c.useEffect)(()=>{l()},[t,a]);let _=e=>{"..."!=e&&s(e)};return(0,r.jsxs)(r.Fragment,{children:[a>1&&(0,r.jsx)("span",{className:"".concat(i().pagecount),onClick:()=>s(a-1),children:"Anterior"}),o.map((e,s)=>(0,r.jsx)("span",{className:"".concat(i().pagecount," ").concat(a==e?i().bold:""),onClick:()=>_(e),children:e},"pag ".concat(s))),t>1&&a<t?(0,r.jsx)("span",{className:"".concat(i().pagecount),onClick:()=>s(parseInt(a)+1),children:"Siguiente"}):null]})}},75098:function(e,s,t){"use strict";var r=t(85893),c=t(67294),a=t(51526),i=t(12023),o=t(51262),n=t.n(o),l=t(78571);t(25675),s.Z=e=>{let{content:s}=e,[t,o]=(0,c.useState)(!1),_=(0,c.useRef)(null),d=e=>{_.current&&!_.current.contains(e.target)&&o(!1)};return(0,c.useEffect)(()=>(document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}),[]),(0,r.jsxs)("div",{className:n().tooltipContainer,children:[(0,r.jsx)("div",{className:n().questionIcon,onClick:()=>o(!t),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:(0,r.jsx)(l.Z,{})}),(0,r.jsx)(a.M,{children:t&&(0,r.jsx)(i.E.div,{ref:_,className:n().tooltip,initial:{opacity:0,scaleY:0,transformOrigin:"top"},animate:{opacity:1,scaleY:1,transformOrigin:"top"},exit:{opacity:0,scaleY:0,transformOrigin:"top"},children:(0,r.jsx)("p",{dangerouslySetInnerHTML:{__html:s}})})})]})}},26321:function(e,s,t){"use strict";var r=t(19784);let c=async(e,s)=>{try{let t=await r.Z.get("certificates/?search=".concat(s),{headers:{"Content-Type":"multipart/form-data",User:e}});if(200===t.status)return t.data;throw Error(t.data.message)}catch(e){console.error(e)}};s.Z=c},6282:function(e,s,t){"use strict";var r=t(85893),c=t(67294),a=t(18378),i=t.n(a),o=t(12023);t(41664);var n=t(1362),l=t(25675),_=t.n(l);s.Z=function(e){let{setModal:s,course:t,setSelectedCourse:a}=e,l=(0,c.useRef)(null);return(0,r.jsx)(o.E.div,{className:i().modal,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},ref:l,transition:{duration:.3},onClick:e=>{l.current===e.target&&(a(null),s(!1))},children:(0,r.jsxs)("div",{className:i().card__modal,children:[(0,r.jsxs)("header",{className:i().card__modal__header,children:[(0,r.jsx)("h3",{children:t.title}),(0,r.jsx)(_(),{src:n.Z,alt:"close icon",width:30,height:30,onClick:()=>s(!1)})]}),(0,r.jsxs)("div",{className:i().modal__content,children:[(0,r.jsxs)("div",{className:i().container_img,children:[(0,r.jsx)(_(),{src:t.image_url,alt:"course picture",width:500,height:500,onError:e=>{e.target.onerror=null,e.target.src="/assets/0.jpg"}}),(0,r.jsx)("div",{className:i().decoration})]}),(0,r.jsx)("div",{className:i().container_description,children:(0,r.jsx)("div",{className:"hide-scrollbar "+i()["data-article__body"],style:{overflowY:"scroll",maxHeight:"20rem"},children:(0,r.jsx)("p",{className:i()["data-article__body__p"],dangerouslySetInnerHTML:{__html:(null==t?void 0:t.description)?t.description:(null==t?void 0:t.description_course)?t.description_course:"No hay descripci\xf3n"}})})})]})]})})}},52793:function(e,s,t){"use strict";var r=t(19784);let c=async(e,s,t,c,a,i)=>{let o="courses-all/",n=new URLSearchParams;n.append("page",a),c&&n.append("category",c),s&&n.append("occupation",s),i&&n.append("search",i),t&&n.append("order",t),o+="?"+n.toString();try{let s=await r.Z.get(o,{headers:{"Content-Type":"multipart/form-data",User:e}});if(200===s.status)return s.data;throw Error(s.data.message)}catch(e){throw console.error(e),Error(e.response.data.message)}};s.Z=c},15185:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return eh}});var r=t(85893),c=t(67294),a=t(33258),i=t.n(a),o=t(25675),n=t.n(o),l=t(6282),_=t(68210),d=t(52793),u=t(31955),h=t(18911),p=t(50549),m=t(48078),x=t(12023),j=t(19784);let g=async e=>{try{let s=await j.Z.get("filters-courses/",{headers:{"Content-Type":"multipart/form-data",User:e}});if(200===s.status)return s.data;throw Error(s.data.message)}catch(e){throw console.error(e),Error(e.response.data.message)}};t(31767);var f=t(37964),v=function(){return(0,r.jsx)("svg",{id:"Layer_2","data-name":"Layer 2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27.86 27.86",fill:"#fff",children:(0,r.jsx)("g",{id:"Capa_2","data-name":"Capa 2",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{className:"cls-1",d:"m0,4.95c.38-1.1,1.26-1.76,2.12-2.43.51-.4,1.2-.27,1.7.21.99.96,1.96,1.95,2.94,2.93.24.24.41.51.1.8-.29.27-.58.13-.82-.1-.85-.84-1.69-1.69-2.54-2.53-.62-.62-.76-.62-1.36-.02-1.44,1.45-1.44,1.13,0,2.57,1.53,1.54,3.07,3.06,4.59,4.6.33.34.55.4.89.02.38-.44.8-.83,1.22-1.23.23-.22.25-.39,0-.61-.38-.35-.73-.73-1.09-1.1-.23-.24-.4-.52-.12-.81.31-.32.6-.13.85.13.35.35.71.69,1.05,1.05.24.26.41.26.65,0,.58-.61,1.19-1.2,1.79-1.8,1.28-1.26,2.63-1.25,3.87.08,2.16,2.31,4.33,4.6,6.55,6.84,1.07,1.08,2.21,1.33,3.59.77.7-.28.93-.09.94.68,0,1.04-.29,2.01-.72,2.92-1.58,3.29-3.84,5.96-7.18,7.58-1.54.75-3.15,1.22-4.9.93-.85-.14-1.62-.47-2.29-1.01-.8-.65-1.49-1.43-2.22-2.15-.24-.24-.37-.53-.1-.81.29-.3.57-.12.8.11.59.58,1.16,1.18,1.77,1.73,1.44,1.3,3.45,1.58,5.31.73-.55-.49-1.1-.94-1.6-1.43-.32-.31-1.03-.62-.54-1.16.5-.57.85.15,1.2.42.6.47,1.12,1.04,1.79,1.42.32.18.59.21.92.03.73-.4,1.41-.86,2.05-1.38.25-.2.25-.33-.06-.47-1.09-.46-1.91-1.28-2.74-2.09-.23-.23-.45-.49-.16-.8.3-.32.61-.15.86.09.72.67,1.41,1.4,2.33,1.82.83.38.94.37,1.51-.34.41-.52.8-1.05,1.19-1.58.17-.24.27-.43-.18-.46-1.25-.09-2.28-.68-3.22-1.44-.29-.24-.64-.51-.3-.92.31-.38.62-.09.91.12.9.67,1.82,1.28,3.03,1.22.5-.03.82-.21.97-.69.16-.51.33-1.02.48-1.53.08-.27,0-.4-.31-.32-1.62.44-2.85-.27-3.96-1.32-1.64-1.54-3.11-3.25-4.62-4.92-.35-.38-.55-.36-.86,0-.35.4-.75.77-1.13,1.14-.21.2-.21.36,0,.56.33.31.65.64.96.97.22.23.32.5.05.76-.27.26-.53.15-.76-.07-.31-.3-.63-.6-.92-.92-.21-.23-.38-.26-.61-.02-.42.45-.86.89-1.31,1.31-.24.22-.22.39,0,.61.64.62,1.26,1.25,1.88,1.88.25.26.53.55.19.9-.35.36-.64.07-.89-.18-.61-.61-1.24-1.21-1.83-1.85-.29-.32-.48-.28-.74.01-.36.4-.75.77-1.13,1.14-.23.22-.24.4,0,.62.34.33.68.67,1,1.01.23.24.37.53.08.81-.3.29-.57.11-.81-.13-.34-.33-.68-.66-1.01-1.01-.2-.21-.37-.22-.57,0-.55.56-1.1,1.12-1.66,1.66-.23.22-.23.4,0,.62.49.47.97.96,1.45,1.44.24.24.49.52.18.85-.33.35-.64.11-.9-.15-1.13-1.12-2.27-2.23-3.37-3.37-1.05-1.09-1.03-2.44.03-3.53.59-.61,1.18-1.22,1.8-1.79.36-.33.36-.54,0-.89-1.77-1.73-3.5-3.5-5.26-5.24-.36-.36-.65-.75-.77-1.24v-.25Zm4.48,11.18c-.03.67.46,1.03.83,1.47.36.43.61.43,1.02.01,2.87-2.9,5.76-5.78,8.65-8.67q.87-.87-.02-1.7c-.75-.7-1.46-.73-2.18-.02-2.63,2.61-5.25,5.25-7.88,7.87-.29.29-.47.62-.43,1.03Z"}),(0,r.jsx)("path",{className:"cls-1",d:"m5.7,27.86c-.33-.89-.66-1.78-1.39-2.44-.25-.23-.21-.53.03-.77.57-.56.97-1.22,1.2-1.99.07-.23.19-.42.46-.44.29-.02.47.16.55.42.23.79.64,1.47,1.23,2.04.2.19.26.48.05.67-.75.7-1.09,1.63-1.5,2.52h-.62Z"}),(0,r.jsx)("path",{className:"cls-1",d:"m25.63,27.86c-.37-.5-.42-1.15-.79-1.66-.27-.38-.79-.62-.81-1.13-.03-.53.54-.73.78-1.13.22-.37.42-.75.54-1.17.09-.29.21-.56.56-.56.33,0,.45.25.52.52.22.92.9,1.55,1.42,2.28v.12c-.76.78-1.31,1.68-1.61,2.72h-.62Z"}),(0,r.jsx)("path",{className:"cls-1",d:"m10.52,0c.18.16.26.36.33.58.21.63.52,1.21,1.01,1.67.36.34.42.69.03,1.06-.52.5-.85,1.11-1.06,1.79-.09.29-.21.55-.58.54-.33-.01-.44-.27-.51-.54-.2-.69-.55-1.28-1.07-1.78-.22-.21-.44-.5-.19-.75.74-.73,1.09-1.68,1.54-2.57h.5Z"})]})})})},N=t(23962),b=t(87831),w=t(40814),Z=function(e){let s,{setSelectedCategory:t,selectedCategory:a,setSelectedOcupation:o,selectedOcupation:l,setSelectedOrden:_,selectedOrden:d,categories:h,setCategories:p}=e,[m,j]=(0,c.useState)([]),[Z,C]=(0,c.useState)([]),[y,S]=(0,c.useState)(!1),[k,E]=(0,c.useState)(1920);(0,c.useEffect)(()=>{E(window.innerWidth),g(u.Z.get("id_user_holcim")).then(e=>{C(e.courses_ocupations.map(e=>null==e?"Sin ocupacion":e.ocupacion_name)),p(e.courses_category)}).catch(e=>{}),j(["Del mas antiguo al mas reciente","Del mas reciente al mas antiguo"])},[]);let z=e=>{o(e)},M=e=>{_(e)},R=e=>{t(e)},O=()=>{S(!1),o(""),_(""),t("")};return(0,r.jsx)("section",{className:i().filters,children:y?k>1100&&(0,r.jsxs)(x.E.div,{initial:{opacity:0,scaleX:0,transformOrigin:"right"},animate:{opacity:1,scaleX:1},transition:{duration:.5},className:i().filter_container_show,children:[(0,r.jsx)("div",{className:i().filter_container_show__options__option,children:(0,r.jsx)(f.Z,{data:Z,onDataChange:z,title:l||"Ocupaci\xf3n",selectedData:l,showSelected:!0})}),(0,r.jsx)("div",{className:i().filter_container_show__options__option,children:(0,r.jsx)(f.Z,{data:h.map(e=>e.name),onDataChange:R,title:a||"Categor\xeda",selectedData:a,showSelected:!0})}),(0,r.jsx)("div",{className:i().filter_container_show__options__option,children:(0,r.jsx)(f.Z,{data:m,onDataChange:M,title:"".concat(d?(null==m?void 0:m.findIndex(e=>e==d))?"Reciente primero":"Antiguo primero":"Orden"),selectedData:d,showSelected:!0})}),(0,r.jsxs)("div",{onClick:O,className:i().filter_container_clean,children:[(0,r.jsx)(v,{}),(0,r.jsx)("p",{children:"Limpiar"})]})]},"filter2"):k>1100?(0,r.jsxs)(x.E.div,{className:i().filters__container,onClick:()=>S(!0),initial:{opacity:0,x:-100},animate:{opacity:1,x:0},transition:{duration:.5},children:[(0,r.jsx)(n(),{src:w.Z,alt:"filter icon",width:20,height:20}),(0,r.jsx)("span",{className:i().filters__container__text,children:"Filtro"})]},"filter"):(s=(0,r.jsxs)(x.E.div,{className:i().filters__container__filters__mobile,initial:{opacity:0,y:200},animate:{opacity:1,y:0},transition:{duration:.5},children:[(0,r.jsx)("div",{className:i().container_dropdown_mobile,children:(0,r.jsx)(N.Z,{data:Z,onDataChange:z,title:l||"Ocupaci\xf3n",selectedData:l})}),(0,r.jsx)("div",{className:i().container_dropdown_mobile,children:(0,r.jsx)(N.Z,{data:h.map(e=>e.name),onDataChange:R,title:a||"Categor\xeda",selectedData:a})}),(0,r.jsx)("div",{className:i().container_dropdown_mobile,children:(0,r.jsx)(N.Z,{data:m,onDataChange:M,title:"".concat(d?(null==m?void 0:m.findIndex(e=>e==d))?"Reciente primero":"Antiguo primero":"Orden"),selectedData:d})}),(0,r.jsxs)("div",{className:i().filter_container_clean,onClick:()=>O(),children:[(0,r.jsx)(v,{}),(0,r.jsx)("span",{className:i().filters__container__text,children:"Limpiar"})]})]},"filters"),(0,r.jsx)(b.Z,{componentChildren:s,type:"filters"}))})},C=t(11163),y=t(39647),S=t(56359),k=t(51526),E=t(11316);let z=(e,s,t,a,o,l)=>{let d=[],{setShowLocked:u}=(0,c.useContext)(E.T);if(null==s||s.map((s,c)=>{d.push((0,r.jsxs)("div",{className:"".concat(i().container__course," "),children:[(0,r.jsx)("div",{className:i().container__course__img,onClick:()=>{e(!0),t(s)},children:(0,r.jsx)(n(),{src:s.image_url?s.image_url:"/assets/0.jpg",onError:e=>{e.target.onerror=null,e.target.src="/assets/0.jpg"},alt:"course",width:500,height:500,className:i().course__img})}),(0,r.jsx)("div",{onClick:()=>{e(!0),t(s)},className:i().container__course__info,children:(0,r.jsxs)("div",{className:i().container__course__general_info,children:[(0,r.jsx)("p",{className:i().course__title,children:s.title}),(0,r.jsxs)("div",{className:i().course_duration,children:[(0,r.jsx)(n(),{width:15,src:_.Z,alt:"clock"}),(0,r.jsxs)("p",{children:[s.duration," min"]})]})]})}),(0,r.jsx)("button",{onClick:()=>u(!0),className:"".concat(i().course__button," mx-5"),style:{fontSize:12},children:"Empezar"})]},c))}),!l&&s){var h;if((null===(h=s[0])||void 0===h?void 0:h.id)==1)try{let e=0;s.find((s,t)=>(e=t,26==s.id)),d.splice(e,0,d.splice(0,1)[0])}catch(e){}}return d},M=()=>{let e=[];for(let s=0;s<8;s++)e.push((0,r.jsxs)("div",{className:i().container__course,children:[(0,r.jsx)("div",{className:i().container__course__img,children:(0,r.jsx)(p.Z,{width:"100%",height:"100%"})}),(0,r.jsxs)("div",{className:i().container__course__info,children:[(0,r.jsx)("p",{className:i().course__title,children:(0,r.jsx)(p.Z,{width:"100%"})}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:i().course_duration,children:[(0,r.jsx)(p.Z,{width:15,height:15}),(0,r.jsx)("p",{children:(0,r.jsx)(p.Z,{width:50})})]})}),(0,r.jsx)("div",{className:i().course__button,children:(0,r.jsx)(p.Z,{width:50})})]}),(0,r.jsxs)("div",{className:i().course_progress_container,children:[(0,r.jsx)("p",{children:(0,r.jsx)(p.Z,{width:50})}),(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsx)(p.Z,{width:"100%",height:10})})]})]},s));return e};var R=function(e){let{search:s}=e,[t,a]=(0,c.useState)(!1),[o,n]=(0,c.useState)(null),[_,p]=(0,c.useState)(!0),[x,j]=(0,c.useState)([]),[g,f]=(0,c.useState)(""),[v,N]=(0,c.useState)(""),[b,w]=(0,c.useState)(""),[E,R]=(0,c.useState)(1),[O,I]=(0,c.useState)({}),{setLastUrl:T}=(0,c.useContext)(y.A),D=(0,C.useRouter)(),[H,V]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{p(!0);let e=u.Z.get("id_user_holcim"),t="",r="Sin ocupacion"==g?"":g,c=""!=v?x.find(e=>e.name==v).code:"";""!=b&&(t="Del mas reciente al mas antiguo"===b?"desc":"asc"),(0,d.Z)(e,r,t,c,E,s).then(e=>{n(e),p(!1)}).catch(e=>{p(!1)})},[E,g,b,v,s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"".concat(i().container," p-[1rem]"),children:[(0,r.jsxs)("header",{className:i().header,children:[(0,r.jsx)("div",{className:i().info__title__container,children:(0,r.jsx)("h4",{children:"Cat\xe1logo de cursos"})}),(0,r.jsx)("div",{className:i().filter_container,children:(0,r.jsx)(Z,{setSelectedCategory:N,selectedCategory:v,setSelectedOcupation:f,selectedOcupation:g,setSelectedOrden:w,selectedOrden:b,categories:x,setCategories:j})})]}),_?(0,r.jsx)("div",{className:i().container__courses,children:M()}):(null==o?void 0:o.courses.length)===0?(0,r.jsx)("div",{className:i().not_found,children:(0,r.jsx)(m.Z,{messaje:"No se encontraron cursos"})}):(0,r.jsx)("div",{className:i().container__courses,children:z(a,null==o?void 0:o.courses,I,T,D.asPath,b)}),(0,r.jsx)("div",{className:i().pagination,children:(0,r.jsx)(h.Z,{setCurrentPage:R,totalPages:null==o?void 0:o.page,currentpage:null==o?void 0:o.current_page})})]}),t&&(0,r.jsx)(l.Z,{setModal:a,course:O,setSelectedCourse:I}),(0,r.jsx)(k.M,{children:H&&(0,r.jsx)(S.Z,{setModal:V,title:"No tienes acceso",button:{link:"/profile",text:"Ingresar mi c\xf3digo"},secondaryButton:{text:"Cancelar"},content:(0,r.jsx)("div",{children:(0,r.jsx)("p",{children:"Este contenido solo est\xe1 activo para clientes, si tienes un c\xf3digo de cliente puedes ingresarlo en la secci\xf3n de perfil"})})})})]})},O=t(12776),I=t.n(O);t(33577);var T=t(41664),D=t.n(T),H=function(e){let{color:s}=e;return(0,r.jsx)("svg",{id:"Layer_2","data-name":"Layer 2",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 24 22.22",fill:s,children:(0,r.jsx)("g",{id:"Capa_2","data-name":"Capa 2",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{className:"cls-1",d:"m22.39,4.11s-.04-.08-.07-.11l-.02-.03c-.16-.17-.4-.24-.62-.18-.23.06-.41.24-.47.46-.05.2-.16.38-.31.52-.3.28-.72.37-1.1.23-.42-.14-.7-.52-.77-1.03,0-.03,0-.06,0-.08.12-.54.46-.91.93-.99.23-.04.42-.21.5-.43.07-.22.02-.46-.14-.62l-1.55-1.66c-.09-.09-.2-.16-.32-.18-.03,0-.06-.01-.1,0-.15,0-.3.06-.42.16l-1.47,1.34c-.08-.2-.2-.38-.35-.54-.69-.74-1.87-.79-2.63-.11-.74.71-.78,1.86-.09,2.62.15.16.32.3.51.4l-1.46,1.36s-.06.07-.07.08c-.07.1-.12.21-.13.32,0,.03,0,.07,0,.1.02.13.07.24.16.33l1.53,1.68c.15.17.39.24.61.19.23-.06.41-.23.47-.46.12-.46.51-.77,1.06-.85.03,0,.06,0,.08,0,.5.12.85.43.96.85.1.39-.02.81-.32,1.08-.15.14-.34.23-.54.27-.23.04-.43.2-.5.43-.07.22-.02.46.13.63l.02.03s.07.06.11.08l1.46,1.57c.1.11.24.18.39.2.02,0,.03,0,.05,0,.02,0,.04,0,.05,0,.07,0,.14-.03.21-.07.03-.02.08-.04.13-.09l1.6-1.46s.04-.04.05-.06c.12-.16.15-.37.1-.56-.06-.19-.19-.34-.38-.4-.16-.06-.3-.16-.42-.28-.2-.22-.3-.51-.28-.81.02-.3.16-.57.39-.76.01,0,.02-.02.03-.03.21-.21.49-.32.79-.33.3,0,.58.13.78.35.12.13.2.27.25.44.05.19.19.34.37.41.19.07.4.05.57-.05.02-.01.04-.03.06-.05l1.58-1.48c.09-.09.16-.2.18-.32,0-.03.01-.07.01-.11,0-.15-.06-.3-.16-.4l-1.44-1.59Zm-.5,3.12c-.08-.19-.2-.36-.34-.52-.35-.38-.83-.59-1.35-.6-.51,0-.99.19-1.35.55-.39.33-.62.79-.66,1.3-.04.52.14,1.01.49,1.39.14.15.31.28.49.38l-1.25,1.13-1.26-1.35c.24-.08.47-.22.66-.39.52-.47.73-1.19.55-1.86-.18-.71-.76-1.24-1.55-1.42-.12-.03-.24-.03-.37-.02-.77.11-1.36.54-1.63,1.17l-1.22-1.34,1.45-1.35c.06-.06.11-.12.15-.2.09-.16.11-.34.05-.51-.06-.18-.2-.32-.37-.39-.16-.06-.3-.16-.42-.28-.4-.44-.38-1.11.04-1.51.44-.39,1.12-.36,1.52.07.12.13.2.27.25.44.05.18.18.33.36.4.17.07.35.07.52,0,.08-.03.15-.07.21-.13l1.46-1.33,1.23,1.32c-.65.22-1.13.77-1.3,1.53-.03.12-.03.24-.01.37.12.8.6,1.42,1.29,1.66.66.23,1.39.08,1.9-.4.19-.18.34-.39.44-.63l1.24,1.36-1.23,1.15Z"}),(0,r.jsx)("path",{className:"cls-1",d:"m2.53,21.59c0,.35.29.63.64.63h0l7.33-.04s.04,0,.06,0c.08.03.16.05.25.05h2.28s.05-.02.08-.02c.19-.04.36-.17.44-.35.09-.18.08-.38,0-.56-.12-.23-.25-.69.14-1.26.01-.02.03-.04.06-.06.25-.18.51-.26.78-.26.6,0,1.09.49,1.09,1.08,0,.17-.04.34-.11.49-.09.18-.09.38,0,.55.09.18.26.31.45.35.03,0,.05,0,.08,0h2.16c.17-.01.33-.08.45-.2.12-.12.19-.28.18-.45v-2.26c-.02-.35-.3-.63-.65-.63-.12,0-.25.04-.35.1-.17.11-.37.17-.59.17-.4,0-.77-.22-.96-.58-.21-.39-.16-.85.13-1.28.01-.02.03-.04.06-.06.25-.18.52-.27.78-.27.21,0,.41.06.58.17.25.16.59.12.8-.09.12-.12.18-.28.18-.45v-2.27c-.02-.35-.3-.63-.65-.63h-1.94c.07-.19.1-.39.1-.61,0-1.03-.85-1.87-1.88-1.87-.42,0-.83.14-1.21.4.06-.08.11-.16.16-.25.34-.65.26-1.43-.19-2.09-.07-.1-.16-.19-.26-.26-.58-.39-1.26-.5-1.84-.29v-1.94c-.01-.35-.3-.63-.65-.63h-1.95c.21-.59.11-1.25-.3-1.84-.07-.1-.16-.19-.26-.26-.38-.26-.8-.39-1.21-.39h0c-.5,0-.98.2-1.33.55-.36.36-.55.83-.55,1.34,0,.22.04.43.11.63h-1.95c-.17.01-.33.08-.45.2-.12.12-.19.28-.18.45v2.28s.02.05.02.08c.06.29.32.51.62.51.1,0,.2-.02.29-.07.39-.2.84-.15,1.26.14.02.01.04.03.06.06.29.42.34.89.14,1.28-.19.36-.56.59-.97.59-.17,0-.33-.04-.49-.12-.09-.04-.18-.07-.28-.07-.3,0-.56.22-.62.52,0,.03,0,.05,0,.08v2.16c.01.06.03.12.05.17,0,0,0,.02,0,.03v1.86c-.59-.21-1.25-.11-1.84.3-.1.07-.19.16-.26.26-.45.67-.52,1.45-.17,2.09.33.62.97,1,1.67,1,.22,0,.43-.04.63-.12v1.95Zm10.95-7.6c.11-.19.12-.42.02-.62-.12-.23-.25-.69.14-1.26.02-.02.04-.04.06-.06.25-.18.51-.26.78-.26.6,0,1.09.49,1.09,1.08,0,.17-.04.34-.11.49-.1.19-.09.42.03.61.12.19.32.3.55.3h2.02s.01,1.84.01,1.84c-.62-.28-1.37-.19-1.99.24-.1.07-.19.16-.26.26-.45.66-.52,1.45-.18,2.09.33.62.96,1,1.67,1,.27,0,.53-.06.78-.17v1.85s-1.72.01-1.72.01c.07-.2.1-.4.1-.61,0-1.03-.85-1.87-1.88-1.87-.42,0-.84.14-1.22.4-.1.07-.19.16-.26.26-.4.59-.5,1.24-.29,1.84h-1.84s-.01-2.02-.01-2.02c0-.35-.29-.64-.64-.64-.1,0-.2.03-.29.07-.16.08-.32.12-.51.12-.4,0-.77-.22-.96-.58-.21-.39-.16-.85.13-1.28.01-.02.03-.04.05-.06.42-.3.89-.35,1.27-.15.24.12.55.07.74-.12.12-.12.19-.28.18-.45v-2.03s2.01-.01,2.01-.01c.22,0,.43-.12.54-.31Zm-.78-.48h-1.55s0-1.45,0-1.45c.2.07.4.1.62.1.45,0,.87-.16,1.19-.44-.37.58-.46,1.21-.25,1.79Zm-8.86-1.24c.7,0,1.33-.39,1.66-1.01.34-.65.26-1.43-.19-2.09-.07-.1-.16-.19-.26-.26-.58-.39-1.25-.5-1.84-.29v-1.84s2.02-.01,2.02-.01c.23,0,.43-.12.55-.31.11-.19.12-.42.02-.61-.08-.16-.12-.32-.13-.5,0-.29.11-.57.32-.78.21-.21.48-.32.77-.32h0c.26,0,.51.09.76.26.02.01.04.03.06.05.29.42.35.88.15,1.27-.1.2-.09.43.03.62.12.19.32.3.55.3h2.03s.01,2.01.01,2.01c0,.35.29.63.64.63.1,0,.2-.02.29-.07.38-.2.84-.15,1.26.14.02.02.04.03.06.06.29.42.35.89.14,1.28-.19.36-.56.59-.97.59-.17,0-.33-.04-.48-.11-.24-.12-.54-.07-.73.12-.12.12-.19.28-.19.45v1.84s-.06.07-.1.12h0s0,0,0,0h0s-.03.04-.04.06h-1.94c-.09.01-.17-.03-.21-.11-.04-.08-.04-.18,0-.25.34-.54.3-1.21-.11-1.8-.04-.06-.09-.11-.16-.15-.32-.22-.65-.33-.99-.33-.4,0-.77.16-1.05.44-.28.28-.43.66-.43,1.06,0,.28.08.55.23.79.05.08.05.18.01.26-.04.08-.12.12-.21.12h-2.14s0-1.72,0-1.72c.19.07.4.1.61.1Zm-1.96,6.7c-.4,0-.78-.22-.97-.58-.21-.39-.16-.85.13-1.28.01-.02.03-.04.05-.05.42-.29.88-.35,1.27-.15.2.1.43.09.62-.03.19-.12.3-.32.3-.55v-1.65s2.09-.01,2.09-.01c.37,0,.72-.21.9-.54.18-.33.16-.74-.04-1.06-.07-.11-.11-.24-.11-.37,0-.19.07-.36.2-.49.25-.25.65-.27,1.01-.03.13.2.29.55.07.89-.2.32-.22.72-.03,1.05.18.33.52.53.9.53h1.85s0,1.45,0,1.45c-.6-.21-1.28-.1-1.86.3-.1.07-.19.16-.26.26-.45.66-.52,1.45-.17,2.09.33.62.96,1,1.67,1,.22,0,.43-.04.63-.11v1.69s-.02.04-.03.06l-6.81.04v-2.03c-.01-.23-.13-.43-.32-.55-.19-.11-.42-.12-.61-.02-.16.08-.32.12-.5.13Z"})]})})})},V=function(e){let{color:s}=e;return(0,r.jsx)("svg",{id:"Layer_2","data-name":"Layer 2",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 24.42 18.79",fill:s,children:(0,r.jsx)("g",{id:"Capa_2","data-name":"Capa 2",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{className:"cls-1",d:"m3.24,6.44h10.11c.17,0,.3-.13.3-.3s-.13-.3-.3-.3H3.24c-.17,0-.3.13-.3.3s.13.3.3.3Z"}),(0,r.jsx)("path",{className:"cls-1",d:"m13.34,14.11H3.24c-.17,0-.3.13-.3.3s.13.3.3.3h10.11c.17,0,.3-.13.3-.3s-.13-.3-.3-.3Z"}),(0,r.jsx)("path",{className:"cls-1",d:"m23.87.69s-.01-.02-.02-.02c-.39-.39-.82-.59-1.28-.59-.71,0-1.22.5-1.26.54l-3.9,3.9c-.06.06-.09.13-.09.21,0,.03,0,.05.01.08l-.23.23-.11-.11-.41.41V0H0v18.79h16.58v-8.31l2.98-2.98-.11-.11.23-.23s.05.01.08.01c.08,0,.15-.03.21-.09l3.84-3.84s.58-.56.59-1.31c0-.45-.18-.86-.55-1.25Zm-7.89,10.4v7.11H.6V.6h15.38v5.35l-3.35,3.35.24.24-.08.47H3.24c-.17,0-.3.13-.3.3s.13.3.3.3h9.45l-.25,1.47,2.54-.44.23.23.78-.78.3-.3-.3.3Zm-2.77.69l-.56.1h-.04s.1-.6.1-.6l.13.13.28-1.62,1.58,1.58-1.62.28.12.12Zm1.99-.76l-1.72-1.72,3.51-3.51,1.72,1.72-3.51,3.51Zm3.94-3.72l-1.93-1.93.2-.2,1.93,1.93-.2.2Zm4.26-4.48l-3.64,3.64-1.72-1.72,3.69-3.69s0,0,0,0c0,0,.37-.36.84-.36.29,0,.58.13.85.4,0,0,.01.01.01.02.26.26.39.54.38.82,0,.5-.4.89-.41.9Z"}),(0,r.jsx)("path",{className:"cls-1",d:"m17.4,3.75c.1.1.27.1.37,0l2.77-2.77c.1-.1.1-.27,0-.37h0c-.1-.11-.27-.11-.37,0l-2.77,2.77c-.1.1-.1.27,0,.37h0Z"})]})})})},A=function(e){let{color:s}=e;return(0,r.jsx)("svg",{id:"Layer_2","data-name":"Layer 2",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 23.85 15.99",fill:s,children:(0,r.jsx)("g",{id:"Capa_2","data-name":"Capa 2",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{className:"cls-1",d:"m16.92,2.7c.4.42.68.71.96,1.01.18.2.25.44.03.65-.19.18-.42.17-.59,0-.61-.59-1.21-1.18-1.79-1.8-.22-.24-.12-.52.09-.73.54-.55,1.07-1.09,1.62-1.62.18-.18.41-.31.65-.09.27.25.15.5-.05.72-.23.26-.48.51-.72.77.17.28.42.18.61.18,1.5,0,3.01,0,4.51,0,1.12.01,1.58.44,1.58,1.53.01,3.72.01,7.44,0,11.16,0,1.06-.46,1.51-1.5,1.51-6.95,0-13.89,0-20.84,0-1.01,0-1.48-.44-1.48-1.45-.02-3.77-.02-7.55,0-11.32,0-.98.48-1.42,1.51-1.43,2.38-.02,4.76-.01,7.14,0,.5,0,.85-.11,1.19-.53.59-.74,1.58-.75,2.24-.1.62.61.6,1.59-.04,2.2-.64.62-1.58.62-2.17-.11-.38-.47-.79-.58-1.34-.57-2.24.02-4.48.03-6.73,0-.66,0-.93.19-.92.89.03,3.55.02,7.11,0,10.66,0,.65.25.85.87.85,6.78-.01,13.56-.01,20.34,0,.65,0,.85-.26.85-.88-.02-3.55-.01-7.11,0-10.66,0-.49-.07-.86-.7-.85-1.72.02-3.44,0-5.33,0Z"}),(0,r.jsx)("path",{className:"cls-1",d:"m4.93,11.38c-1.24,0-2.3-1.03-2.32-2.27-.02-1.24,1.01-2.29,2.26-2.33,1.22-.03,2.29,1.03,2.31,2.28.02,1.24-1.02,2.31-2.26,2.32Z"}),(0,r.jsx)("path",{className:"cls-1",d:"m18.9,11.38c-1.21,0-2.28-1.1-2.26-2.33.01-1.21,1.14-2.3,2.34-2.27,1.24.03,2.29,1.12,2.26,2.34-.03,1.24-1.09,2.27-2.33,2.26Z"}),(0,r.jsx)("path",{className:"cls-1",d:"m11.93,6.79c1.26,0,2.28,1.05,2.26,2.32-.01,1.27-1.05,2.28-2.33,2.26-1.23-.02-2.2-1.02-2.21-2.28,0-1.27,1.02-2.31,2.28-2.3Z"})]})})})},L=function(e){let{setTabActive:s,tabActive:t}=e;return(0,r.jsxs)("div",{className:I().container_tabs,children:[(0,r.jsxs)(D(),{className:"".concat(I().tab," ").concat("iniciados"===t?I().tab__active:""),onClick:()=>s("iniciados"),href:"#started-courses",children:[(0,r.jsx)(H,{color:"iniciados"===t?"#fff":"#1d4370"}),(0,r.jsx)("p",{className:I().tab__title,children:"CURSOS INICIADOS"})]}),(0,r.jsxs)(D(),{className:"".concat(I().tab," ").concat("finalizados"===t?I().tab__active:""),onClick:()=>s("finalizados"),href:"#completed-courses",children:[(0,r.jsx)(V,{color:"finalizados"===t?"#fff":"#1d4370"}),(0,r.jsx)("p",{className:I().tab__title,children:"CURSOS FINALIZADOS"})]}),(0,r.jsxs)(D(),{className:"".concat(I().tab," ").concat("mis_cursos"===t?I().tab__active:""),onClick:()=>s("mis_cursos"),href:"#courses-catalog",children:[(0,r.jsx)(A,{color:"mis_cursos"===t?"#fff":"#1d4370"}),(0,r.jsx)("p",{className:I().tab__title,children:"CAT\xc1LOGO DE CURSOS"})]})]})},P=t(1607),B=t.n(P),U=t(79277),W=t.n(U);let q=async(e,s)=>{try{let t=await j.Z.get("courses-finished-limit/?course-status=finished&search=".concat(s),{headers:{"Content-Type":"multipart/form-data",User:e}});if(200===t.status)return t.data;throw Error(t.data.message)}catch(e){throw console.error(e),Error(e.response.data.message)}};var F=t(28385),X=t(75098),Y=t(78368),G=t(10657);let Q=(e,s,t,a,i,o)=>{let l=[],{userData:d}=(0,c.useContext)(Y.S),{showLocked:u,setShowLocked:h}=(0,c.useContext)(E.T),p=(0,G.Z)();return s.map((s,c)=>{l.push((0,r.jsxs)("div",{className:W().container__course,children:[(0,r.jsxs)("div",{className:W().container__course__img,children:[(0,r.jsx)(n(),{src:s.image_url?s.image_url:"/assets/0.jpg",alt:"course",onError:e=>{e.target.onerror=null,e.target.src="/assets/0.jpg"},width:500,height:500,className:W().course__img}),(0,r.jsx)(D(),{onClick:()=>a("/aprendizaje/courses"),className:W().decoration_icon,href:"/aprendizaje/certificates/detail?certificate=".concat((null==o?void 0:o.length)&&(null==o?void 0:o.filter(e=>(null==e?void 0:e.course)==s.title).length)?null==o?void 0:o.filter(e=>(null==e?void 0:e.course)==s.title)[0].id_certificate:s.id),children:(0,r.jsx)(F.Z,{color:"#1c436f"})})]}),(0,r.jsxs)("div",{className:W().container__course__info,children:[(0,r.jsx)("div",{className:W().container__course__general_info,children:(0,r.jsx)("p",{onClick:()=>{e(!0),t(s)},className:W().course__title,children:s.title})}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:W().course_duration,children:[(0,r.jsx)(n(),{width:15,src:_.Z,alt:"clock"}),(0,r.jsxs)("p",{children:[s.duracion," min"]})]})}),d.payer_code&&"visitor"!=d.payer_code||s.public||p?(0,r.jsx)(D(),{href:{pathname:"course",query:{id:s.id}},onClick:()=>{a(i)},children:(0,r.jsx)("button",{className:W().course__button,children:"Repetir curso"})}):(0,r.jsx)("div",{onClick:()=>h(!0),children:(0,r.jsx)("button",{className:W().course__button,children:"Repetir curso"})})]}),(0,r.jsxs)("div",{className:W().course_progress_container,children:[(0,r.jsxs)("p",{children:[s.progress,"%"]}),(0,r.jsx)("div",{className:W().course_progress_bar,children:(0,r.jsx)("div",{style:{width:"".concat(s.progress,"%")},className:W().course_progress_bar__fill})})]})]},c))}),l};var J=function(e){let{search:s,certificates:t}=e,[a,i]=(0,c.useState)(!1),[o,n]=(0,c.useState)([]),[_,d]=(0,c.useState)({}),[h,x]=(0,c.useState)(!0),{setLastUrl:j}=(0,c.useContext)(y.A),g=(0,C.useRouter)();return(0,c.useEffect)(()=>{q(u.Z.get("id_user_holcim"),s).then(e=>{n(e.courses.filter(e=>2===e.visibility)),x(!1)}).catch(e=>{x(!1)})},[s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:W().container,children:[(0,r.jsxs)("header",{className:W().header,children:[(0,r.jsxs)("div",{className:W().info__title__container,children:[(0,r.jsx)("h4",{children:"Cursos finalizados"}),(0,r.jsx)(X.Z,{content:"\n                Porcentaje de avance se ver\xe1 reflejado una vez se finalice el curso y este pendiente la evaluaci\xf3n del mismo<br><br>\n                50% (Curso finalizado)<br>\n                100% (Curso + Evaluaci\xf3n finalizada)\n              "})]}),o.length>=4&&(0,r.jsxs)(D(),{href:"/aprendizaje/courses/completedcourses",className:W().see_more_container,children:[(0,r.jsx)("p",{className:W().see_more_text,children:"VER M\xc1S"}),(0,r.jsx)("p",{className:W().see_more_plus,children:"+"})]})]}),h?(0,r.jsx)("div",{className:W().container__courses,children:(()=>{let e=[];for(let s=0;s<4;s++)e.push((0,r.jsxs)("div",{className:W().container__course,children:[(0,r.jsx)("div",{className:W().container__course__img,children:(0,r.jsx)(p.Z,{width:"100%",height:"100%"})}),(0,r.jsxs)("div",{className:W().container__course__info,children:[(0,r.jsx)("p",{className:W().course__title,children:(0,r.jsx)(p.Z,{width:"100%"})}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:W().course_duration,children:[(0,r.jsx)(p.Z,{width:15,height:15}),(0,r.jsx)("p",{children:(0,r.jsx)(p.Z,{width:50})})]})}),(0,r.jsx)("div",{className:W().course__button,children:(0,r.jsx)(p.Z,{width:50})})]}),(0,r.jsxs)("div",{className:W().course_progress_container,children:[(0,r.jsx)("p",{children:(0,r.jsx)(p.Z,{width:50})}),(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsx)(p.Z,{width:"100%",height:10})})]})]},s));return e})()}):0===o.length?(0,r.jsx)("div",{className:W().not_found,children:(0,r.jsx)(m.Z,{messaje:"No haz finalizado ning\xfan curso"})}):(0,r.jsx)("div",{className:W().container__courses,children:Q(i,o,d,j,g.asPath,t)})]}),a&&(0,r.jsx)(l.Z,{setModal:i,course:_,setSelectedCourse:d})]})},K=t(51810);let $=(e,s,t,c,a,o,l,d,u)=>{let h=[],p=(0,G.Z)();if(null==s||s.map((s,l)=>{h.push((0,r.jsxs)("div",{className:i().container__course,children:[(0,r.jsxs)("div",{className:i().container__course__img,children:[(0,r.jsx)(n(),{src:s.image_url?s.image_url:"/assets/0.jpg",onError:e=>{e.target.onerror=null,e.target.src="/assets/0.jpg"},alt:"course",width:500,height:500,className:i().course__img}),(u.payer_code&&"visitor"!=u.payer_code||s.public||p)&&(100==s.progress?(0,r.jsx)(D(),{onClick:()=>c("/aprendizaje/courses"),className:i().decoration_icon,href:"/aprendizaje/certificates/detail?certificate=".concat((null==o?void 0:o.length)&&(null==o?void 0:o.filter(e=>(null==e?void 0:e.course)==s.title).length)?null==o?void 0:o.filter(e=>(null==e?void 0:e.course)==s.title)[0].id_certificate:s.id),children:(0,r.jsx)(F.Z,{color:"#1c436f"})}):(0,r.jsx)("div",{className:i().decoration_icon,children:(0,r.jsx)(F.Z,{color:"#beb9b4"})}))]}),(0,r.jsxs)("div",{className:i().container__course__info,children:[(0,r.jsxs)("div",{className:i().container__course__general_info,children:[(0,r.jsx)("p",{onClick:()=>{e(!0),t(s)},className:i().course__title,children:s.title}),(0,r.jsxs)("div",{className:i().course_duration,children:[(0,r.jsx)(n(),{width:15,src:_.Z,alt:"clock"}),(0,r.jsxs)("p",{children:[s.duration," min"]})]})]}),u.payer_code&&"visitor"!=u.payer_code||s.public||p?(0,r.jsx)(D(),{className:i().course__button,href:{pathname:"course",query:{id:s.id}},onClick:()=>{c(a)},children:100==s.progress?(0,r.jsx)("p",{children:"Repetir curso"}):0==s.progress?(0,r.jsx)("p",{children:"Iniciar curso"}):(0,r.jsx)("p",{children:"Continuar curso"})}):(0,r.jsx)("button",{onClick:d,className:i().course__button,style:{fontSize:12},children:"Empezar"})]}),(0,r.jsxs)("div",{className:i().course_progress_container,children:[(0,r.jsxs)("p",{children:[s.progress,"%"]}),(0,r.jsx)("div",{className:i().course_progress_bar,children:(0,r.jsx)("div",{style:{width:"".concat(s.progress,"%")},className:i().course_progress_bar__fill})})]})]},l))}),!l&&s){var m;if((null===(m=s[0])||void 0===m?void 0:m.id)==1)try{let e=0;s.find((s,t)=>(e=t,26==s.id)),h.splice(e,0,h.splice(0,1)[0])}catch(e){}}return h},ee=()=>{let e=[];for(let s=0;s<8;s++)e.push((0,r.jsxs)("div",{className:i().container__course,children:[(0,r.jsx)("div",{className:i().container__course__img,children:(0,r.jsx)(p.Z,{width:"100%",height:"100%"})}),(0,r.jsxs)("div",{className:i().container__course__info,children:[(0,r.jsx)("p",{className:i().course__title,children:(0,r.jsx)(p.Z,{width:"100%"})}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:i().course_duration,children:[(0,r.jsx)(p.Z,{width:15,height:15}),(0,r.jsx)("p",{children:(0,r.jsx)(p.Z,{width:50})})]})}),(0,r.jsx)("div",{className:i().course__button,children:(0,r.jsx)(p.Z,{width:50})})]}),(0,r.jsxs)("div",{className:i().course_progress_container,children:[(0,r.jsx)("p",{children:(0,r.jsx)(p.Z,{width:50})}),(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsx)(p.Z,{width:"100%",height:10})})]})]},s));return e};var es=function(e){let{search:s,certificates:t}=e,[a,o]=(0,c.useState)(!1),[n,_]=(0,c.useState)(null),[p,x]=(0,c.useState)(!0),[j,g]=(0,c.useState)([]),[f,v]=(0,c.useState)(""),[N,b]=(0,c.useState)(""),[w,E]=(0,c.useState)(""),[z,M]=(0,c.useState)(1),[R,O]=(0,c.useState)({}),{setLastUrl:I}=(0,c.useContext)(y.A),T=(0,C.useRouter)(),[D,H]=(0,c.useState)(!1),{userData:V}=(0,c.useContext)(Y.S);return(0,c.useEffect)(()=>{x(!0);let e=u.Z.get("id_user_holcim"),t="",r="Sin ocupacion"==f?"":f,c=""!=N?j.find(e=>e.name==N).code:"";""!=w&&(t="Del mas reciente al mas antiguo"===w?"desc":"asc"),(0,d.Z)(e,r,t,c,z,s).then(e=>{_(e),x(!1)}).catch(e=>{x(!1)})},[z,f,w,N,s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:i().container,children:[(0,r.jsxs)("header",{className:i().header,children:[(0,r.jsxs)("div",{className:i().info__title__container,children:[(0,r.jsx)("h4",{children:"Cat\xe1logo de cursos"}),(0,r.jsx)(X.Z,{content:"\n                Porcentaje de avance se ver\xe1 reflejado una vez se finalice el curso y este pendiente la evaluaci\xf3n del mismo<br><br>\n                50% (Curso finalizado)<br>\n                100% (Curso + Evaluaci\xf3n finalizada)\n              "})]}),(0,r.jsx)("div",{className:i().filter_container,children:(0,r.jsx)(Z,{setSelectedCategory:b,selectedCategory:N,setSelectedOcupation:v,selectedOcupation:f,setSelectedOrden:E,selectedOrden:w,categories:j,setCategories:g})})]}),p?(0,r.jsx)("div",{className:i().container__courses,children:ee()}):(null==n?void 0:n.courses.length)===0?(0,r.jsx)("div",{className:i().not_found,children:(0,r.jsx)(m.Z,{messaje:"No se encontraron cursos"})}):(0,r.jsx)("div",{className:i().container__courses,children:$(o,null==n?void 0:n.courses,O,I,T.asPath,t,w,H,V)}),(0,r.jsx)("div",{className:i().pagination,children:(0,r.jsx)(h.Z,{setCurrentPage:M,totalPages:null==n?void 0:n.page,currentpage:null==n?void 0:n.current_page})})]}),a&&(0,r.jsx)(l.Z,{setModal:o,course:R,setSelectedCourse:O}),(0,r.jsx)(k.M,{children:D&&(0,r.jsx)(S.Z,{setModal:H,title:"No tienes acceso",button:{link:"/profile",text:"Ingresar mi c\xf3digo"},secondaryButton:{text:"Cancelar"},content:(0,r.jsx)("div",{children:(0,r.jsx)("p",{children:"Este contenido solo est\xe1 activo para clientes, si tienes un c\xf3digo de cliente puedes ingresarlo en la secci\xf3n de perfil"})})})})]})},et=t(21968),er=t.n(et);let ec=async(e,s)=>{try{let t=await j.Z.get("courses-unfinished-limit/?course-status=unfinished&search=".concat(s),{headers:{"Content-Type":"multipart/form-data",User:e}});if(200===t.status)return t.data;throw Error(t.data.message)}catch(e){throw console.error(e),Error(e.response.data.message)}},ea=(e,s,t,a,i,o,l)=>{let _=[],{userData:d}=(0,c.useContext)(Y.S),{showLocked:u,setShowLocked:h}=(0,c.useContext)(E.T),p=(0,G.Z)();return s.map((s,t)=>{s.progress<100&&_.push((0,r.jsxs)("div",{className:er().container__course,children:[(0,r.jsxs)("div",{className:er().container__course__img,children:[(0,r.jsx)(n(),{src:s.image_url?s.image_url:"/assets/0.jpg",onError:e=>{e.target.onerror=null,e.target.src="/assets/0.jpg"},alt:"course",width:500,height:500,className:er().course__img}),(d.payer_code&&"visitor"!=d.payer_code||s.public||p)&&(0,r.jsx)("div",{className:er().decoration_icon,children:(0,r.jsx)(F.Z,{color:"#beb9b4"})})]}),(0,r.jsxs)("div",{className:er().container__course__info,children:[(0,r.jsx)("p",{onClick:()=>{a(s),e(!0)},className:er().course__title,children:s.title}),d.payer_code&&"visitor"!=d.payer_code||s.public||p?(0,r.jsxs)(D(),{href:{pathname:"course",query:{id:s.id}},onClick:()=>{i(o)},className:er().course__button,children:[0===s.progress?(0,r.jsx)("p",{className:er().course__info__details__button__text,children:"Iniciar curso"}):s.progress>0&&s.progress<100&&(0,r.jsx)("p",{className:er().course__info__details__button__text,children:"Continuar curso"}),100===s.progress&&(0,r.jsx)("p",{className:er().course__info__details__button__text,children:"Repetir curso"})]}):(0,r.jsx)("button",{onClick:l,className:er().course__button,children:"Iniciar"})]}),(0,r.jsxs)("div",{className:er().course_progress_container,children:[(0,r.jsxs)("p",{children:[s.progress,"%"]}),(0,r.jsx)("div",{className:er().course_progress_bar,children:(0,r.jsx)("div",{style:{width:"".concat(s.progress,"%")},className:er().course_progress_bar__fill})})]})]},t))}),_};var ei=function(e){let{search:s}=e,[t,a]=(0,c.useState)(!1),[i,o]=(0,c.useState)([]),[n,_]=(0,c.useState)({}),[d,h]=(0,c.useState)(!0),x=(0,C.useRouter)(),{setLastUrl:j}=(0,c.useContext)(y.A),[g,f]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{ec(u.Z.get("id_user_holcim"),s).then(e=>{o(e.courses.filter(e=>2===e.visibility)),h(!1)}).catch(e=>{h(!1)})},[s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:er().container,children:[(0,r.jsxs)("header",{className:er().header,children:[(0,r.jsxs)("div",{className:er().info__title__container,children:[(0,r.jsx)("h4",{children:"Cursos iniciados"}),(0,r.jsx)(X.Z,{content:"\n                Porcentaje de avance se ver\xe1 reflejado una vez se finalice el curso y este pendiente la evaluaci\xf3n del mismo<br><br>\n                50% (Curso finalizado)<br>\n                100% (Curso + Evaluaci\xf3n finalizada)\n              "})]}),i.length>=4&&(0,r.jsxs)(D(),{href:"/aprendizaje/courses/startedcourses",className:er().see_more_container,children:[(0,r.jsx)("p",{className:er().see_more_text,children:"VER M\xc1S"}),(0,r.jsx)("p",{className:er().see_more_plus,children:"+"})]})]}),d?(0,r.jsx)("div",{className:er().container__courses,children:(()=>{let e=[];for(let s=0;s<4;s++)e.push((0,r.jsxs)("div",{className:er().container__course,children:[(0,r.jsx)("div",{className:er().container__course__img,children:(0,r.jsx)(p.Z,{width:"100%",height:"100%"})}),(0,r.jsxs)("div",{className:er().container__course__info,children:[(0,r.jsx)("p",{className:er().course__title,children:(0,r.jsx)(p.Z,{width:"100%"})}),(0,r.jsx)("div",{className:er().course__button,children:(0,r.jsx)(p.Z,{width:50})})]}),(0,r.jsxs)("div",{className:er().course_progress_container,children:[(0,r.jsx)("p",{children:(0,r.jsx)(p.Z,{width:50})}),(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsx)(p.Z,{width:"100%",height:10})})]})]},s));return e})()}):0===i.length?(0,r.jsx)("div",{className:er().not_found,children:(0,r.jsx)(m.Z,{messaje:"No tienes cursos iniciados"})}):(0,r.jsx)("div",{className:er().container__courses,children:ea(a,i,n,_,j,x.asPath,f)})]}),t&&(0,r.jsx)(l.Z,{course:n,setModal:a,setSelectedCourse:_}),g&&(0,r.jsx)(K.Z,{setModal:f,title:"No tienes acceso",content:(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{children:"Este contenido es accesible solo para clientes."}),(0,r.jsx)("br",{}),(0,r.jsx)("p",{children:"Si eres cliente actualiza tu c\xf3digo de obra o solicitante en la secci\xf3n de perfil."})]})})]})},eo=t(42708),en=t(26321),el=t(17181),e_=function(e){let{search:s}=e,[t,a]=(0,c.useState)("iniciados"),[i,o]=(0,c.useState)(1920),[n,l]=(0,c.useState)(!1),{certificates:_,setCertificates:d}=(0,c.useContext)(el.c),h=(e,s)=>{let t=s.target.id;e&&n&&("started-courses"===t?a("iniciados"):"completed-courses"===t?a("finalizados"):"courses-catalog"===t&&a("mis_cursos"))};return(0,c.useEffect)(()=>{let e=u.Z.get("id_user_holcim");o(window.innerWidth),l(!0),(null==_?void 0:_.length)||(0,en.Z)(e).then(e=>{d(null==e?void 0:e.certificates)})},[]),(0,r.jsxs)("div",{className:B().container_principal,children:[i<1024?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(b.Z,{componentChildren:(0,r.jsx)(L,{setTabActive:a,tabActive:t})})}):(0,r.jsx)(L,{setTabActive:a,tabActive:t}),(0,r.jsxs)("div",{className:B().principal_content,children:[(0,r.jsx)(eo.df,{onChange:(e,s)=>h(e,s),as:"div",id:"started-courses",threshold:.9,children:(0,r.jsx)(ei,{search:s})}),(0,r.jsx)(eo.df,{onChange:(e,s)=>h(e,s),as:"div",id:"completed-courses",threshold:.9,children:(0,r.jsx)(J,{certificates:_,search:s})}),(0,r.jsx)(eo.df,{onChange:(e,s)=>h(e,s),as:"div",id:"courses-catalog",threshold:.5,children:(0,r.jsx)(es,{certificates:_,search:s})})]})]})},ed=t(62808),eu=t(58007),eh=(0,t(41512).Z)(function(e){let{search:s}=(0,C.useRouter)().query;return void 0===s&&(s=""),(0,r.jsx)(ed.Z,{children:(0,r.jsx)(e_,{search:s})})},function(){let{search:e}=(0,C.useRouter)().query;return void 0===e&&(e=""),(0,r.jsx)(eu.Z,{className:"p-10",children:(0,r.jsx)(R,{search:e})})})},62641:function(e){e.exports={empty__span:"empty_empty__span__ZIP3F"}},73476:function(e){e.exports={pagecount:"paginator_pagecount__EQkQV",bold:"paginator_bold__xMZJz"}},51262:function(e){e.exports={tooltipContainer:"tooltip_tooltipContainer__9jVp6",questionIcon:"tooltip_questionIcon__gCz8R",tooltip:"tooltip_tooltip__rVe_v"}},33258:function(e){e.exports={container:"catalogcourses_container__WkoIq",header:"catalogcourses_header__z2D98",info__title__container:"catalogcourses_info__title__container___jzLG",container__courses:"catalogcourses_container__courses__LZ_0N",container__course:"catalogcourses_container__course__jC4gv",container__course__img:"catalogcourses_container__course__img__J1wSX",decoration_icon:"catalogcourses_decoration_icon__uR4zH",course__img:"catalogcourses_course__img__cpAhq",container__course__info:"catalogcourses_container__course__info__KBUkf",container__course__general_info:"catalogcourses_container__course__general_info__c9UPD",course__title:"catalogcourses_course__title__sWdFq",course_duration:"catalogcourses_course_duration__icSVY",course__button:"catalogcourses_course__button__M733y",course_progress_container:"catalogcourses_course_progress_container__TSvoT",course_progress_bar:"catalogcourses_course_progress_bar___VIW0",course_progress_bar__fill:"catalogcourses_course_progress_bar__fill___VpR8",filters__container:"catalogcourses_filters__container__zpm9h",filters_container:"catalogcourses_filters_container__JymM_",filters__container__text:"catalogcourses_filters__container__text__LIBny",filter_container_show:"catalogcourses_filter_container_show__lRfMk",filter_container_clean:"catalogcourses_filter_container_clean__hjQZ3",filter_container_show__options__option:"catalogcourses_filter_container_show__options__option__qOkbW",filters__container__filters__mobile:"catalogcourses_filters__container__filters__mobile__4Q5XN",cleanfilters_mobile:"catalogcourses_cleanfilters_mobile__H9LTj",container_dropdown_mobile:"catalogcourses_container_dropdown_mobile__Twb4n",not_found:"catalogcourses_not_found__Tlzsd",text_not_found:"catalogcourses_text_not_found__6LKQz",pagination:"catalogcourses_pagination__YTar0",path__title:"catalogcourses_path__title__F2IVi",path__start_date:"catalogcourses_path__start_date__qfINy",path__number_lections:"catalogcourses_path__number_lections__70yTD",title__course:"catalogcourses_title__course__429Ec"}},79277:function(e){e.exports={container:"completedcourses_container__vlXrj",header:"completedcourses_header__Dc7gO",info__title__container:"completedcourses_info__title__container__CaMAF",see_more_container:"completedcourses_see_more_container___gCq_",see_more_text:"completedcourses_see_more_text___L18_",see_more_plus:"completedcourses_see_more_plus__I2Qls",container__courses:"completedcourses_container__courses__UzaBB",container__course:"completedcourses_container__course__e1zbj",container__course__img:"completedcourses_container__course__img__y4VT6",decoration_icon:"completedcourses_decoration_icon__vloY_",course__img:"completedcourses_course__img__YsEBf",container__course__info:"completedcourses_container__course__info__T5HmN",container__course__general_info:"completedcourses_container__course__general_info__Ub_XW",course__title:"completedcourses_course__title__mGpBD",course_duration:"completedcourses_course_duration__RNfpz",course__button:"completedcourses_course__button__XqFts",course_progress_container:"completedcourses_course_progress_container__W2BU4",course_progress_bar:"completedcourses_course_progress_bar__9a4AJ",course_progress_bar__fill:"completedcourses_course_progress_bar__fill__W1UvD",not_found:"completedcourses_not_found__0c88u",text_not_found:"completedcourses_text_not_found__YQX7P",link_container:"completedcourses_link_container__oXbj1",path__title:"completedcourses_path__title__tzKs6",path__start_date:"completedcourses_path__start_date__ukTg5",path__number_lections:"completedcourses_path__number_lections__h_PRU",title__course:"completedcourses_title__course__kHY0U"}},18378:function(e){e.exports={modal:"modalcourse_modal__Nyt0f",card__modal:"modalcourse_card__modal__WPpLM",card__modal__header:"modalcourse_card__modal__header__zsjBG",modal__content:"modalcourse_modal__content__bbIZC",container_description:"modalcourse_container_description__fuWm1",container_img:"modalcourse_container_img__7BGwP","data-article__body":"modalcourse_data-article__body__WtVX_",modal__buttons:"modalcourse_modal__buttons__BHnST"}},21968:function(e){e.exports={container:"startedcourses_container__aWWMR",header:"startedcourses_header__g2cBZ",info__title__container:"startedcourses_info__title__container__wpizi",see_more_container:"startedcourses_see_more_container__VIAgY",see_more_text:"startedcourses_see_more_text__z6hoB",see_more_plus:"startedcourses_see_more_plus__GOgA2",container__courses:"startedcourses_container__courses__t1JP3",container__course:"startedcourses_container__course__u_YwI",container__course__img:"startedcourses_container__course__img__8YoMi",decoration_icon:"startedcourses_decoration_icon__R36_r",course__img:"startedcourses_course__img__wxUtN",container__course__info:"startedcourses_container__course__info__qmpFj",course__title:"startedcourses_course__title__TCqmV",course__button:"startedcourses_course__button__JwS8Q",course_progress_container:"startedcourses_course_progress_container__WU33A",course_progress_bar:"startedcourses_course_progress_bar__0JeMW",course_progress_bar__fill:"startedcourses_course_progress_bar__fill__25jjo",not_found:"startedcourses_not_found__hU7mT",text_not_found:"startedcourses_text_not_found__nyPtp",link_container:"startedcourses_link_container__eZHn3",path__title:"startedcourses_path__title__LucmG",path__start_date:"startedcourses_path__start_date__8Dwfs",path__number_lections:"startedcourses_path__number_lections__sNHfl",title__course:"startedcourses_title__course__P0_TV"}},12776:function(e){e.exports={container_tabs:"tabs_container_tabs__SRjy5",tab:"tabs_tab__SVPAe",tab__active:"tabs_tab__active__SL4aU",tab__title:"tabs_tab__title__Z_HGZ"}},1607:function(e){e.exports={container_principal:"courses_container_principal__n79W4",principal_content:"courses_principal_content__Y2SRN","completed-courses":"courses_completed-courses__r9egz"}},4305:function(e,s,t){"use strict";t.d(s,{n:function(){return a}});var r=t(67294);let c=(e,s,t)=>{let r=s-e;return((t-e)%r+r)%r+e};function a(...e){let s=(0,r.useRef)(0),[t,i]=(0,r.useState)(e[s.current]);return[t,(0,r.useCallback)(t=>{s.current="number"!=typeof t?c(0,e.length,s.current+1):t,i(e[s.current])},[e.length,...e])]}},42708:function(e,s,t){"use strict";t.d(s,{df:function(){return d}});var r=t(67294),c=Object.defineProperty,a=(e,s,t)=>s in e?c(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,i=(e,s,t)=>(a(e,"symbol"!=typeof s?s+"":s,t),t),o=new Map,n=new WeakMap,l=0,_=void 0,d=class extends r.Component{constructor(e){super(e),i(this,"node",null),i(this,"_unobserveCb",null),i(this,"handleNode",e=>{!this.node||(this.unobserve(),e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=e||null,this.observeNode()}),i(this,"handleChange",(e,s)=>{e&&this.props.triggerOnce&&this.unobserve(),"function"!=typeof this.props.children||this.setState({inView:e,entry:s}),this.props.onChange&&this.props.onChange(e,s)}),this.state={inView:!!e.initialInView,entry:void 0}}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve(),this.node=null}observeNode(){if(!this.node||this.props.skip)return;let{threshold:e,root:s,rootMargin:t,trackVisibility:r,delay:c,fallbackInView:a}=this.props;this._unobserveCb=function(e,s,t={},r=_){if(void 0===window.IntersectionObserver&&void 0!==r){let c=e.getBoundingClientRect();return s(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof t.threshold?t.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}let{id:c,observer:a,elements:i}=function(e){let s=Object.keys(e).sort().filter(s=>void 0!==e[s]).map(s=>{var t;return`${s}_${"root"===s?(t=e.root)?(n.has(t)||(l+=1,n.set(t,l.toString())),n.get(t)):"0":e[s]}`}).toString(),t=o.get(s);if(!t){let r;let c=new Map,a=new IntersectionObserver(s=>{s.forEach(s=>{var t;let a=s.isIntersecting&&r.some(e=>s.intersectionRatio>=e);e.trackVisibility&&void 0===s.isVisible&&(s.isVisible=a),null==(t=c.get(s.target))||t.forEach(e=>{e(a,s)})})},e);r=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),t={id:s,observer:a,elements:c},o.set(s,t)}return t}(t),d=i.get(e)||[];return i.has(e)||i.set(e,d),d.push(s),a.observe(e),function(){d.splice(d.indexOf(s),1),0===d.length&&(i.delete(e),a.unobserve(e)),0===i.size&&(a.disconnect(),o.delete(c))}}(this.node,this.handleChange,{threshold:e,root:s,rootMargin:t,trackVisibility:r,delay:c},a)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){let{children:e}=this.props;if("function"==typeof e){let{inView:s,entry:t}=this.state;return e({inView:s,entry:t,ref:this.handleNode})}let{as:s,triggerOnce:t,threshold:c,root:a,rootMargin:i,onChange:o,skip:n,trackVisibility:l,delay:_,initialInView:d,fallbackInView:u,...h}=this.props;return r.createElement(s||"div",{ref:this.handleNode,...h},e)}}}},function(e){e.O(0,[5580,1664,8353,6224,7681,3361,9816,5027,7665,2888,9774,179],function(){return e(e.s=36773)}),_N_E=e.O()}]);