PageSourceSearch

https://eanx.co/static/js/5611.5b2c2a42.chunk.js

js eanx.co collected 2026-09-29 00:20:48 UTC 9,538 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkean_web=self.webpackChunkean_web||[]).push([[5611],{7150:(e,t,s)=>{s.r(t),s.d(t,{ViewCertification:()=>m});var l=s(5043),n=s(3721),a=s(9982),r=s(8090),o=s(6566),i=s(6178),c=s.n(i),d=s(579);const u=s(3811),m=()=>{const{code:e}=(0,n.g)(),t=(0,n.zy)(),s=(0,n.Zp)(),[,i,u]=(0,o.s)(),[,m]=(0,l.useState)(t.state?t.state:{}),[f,v]=(0,l.useState)(!0),[p,h]=(0,l.useState)([]),[j,g]=(0,l.useState)([]),[y,w]=(0,l.useState)(null),[b,N]=(0,l.useState)([!1]);(0,l.useEffect)(()=>{var e;N(Array(null===(e=j.contentData)||void 0===e?void 0:e.length).fill(!1))},[j.contentData]);(0,l.useEffect)(()=>{window.scrollTo(0,0),i({url:`catalog/viewcertificate?certificationId=${e}`,method:"GET"}).then(async e=>{if(0!==e.data.length){let t=e.data[0]["user_study.studyId"];h(e.data[0]),await i({url:`catalog/b2bcatalog?courseId=${t}`,method:"GET"}).then(async t=>{g(t.data[0]);try{const s=await u({url:"certifications/gencertificatesimg/download",method:"POST",data:{certCode:t.data[0]["attr.certificationTemplateId"],courseName:t.data[0]["course.title"],certDate:t.data[0]["attr.createdAt"],studyId:t.data[0]["course.slug"],userId:e.data[0].userId,receiver:{fullname:`${e.data[0]["webuser.name"]} ${e.data[0]["webuser.lastname"]} `,document:e.data[0]["webuser.document"]}},responseType:"blob"}),l=window.URL.createObjectURL(s);w(l)}catch(s){console.error("There was an error downloading the PDF:",s)}},e=>{console.log(e)}),v(!1)}else s("/")})},[]);const C=null===(E=j["course.contentData"])||void 0===E?void 0:E.filter(e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("M\xf3dulo")});var E;return(0,d.jsxs)("div",{children:[(0,d.jsx)(r.x,{searchAction:e=>{m({keyword:e})}}),(0,d.jsx)("div",{style:{marginTop:"75px"}}),f?(0,d.jsx)(x,{}):(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"row justify-content-center",children:(0,d.jsx)("div",{className:"col-10 col-xl-9 ps-0",style:{marginTop:"30px",marginBottom:"10px"},children:(0,d.jsx)("div",{className:"mb-3",children:(0,d.jsxs)("div",{className:"row",children:[(0,d.jsxs)("div",{className:"col-12 col-lg-8",children:[(0,d.jsx)("div",{className:"col-12",style:{padding:"0px"},children:(0,d.jsx)("h1",{className:"CourseDetail__title",children:j["course.title"]})}),(0,d.jsx)("div",{className:"col-12",style:{padding:"0px"},children:(0,d.jsx)("img",{alt:j["course.title"]+" banner",src:y&&y,style:{maxWidth:"100%",borderRadius:"8px",minWidth:"100%"}})}),(0,d.jsxs)("div",{className:"col-12",style:{padding:"0px"},children:[(0,d.jsx)("p",{style:{fontWeight:"700",fontSize:"28px",letterSpacing:"-0.01em",lineHeight:"140%"},children:"Contenido del curso"}),(0,d.jsx)("hr",{className:"CourseDetail__separation-line",style:{marginBottom:"20px"}}),null!=C&&C.map((e,t)=>(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"ps-0",style:{marginBottom:"20px"},children:[(0,d.jsxs)("div",{className:"d-flex justify-content-between justify-content-lg-start align-items-center",style:{fontSize:"21px",fontWeight:"600"},onClick:()=>(e=>{if(b[e]){var t;let e=Array(null===(t=j.contentData)||void 0===t?void 0:t.length).fill(!1);N(e)}else{var s;let t=Array(null===(s=j.contentData)||void 0===s?void 0:s.length).fill(!1);t[e]=!0,N(t)}})(t),children:[(0,d.jsx)("div",{children:e.name}),(0,d.jsx)("div",{children:b[t]?(0,d.jsx)("i",{className:"fa-solid fa-angle-up",style:{fontSize:"14px",marginLeft:"10px"}}):(0,d.jsx)("i",{className:"fa-solid fa-angle-down",style:{fontSize:"14px",marginLeft:"10px"}})})]}),b[t]?(0,d.jsx)("ul",{style:{marginTop:"16px"},children:null===e||void 0===e?void 0:e.lessons.map((e,t)=>(0,d.jsx)("li",{children:e.name},`lesson-${t}`))}):(0,d.jsx)(d.Fragment,{})]}),(0,d.jsx)("hr",{className:"CourseDetail__separation-line",style:{marginBottom:"20px"}})]},`course-lesson-${t}`))]})]}),(0,d.jsxs)("div",{className:"col-12 col-lg-4",children:[(0,d.jsxs)("div",{className:"row justify-content-center",children:[(0,d.jsxs)("div",{className:"col-12 ps-0 d-flex flex-wrap",children:[(0,d.jsx)("div",{className:"col-12 text-center",children:(0,d.jsx)("i",{className:"fa-solid fa-circle-check",style:{color:"green",fontSize:"72px"}})}),(0,d.jsx)("div",{className:"col-12 text-center",style:{color:"green",fontSize:"22px",fontWeight:"bold"},children:"Certificado Verificado"})]}),(0,d.jsx)("div",{className:"col-12 ps-0 d-flex flex-wrap mt-3",children:(0,d.jsx)("div",{className:"col-12",children:(0,d.jsxs)("div",{className:"d-flex justify-content-between justify-content-lg-start align-items-center",children:[(0,d.jsx)("div",{className:"col-10",children:(0,d.jsx)("input",{value:null===p||void 0===p?void 0:p.certificationUrl,disabled:!0,type:"text",className:"form-control"})}),(0,d.jsx)("div",{className:"col-2",children:(0,d.jsx)(n.N_,{to:"#",className:"FilterAdmin__search-button",onClick:e=>(e=>{e.preventDefault();var t=document.createElement("input");t.value=null===p||void 0===p?void 0:p.certificationUrl,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)})(e),children:"Copiar"})})]})})}),(0,d.jsx)("div",{className:"col-12 ps-0 d-flex flex-wrap",style:{color:"grey",fontSize:"14px"},children:(0,d.jsxs)("div",{className:"row",children:[(0,d.jsxs)("div",{className:"col-6 col-sm-5 col-md-3 col-lg-6 col-xl-6 col-xxl-5 d-flex align-items-baseline justify-content-start",children:[(0,d.jsx)("i",{className:"fa-solid fa-certificate",style:{color:"green",fontSize:"14px"}}),(0,d.jsx)("p",{className:"ms-2",children:"Verificado"})]}),(0,d.jsxs)("div",{className:"col-5 col-sm-4 col-md-3 col-lg-5 col-xl-5 col-xxl-4 d-flex align-items-baseline justify-content-start",children:[(0,d.jsx)("i",{className:"fa-solid fa-clock",style:{color:"green",fontSize:"14px"}}),(0,d.jsx)("p",{className:"ms-2",children:(D=j["course.duration"],Math.floor(D/60)+"h "+D%60+"m")})]}),(0,d.jsxs)("div",{className:"col-4 col-sm-3 col-md-2 col-lg-4 col-xl-3 
1col-xxl-3 d-flex align-items-baseline justify-content-start",children:[(0,d.jsx)("i",{className:"fa-solid fa-language",style:{color:"green",fontSize:"14px"}}),(0,d.jsx)("p",{className:"ms-2",children:"Espa\xf1ol"})]})]})})]}),(0,d.jsx)("label",{className:"form-label UserFormContainer__label",children:"Nombre del Estudiante"}),(0,d.jsxs)("p",{children:[p["webuser.name"]," ",p["webuser.lastname"]]}),(0,d.jsx)("label",{className:"form-label UserFormContainer__label",children:"N\xfamero Documento del Estudiante"}),(0,d.jsxs)("p",{children:[p["webuser.documentType"]," ",p["webuser.document"]]}),(0,d.jsx)("label",{className:"form-label UserFormContainer__label",children:"Certificado Expedido"}),(0,d.jsx)("p",{children:c().utc(p.createdAt).format("DD/MM/YYYY")})]})]})})})})}),(0,d.jsx)(a.w,{})]});var D},x=()=>{const e=u("./icons/loading_spin_ean.svg");return(0,d.jsx)("div",{className:"d-flex justify-content-center",style:{minHeight:"300px"},children:(0,d.jsx)("div",{className:"row text-center position-absolute justify-content-center",children:(0,d.jsx)("img",{alt:"Loader",src:e})})})}},9874:(e,t,s)=>{const l=s(5043);t.A=function(e,t){const[s,n]=(0,l.useState)(!1),a=(0,l.useRef)(null),r=(0,l.useRef)(!0),o=(0,l.useRef)(!1),i=(0,l.useRef)(null),c=(0,l.useMemo)(()=>Array.from({length:e},()=>(0,l.createRef)()),[e]),d=e=>{var t;a.current=e,null===(t=c[e].current)||void 0===t||t.focus()};(0,l.useEffect)(()=>{r.current?r.current=!1:!s||o.current&&!(null===t||void 0===t?void 0:t.focusFirstItemOnClick)?s||(o.current=!1):d(0)},[s]),(0,l.useEffect)(()=>{if(!s)return;const e={removed:!1},t=e=>{setTimeout(()=>{e.target instanceof Element&&(e.target.closest('[role="menu"]')instanceof Element||n(!1))},10)};return setTimeout(()=>{e.removed||document.addEventListener("click",t)},1),()=>{e.removed=!0,document.removeEventListener("click",t)}},[s]),(0,l.useEffect)(()=>{const e=e=>{!s||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||e.preventDefault()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]);const u=e=>{if((e=>
1void 0!==e.key)(e)){const{key:t}=e;if(!["Enter"," ","Tab","ArrowDown","Escape"].includes(t))return;("Tab"===t||"ArrowDown"===t)&&o.current&&s&&(e.preventDefault(),d(0)),"Enter"!==t&&" "!==t||(e.preventDefault(),n(!0)),"Escape"===t&&(e.preventDefault(),n(!1))}else(null===t||void 0===t?void 0:t.focusFirstItemOnClick)||(o.current=!s),n(!s)},m=e=>{var t;const{key:s}=e;if(["Tab","Shift","Enter","Escape","ArrowUp","ArrowDown"," "].includes(s)){let l=a.current;return"Escape"===s?(n(!1),void(null===(t=i.current)||void 0===t||t.focus())):"Tab"===s?void n(!1):"Enter"===s||" "===s?(e.currentTarget.href||e.currentTarget.click(),void n(!1)):(null!==l&&("ArrowUp"===s?l-=1:"ArrowDown"===s&&(l+=1),l>c.length-1?l=0:l<0&&(l=c.length-1)),void(null!==l&&d(l)))}if(/[a-zA-Z0-9./<>?;:"'`!@#$%^&*()\\[\]{}_+=|\\-~,]/.test(s)){const e=c.findIndex(e=>{var t,l,n,a,r,o;return(null===(l=null===(t=e.current)||void 0===t?void 0:t.innerText)||void 0===l?void 0:l.toLowerCase().startsWith(s.toLowerCase()))||(null===(a=null===(n=e.current)||void 0===n?void 0:n.textContent)||void 0===a?void 0:a.toLowerCase().startsWith(s.toLowerCase()))||(null===(o=null===(r=e.current)||void 0===r?void 0:r.getAttribute("aria-label"))||void 0===o?void 0:o.toLowerCase().startsWith(s.toLowerCase()))});-1!==e&&d(e)}};return{buttonProps:{onKeyDown:u,onClick:u,tabIndex:0,ref:i,role:"button","aria-haspopup":!0,"aria-expanded":s},itemProps:Array.from({length:e},(e,t)=>({onKeyDown:m,tabIndex:-1,role:"menuitem",ref:c[t]})),isOpen:s,setIsOpen:n,moveFocus:d}}}}]);
2//# sourceMappingURL=5611.5b2c2a42.chunk.js.map

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.