PageSourceSearch

https://manojspace.com/_next/static/chunks/pages/company/[companyN…/courses/[courseSlug]-db52be8d1b76be83.js

js manojspace.com collected 2026-09-30 06:35:42 UTC 26,386 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9838],{31173:(e,l,s)=>{"use strict";s.d(l,{A:()=>d});var t=s(37876),a=s(14232),n=s(34321),i=s(16495),r=s(68827),o=s(71297);let d=e=>{let{id:l="file-upload",containerClassName:s="",componentClassName:d="",children:c,setLoading:u,signUploadAPICall:x,setFileInfo:m=()=>{},getFileName:h,callback:p=()=>{},callbackWithBlob:v=()=>{},callbackWithPath:f=()=>{},accept:j="application/pdf",prefetchSignedURL:g=!1,disabled:y=!1}=e,[b,A]=(0,a.useState)(),N=async e=>{var l,s;if(!(null==e||null==(l=e.target)?void 0:l.files)||!(null==e||null==(s=e.target)?void 0:s.files[0]))return;let t=e.target.files[0];if(t.size/1048576>=i.default.UPLOAD_IMAGE_SIZE)return void o.A.ErrorToast("File cannot be more than ".concat(i.default.UPLOAD_IMAGE_SIZE," mb."));let a=h?h(e):t.name;await S({file:t,name:a})},S=async e=>{var l,s,t,a,i,d,c;u&&u(!0);try{let i=URL.createObjectURL(e.file);if(m({...e,imageBlob:i}),x){let r=g?"":await x(e),o=(null==b?void 0:b.uploadUrl)||(null==r||null==(s=r.data)||null==(l=s.data)?void 0:l.uploadUrl);await n.DX.updateUserImage({url:o,data:null==e?void 0:e.file,contentType:j}),p(null==e?void 0:e.name),v(i),f((null==b?void 0:b.path)||(null==r||null==(a=r.data)||null==(t=a.data)?void 0:t.path)||(null==e?void 0:e.name))}}catch(e){o.A.ErrorToast((null==e||null==(c=e.response)||null==(d=c.data)||null==(i=d.error)?void 0:i.message)||r.A.GLOBAL.wrong)}finally{u&&u(!1)}},C=async()=>{var e;let l=await x();A(null==l||null==(e=l.data)?void 0:e.data)};return(0,t.jsx)("div",{className:"relative w-full ".concat(s),children:(0,t.jsxs)("label",{htmlFor:l,className:"cursor-pointer text-xs font-semibold ".concat(d),onClick:()=>{g&&x&&C()},role:"none",children:[c,(0,t.jsx)("input",{id:l,type:"file",hidden:!0,accept:j,disabled:y,onChange:e=>N(e),value:""})]})})}},44332:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/company/[companyName]/courses/[courseSlug]",function(){return s(58862)}])},47028:(e,l,s)=>{"use strict";s.d(l,{A:()=>x});var t=s(37876),a=s(14232),n=s(48230),i=s.n(n),r=s(4960),o=s(89311),d=s(83872),c=s(16495),u=s(21639);let x=()=>{let e=a.useRef();return(0,t.jsxs)("div",{className:"w-full group flex gap-4",onMouseEnter:()=>{e.current&&e.current.play()},onMouseLeave:()=>{e.current&&e.current.stop()},children:[(0,t.jsx)(r.a,{loop:!0,src:c.CDNLOTTIES.sparklesLottie,style:{height:40,width:40},ref:e,keepLastFrame:!0}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(o.default.NormalText,{xxl:!0,className:"font-instrument",children:"Find the perfect job!"}),(0,t.jsx)(o.default.NormalText,{sm:!0,children:"Use Job Hunt AI to find the perfect job for you."})]}),(0,t.jsx)(u.Ay.Carbon,{iconRight:(0,t.jsx)(d.ArrowRightIcon,{size:14}),as:i(),small:!0,href:c.APP_PATHS.jobHuntAI,children:"Job Hunt AI"})]})]})}},55852:(e,l,s)=>{"use strict";s.d(l,{A:()=>f});var t=s(37876),a=s(2171),n=s(57994),i=s(14232),r=s(89099),o=s(89311),d=s(99478),c=s(81851),u=s(16416),x=s(17255);let m=()=>{let e=(0,r.useRouter)(),{company:l}=(0,a.useSelector)(e=>e.Company),[s,n]=(0,i.useState)(!1),m=()=>e.push(u.A.APP_PATHS.profileSettings),h={basicProfile:{label:"Basic Profile - 15%",checked:!1,points:15,onClick:m},companyTags:{label:"Industry - 10%",checked:!1,points:10,onClick:m},location:{label:"Location - 5%",checked:!1,points:5,onClick:m},socialLinks:{label:"Social links - 5%",checked:!1,points:5,onClick:m},whoWeAre:{label:"Who we are - 30%",checked:!1,points:30,onClick:m},toolsAndTechStack:{label:"Tools & tech stack - 5%",checked:!1,points:5,onClick:m},blog:{label:"Company Blog (RSS) - 15%",checked:!1,points:15,onClick:()=>n(u.A.OVERVIEW_SECTIONS.rss)},podcastYoutube:{label:"Podcast (YouTube / RSS) - 15%",checked:!1,points:15,onClick:()=>{}}},p={WEAK:{color:"red",label:"\uD83D\uDC4E Weak"},MODERATE:{color:"blue-dark",label:"\uD83D\uDE47 Moderate"},STRONG:{color:"green",label:"\uD83E\uDEE1 Strong"}},v=(e=>{var l,s,t,a,n,i,r,o,d,c;let{companyData:u,strength:x}=e,m={...x},h=0;return(null==u?void 0:u.tagline)&&(null==u?void 0:u.size)&&(null==(l=Object.keys(null==u?void 0:u.size))?void 0:l.length)>0&&(m.basicProfile.checked=!0,h+=m.basicProfile.points),(null==u||null==(s=u.industryCategory)?void 0:s.length)>0&&(m.companyTags.checked=!0,h+=m.companyTags.points),(null==u?void 0:u.description)&&((null==u?void 0:u.videoLink)||(null==u||null==(t=u.images)?void 0:t.length)>0)&&(m.whoWeAre.checked=!0,h+=m.whoWeAre.points),((null==u?void 0:u.hq)&&(null==(n=Object)||null==(a=n.keys(u.hq))?void 0:a.length)>0||(null==u?void 0:u.isRemote))&&(m.location.checked=!0,h+=m.location.points),(null==u?void 0:u.socialLinks)&&Object.keys(u.socialLinks).length>0&&(m.socialLinks.checked=!0,h+=m.socialLinks.points),(null==u?void 0:u.tools)&&(null==u?void 0:u.tools.length)>0&&(m.toolsAndTechStack.checked=!0,h+=m.toolsAndTechStack.points),((null==u||null==(i=u.integrations)?void 0:i.github)||(null==u||null==(r=u.integrations)?void 0:r.dribbble))&&(m.githubDribbble.checked=!0,h+=m.githubDribbble.points),(null==u||null==(o=u.integrations)?void 0:o.rss)&&(m.blog.checked=!0,h+=m.blog.points),((null==u||null==(d=u.integrations)?void 0:d.podcast)||(null==u||null==(c=u.integrations)?void 0:c.youtube))&&(m.podcastYoutube.checked=!0,h+=m.podcastYoutube.points),h})({companyData:l,strength:h}),f=p.WEAK;return(v>60&&(f=p.MODERATE),v>=80&&(f=p.STRONG),100===v)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-14",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("p",{className:"text-lg font-normal text-gray-1k mb-0.5",children:[v,"%"]}),(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsx)(o.default.SemiBoldText,{xs:!0,children:"Profile Strength"}),(0,t.jsx)("span",{className:"text-xs font-semibold text-".concat(f.color),children:f.label})]}),(0,t.jsx)(d.A,{profilePercentage:v,customProgressColor:"bg-".concat(f.color)})]}),Object.entries(h).map(e=>{let[l,s]=e;return(0,t.jsx)("button",{type:"button",className:"block disabled:text-gray-500",onClick:s.onClick,disabled:s.checked,children:(0,t.jsx)(c.A,{label:s.label,checked:s.checked,className:"mb-1 ".concat(s.checked?"text-gray-500":"text-gray-1k")})},l)})]}),"basicProfile"===s&&(0,t.jsx)(x.A.CreateCompanyProfile,{data:l,showModal:!0,setShowModal:n,isEditing:!0}),s===u.A.OVERVIEW_SECTIONS.whoweare&&(0,t.jsx)(x.A.AddWhoWeAre,{showModal:!0,setShowModal:n}),s===u.A.OVERVIEW_SECTIONS.rss&&(0,t.jsx)(x.A.AddRSS,{showModal:!0,setShowModal:n})]})};var h=s(55389),p=s(47028),v=s(61889);let f=e=>{let{companyData:l=null,toggleRightPanel:s=!1}=e,{company:i}=(0,a.useSelector)(e=>e.Company);if(!(null==i?void 0:i.id)&&!(null==l?void 0:l.id))return(0,t.jsx)(n.A.Right,{});let r=null==l?void 0:l.access;return(0,t.jsx)(n.A.Right,{showSidePanel:s,className:"overflow-y-auto pt-4 pb-20 hide-scrollbar",paddingX:"px-0",children:r?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(j,{})}):(0,t.jsx)("div",{className:"px-6 flex flex-col gap-10",children:(0,t.jsx)(g,{companyData:l})})})},j=()=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-14",children:(0,t.jsx)(v.A,{showCompanyName:!0})}),(0,t.jsx)("div",{className:"px-6",children:(0,t.jsx)(m,{})})]}),g=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.A,{}),(0,t.jsx)(h.A,{})]})},58862:(e,l,s)=>{"use strict";s.r(l),s.d(l,{__N_SSP:()=>el,default:()=>es});var t=s(37876),a=s(77328),n=s.n(a),i=s(54587),r=s.n(i),o=s(89099),d=s(14232),c=s(48230),u=s.n(c),x=s(21639),m=s(89311),h=s(63819),p=s(16416),v=s(78063),f=s(78964),j=s(80105),g=s(83872);let y=e=>{var l,s;let{course:a,isAdmin:n,mentorsToDisplay:i}=e,r=(0,o.useRouter)(),d=j.A.getCourseDurationString(null==a?void 0:a.duration),c=j.A.getCourseFeeString(null==a?void 0:a.pricing),y=j.A.getCourseStartDate(null==a?void 0:a.startDate);return(0,t.jsxs)("div",{className:"p-4 sm:p-6",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-x-2 mb-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(m.default.SemiBoldText,{as:"h1",children:null==a?void 0:a.name}),(0,t.jsx)(m.default.NormalText,{sm:!0,as:"h2",textColor:"text-gray-700",children:null==a?void 0:a.tagline})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[n&&(0,t.jsx)(x.Ay.CarbonOutline,{circular:!0,onClick:()=>r.push("".concat(p.A.APP_PATHS.addCourse,"?id=").concat(a.id)),small:!0,children:(0,t.jsx)(g.EditPencilIcon,{size:"16"})}),(0,t.jsx)("div",{className:"block sm:hidden",children:(0,t.jsx)(x.Ay.Carbon,{as:u(),href:(0,h.urlFormatter)(null==a?void 0:a.url,{addRef:!0}),target:"_blank",rel:"noreferrer",circular:!0,small:!0,children:(0,t.jsx)(g.ExternalLinkIcon,{size:"16"})})}),(0,t.jsx)("div",{className:"hidden sm:block",children:(0,t.jsx)(x.Ay.Carbon,{as:u(),href:(0,h.urlFormatter)(null==a?void 0:a.url,{addRef:!0}),target:"_blank",rel:"noreferrer",iconRight:(0,t.jsx)(g.ArrowUpRightIcon,{size:14}),small:!0,children:"Know More"})})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-x-6",children:[y?(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(m.default.MutedText,{xs:!0,children:"Next Cohort"}),(0,t.jsx)(m.default.SemiBoldText,{xs:!0,children:y})]}):null,(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(m.default.MutedText,{xs:!0,children:"Duration"}),(0,t.jsx)(m.default.SemiBoldText,{xs:!0,children:d})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(m.default.MutedText,{xs:!0,children:"Location"}),(0,t.jsx)(m.default.SemiBoldText,{xs:!0,className:"capitalize",children:(null==a||null==(s=a.locationType)||null==(l=s.toLowerCase())?void 0:l.replace("_"," "))||"-"})]}),(0,t.jsxs)("div",{className:"flex flex-col mr-0 sm:mr-6 gap-0.5",children:[(0,t.jsx)(m.default.MutedText,{xs:!0,children:"Fees"}),(0,t.jsx)(m.default.SemiBoldText,{xs:!0,children:c})]})]}),(null==a?void 0:a.description)?(0,t.jsx)("div",{className:"mt-10 job-description",children:(0,t.jsx)(v.default,{html:a.description,className:"text-sm break-words"})}):null,(null==i?void 0:i.length)?(0,t.jsxs)("div",{className:"flex flex-col w-full my-10",children:[(0,t.jsx)(m.default.SemiBoldText,{className:"text-left mb-4",children:"Mentors"}),(0,t.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:i.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(f.A.EveryUserCard,{user:e,primaryUserId:null==e?void 0:e.id,className:"border border-primaryBorder"})},null==e?void 0:e.profileHandle))})]}):null]})};var b=s(88798),A=s(34321),N=s(68827),S=s(34217),C=s(58385);let k=e=>{var l,s;let{courseId:a,companyId:n,students:i,setStudents:r}=e,[o,c]=(0,d.useState)(!1),[u,x]=(0,d.useState)(!1),h=async function(){var e,l,s,t,o;let d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null==i?void 0:i.cursor;if(null!==d){c(!0);try{let s=["onlyVerified=true"];n&&s.push("cid=".concat(n)),a&&s.push("courseId=".concat(a)),d&&s.push("cursor=".concat(d));let t=s.join("&"),i=await A.gz.getTeamMembers(t),o=(null==i||null==(l=i.data)||null==(e=l.data)?void 0:e.people)||[];r(e=>{var l,s;return{cursor:(null==i||null==(s=i.data)||null==(l=s.data)?void 0:l.cursor)||null,users:[...(null==e?void 0:e.users)||[],...o]}})}catch(e){x((null==e||null==(o=e.response)||null==(t=o.data)||null==(s=t.error)?void 0:s.message)||N.A.GLOBAL.serverError)}finally{c(!1)}}};(0,d.useEffect)(()=>{h()},[]);let p=(0,d.useCallback)((e,l)=>(0,t.jsx)(f.A.HorizontalUserCard,{user:l,className:"p-4 px-0"},null==l?void 0:l.id),[i]);return(0,t.jsxs)("div",{className:"p-4 sm:px-6",children:[u?(0,t.jsx)(m.default.ErrorText,{children:u}):null,o||(null==i||null==(l=i.users)?void 0:l.length)!==0?null:(0,t.jsx)(S.A.EmptyState,{title:"Students appear here",description:"Verified students of this bootcamp will appear here.",icon:(0,t.jsx)(C.A.EmptyContacts,{})}),(0,t.jsx)(b.aY,{useWindowScroll:!0,data:null==i?void 0:i.users,totalCount:(null==i||null==(s=i.users)?void 0:s.length)||0,endReached:()=>{o||h(null==i?void 0:i.cursor)},itemContent:p}),o?(0,t.jsx)("div",{children:Array(10).fill(null).map((e,l)=>(0,t.jsxs)("div",{className:"p-4 px-0 flex items-center gap-2 animate-pulse w-full",children:[(0,t.jsx)("div",{className:"size-10 bg-gray-100 rounded-full shrink-0"}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"h-4 max-w-64 bg-gray-200 rounded mb-1"}),(0,t.jsx)("div",{className:"h-4  max-w-96 bg-gray-100 rounded"})]})]},"skeleton-user-card-".concat(2*l)))}):null]})};var w=s(4755),T=s(14611),E=s(16495),P=s(28857),I=s(71297),R=s(1245),O=s(38243),D=s(31173);let _=e=>{var l;let{showModal:s,setShowModal:a,courseId:n={}}=e,[i,r]=(0,d.useState)(),[o,c]=(0,d.useState)(""),[p,v]=(0,d.useState)([]),[f,y]=(0,d.useState)(!1),b=async()=>{try{p.length>0?(await A.gz.autoVerifyStudents({emails:p,courseId:n}),y(!0)):c(N.A.COURSES.studentEmailsToAutoVerifyNotFound)}catch(e){c("Failed to auto verify the participants.")}};return(0,t.jsxs)(O.Ay,{showModal:s,setShowModal:a,children:[(0,t.jsxs)(O.Ep.Body,{defaultClasses:"py-6 px-4",className:"flex flex-col items-center text-center justify-center",children:[(0,t.jsx)("span",{className:f?"text-green-300 ":"",children:(0,t.jsx)(g.DoubleCheckIcon,{size:"40"})}),(0,t.jsx)(m.default.SemiBoldText,{sm:!0,className:"mt-4 mb-1",children:f?"Verification in progress...":"Upload auto-verify list"}),(0,t.jsx)(m.default.NormalText,{xs:!0,textColor:"text-gray-500",children:f?"This process might take a while. Feel free to close this popup and check back later.":"Auto - verify your pending verification requests by uploading a CSV file of your students."}),f?null:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-between mt-6",children:[(0,t.jsx)("div",{children:(0,t.jsx)(D.A,{id:"csv-email",setFileInfo:e=>
1{c(""),r(e),(e=>{if(!e)return c(N.A.COURSES.studentEmailsToAutoVerifyNotFound);let l=new FileReader;l.onload=e=>{var l;if(!(null==e||null==(l=e.target)?void 0:l.result))return void c(N.A.COURSES.studentEmailsToAutoVerifyNotFound);try{let{result:l}=e.target,s=(0,h.csvToJSON)(l.replaceAll('"',"").replaceAll("'","")).map(e=>null==e?void 0:e.email).filter(e=>e);if(0===s.length)return void c(N.A.COURSES.studentEmailsToAutoVerifyNotFound);v(s)}catch(e){c(N.A.COURSES.studentEmailsToAutoVerifyNotFound)}},l.readAsBinaryString(e)})(null==e?void 0:e.file)},accept:".csv",children:(0,t.jsx)("div",{className:"flex flex-col items-start justify-start gap-1",children:(null==i||null==(l=i.name)?void 0:l.length)?(0,t.jsxs)("div",{className:"flex items-center gap-1 p-2.5 rounded-lg bg-gray-100 pr-3 relative",children:[(0,t.jsx)(g.PageIcon,{size:24}),(0,t.jsx)(m.default.NormalText,{xs:!0,children:j.A.truncateFileName(null==i?void 0:i.name)}),(0,t.jsx)(x.Ay.CarbonOutline,{small:!0,circular:!0,className:"absolute -top-2 -right-3",onClick:e=>{r(null),null==e||e.stopPropagation(),null==e||e.preventDefault()},children:(0,t.jsx)(g.CloseXIcon,{size:14})})]}):(0,t.jsx)(x.Ay.CarbonOutline,{as:"div",iconLeft:(0,t.jsx)(g.UploadIcon,{size:"16"}),children:j.A.truncateFileName(null==i?void 0:i.name)||"Upload CSV"})})})}),o?(0,t.jsx)(m.default.ErrorText,{className:"mt-1",children:o}):null]})]}),(0,t.jsx)(O.Ep.Footer,{children:f?(0,t.jsx)("div",{className:"w-full flex justify-end items-end ",children:(0,t.jsx)(x.Ay.Carbon,{small:!0,onClick:()=>a(!1),children:"Okay"})}):(0,t.jsxs)("div",{className:"w-full flex justify-between items-center ",children:[(0,t.jsx)(x.Ay.CarbonOutline,{small:!0,as:u(),href:E.CDNImage.courseParticipantUploadSampleCSV,download:!0,children:"Download Template CSV"}),(0,t.jsx)(x.Ay.Primary,{small:!0,onClick:()=>b(),iconLeft:(0,t.jsx)(g.DoubleCheckIcon,{size:"14"}),children:"Auto Verify"})]})})]})};var F=s(31232),L=s(66038);let V=e=>{var l,s,a;let{courseId:n,companyId:i,requests:r,setRequests:o}=e,[c,p]=(0,d.useState)(!1),[v,f]=(0,d.useState)(!1),[j,y]=(0,d.useState)(!1),k=(0,F.A)(),O=async function(){var e,l,s,t,a;let d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null==r?void 0:r.cursor;if(null!==d){p(!0);try{let s=[];i&&s.push("cid=".concat(i)),n&&s.push("courseId=".concat(n)),d&&s.push("cursor=".concat(d)),s.push("pending=true");let t=s.join("&"),a=await A.gz.getAllVerificationRequests("?".concat(t)),r=(null==a||null==(l=a.data)||null==(e=l.data)?void 0:e.users)||[];o(e=>{var l,s;return{cursor:(null==a||null==(s=a.data)||null==(l=s.data)?void 0:l.cursor)||null,users:""===d?r:[...(null==e?void 0:e.users)||[],...r]}})}catch(e){f((null==e||null==(a=e.response)||null==(t=a.data)||null==(s=t.error)?void 0:s.message)||N.A.GLOBAL.serverError)}finally{p(!1)}}},D=e=>{let{profile:l}=e;if(!(null==l?void 0:l.id))return;let s=null==r?void 0:r.users.filter(e=>(null==e?void 0:e.id)!==(null==l?void 0:l.id));o(e=>({...e,users:s}))};(0,d.useEffect)(()=>{O()},[]),(0,d.useEffect)(()=>{k&&k.bind(L.w.AUTO_VERIFICATION_SUCCESS,e=>{e.successCount>0&&(O(""),y(!1))})},[k]);let V=(0,d.useCallback)((e,l)=>{var s;let a=E.APP_PATHS.userProfile({profileHandle:null==l?void 0:l.profileHandle}),i=null==l||null==(s=l.cohorts)?void 0:s.find(e=>(null==e?void 0:e.courseId)===n);return(0,t.jsxs)("div",{className:"flex items-center justify-between py-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)(P.A,{profileHandle:null==l?void 0:l.profileHandle,children:(0,t.jsx)(u(),{href:a,children:(0,t.jsx)(w.Ay.Small,{image:(null==l?void 0:l.profilePicture)||E.CDNImage.emptyUserDP,className:"hover:opacity-80 cursor-pointer"})})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(P.A,{profileHandle:null==l?void 0:l.profileHandle,children:(0,t.jsx)(u(),{href:a,children:(0,t.jsx)("h3",{className:"text-sm text-gray-1k font-semibold hover:underline mb-0.5 max-w-fit",children:h.default.getDisplayName(l)})})}),(null==l?void 0:l.email)?(0,t.jsxs)("button",{type:"button",onClick:()=>{(null==l?void 0:l.email)&&(h.default.copyToClipboard(null==l?void 0:l.email),I.A.SuccessToast("Email copied to clipboard"))},className:"flex items-center gap-x-1","data-tip":!0,"data-effect":"solid","data-for":"copy-email-req",children:[(0,t.jsx)("span",{className:"text-gray-500",children:(0,t.jsx)(g.CopyIcon,{size:14})}),(0,t.jsx)(m.default.NormalText,{xs:!0,textColor:"text-gray-700",className:"select-text",children:null==l?void 0:l.email})]}):(0,t.jsx)(m.default.NormalText,{xs:!0,textColor:"text-gray-700",className:"paragraph-clamp1",children:null==l?void 0:l.headline})]}),(0,t.jsx)(R.A,{id:"copy-email-req",text:"Copy email"})]}),(0,t.jsx)(T.A,{user:l,experienceToVerify:{...i,isCohort:!0},updateUserDataOnApproveOrReject:D})]})},[null==r?void 0:r.users,n]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"p-4 sm:px-6",children:[v?(0,t.jsx)(m.default.ErrorText,{children:v}):null,c||(null==r||null==(l=r.users)?void 0:l.length)!==0?null:(0,t.jsx)(S.A.EmptyState,{title:"No requests pending",description:(0,t.jsxs)(t.Fragment,{children:["All pending verification requests have been addressed. ",(0,t.jsx)("br",{}),"You're a good admin :)"]}),icon:(0,t.jsx)(C.A.EmptyVerificationPending,{})}),(null==r||null==(s=r.users)?void 0:s.length)===0?null:(0,t.jsx)("div",{className:"flex justify-end items-end my-2",children:(0,t.jsx)(x.Ay.CarbonOutline,{small:!0,onClick:()=>y(!0),children:"Auto Verify with CSV"})}),(0,t.jsx)(b.aY,{useWindowScroll:!0,data:null==r?void 0:r.users,totalCount:(null==r||null==(a=r.users)?void 0:a.length)||0,endReached:()=>{c||O(null==r?void 0:r.cursor)},itemContent:V}),c?(0,t.jsx)("div",{children:Array(10).fill(null).map((e,l)=>(0,t.jsxs)("div",{className:"p-4 px-0 flex items-center gap-2 animate-pulse w-full",children:[(0,t.jsx)("div",{className:"size-10 bg-gray-100 rounded-full shrink-0"}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"h-4 max-w-64 bg-gray-200 rounded mb-1"}),(0,t.jsx)("div",{className:"h-4  max-w-96 bg-gray-100 rounded"})]})]},"skeleton-user-card-".concat(2*l)))}):null]}),(0,t.jsx)(_,{setShowModal:y,showModal:j,courseId:n})]})};var U=s(34286),z=s(57994),M=s(14291),H=s(82669),B=s(18480),W=s(77e3),q=s(31403);let G=e=>{let{companyData:l}=e;return(null==l?void 0:l.id)?(0,t.jsx)("div",{children:(0,t.jsx)(q.A.ShortProfileCard,{company:l,showTeam:!0})}):null};var Y=s(2171),X=s(48187),J=s(18158);let K=e=>{var l,s,a;let{companyData:n}=e,i=(0,o.useRouter)(),r=(0,Y.useDispatch)(),c=(0,Y.useSelector)(J.LJ),[h,v]=(0,d.useState)(!1),f=null!=n&&!!n.id&&(null==n||null==(l=n.profileTypes)?void 0:l.includes(p.A.PROFILE_TYPES.CBC.name)),j=null==i||null==(s=i.query)?void 0:s.courseSlug,y=async()=>{try{var e,l,s,t,a;v(!0);let i=await A.gz.getCourses({params:{companyId:n.id,isPublished:!0,limit:2}}),o=(null==i||null==(l=i.data)||null==(e=l.data)?void 0:e.courses)||[];if(!o.length)return;let d=j?null==(s=o.filter(e=>e.slug!==j))?void 0:s[0]:o[0];r(J.hP.setCoursesAtCompany({profileHandle:n.profileHandle,course:d,totalCount:null==i||null==(a=i.data)||null==(t=a.data)?void 0:t.totalCount}))}catch(e){}finally{v(!1)}};return((0,d.useEffect)(()=>{let e=!1;f&&(null==c?void 0:c.profileHandle)!==(null==n?void 0:n.profileHandle)&&(e=!0),j&&(e=!0),e&&y()},[]),f&&(null==n?void 0:n.id))?(0,t.jsxs)("div",{children:[h||(null==c?void 0:c.course)?(0,t.jsxs)(u(),{href:"".concat(p.A.APP_PATHS.PROFILE_RELATIVE(n.profileHandle),"/courses"),className:"flex items-center justify-between group",children:[(0,t.jsxs)(m.default.SemiBoldText,{sm:!0,className:"group-hover:underline",children:["Courses by ",null==n?void 0:n.name," • ",(null==c?void 0:c.totalCount)||0]}),(0,t.jsx)(x.Ay.CarbonTransparent,{small:!0,circular:!0,children:(0,t.jsx)(g.ArrowRightIcon,{})})]}):null,h&&(0,t.jsx)(X.A.CourseCardSkeleton,{}),(null==c||null==(a=c.course)?void 0:a.id)?(0,t.jsx)("div",{className:"mb-14",children:(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(q.A.CourseCard,{course:c.course,company:n,hasAccess:!1})})}):null]}):null};var Z=s(55852);let Q="OVERVIEW",$="STUDENTS",ee="REQUESTS";var el=!0;let es=e=>{var l,s,a,i,c;let{course:u,companyData:m}=e,p=(0,o.useRouter)(),[v,f]=(0,d.useState)([]),[j,b]=(0,d.useState)(!1),[N,w]=(0,d.useState)(Q),[T,P]=(0,d.useState)(!1),[I,R]=(0,d.useState)({cursor:"",users:[]}),[O,D]=(0,d.useState)({cursor:"",users:[]}),_=null==p||null==(l=p.query)?void 0:l.companyName,F=async()=>{try{var e,l,s;let t=await A.gz.getCourses({params:{courseId:u.id,chandle:_}});(null==t||null==(s=t.data)||null==(l=s.data)||null==(e=l.mentors)?void 0:e.length)&&f(t.data.data.mentors)}catch(e){}};if(p.isFallback)return(0,t.jsx)(H.A,{});if((0,d.useEffect)(()=>{F()},[]),null===u)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n(),{children:(0,t.jsx)("title",{children:"Peerlist Courses | Course not found"})}),(0,t.jsx)(z.A.CenterTop,{}),(0,t.jsx)("div",{className:"flex items-center justify-center my-28 flex-col",children:(0,t.jsx)(S.A.EmptyState,{icon:(0,t.jsx)(C.A.EmptyCourses,{size:80}),title:"Can't find the course you're looking for",description:"This course might be removed by the owner"})})]});let L=h.default.generateCourseShareData(u),q=(null==v?void 0:v.length)?v:null==u?void 0:u.mentors,Y=[{label:"OVERVIEW",link:Q},{label:"STUDENTS",link:$}];return(null==m?void 0:m.access)&&Y.push({label:"Verification Pending",link:ee}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(B.A,{title:u.metaOG.title,de
1scription:u.metaOG.description,keywords:u.metaOG.keywords,ogImage:(null==u||null==(s=u.metaOG)?void 0:s.ogImage)||""}),(0,t.jsxs)(z.A.Center,{children:[(0,t.jsxs)(z.A.CenterTop,{internalPage:!0,className:"border-b border-primaryBorder",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(z.A.BackButton,{}),(0,t.jsxs)(z.A.PageHeading,{children:["Course by ",null==u||null==(a=u.owner)?void 0:a.name]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(x.Ay.CarbonOutline,{circular:!0,onClick:()=>b(!0),className:"flex lg:hidden",children:(0,t.jsx)(g.ShareIcon,{size:20})}),(0,t.jsx)(z.A.RightPanelToggle,{toggleRightPanel:T,setToggleRightPanel:P})]})]}),(null==u?void 0:u.archivedAt)?(0,t.jsx)(S.A.InfoNote,{icon:(0,t.jsx)(g.InfoIcon,{size:"16"}),className:"m-6 mb-0 justify-center",subtext:"This course has been archived."}):null,(0,t.jsxs)("article",{className:"w-full ".concat((null==u?void 0:u.archivedAt)?"opacity-20":""),children:[(null==u?void 0:u.images)&&(null==u?void 0:u.images[0])?(0,t.jsx)("div",{className:"p-4 sm:p-6 sm:pb-0 pb-0 mb-4",children:(0,t.jsx)("div",{className:"lg:h-[336px] h-[180px] w-full relative",children:(0,t.jsx)(r(),{src:"".concat(E.CLOUDFRONT_PROD_S3).concat(null==u?void 0:u.images[0]),alt:null==u?void 0:u.name,className:"object-cover rounded-2xl border border-primaryBorder",fill:!0,sizes:"50vw",priority:!0})})}):null,(0,t.jsx)(W.A,{navTabs:Y,currentNavTab:N,marginAuto:!1,onClick:e=>w(e.link)}),N===Q?(0,t.jsx)(y,{course:u,isAdmin:null==m?void 0:m.access,mentorsToDisplay:q}):null,N===$?(0,t.jsx)(k,{courseId:null==u?void 0:u.id,companyId:null==u||null==(i=u.owner)?void 0:i.id,students:I,setStudents:R}):null,N===ee?(0,t.jsx)(V,{courseId:null==u?void 0:u.id,companyId:null==u||null==(c=u.owner)?void 0:c.id,requests:O,setRequests:D}):null]})]}),(null==m?void 0:m.access)?(0,t.jsx)(Z.A,{companyData:m,toggleRightPanel:T}):(0,t.jsx)(z.A.Right,{hideOnSmallScreens:!0,className:"overflow-y-auto",children:(0,t.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,t.jsx)(G,{companyData:null==u?void 0:u.owner}),(0,t.jsx)(U.$Y,{companiesWorkingAt:null==m?void 0:m.companiesWorkingAt,companyProfileHandle:_}),(0,t.jsx)(K,{companyData:null==u?void 0:u.owner})]})}),j&&(0,t.jsx)(M.A.CreatePostWithContext,{showModal:j,setShowModal:b,shareData:L,fromShareModal:!0})]})}},81851:(e,l,s)=>{"use strict";s.d(l,{A:()=>r});var t=s(37876),a=s(78004),n=s.n(a),i=s(83872);let r=e=>{let{checked:l,label:s,isDark:a=!1,className:r="",onClick:o=()=>{}}=e,d=a?n().white.DEFAULT:"rgb(var(--gray-1k))";return(0,t.jsx)("button",{type:"button",onClick:o,children:(0,t.jsxs)("div",{className:"flex cursor-pointer items-center text-xs text-gray-1k  ".concat(r),children:[(0,t.jsx)("div",{children:(0,t.jsx)(i.CheckRoundedIcon,{size:16,background:l?n().green.bright:n().transparent,color:l?n().green.bright:d,checkColor:l?n().white.DEFAULT:"none"})}),(0,t.jsx)("p",{className:"ml-1 font-medium ".concat(l?"line-through opacity-50":"hover:underline ml-1.5"," ").concat(a?"text-gray-00 dark:text-gray-1k":"text-gray-1k"),children:s})]})})}}},e=>{e.O(0,[8798,5389,1889,4611,636,6593,8792],()=>e(e.s=44332)),_N_E=e.O()}]);

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.