1"use strict";(self.webpackChunkseekjob=self.webpackChunkseekjob||[]).push([[100],{1964:(e,t,s)=>{s.r(t),s.d(t,{default:()=>A});var l=s(5043),i=s(8134),o=s(9002),n=s(4531),a=s(481),r=s(5094),c=s(2599),d=s(446),h=s.n(d),u=s(3156),p=s(184),m=s(211),x=s(4298),b=s(579);const j=e=>{let{onClose:t,selectedJobs:s}=e;const[i,o]=(0,l.useState)([]),[n,c]=(0,l.useState)(!1),[d,h]=(0,l.useState)(!1),[j,v]=(0,l.useState)(!1),[y,g]=(0,l.useState)([]),[f,w]=(0,l.useState)([]),[N,k]=(0,l.useState)([]),[C,S]=(0,l.useState)(1),[_,T]=(0,l.useState)([]),[A,L]=(0,l.useState)(""),[E,O]=(0,l.useState)(!1),[D,P]=(0,l.useState)(15),[z,J]=(0,l.useState)(null),[R,F]=(0,l.useState)(""),$=(0,l.useRef)(!0),M=(0,l.useRef)(null),{setLoader:W}=(0,l.useContext)(r.vR),{calculatePageSize:q}=(0,l.useContext)(r.cy),H=(0,l.useRef)(null),I=(0,l.useRef)(null),[U,Y]=(0,l.useState)(!1);(0,l.useEffect)((()=>{z?K(D,z):K(D)}),[z,D]),(0,l.useEffect)((()=>{const e=e=>{I.current&&!I.current.contains(e.target)&&O(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,l.useEffect)((()=>{const e=M.current;return e&&e.addEventListener("scroll",X),()=>{e&&e.removeEventListener("scroll",X)}}),[]);const B=_.length===i.length&&i.length>0,K=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(!0);try{const r=await(0,a.Oj)({filters:t,page:1,page_size:e,registered:!0});if(r){var s,l,i;W(!1);const e=(null===(s=r.students)||void 0===s?void 0:s.filter((e=>e.registered)))||[];if(o(e),B&&T(e.map((e=>e.student_id))),S((null===(l=r.pagination)||void 0===l?void 0:l.total_pages)||1),k(r.available_tags||{}),w((null===r||void 0===r||null===(i=r.available_tags)||void 0===i?void 0:i.Program)||[]),$.current){var n;null===r||void 0===r||null===(n=r.available_tags)||void 0===n||n.Program;g([]),$.current=!1}}}catch(r){W(!1),console.error("Failed to fetch students:",r)}},X=()=>{const e=M.current;if(!e)return;const{scrollTop:t,scrollHeight:s,clientHeight:l}=e;t+l>=s-15&&P((e=>e+5))};(0,l.useEffect)((()=>()=>{H.current&&clearTimeout(H.current)}),[]);const Q=e=>{let{size:t=20,color:s="black",strokeWidth:l=1,onClick:i}=e;return(0,b.jsx)("svg",{width:t,height:14,viewBox:"0 0 24 24",fill:"none",stroke:s,strokeWidth:l,strokeLinecap:"round",strokeLinejoin:"round",onClick:i,style:{cursor:"pointer"},children:(0,b.jsx)("path",{d:"M3 4h18l-7 9v5l-4 2v-7L3 4z"})})},G=(e,t)=>{const s={};return Object.entries(t).filter((e=>{let[t]=e;return"Program"===t})).forEach((t=>{let[l,i]=t;const o=i.filter((t=>e.includes(t)));o.length>0&&(s[l]=o)})),{filters:s}};(0,l.useEffect)((()=>{const e=M.current,t=()=>{if(!e)return;const{scrollTop:t,scrollHeight:s,clientHeight:l}=e;t+l>=s-10&&P((e=>e+10))};return e&&e.addEventListener("scroll",t),()=>{e&&e.removeEventListener("scroll",t)}}),[]);return(0,b.jsx)("div",{className:"confirm-modal-backdrop",children:(0,b.jsxs)("div",{className:"modal",style:{maxHeight:"80vh",overflow:"hidden"},children:[(0,b.jsx)("div",{className:"header",children:(0,b.jsxs)("div",{className:"header-top",children:[(0,b.jsx)("h2",{className:"mb-0",children:"Send Leads"}),(0,b.jsx)("span",{style:{cursor:j?"not-allowed":"pointer",fontSize:"20px",color:"#5E6278",opacity:j?.5:1},onClick:()=>{j||t()},children:(0,b.jsx)(p.QCr,{})})]})}),(0,b.jsxs)("div",{className:"modal-scroll-content",ref:M,children:[(0,b.jsxs)("div",{className:"mb-3",children:[(0,b.jsx)("label",{className:"form-label fw-semibold",children:"Search Student"}),(0,b.jsxs)("div",{class:"input-with-icon",children:[(0,b.jsx)("input",{type:"text",class:"form-control",placeholder:"Search Student",value:R,onChange:e=>{const t=e.target.value.toLowerCase();F(t),H.current&&clearTimeout(H.current),H.current=setTimeout((async()=>{if(!t.trim())return void K(D);W(!0);const e=await(0,a.WJ)(t,!0),s=[...e.email_matches,...e.name_matches],l=Array.from(new Map(s.map((e=>[e.student_id,e]))).values());W(!1),o(l)}),300)}}),(0,b.jsx)("i",{class:"fa-solid fa-magnifying-glass search-icon"})]})]}),(0,b.jsxs)("table",{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:(0,b.jsx)("input",{type:"checkbox",checked:B,onChange:()=>{_.length===i.length?T([]):T(i.map((e=>e.student_id)))}})}),(0,b.jsx)("th",{children:"Student Name"}),(0,b.jsx)("th",{children:"Email Address"}),(0,b.jsxs)("th",{className:"position-relative text-nowrap",children:["Program / Majors"," ",(0,b.jsx)(Q,{size:20,color:"gray",strokeWidth:2,onClick:()=>O((e=>!e))}),E&&(0,b.jsxs)("div",{ref:I,className:"dropdown-menu show p-2",style:{minWidth:"200px",zIndex:10},children:[(0,b.jsxs)("div",{className:"form-check",children:[(0,b.jsx)("input",{className:"form-check-input",type:"checkbox",checked:U,onChange:()=>{const e=!U;Y(e),g(e?f:[]),K(D,G(e?f:[],N).filters)}}),(0,b.jsx)("label",{style:{fontSize:"12px"},className:"form-check-label",children:"Select All"})]}),f.map((e=>(0,b.jsxs)("div",{className:"form-check",children:[(0,b.jsx)("input",{className:"form-check-input",type:"checkbox",value:e,checked:y.includes(e),onChange:()=>(e=>{g((t=>{const s=t.includes(e)?t.filter((t=>t!==e)):[...t,e],l=G(s,N);
1return Object.keys(l.filters).length>0?(J(l.filters),K(D,l.filters)):(J(null),K(D)),s}))})(e)}),(0,b.jsx)("label",{style:{fontSize:"12px"},className:"form-check-label",children:e})]},e)))]})]})]})}),(0,b.jsx)("tbody",{children:i.map(((e,t)=>{const s=_.includes(e.student_id),l=e.tags.find((e=>"Program"===e.tag_type)),i=l?l.name:"N/A",o={backgroundColor:s?"#e6f7ff":"transparent"};return(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{style:o,children:(0,b.jsx)("input",{type:"checkbox",checked:s,onChange:()=>{return t=e.student_id,void T((e=>e.includes(t)?e.filter((e=>e!==t)):[...e,t]));var t}})}),(0,b.jsx)("td",{style:o,className:"student-section",children:(0,b.jsxs)("div",{className:"d-flex align-items-center",children:[(0,b.jsx)("img",{src:e.thumbnail,alt:e.name,className:"rounded-circle me-2",width:"25",height:"25",style:{objectFit:"cover"}}),(0,b.jsx)("span",{className:"student-name",children:e.name})]})}),(0,b.jsx)("td",{style:o,className:"mail",title:e.email,children:e.email.length>15?`${e.email.slice(0,15)}...`:e.email}),(0,b.jsx)("td",{style:o,children:i})]},t)}))})]})]}),(0,b.jsxs)("div",{className:"actions",children:[(0,b.jsxs)("button",{className:"profileBtn save",onClick:async()=>{if(!j){if(0===_.length)return L("Please select at least one student"),void h(!0);v(!0),W(!0);try{const e=await(0,a.DO)({job_ids:s,student_ids:_});500!==e.status&&400!==e.status?(c(!0),T([])):(L("Something went wrong."),h(!0))}catch(e){console.error("Error sending invites:",e),L("Something went wrong."),h(!0)}finally{W(!1),v(!1)}}},disabled:j,style:{cursor:j?"not-allowed":"pointer",opacity:j?.7:1},children:[(0,b.jsx)(u.cxC,{})," ",j?"Sending leads...":`Send Leads (${_.length})`]}),(0,b.jsx)("button",{className:"profileBtn cancel",onClick:t,disabled:j,style:{cursor:j?"not-allowed":"pointer",opacity:j?.7:1},children:"Cancel"})]}),(0,b.jsx)(x.A,{isOpen:n,title:"Success!",message:"The job leads will be sent to the selected students shortly.",buttonText:"OK",onClose:()=>{c(!1),t()}}),(0,b.jsx)(m.A,{isOpen:d,title:"Alert!",message:A,buttonText:"OK",onClose:()=>h(!1)})]})})};var v=s(3018),y=s(8540),g=s(4944);var f=s(3795),w=s(5458),N=s(9281),k=s(7334),C=s(1608);const S=e=>{if(!e)return"";try{const t=document.createElement("textarea");return t.innerHTML=e,t.value}catch(t){return e}},_=e=>(new DOMParser).parseFromString(e||"","text/html").body.textContent.trim().length,T=e=>{let{isOpen:t,onClose:s,onSuccess:i,jobData:o}=e;const{setLoader:a}=(0,l.useContext)(r.vR),c=!!o,[d,h]=(0,l.useState)((()=>{const e=((null===o||void 0===o?void 0:o.salary_range)||(null===o||void 0===o?void 0:o.salary)||"").match(/(\d[\d,.]*)/g);return e&&e[0]?e[0].replace(/,/g,""):""})),[u,j]=(0,l.useState)((()=>{const e=((null===o||void 0===o?void 0:o.salary_range)||(null===o||void 0===o?void 0:o.salary)||"").match(/(\d[\d,.]*)/g);return e&&e[1]?e[1].replace(/,/g,""):""})),[v,y]=(0,l.useState)((()=>((null===o||void 0===o?void 0:o.salary_range)||(null===o||void 0===o?void 0:o.salary)||"").includes("/hr")?"hr":"yr")),[g,f]=(0,l.useState)((()=>{const e=o||{};let t=e.selected_universities||[];return t&&0!==t.length||!Array.isArray(e.partnered_universities)||(t=e.partnered_universities.map((e=>e.organization_id||e.id)).filter((e=>e))),{title:e.title||"",company:e.company||"",job_type:e.job_type||"Full-Time",work_mode:e.work_mode||"On-Site",location:e.location||"",description:(0,k.p)(S(e.description||e.job_description||"")),requirements:(0,k.p)(S(e.requirements||"")),sponsorship:!!e.sponsorship,visibility_mode:e.visibility_mode||e.visibility||"public",selected_universities:t,collect_availability:void 0===e.collect_availability||!!e.collect_availability,specific_questions:"",external_job_id:e.external_job_id||""}})),[T,A]=(0,l.useState)([]),[L,E]=(0,l.useState)(!1),[O,D]=(0,l.useState)(!1),[P,z]=(0,l.useState)(""),[J,R]=(0,l.useState)([]),[F,$]=(0,l.useState)([]),[M,W]=(0,l.useState)(!1),[q,H]=(0,l.useState)(-1);(0,l.useEffect)((()=>{t&&(U(),I())}),[t]);const I=async()=>{try{const e=await(0,C.sh)(),t=[],s=e=>{null!==e&&void 0!==e&&e.name&&null!==e&&void 0!==e&&e.code&&(t.push(`${e.name} (${e.code}
1)`),(e.cities||[]).forEach((s=>t.push(`${s}, ${e.code}`))))};((null===e||void 0===e?void 0:e.us_state_city)||[]).forEach((e=>{Array.isArray(e.states)?e.states.forEach(s):s(e)})),R([...new Set(t)])}catch(e){console.error("Failed to fetch job locations",e),R([])}},U=async()=>{try{const e=await(0,w.SY)();e&&e.universities&&A(e.universities)}catch(e){console.error("Failed to fetch universities",e)}},Y=e=>{const{name:t,value:s,type:l,checked:i}=e.target;f((e=>({...e,[t]:"checkbox"===l?i:s})))},B=e=>{const t=e.trim().toLowerCase().replace(/\s+/g," "),s=J.filter((e=>!t||e.toLowerCase().replace(/\s+/g," ").includes(t))).slice(0,50);$(s),H(-1),W(!0)},K=e=>{f((t=>({...t,location:e}))),$([]),H(-1),W(!1)},X=e=>{const t=(e||"").trim().toLowerCase();return!!t&&J.some((e=>e.toLowerCase()===t))};return t?(0,b.jsx)("div",{className:"post-job-modal-overlay",children:(0,b.jsxs)("div",{className:"post-job-modal-content",children:[(0,b.jsxs)("div",{className:"post-job-header",children:[(0,b.jsx)("h2",{children:c?"Edit Job":"Post a New Job"}),(0,b.jsx)("button",{className:"close-modal-btn",onClick:s,children:(0,b.jsx)(p.QCr,{})})]}),(0,b.jsx)("div",{className:"post-job-body",children:(0,b.jsxs)("div",{className:"post-job-form",children:[(0,b.jsxs)("div",{className:"form-group",children:[(0,b.jsx)("label",{children:"Job Title*"}),(0,b.jsx)("input",{type:"text",name:"title",value:g.title,onChange:Y,placeholder:"e.g. Product Manager"})]}),(0,b.jsxs)("div",{className:"form-row",style:{display:"flex",gap:"15px"},children:[(0,b.jsxs)("div",{className:"form-group",style:{flex:1},children:[(0,b.jsx)("label",{children:"Job Type*"}),(0,b.jsxs)("select",{name:"job_type",value:g.job_type,onChange:Y,children:[(0,b.jsx)("option",{value:"Full-Time",children:"Full-Time"}),(0,b.jsx)("option",{value:"Part-Time",children:"Part-Time"}),(0,b.jsx)("option",{value:"Internship",children:"Internship"}),(0,b.jsx)("option",{value:"Contract",children:"Contract"})]})]}),(0,b.jsxs)("div",{className:"form-group",style:{flex:1},children:[(0,b.jsx)("label",{children:"Job Category"}),(0,b.jsxs)("select",{name:"work_mode",value:g.work_mode,onChange:Y,children:[(0,b.jsx)("option",{value:"On-Site",children:"On-Site"}),(0,b.jsx)("option",{value:"Hybrid",children:"Hybrid"}),(0,b.jsx)("option",{value:"Remote",children:"Remote"})]})]}),(0,b.jsxs)("div",{className:"form-group",style:{flex:1},children:[(0,b.jsx)("label",{children:"External Job ID"}),(0,b.jsx)("input",{type:"text",name:"external_job_id",value:g.external_job_id,onChange:Y,placeholder:"Optional"})]})]}),(0,b.jsxs)("div",{className:"form-row",children:[(0,b.jsxs)("div",{className:"form-group half",children:[(0,b.jsx)("label",{children:"Location*"}),(0,b.jsxs)("div",{className:"post-job-location-picker",children:[(0,b.jsx)("input",{type:"text",name:"location",value:g.location,autoComplete:"off",onFocus:()=>B(g.location),onChange:e=>{const{value:t}=e.target;f((e=>({...e,location:t}))),B(t)},onKeyDown:e=>{"Escape"!==e.key?M&&0!==F.length&&("ArrowDown"===e.key?(e.preventDefault(),H((e=>Math.min(e+1,F.length-1)))):"ArrowUp"===e.key?(e.preventDefault(),H((e=>Math.max(e-1,0)))):"Enter"===e.key&&(e.preventDefault(),q>=0&&K(F[q]))):W(!1)},onBlur:()=>{window.setTimeout((()=>{W(!1),g.location&&!X(g.location)&&f((e=>({...e,location:""})))}),150)},placeholder:"Search city or state",role:"combobox","aria-autocomplete":"list","aria-expanded":M,"aria-controls":"post-job-location-options"}),M&&F.length>0&&(0,b.jsx)("div",{id:"post-job-location-options",className:"post-job-location-dropdown",role:"listbox",children:F.map(((e,t)=>(0,b.jsx)("button",{type:"button",role:"option","aria-selected":t===q,className:"post-job-location-option"+(t===q?" highlighted":""),onMouseDown:e=>e.preventDefault(),onClick:()=>K(e),children:e},e)))})]}),(0,b.jsx)("div",{style:{marginTop:"5px",fontSize:"13px",color:"#666"},children:"Select a city or state from the dropdown."})]}),(0,b.jsxs)("div",{className:"form-group half",children:[(0,b.jsx)("label",{children:"Salary Range"}),(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,b.jsx)("input",{type:"number",placeholder:"Min",style:{width:"80px"},value:d,onChange:e=>h(e.target.value)}),(0,b.jsx)("span",{children:"-"}),(0,b.jsx)("input",{type:"number",placeholder:"Max",style:{width:"80px"},value:u,onChange:e=>j(e.target.value)}
1),(0,b.jsxs)("select",{value:v,onChange:e=>y(e.target.value),style:{width:"80px",padding:"8px",border:"1px solid #ddd",borderRadius:"4px"},children:[(0,b.jsx)("option",{value:"yr",children:"/yr"}),(0,b.jsx)("option",{value:"hr",children:"/hr"})]})]}),(0,b.jsxs)("div",{style:{marginTop:"5px",fontSize:"13px",color:"#666"},children:["Preview: $",d?parseFloat(d).toLocaleString():"0"," - $",u?parseFloat(u).toLocaleString():"0"," /",v]})]})]}),(0,b.jsxs)("div",{className:"form-group",children:[(0,b.jsxs)("label",{children:["Job Description*"," ",(0,b.jsx)("span",{style:{fontSize:"12px",fontWeight:"normal",color:_(g.description)<500?"#dc3545":"#28a745"},children:"(Min 500 chars)"})]}),(0,b.jsx)(N.A,{style:{width:"100%"},html:g.description,onChange:e=>f((t=>({...t,description:(0,k.p)(e)})))}),(0,b.jsxs)("div",{style:{textAlign:"right",fontSize:"12px",color:"#666",marginTop:"4px"},children:[_(g.description)," / 500+ characters"]})]}),(0,b.jsxs)("div",{className:"form-group checkbox-group",children:[(0,b.jsx)("label",{children:"Sponsorship Details"}),(0,b.jsxs)("div",{className:"checkbox-item",style:{display:"flex",alignItems:"center",whiteSpace:"nowrap"},children:[(0,b.jsx)("input",{type:"checkbox",name:"sponsorship",checked:g.sponsorship,onChange:Y}),(0,b.jsx)("span",{children:"Open for sponsorship"})]})]}),(0,b.jsxs)("div",{className:"form-group radio-group-section",children:[(0,b.jsx)("label",{children:"Who is this Job for?"}),(0,b.jsxs)("div",{className:"radio-options",style:{display:"flex",flexWrap:"nowrap",whiteSpace:"nowrap"},children:[(0,b.jsxs)("label",{children:[(0,b.jsx)("input",{type:"radio",name:"visibility_mode",value:"selected",checked:"selected"===g.visibility_mode,onChange:Y}),"Partnered Universities"]}),(0,b.jsxs)("label",{children:[(0,b.jsx)("input",{type:"radio",name:"visibility_mode",value:"public",checked:"public"===g.visibility_mode,onChange:Y}),"Open to all"]})]})]}),"selected"===g.visibility_mode&&(0,b.jsxs)("div",{className:"form-group",children:[(0,b.jsx)("label",{children:"Select Partnered Universities"}),(0,b.jsx)("div",{className:"universities-list",children:T.length>0?T.map((e=>(0,b.jsxs)("label",{className:"checkbox-item",children:[(0,b.jsx)("input",{type:"checkbox",checked:g.selected_universities.includes(e.organization_id),onChange:()=>{return t=e.organization_id,void f((e=>{const s=e.selected_universities;return s.includes(t)?{...e,selected_universities:s.filter((e=>e!==t))}:{...e,selected_universities:[...s,t]}}));var t}}),e.name]},e.organization_id))):(0,b.jsx)("p",{className:"no-data",children:"No partnered universities found."})})]}),(0,b.jsxs)("div",{className:"form-group radio-group-section",children:[(0,b.jsx)("label",{children:"Would you like to collect the applicant\u2019s availability to start?"}),(0,b.jsxs)("div",{className:"radio-options",children:[(0,b.jsxs)("label",{children:[(0,b.jsx)("input",{type:"radio",name:"collect_availability",value:!0,checked:!0===g.collect_availability,onChange:()=>f((e=>({...e,collect_availability:!0})))}),"Yes"]}),(0,b.jsxs)("label",{children:[(0,b.jsx)("input",{type:"radio",name:"collect_availability",value:!1,checked:!1===g.collect_availability,onChange:()=>f((e=>({...e,collect_availability:!1})))}),"No"]})]})]}),(0,b.jsxs)("div",{className:"form-group",children:[(0,b.jsx)("label",{children:"Any other specific questions you want to include in job application?"}),(0,b.jsx)("textarea",{name:"specific_questions",value:g.specific_questions,onChange:Y,placeholder:"Type here..."})]})]})}),(0,b.jsx)("div",{className:"post-job-footer",children:(0,b.jsx)("div",{className:"form-actions",style:{margin:0},children:(0,b.jsx)("button",{className:"btn btn-primary",onClick:async()=>{var e;const t=[];if(g.title||t.push("Job Title"),g.job_type||t.push("Job Type"),null!==(e=g.location)&&void 0!==e&&e.trim()||t.pu
1sh("Location"),g.description||t.push("Job Description"),t.length>0)return z("The following fields are required: "+t.join(", ")+"."),void D(!0);if(!X(g.location))return z("Please select a valid location from the dropdown."),void D(!0);if("selected"===g.visibility_mode&&0===g.selected_universities.length)return z("Please select at least one university."),void D(!0);const s=_(g.description),l=_(g.requirements);if(s<500)return z(`Job Description must be at least 500 characters. Current: ${s}`),void D(!0);if(l>2e3)return z(`Job Requirements must be under 2000 characters. Current: ${l}`),void D(!0);a(!0);let i=g.requirements;if(g.specific_questions){i+=`<br><br><strong>Specific Questions:</strong><br>${g.specific_questions.replace(/\n/g,"<br>")}`}const r=e=>e?parseFloat(e).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"0.00";let h="";(d||u)&&(h=`$${r(d)}/${v} - $${r(u)}/${v}`);const p={title:g.title,description:(0,k.p)(g.description),location:g.location,job_type:g.job_type,work_mode:g.work_mode,salary_range:h,requirements:(0,k.p)(i),sponsorship:g.sponsorship,visibility_mode:"public"===g.visibility_mode?"public":"selected",selected_universities:"public"===g.visibility_mode?[]:g.selected_universities,collect_availability:g.collect_availability,external_job_id:g.external_job_id};try{var m;const e=c?await(0,n.G_)(o.id,p):await(0,n.yf)(p);if(a(!1),!e||e.isAxiosError||null!==(m=e.message)&&void 0!==m&&m.includes("Request failed")||!e.message&&!e.job_id){var x;const t=null===e||void 0===e||null===(x=e.response)||void 0===x?void 0:x.data,s=(null===t||void 0===t?void 0:t.error)||(null===t||void 0===t?void 0:t.message)||(null===e||void 0===e?void 0:e.message)||"Failed to process job.";z(s),D(!0)}else E(!0)}catch(b){a(!1),z("An error occurred."),D(!0)}},children:c?"Update Job":"Post"})})}),(0,b.jsx)(x.A,{isOpen:L,title:"Success",message:c?"Job Updated Successfully!":"Job Posted Successfully!",buttonText:"OK",onClose:()=>{E(!1),i&&i(),s()}}),(0,b.jsx)(m.A,{isOpen:O,title:"Error",message:P,buttonText:"Close",onClose:()=>D(!1)})]})}):null},A=()=>{var e;const t=(0,o.Zp)(),s=(0,o.zy)(),d=(0,l.useRef)(null),p=(0,l.useRef)(null),[w,N]=(0,l.useState)([]),[k,C]=(0,l.useState)(1),[S,_]=(0,l.useState)(0),[A,L]=(0,l.useState)({}),[E,O]=(0,l.useState)([]),[D,P]=(0,l.useState)(!1),[z,J]=(0,l.useState)({jobTypes:[],job_titles:[],location:{withinUS:!0,cityState:[]},work_model:[]}),[R,F]=(0,l.useState)(!1),[$,M]=(0,l.useState)(!1),W=(0,l.useRef)(null),q=(0,l.useRef)(null),H=(0,l.useRef)(null),[I,U]=(0,l.useState)(!1),[Y,B]=(0,l.useState)(!1),[K,X]=(0,l.useState)(!1),[Q,G]=(0,l.useState)(c.uo["7D"]),{authDetails:V,downloadCSV:Z,setListCount:ee,listCount:te,isMobileRecords:se,desktopRecords:le,isMobile:ie}=(0,l.useContext)(r.cy),[oe,ne]=(0,l.useState)([]),{setJobListLoader:ae,JobListloader:re,setLoader:ce}=(0,l.useContext)(r.vR),de=ie?se:le,[he,ue]=(0,l.useState)(""),[pe,me]=(0,l.useState)(null),[xe,be]=(0,l.useState)(!1),[je,ve]=(0,l.useState)(null),[ye,ge]=(0,l.useState)(null),[fe,we]=(0,l.useState)({key:"posted_at",direction:"desc"}),[Ne,ke]=(0,l.useState)(!1),[Ce,Se]=(0,l.useState)(null),[_e,Te]=(0,l.useState)(""),Ae=(0,l.useRef)(null),[Le,Ee]=(0,l.useState)(!1),[Oe,De]=(0,l.useState)(!1),[Pe,ze]=(0,l.useState)(""),[Je,Re]=(0,l.useState)("Please select at least one job"),Fe={Open:"tag-open","Hiring Done":"tag-hiring-done",Cancelled:"tag-cancelled"},$e=e=>{let{field:t}=e;return fe.key!==t?(0,b.jsx)(u.MjW,{className:"ms-1 text-muted",style:{fontSize:"10px",cursor:"pointer"}}):"asc"===fe.direction?(0,b.jsx)(u.XhJ,{className:"ms-1 text-primary",style:{fontSize:"10px",cursor:"pointer"}}):(0,b.jsx)(u.GOR,{className:"ms-1 text-primary",style:{fontSize:"10px",cursor:"pointer"}})},Me=e=>{let t="asc";fe.key===e&&"asc"===fe.direction&&(t="desc");const s={key:e,direction:t};we(s);He(1,1===Q?"Today":3===Q?"3d":7===Q?"7d":10===Q?"10d":30===Q?"1m":"",!1,he,z,s)},We=async(e,t)=>{ce(!0);try{const s=await(0,n.LC)(e,t);s&&(200===s.status||s.message)&&(N((s=>s.map((s=>s.id===e?{...s,status:t}:s)))),ge(null))}catch(s){console.error("Failed to update status:",s)}finally{ce(!1)}},qe=()=>{He(k,1===Q?"Today":3===Q?"3d":7===Q?"7d":10===Q?"10d":30===Q?"1m":"",!1,he,z)};(0,l.useEffect)((()=>{const e=e=>
1{W.current&&W.current.contains(e.target),p.current&&!p.current.contains(e.target)&&(e.target.closest(".job-section")||me(null))},t=e=>{q.current&&!q.current.contains(e.target)&&B(!1)},s=e=>{H.current&&!H.current.contains(e.target)&&ge(null)};return document.addEventListener("mousedown",t),document.addEventListener("mousedown",s),document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("mousedown",s),document.removeEventListener("mousedown",e)}}),[]),(0,l.useEffect)((()=>{var e;if(null!==(e=s.state)&&void 0!==e&&e.jobTitle){var t;ue(null===(t=s.state)||void 0===t?void 0:t.jobTitle);He(k,1===Q?"Today":3===Q?"3d":7===Q?"7d":10===Q?"10d":30===Q?"1m":"",!1,s.state.jobTitle,z)}else He(k,"7d",!0,"")}),[null===s||void 0===s||null===(e=s.state)||void 0===e?void 0:e.jobTitle]),(0,l.useEffect)((()=>{(async()=>{try{const e=await(0,a.jo)(),t={schedule_types:["Full-time","Part-time","Contract","Temporary","Internship","Other"]};L(e?{...t,...e}:t)}catch(e){console.error("Failed to fetch filter options:",e)}})()}),[]);const He=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,s=arguments.length>1?arguments[1]:void 0,l=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:fe;(arguments.length>2?arguments[2]:void 0)?ae(!0):ce(!0);const a={jobTitle:(null===i||void 0===i?void 0:i.job_titles)||[],jobTypes:(null===i||void 0===i?void 0:i.jobTypes)||[],location:{cities:[...(null===i||void 0===i||null===(e=i.location)||void 0===e?void 0:e.cityState)||[],...(null===i||void 0===i?void 0:i.work_model)||[]]}};try{const e=await(0,n.HO)({query:l||"",range:s,page:t,page_size:de,filters:a,sort_by:o.key,sort_order:o.direction});var r,c;if(e)ae(!1),ce(!1),N(e.jobs||[]),ee((null===(r=e.pagination)||void 0===r?void 0:r.total_pages)||0),_((null===(c=e.pagination)||void 0===c?void 0:c.total_items)||0),L((t=>({...t,schedule_types:e.schedule_types||[]}))),ne(e.schedule_types||[])}catch(d){ae(!1),ce(!1),console.error("Failed to fetch jobs:",d)}},Ie=w.length>0&&w.every((e=>E.includes(e.id))),Ue=S>0,Ye=Ue?(k-1)*de+1:0,Be=Ue?Math.min(Ye+w.length-1,S):0,Ke={Contract:{backgroundColor:"#e3f2fd",color:"#0d47a1"},"Full-time":{backgroundColor:"#fce4ec",color:"#880e4f"},Internship:{backgroundColor:"#f3e5f5",color:"#6a1b9a"},"Financial Services":{backgroundColor:"#e2d6f3",color:"#4a235a"},"Part-time":{backgroundColor:"#e1f5fe",color:"#0277bd"},"Full-time and Part-time":{backgroundColor:"#fbe9e7",color:"#d84315"},Contractor:{backgroundColor:"#f9c2ff",color:"#7b1fa2"},"Full-time and Contractor":{backgroundColor:"#ffe4e1",color:"#c2185b"},"Part-time and Contractor":{backgroundColor:"#e0f7fa",color:"#006064"},"Full-time and Internship":{backgroundColor:"#ffe6e6",color:"#ad1457"},Temporary:{backgroundColor:"#FAD4B0",color:"#880e4f"},Other:{backgroundColor:"#f0d9ff",color:"#4a148c"}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("style",{children:"\n .partner-cell:hover .uni-tooltip-box {\n display: block;\n }\n .uni-tooltip-box {\n display: none;\n position: absolute;\n top: 80%;\n left: 50%;\n transform: translateX(-50%);\n background: #333;\n color: white;\n padding: 8px 12px;\n border-radius: 6px;\n z-index: 9999;\n width: max-content;\n max-width: 250px;\n white-space: normal;\n text-align: center;\n font-size: 12px;\n box-shadow: 0 4px 6px rgba(0,0,0,0.15);\n }\n .uni-tooltip-box::after {\n content: '';\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-color: transparent transparent #333 transparent;\n }\n "}),re?(0,b.jsx)(y.A,{}):(0,b.jsxs)("div",{ref:d,className:"page-body-wrapper",style:{minHeight:"100vh",overflowY:"auto",display:"flex",flexDirection:"column",marginLeft:"0px"},children:[(0,b.jsxs)("div",{className:"page-body",style:{flexGrow:1,boxSizing:"border-box"},children:[(0,b.jsx)("div",{className:"dashboard-container",style:{maxWidth:"1440px",margin:"0 auto",padding:"0px 20px",width:"100%"},children:(0,b.jsx)("div",{className:"card shadow-sm",children:(0,b.jsx)("div",{className:"card-body",children:(0,b.jsxs)("div",{className:"row",children:[(0,b.jsxs)("div",{className:"col-md-12 job-manage",children:[(0,b.jsxs)("div",{className:"header-row ",style:{marginBottom:"0px"},children:[(0,b.jsxs)("div",{className:"title-block",children:[(0,b.jsx)("h2",{children:"Jobs"}),(0,b.jsx)("p",{children:"View jobs and send leads "})]}),(0,b.jsxs)("div",{className:"button-group",children:[(0,b.jsxs)("a",{onClick:()=>be(!0),className:"btn btn-primary set-bgbtn",style:{marginRight:"10px"},children:[(0,b.jsx)("i",{className:"fa-solid fa-plus"})," Post Job"]}),(0,b.jsxs)("a",{onClick:async()=>{ae(!0);try{const e=await(0,n.HO)({page:1,page_size:1e5,query:he,range:1===Q?"Today":3===Q?"3d":7===Q?"7d":10===Q?"10d":30===Q?"1m":"",jobTypes:z.jobTypes});if(e&&e.jobs){const t=e.jobs.map((e=>({"Job Title":e.title||"-",Date:e.posted_at?h()(e.posted_at).format("MM/DD/YYYY"):"-",Location:e.location||"-","Job Type":e.job_type||e.schedule_type||"-","Work Model":e.remote?"Remote":"On Site",Applicants:e.applicants_count||"-",Salary:e.salary?(0,g.rX)(e.salary):"-","Partnered Universities":e.partnered_universities||"-"})));if(t.length>0){Z(t,"Job Report")}else console.warn("No job data to export.")}else console.error("Invalid response from get_job_list")}catch(e){console.error("Error exporting job data:",e)}finally{ae(!1)}},className:"btn btn-primary set-bg",style:{marginRight:"10px"},children:[(0,b.jsx)("i",{class:"fas fa-file-download"})," Export"]}),(0,b.jsxs)("button",{onClick:()=>{0!==E.length&&Ee(!0)},className:"btn delete-button",disabled:0===E.length,style:{backgroundColor:E.length>0?"#d90f21":"#f8d7da",color:"white",border:"none",borderRadius:"4px",fontSize:"14px",cursor:E.length>0?"pointer":"not-allowed"},children:[(0,b.jsx)(u.qbC,{className:"me-1"})," Delete Job(s)"]})]})]}),(0,b.jsx)("div",{className:"col-md-12",children:(0,b.jsxs)("div",{className:"d-flex align-items-stretch justify-content-between mt-2 gap-3",style:{marginBottom:"4px"},children:[(0,b.jsx)("div",{className:"btn-group font-12",role:"group","aria-label":"Basic example",children:Object.entries(c.uo).map((e=>{let[t,s]=e;return(0,b.jsx)("button",{className:"btn btn-primary font-12 "+(Q===s?"select":""),onClick:()=>(e=>{G(e),He(k,1===e?"Today":3===e?"3d":7===e?"7d":10===e?"10d":30===e?"1m":"",!1,he,z)})(s),children:t},t)}))}),(0,b.jsxs)("div",{className:"search-input-wrapper",style:{flex:"0 1 25%",minWidth:"180px",maxWidth:"300px",position:"relative",display:"flex",alignItems:"center"},children:[(0,b.jsx)("i",{className:"fa-solid fa-magnifying-glass search-icon",style:{position:"absolute",left:"10px",color:"#aaa"}}),(0,b.jsx)("input",{type:"text",placeholder:"Search Jobs",className:"search-input",value:he,style:{paddingLeft:"30px",width:"100%"},onChange:e=>{const t=e.target.value;ue(t),Ae.current&&clearTimeout(Ae.current),Ae.current=setTimeout((()=>{const e=1===Q?"Today":3===Q?"3d":7===Q?"7d":10===Q?"10d":30===Q?"1m":"";""!==t.trim()?He(k,e,!1,t,z):He(k,"7d",!1,"",z)}),500)}})]})]})})]}),(0,b.jsx)("div",{className:"col-md-12",children:(0,b.jsx)("div",{className:"table-space basic_table",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"col-sm-12",children:(0,b.jsxs)("div",{className:"table-border",children:[(0,b.jsx)("div",{className:"table-responsive",children:(0,b.jsxs)("table",{className:"table table-bordered table-hover align-middle custom-table",children:[(0,b.jsx)("thead",{className:"table-light",children:(0,b.jsxs)("tr",{style:{verticalAlign:"middle",textAlign:"center"},children:[(0,b.jsx)("th",{children:(0,b.jsx)("input",{type:"checkbox",checked:Ie,onCh
1ange:()=>{E.length===w.length?O([]):O(w.map((e=>e.id)))}})}),(0,b.jsx)("th",{className:"text-nowrap",children:"Job Title"}),(0,b.jsx)("th",{className:"text-nowrap",children:"External ID"}),(0,b.jsxs)("th",{className:"text-nowrap",style:{cursor:"pointer"},onClick:()=>Me("posted_at"),children:["Date ",(0,b.jsx)($e,{field:"posted_at"})]}),(0,b.jsx)("th",{className:"text-nowrap",children:"Location"}),(0,b.jsxs)("th",{className:"position-relative text-nowrap",ref:W,children:["Job Type",I&&(0,b.jsxs)("div",{className:"dropdown-menu show p-2",style:{minWidth:"200px",zIndex:10},children:[(0,b.jsxs)("div",{className:"form-check",children:[(0,b.jsx)("input",{className:"form-check-input",type:"checkbox",checked:D,onChange:()=>{let e=[];e=D?[]:oe,J((t=>({...t,jobTypes:e}))),P(!D);He(k,1===Q?"Today":3===Q?"3d":7===Q?"7d":10===Q?"10d":30===Q?"1m":"",!1,he,{...z,jobTypes:e})}}),(0,b.jsx)("label",{style:{fontSize:"12px"},className:"form-check-label",children:"Select All"})]}),oe.map((e=>(0,b.jsxs)("div",{className:"form-check",children:[(0,b.jsx)("input",{className:"form-check-input",type:"checkbox",value:e,checked:z.jobTypes.includes(e),onChange:()=>(e=>{let t=[];t=z.jobTypes.includes(e)?z.jobTypes.filter((t=>t!==e)):[...z.jobTypes,e],J((e=>({...e,jobTypes:t}))),P(t.length===oe.length),He(k,1===Q?"Today":3===Q?"3d":7===Q?"7d":10===Q?"10d":30===Q?"1m":"",!1,he,{...z,jobTypes:t})})(e)}),(0,b.jsx)("label",{style:{fontSize:"12px"},className:"form-check-label",children:e})]},e)))]})]}),(0,b.jsx)("th",{className:"text-nowrap",children:"Work Model"}),(0,b.jsx)("th",{style:{minWidth:"40px",cursor:"pointer"},onClick:()=>Me("applicants_count"),children:(0,b.jsxs)("div",{style:{whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip"},children:["Total Applicants ",(0,b.jsx)($e,{field:"applicants_count"})]})}),(0,b.jsxs)("th",{style:{whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip",cursor:"pointer"},onClick:()=>Me("salary"),children:["Salary ",(0,b.jsx)($e,{field:"salary"})]})," ",(0,b.jsx)("th",{style:{minWidth:"100px"},children:(0,b.jsx)("div",{style:{whiteSpace:"nowrap",overflow:"visible",textOverflow:"clip"},children:"Partnered University"})}),(0,b.jsx)("th",{style:{whiteSpace:"nowrap"},children:"Status"}),(0,b.jsx)("th",{style:{whiteSpace:"nowrap"},children:"Action"})]})}),(0,b.jsx)("tbody",{children:w.map((e=>{var s,l;const i=E.includes(e.id),o={backgroundColor:i?"#e6f7ff":"transparent"};return(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{style:o,children:(0,b.jsx)("input",{type:"checkbox",checked:i,onChange:()=>{return t=e.id,void O((e=>e.includes(t)?e.filter((e=>e!==t)):[...e,t]));var t}})}),(0,b.jsx)("td",{style:{...o,cursor:"pointer"},title:`${e.title}`,className:"job-section",onClick:()=>(e=>{me(e)})(e),children:(null===(s=e.title)||void 0===s?void 0:s.length)>20?`${e.title.slice(0,20)}...`:e.title}),(0,b.jsx)("td",{className:"text-nowrap",style:o,children:e.external_job_id||"-"}),(0,b.jsx)("td",{className:"text-nowrap",style:o,children:h()(e.posted_at).format("MM/DD/YYYY")}),(0,b.jsx)("td",{title:`${e.location}`,style:o,children:(null===(l=e.location)||void 0===l?void 0:l.length)>20?`${e.location.slice(0,20)}...`:e.location}),(0,b.jsx)("td",{style:o,children:(0,b.jsx)("span",{style:{padding:"4px 8px",borderRadius:"4px",fontSize:"13px",...Ke[e.job_type||e.schedule_type]||{backgroundColor:"#f0f0f0",color:"#333"}},children:e.job_type||e.schedule_type})}),(0,b.jsx)("td",{style:o,children:(0,b.jsx)("span",{className:e.remote?"tag-remote":"tag-onsite",children:e.remote?"Remote":"On Site"})}),(0,b.jsx)("td",{className:"text-center",style:o,children:(0,b.jsxs)("a",{onClick:s=>{s.stopPropagation(),t(`/employer/jobs/${e.id}/applicants`,{state:{jobTitle:e.title,jobStatus:e.status}})},style:{cursor:"pointer",color:"#235594",textDecoration:"underline"},children:["View (",e.applicants_count||0,")"]})}),(0,b.jsx)("td",{style:o,children:e.salary&&"NULL"!==e.salary?(0,b.jsx)("span",{title:(0,g.rX)(e.salary),children:(0,g.rX)(e.salary)}):"-"})," ",(0,b.jsxs)("td",{className:"text-center partner-cell",style:{...o,position:"relative"},children:[(0,b.jsx)("div",{style:{maxWidth:"150px",margin:"0 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.partnered_universities||"-"}),e.partnered_universities&&e.partnered_universities.length>20&&(0,b.jsx)("div",{className:"uni-tooltip-box",children:e.partnered_universities})]}),(0,b.jsx)("td",{style:o,children:(0,b.jsx)("span",{className:Fe[e.status]||"tag-open",children:e.status})}),(0,b.jsxs)("td",{style:o,className:"position-relative text-center",children:[(0,b.jsx)("button",{className:"btn btn-link p-0 text-muted",onClick:t=>{t.stopPropagation(),ge(ye===e.id?null:e.id)},children:(0,b.jsx)(u.xOx,{})}),ye===e.id&&(0,b.jsxs)("div",{ref:H,className:"quick-status-dropdown shadow-lg p-2",onClick:e=>e.stopPropagation(),style:{position:"absolute",right:"100%",top:"0",zIndex:100,backgroundColor:"#fff",minWidth:"150px",borderRadius:"8px",border:"1px solid #eee",textAlign:"left"},children:[(0,b.jsx)("h6",{className:"fw-bold font-12 mb-2 border-bottom pb-1",children:"Management"}),(0,b.jsx)("button",{className:"dropdown-item font-12 py-1",onClick:()=>(async e=>{ce(!0);try{const t=await(0,n.UW)(e.id);t&&t.job?(ve(t.job),be(!0)):(ve(e),be(!0))}catch(t){console.error("Error fetching job for edit:",t),ve(e),be(!0)}finally{ce(!1),ge(null)}})(e),children:"Edit Details"}),(0,b.jsx)("button",{className:"dropdown-item font-12 py-1 text-danger",onClick:()=>{return t=e.id,Se(t),Te("filled"),ke(!0),void ge(null);var t},children:"Close Job"}),(0,b.jsx)("h6",{className:"fw-bold font-12 mt-2 mb-2 border-bottom pb-1",children:"Update Status"}),(0,b.jsx)("button",{className:"dropdown-item font-12 py-1",onClick:()=>We(e.id,"Open"),children:"Open"}),(0,b.jsx)("button",{className:"dropdown-item font-12 py-1",onClick:()=>We(e.id,"Hiring Done"),children:"Hiring Done"}),(0,b.jsx)("button",{className:"dropdown-item font-12 py-1",onClick:()=>We(e.id,"Cancelled"),children:"Cancelled"})]})]})]},e.id)}))})]})}),(0,b.jsxs)("div",{className:"d-flex justify-content-between align-items-center mt-2 px-2",children:[(0,b.jsx)("div",{style:{fontSize:"12px"},children:Ue?`Showing ${Ye}-${Be} of ${S} entries`:"Showing 0 of 0 entries"}),(0,b.jsx)(i.A,{currentPage:k,totalPages:te,onPageChange:e=>{C(e);He(e,1===Q?"Today":3===Q?"3d":7===Q?"7d":10===Q?"10d":30===Q?"1m":"",!1,he,z)}})]})]})})})})})]})})})}),Ne&&(0,b.jsx)("div",{className:"modal d-block",style:{backgroundColor:"rgba(0,0,0,0.5)",zIndex:1050},children:(0,b.jsx)("div",{className:"modal-dialog modal-dialog-centered",children:(0,b.jsxs)("div",{className:"modal-content",children:[(0,b.jsxs)("div",{className:"modal-header",children:[(0,b.jsx)("h5",{className:"modal-title",children:"Close Job"}),(0,b.jsx)("button",{type:"button",className:"btn-close",onClick:()=>ke(!1)})]}),(0,b.jsxs)("div",{className:"modal-body",children:[(0,b.jsx)("p",{children:"Are you sure you want to close this job?"}),(0,b.jsxs)("div",{className:"mb-3",children:[(0,b.jsx)("label",{htmlFor:"closeReason",className:"form-label",children:"Reason for closing"}),(0,b.jsxs)("select",{className:"form-select",id:"closeReason",value:_e,onChange:e=>Te(e.target.value),children:[(0,b.jsx)("option",{value:"filled",children:"Filled (Hiring Done)"}),(0,b.jsx)("option",{value:"cancelled",children:"Cancelled"})]})]})]}),(0,b.jsxs)("div",{className:"modal-footer",children:[(0,b.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:()=>ke(!1),children:"Cancel"}),(0,b.jsx)("button",{type:"button",className:"btn btn-danger",onClick:async()=>
1{if(Ce){ce(!0);try{const e=await(0,n.jQ)(Ce,_e||"filled");e&&404!==e.status&&(qe(),ke(!1),Se(null),Te(""))}catch(e){console.error("Close job failed:",e)}finally{ce(!1)}}},children:"Close Job"})]})]})})}),R&&(0,b.jsx)(j,{selectedJobs:E,onClose:()=>F(!1)}),xe&&(0,b.jsx)(T,{isOpen:xe,onClose:()=>{be(!1),ve(null)},onSuccess:qe,jobData:je}),Le&&(0,b.jsx)(v.A,{isOpen:Le,title:"Confirm Delete",message:`Are you sure you want to delete ${E.length} job(s)?`,subMessage:"This action cannot be undone.",confirmText:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("i",{className:"fas fa-trash me-2"})," Delete"]}),cancelText:"Cancel",action:"Delete",onConfirm:async()=>{Ee(!1),ce(!0);try{const s=await(0,n.c6)(E);var e,t;if(s&&400!==s.status&&500!==s.status&&!s.isAxiosError)O([]),ze(s.message||"Job(s) deleted successfully."),De(!0),qe();else Re((null===s||void 0===s||null===(e=s.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.message)||(null===s||void 0===s?void 0:s.message)||"Failed to delete job(s)."),M(!0)}catch(i){var s,l;console.error("Bulk delete failed:",i),Re((null===i||void 0===i||null===(s=i.response)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.message)||(null===i||void 0===i?void 0:i.message)||"An error occurred while deleting."),M(!0)}finally{ce(!1)}},onCancel:()=>Ee(!1)}),(0,b.jsx)(x.A,{isOpen:Oe,title:"Success!",message:Pe,buttonText:"OK",onClose:()=>De(!1)}),(0,b.jsx)(m.A,{isOpen:$,title:"Alert!",message:Je,buttonText:"OK",onClose:()=>M(!1)})]}),pe&&(0,b.jsx)("div",{ref:p,children:(0,b.jsx)(f.A,{job:pe,onClose:()=>me(null),onJobApplied:()=>{He(k,1===Q?"Today":`${Q}d`,!1,he,z)}})})]})]})}},5458:(e,t,s)=>{s.d(t,{Fq:()=>o,SY:()=>a,vS:()=>n});var l=s(8753),i=s(484);const o=async()=>await(0,i._d)(`${l.s}/employer/universities`),n=async e=>await(0,i.S3)(`${l.s}/employer/partnerships`,e),a=async()=>await(0,i._d)(`${l.s}/employer/partnered_universities`)},8134:(e,t,s)=>{s.d(t,{A:()=>i});s(5043);var l=s(579);const i=e=>{let{currentPage:t,totalPages:s,hasNext:i,hasPrev:o,onPageChange:n}=e;const a=Number.isFinite(s)?Math.max(0,s):0,r=a>0,c=!r||!("boolean"===typeof o?o:t>1),d=!r||!("boolean"===typeof i?i:t<a);return(0,l.jsx)("nav",{className:"mb-2",children:(0,l.jsxs)("ul",{className:"pagination justify-content-end mb-0",children:[(0,l.jsx)("li",{className:"page-item "+(c?"disabled":""),children:(0,l.jsx)("button",{className:"page-link",style:{fontSize:"12px"},onClick:()=>!c&&n(t-1),disabled:c,children:"Previous"})}),(()=>{if(!r)return[];const e=[];if(a<=5)for(let t=1;t<=a;t++)e.push(t);else{e.push(1),t>3&&e.push("...");const s=Math.max(2,t-1),l=Math.min(a-1,t+1);for(let t=s;t<=l;t++)e.push(t);t<a-2&&e.push("..."),e.push(a)}return e})().map(((e,s)=>(0,l.jsx)("li",{className:`page-item ${e===t?"active":""} ${"..."===e?"disabled":""}`,children:(0,l.jsx)("button",{style:{fontSize:"12px"},className:"page-link "+(e===t?"pageBtn":""),onClick:()=>"..."!==e&&n(e),children:e})},s))),(0,l.jsx)("li",{className:"page-item "+(d?"disabled":""),children:(0,l.jsx)("button",{className:"page-link",style:{fontSize:"12px"},onClick:()=>!d&&n(t+1),disabled:d,children:"Next"})})]})})}},8540:(e,t,s)=>{s.d(t,{A:()=>o});s(5043);var l=s(3372),i=(s(2420),s(579));const o=()=>(0,i.jsx)("div",{style:{marginLeft:"0px"},className:"page-body-wrapper",children:(0,i.jsx)("div",{className:"page-body",children:(0,i.jsx)("div",{className:"container-fluid default-dashboard",children:(0,i.jsx)("div",{className:"card shadow-sm p-3",children:(0,i.jsx)("div",{className:"card-body",children:(0,i.jsxs)("div",{className:"row",children:[(0,i.jsxs)("div",{className:"col-md-12 job-manage",children:[(0,i.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-3",children:[(0,i.jsxs)("div",{style:{width:"200px"},children:[(0,i.jsx)(l.A,{height:30}),(0,i.jsx)(l.A,{width:150,height:20})]}),(0,i.jsxs)("div",{className:"d-flex gap-2",children:[(0,i.jsx)(l.A,{width:100,height:35}),(0,i.jsx)(l.A,{width:120,height:35})]})]}),(0,i.jsxs)("div",{className:"d-flex gap-2 mb-3",children:[[1,2,3].map(((e,t)=>(0,i.jsx)(l.A,{width:100,height:35},t))),(0,i.jsx)(l.A,{width:200,height:35}),(0,i.jsx)(l.A,{width:150,height:35}),(0,i.jsx)(l.A,{width:150,height:35})]})]}),(0,i.jsx)("div",{className:"col-md-12",children:(0,i.jsxs)("div",{className:"table-space basic_table",children:[(0,i.jsx)("div",{className:"table-responsive",children:(0,i.jsxs)("table",{className:"table table-bordered align-middle",children:[(0,i.jsx)("thead",{children:(0,i.jsx)("tr",{children:[...Array(10)].map(((e,t)=>(0,i.jsx)("th",{children:(0,i.jsx)(l.A,{height:20})},t)))})}),(0,i.jsx)("tbody",{children:Array.from({length:6}).map(((e,t)=>(0,i.jsx)("tr",{children:[...Array(10)].map(((e,t)=>(0,i.jsx)("td",{children:(0,i.jsx)(l.A,{height:20})},t)))},t)))})]})}),(0,i.jsxs)("div",{className:"d-flex justify-content-between align-items-center mt-2 px-2",children:[(0,i.jsx)(l.A,{width:150,height:20}),(0,i.jsx)(l.A,{width:200,height:30})]})]})})]})})})})})})}}]); 2//# sourceMappingURL=100.af00e1de.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.