(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[320],{8026:function(e,t,a){"use strict";var r,s,n,l,c=a(7294);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}t.Z=function(e){return c.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:20.464,height:21.851,"data-name":"Group 211"},e),r||(r=c.createElement("g",{"data-name":"Group 207"},c.createElement("path",{d:"M16.128 21.851H.52a.51.51 0 0 1-.52-.52V2.081A2.07 2.07 0 0 1 2.081 0h14.394a3.99 3.99 0 0 1 3.989 3.989V19.6a.52.52 0 1 1-1.041 0V3.989a2.946 2.946 0 0 0-2.948-2.948H2.081a.97.97 0 0 0-.728.312 1.07 1.07 0 0 0-.312.728v18.73h15.087a1.206 1.206 0 0 0 1.214-1.211V4.336a1.206 1.206 0 0 0-1.214-1.214H9.885a.52.52 0 0 1 0-1.041h6.243a2.25 2.25 0 0 1 2.255 2.255V19.6a2.25 2.25 0 0 1-2.255 2.251","data-name":"Path 331"}))),s||(s=c.createElement("g",{"data-name":"Group 208"},c.createElement("path",{d:"M10.058 17.516h-6.07a.52.52 0 0 1 0-1.041h6.07a.52.52 0 0 1 0 1.041","data-name":"Path 332"}))),n||(n=c.createElement("g",{"data-name":"Group 209"},c.createElement("path",{d:"M13.527 14.048H3.988a.52.52 0 0 1 0-1.041h9.538a.52.52 0 0 1 0 1.041Z","data-name":"Path 333"}))),l||(l=c.createElement("g",{"data-name":"Group 210"},c.createElement("path",{d:"m9.33 7.665-.364-.746a10.05 10.05 0 0 1-.989-4.336.5.5 0 0 0-.5-.5H3.121a.52.52 0 0 0-.52.52 16.1 16.1 0 0 0 1.7 7.18l.173.33a.52.52 0 0 0 .468.295.54.54 0 0 0 .468-.295l1.145-2.324 2.185.624a.5.5 0 0 0 .624-.33.5.5 0 0 0-.035-.416Z","data-name":"Path 334"}))))}},6788:function(e,t,a){"use strict";var r,s=a(7294);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:24,height:20.209},e),r||(r=s.createElement("g",{fill:"#fff"},s.createElement("path",{d:"M2.006 10.521a1.547 1.547 0 0 0-1.538 1.556v1.27h3.077v-1.27a1.547 1.547 0 0 0-1.538-1.556ZM.467 19.746a.463.463 0 0 0 .463.463h2.15a.463.463 0 0 0 .463-.463v-4.972H.467ZM2.72 9.183V7.496l-1.426-.505v2.191a2.94 2.94 0 0 1 1.426 0ZM17.279 5.144c-.07-.846-2.639-1.2-5.278-1.2s-5.278.4-5.278 1.2l-.222 2.179-.358 3.511a.288.288 0 0 0 .353.3 14 14 0 0 1 2.354-.537 4.47 4.47 0 0 1 2.291.863 2.03 2.03 0 0 0 1.722 0 4.9 4.9 0 0 1 2.291-.863 12.6 12.6 0 0 1 2.354.537.292.292 0 0 0 .353-.3Z"}),s.createElement("path",{d:"M23.621 4.082 12.19.033a.57.57 0 0 0-.38 0L.38 4.082a.569.569 0 0 0 0 1.074l4.736 1.678.184-1.79a2.01 2.01 0 0 1 1.22-1.689A16.2 16.2 0 0 1 12 2.523a16.1 16.1 0 0 1 5.48.832 2.03 2.03 0 0 1 1.22 1.689l.183 1.789 4.736-1.678a.569.569 0 0 0 .002-1.073"}))))}},218:function(e,t,a){"use strict";var r,s,n=a(7294);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}t.Z=function(e){return n.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:21.851,height:21.851},e),r||(r=n.createElement("path",{fill:"#fff",d:"M1.986 0A1.993 1.993 0 0 0 0 1.986v2.98h20.858V14.9a.98.98 0 0 1-.993.993h-7.457c0-.085.008-.17.008-.255a4.72 4.72 0 0 0-2.616-4.22 2.729 2.729 0 1 0-4.2 0 4.72 4.72 0 0 0-2.618 4.218q-.002.128.008.255H1.986a.98.98 0 0 1-.993-.993V5.959H0V14.9a1.993 1.993 0 0 0 1.986 1.986h17.879a1.993 1.993 0 0 0 1.986-1.986V1.986A1.993 1.993 0 0 0 19.865 0Zm0 .993h17.879a.98.98 0 0 1 .993.993v1.987H.993V1.986a.98.98 0 0 1 .993-.993M7.7 7.946a1.733 1.733 0 1 1-1.736 1.733A1.727 1.727 0 0 1 7.7 7.946m-1.21 4.176a2.72 2.72 0 0 0 2.419 0 3.71 3.71 0 0 1 2.512 3.515c0 .085 0 .17-.01.255H3.988a4 4 0 0 1-.01-.255 3.71 3.71 0 0 1 2.513-3.515ZM4.966 17.878a1.994 1.994 0 0 0-1.921 1.49H0v.993h3.046a1.984 1.984 0 0 0 3.843 0h14.962v-.993H6.889a2 2 0 0 0-1.923-1.49m0 .993a.993.993 0 1 1-.993.993.986.986 0 0 1 .993-.993"})),s||(s=n.createElement("path",{fill:"#fff",d:"M14.643 7.014a.5.5 0 0 0-.738.439v4.966a.5.5 0 0 0 .738.435l4.47-2.483a.5.5 0 0 0 0-.869Zm.255 1.279 2.95 1.638-2.95 1.639ZM18.872 1.986v.993h.993v-.993ZM16.885 1.986v.993h.993v-.993ZM14.899 1.986v.993h.993v-.993ZM12.912 1.986v.993h.993v-.993Z"})))}},2751:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/course-tag/[slug]",function(){return a(222)}])},1482:function(e,t,a){"use strict";var r=a(5893),s=a(7294),n=a(3966);let l="".concat("font-nunito"," border rounded-full px-4 py-2 my-4 border-[#d0df00] border-2 hover:bg-[#d0df00] text-[#001c38] font-bold"),c=e=>{let{showButtons:t,posts:a}=e,[c,i]=(0,s.useState)(!1),o=()=>{i(!c)},d=c?a:a.slice(0,3);return(0,r.jsxs)("div",{className:"bg-[#F5F5F5] py-12",children:[(0,r.jsx)("div",{className:"grid lg:grid-cols-3 md:grid-cols-2 grid-cols-1 gap-4 max-w-screen-xl mx-auto",children:Array.isArray(d)&&d.map((e,t)=>(0,r.jsx)(n.Z,{category:e.category,title:e.title,duration:e.duration,startdate:e.startdate,price:e.price,infoButtonText:"M\xe1s informaci\xf3n",registerButtonText:"Inscribirme",imageSrc:e.featured_image,slug:e.slug,students:e.students,id_product:e.id_woo_prox,product_id:e.product_id},t))}),t&&(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)("button",{className:l,onClick:o,children:c?"Ver menos":"Cargar m\xe1s"})})]})};t.Z=c},3966:function(e,t,a){"use strict";a.d(t,{Z:function(){return j}});var r=a(5893),s=a(5675),n=a.n(s),l=a(7294),c=a(8026),i=a(218),o=a(6788),d=a(1664),u=a.n(d);a(1399);var x=a(8272),m=a(6966);let h="font-nunito",p="".concat(h," shadow-xl bg-white flex flex-col rounded-xl gap-[20px] h-full w-full max-w-[390px] pb-[10px] mx-auto"),f="".concat(h," text-[24px] h-[120px] font-bold line-clamp-3 leading-[32px] py-[20px]"),g="text-[15px] font-bold flex items-center gap-[20px]",v="px-4 border rounded text-center text-white bg-[#1E73BE] border-[#1E73BE] w-full py-1 h-8 text-[14px] lg:text-[16px]";function j(e){let{category:t,title:a,duration:s,price:d,infoButtonText:h,registerButtonText:j,imageSrc:b,slug:w,url_de_inscripcion_prox:N,id_product:y,students:E,product_id:_,tags:Z,startdate:M}=e,[A,C]=(0,l.useState)(!0);(0,l.useEffect)(()=>{let e=setTimeout(()=>{C(!1)},1e3);return()=>clearTimeout(e)},[]);let{user:V}=(0,m.a)(),H=null==E?void 0:E.some(e=>(null==e?void 0:e.user_email)===(null==V?void 0:V.user_email)),O="Curso"===t?c.Z:"Webinar"===t?i.Z:o.Z,F="Curso"===t?"text-[#000]":"text-white";return(0,r.jsx)("div",{className:p,children:A?(0,r.jsxs)("div",{className:"animate-pulse h-[450px] ",children:[(0,r.jsx)("div",{className:"bg-gray-300 w-[390px] pb-[30px] rounded-t-xl animate-pulse h-[260px] "}),(0,r.jsxs)("div",{className:"px-5 py-4",children:[(0,r.jsx)("div",{className:"h-8 bg-gray-300 rounded w-3/4 mb-4"}),(0,r.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2 mb-4"}),(0,r.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2 mb-4"}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)("div",{className:"h-8 bg-gray-300 rounded w-1/3"}),(0,r.jsx)("div",{className:"h-8 bg-gray-300 rounded w-1/3"})]})]})]}):(0,r.jsxs)("div",{className:"bg-white pb-[30px] rounded-xl ",children:[(0,r.jsxs)("div",{className:"flex gap-[20px] px-4 py-3 rounded-t-md uppercase justify-between font-bold ".concat("Curso"===t?"bg-[#c0d73d] text-white":"Webinar"===t?"bg-[#1e73be] text-white":"Diplomado"===t?"bg-[#22aaa1] text-white":"bg-[#001c38] text-white"),children:[(0,r.jsxs)("div",{className:"flex gap-[20px]",children:[(0,r.jsx)(O,{}),(0,r.jsx)("span",{children:t})]}),d?(0,r.jsx)("span",{className:F,children:(0,x.T)(d)}):(0,r.jsx)("span",{className:F,children:"SIN COSTO"})]}),(0,r.jsx)("div",{children:(0,r.jsx)(u(),{href:"/course/".concat(w),children:b&&(0,r.jsx)(n(),{src:b,alt:a,className:"h-[260px] w-full object-cover object-cover max-h-[230px] ",width:390,height:260,style:{objectFit:"cover"},priority:!0})||(0,r.jsx)("div",{className:"h-[260px] w-full bg-gray-100"})})}),(0,r.jsxs)("div",{className:"px-5",children:[(0,r.jsxs)(u(),{href:"/course/".concat(w),children:[(0,r.jsx)("h2",{className:f,dangerouslySetInnerHTML:{__html:a}}),(0,r.jsx)("p",{children:Z})]}),(0,r.jsxs)("div",{className:"flex w-full h-[30px] justify-between",children:[(0,r.jsxs)("span",{className:g,children:["DURACI\xd3N: ",s," "]}),(0,r.jsx)("span",{className:g,children:M})]})]}),(0,r.jsxs)("div",{className:"flex gap-4 mx-5 mt-2 justify-between font-bold",children:[(0,r.jsx)(u(),{href:"/".concat("maestria"===t?"masters":"course","/").concat(w),className:"px-4 border rounded text-center text-[#1e73be] border-[#1E73BE] w-full py-1 h-8 text-[14px] lg:text-[16px]","aria-label":"M\xe1s informaci\xf3n sobre ".concat(a),title:"M\xe1s informaci\xf3n sobre ".concat(a),children:h}),N&&!H&&!y&&(0,r.jsx)(u(),{href:"".concat(N),className:v,children:j}),y&&!H&&(0,r.jsx)(u(),{href:"/finalizar-compra?product_id=".concat(y),className:v,children:j}),!H&&!y&&_&&(0,r.jsx)(u(),{href:"/finalizar-compra?product_id=".concat(_),className:v,children:j}),H&&!y&&_&&(0,r.jsxs)(u(),{href:"/".concat("maestria"===t?"masters":"course","/").concat(w),className:v,children:["Ver ","maestria"===t?"Maestr\xeda":"Curso"]}),H&&y&&(0,r.jsxs)(u(),{href:"/".concat("maestria"===t?"masters":"course","/").concat(w),className:v,children:["Ver ","maestria"===t?"Maestr\xeda":"Curso"]})]})]})})}},222:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return x},default:function(){return m}});var r=a(5893);a(7294);let s="".concat("font-playfair"," lg:text-[48px] text-[32px] leading-[45px]	font-bold"),n=e=>{let{title:t}=e;return(0,r.jsx)("div",{className:"Webinarios"===t?"w-full mt-12 bg-gradient-to-b from-[#1E73BE] to-[#08223A]":"Cursos"===t?"w-full mt-12 bg-[linear-gradient(180deg,#C0D73D_0%,#2F3609_100%)]":"Diplomados"===t?"w-full mt-12 bg-[linear-gradient(180deg,#22AAA1_0%,#115551_100%)]":"w-full lg:mt-24 bg-gradient-to-b from-[#003060] to-[#001121] lg:p-12 p-4",children:(0,r.jsx)("div",{className:"flex max-w-screen-xl lg:min-h-[350px] min-h-[200px] text-center  items-center justify-center mx-auto",children:(0,r.jsx)("div",{className:"text-white  flex   mx-auto",children:(0,r.jsx)("h2",{className:s,children:t})})})})};var l=a(1482),c=a(1163),i=a(5116),o=a(9008),d=a.n(o);let u=e=>{let{cursostags:t,slug:a}=e,s=(0,c.useRouter)(),o=a?a.charAt(0).toUpperCase()+a.slice(1):"";return(0,r.jsxs)(i.default,{children:[(0,r.jsxs)(d(),{children:[(0,r.jsx)("title",{children:o}),(0,r.jsx)("meta",{property:"og:title",content:o}),(0,r.jsx)("meta",{property:"og:description",content:"Es una plataforma que busca contribuir a la democratizaci\xf3n del conocimiento jur\xeddico y al fortalecimiento de la cultura jur\xeddica y el Estado de derecho en ..."}),(0,r.jsx)("meta",{property:"og:image",content:"/src/images/logos/logo.webp"}),(0,r.jsx)("meta",{property:"og:url",content:s.asPath})]}),(0,r.jsx)("div",{className:"lg:mt-24"}),(0,r.jsxs)("div",{className:"w-full bg-[#FAFBFD] pb-24",children:[(0,r.jsx)("div",{className:"w-full mx-auto",children:(0,r.jsx)(n,{title:o})}),t?(0,r.jsx)(l.Z,{showButtons:!0,posts:t}):(0,r.jsx)("div",{className:"max-w-screen-xl mx-auto  items-center justify-center flex py-12 lg:min-h-[400px]",children:(0,r.jsx)("span",{children:"No hay disponibles"})})]})]})};var x=!0,m=u},8272:function(e,t,a){"use strict";function r(e){let t=e.toString().replace(/[$,]/g,"").trim(),a=parseFloat(t);if(isNaN(a))return"";let r=a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});return"$".concat(r," MXN")}a.d(t,{T:function(){return r}})},1399:function(){}},function(e){e.O(0,[976,396,365,845,664,603,677,931,116,774,888,179],function(){return e(e.s=2751)}),_N_E=e.O()}]);