PageSourceSearch

https://www.admin.academicjobs.com/static/js/5556.e5dcf7e2.chunk.js

js academicjobs.com collected 2026-09-24 21:50:48 UTC 10,867 bytes, 2 lines download raw bytes

1/*! For license information please see 5556.e5dcf7e2.chunk.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkacademicJobs=globalThis.webpackChunkacademicJobs||[]).push([[5556],{9036(e,t,s){s.d(t,{A:()=>b});var a=s(9950),r=s(6230);const l=(0,r.A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),n=(0,r.A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),i=(0,r.A)("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);var d=s(7684),o=s(7453);const c=(0,r.A)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);var m=s(2952),x=s(4414);const h=[{key:"jobSatisfaction",label:"Overall Job Satisfaction"},{key:"workLifeBalance",label:"Work-Life Balance"},{key:"careerGrowth",label:"Career Growth and Development"},{key:"management",label:"Management and Leadership"},{key:"compensation",label:"Compensation and Benefits"},{key:"companyCulture",label:"Company Culture and Values"},{key:"dei",label:"Diversity, Equity, and Inclusion (DEI)"},{key:"teamCollaboration",label:"Team Collaboration and Communication"},{key:"innovation",label:"Innovation and Creativity"},{key:"recommendation",label:"Likelihood to Recommend"}],y=e=>{let{value:t,max:s=10}=e;const a=(t||0)/s*100,r=t>=8?"bg-emerald-500":t>=6?"bg-amber-400":"bg-red-400";return(0,x.jsxs)("div",{className:"flex items-center gap-2",children:[(0,x.jsx)("div",{className:"flex-1 h-2 bg-gray-100 rounded-full overflow-hidden",children:(0,x.jsx)("div",{className:`h-full rounded-full transition-all duration-500 ${r}`,style:{width:`${a}%`}})}),(0,x.jsxs)("span",{className:"text-sm font-semibold w-12 text-right tabular-nums",children:[null!==t&&void 0!==t?t:"\u2014",(0,x.jsx)("span",{className:"text-gray-400 font-normal",children:"/10"})]})]})},p=e=>{let{commentObj:t,onReply:s}=e;console.log(t);const{id:r,comment:i,firstName:d,lastName:o,replies:c=[]}=t,m=!d&&!o,[h,y]=(0,a.useState)(!1),[p,u]=(0,a.useState)(""),[g,b]=(0,a.useState)(!1);return(0,x.jsx)("div",{className:"p-3 bg-gray-50 rounded-lg border border-gray-100 space-y-2",children:(0,x.jsxs)("div",{className:"flex items-start gap-3",children:[(0,x.jsx)("div",{className:"w-7 h-7 rounded-full bg-gray-200 flex items-center justify-center shrink-0 mt-0.5",children:m?(0,x.jsx)(l,{size:13,className:"text-gray-400"}):(0,x.jsx)(n,{size:13,className:"text-gray-500"})}),(0,x.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,x.jsx)("p",{className:"text-xs font-semibold text-gray-500 mb-0.5",children:m?(0,x.jsx)("span",{className:"italic text-gray-400",children:"Anonymous"}):`${d[0]}. ${o}`}),(0,x.jsx)("p",{className:"text-sm text-gray-700",children:i}),(0,x.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,x.jsx)("button",{onClick:()=>y(e=>!e),className:"text-xs font-semibold text-blue-500 hover:text-blue-700",children:"Reply"}),c.length>0&&(0,x.jsxs)("span",{className:"text-xs text-gray-400",children:[c.length," repl",1===c.length?"y":"ies"]})]}),c.length>0&&(0,x.jsx)("div",{className:"mt-2 space-y-2",children:c.map(e=>(0,x.jsxs)("div",{className:"ml-4 p-2 rounded-md border border-gray-100 bg-white",children:[(0,x.jsx)("p",{className:"text-xs font-semibold text-gray-500 mb-0.5",children:"Employer"}),(0,x.jsxs)("p",{className:"text-sm text-gray-700",children:[e.reply," ",(0,x.jsx)("span",{className:"justify-end text-xs text-gray-400",children:new Date(e.created_at).toLocaleDateString()})]})]},e.id))}),h&&(0,x.jsxs)("div",{className:"mt-2 ml-4 space-y-2",children:[(0,x.jsx)("textarea",{value:p,onChange:e=>u(e.target.value),rows:3,className:"w-full text-sm border border-gray-200 rounded-lg p-2 focus:outline-none focus:ring-2 focus:ring-blue-200",placeholder:"Write a reply..."}),(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsx)("button",{onClick:async()=>
2{if(p.trim()){b(!0);try{await s(r,p.trim()),u(""),y(!1)}finally{b(!1)}}},disabled:g||!p.trim(),className:"px-3 py-1.5 text-xs font-semibold rounded-lg bg-blue-500 text-white disabled:opacity-50",children:g?"Posting...":"Post reply"}),(0,x.jsx)("button",{onClick:()=>{y(!1),u("")},className:"px-3 py-1.5 text-xs font-semibold rounded-lg border border-gray-200 text-gray-600",children:"Cancel"})]})]})]})]})})},u=e=>{let{metricKey:t,label:s,score:r,comments:l=[],refetch:n}=e;const[c]=(0,m.ZN)(),[h,u]=(0,a.useState)(!1),g=l.length>0;return(0,x.jsxs)("div",{className:"border border-gray-200 rounded-xl overflow-hidden bg-white shadow-sm",children:[(0,x.jsxs)("div",{className:"px-5 py-4 flex items-center gap-4",children:[(0,x.jsxs)("div",{className:"flex-1",children:[(0,x.jsx)("p",{className:"text-sm font-semibold text-gray-700 mb-1.5",children:s}),(0,x.jsx)(y,{value:r})]}),g?(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("button",{onClick:()=>u(!h),className:"shrink-0 flex items-center gap-1 text-xs font-semibold text-blue-500 hover:text-blue-700 transition-colors",children:[(0,x.jsx)(i,{size:13}),l.length," comment",1!==l.length?"s":"",h?(0,x.jsx)(d.A,{size:13}):(0,x.jsx)(o.A,{size:13})]})}):(0,x.jsx)("span",{className:"text-xs text-gray-300 shrink-0",children:"No comments"})]}),h&&g&&(0,x.jsx)("div",{className:"px-5 pb-4 space-y-2 border-t border-gray-100 pt-3",children:l.map((e,s)=>(0,x.jsx)(p,{commentObj:e,onReply:async(e,s)=>{await c({rankingId:e,reply:s,field:t}).unwrap(),n()}},e.id||s))})]})},g=e=>{let{employerId:t,refetch:s}=e;const[a,{isLoading:r}]=(0,m.Vn)();return(0,x.jsxs)("form",{onSubmit:async e=>{e.preventDefault();const r=e.currentTarget,l=Object.fromEntries(h.map(e=>{let{key:t}=e;return[t,Number(r.elements[t].value)]}));try{await a({employerId:t,...l}).unwrap(),r.reset(),s()}catch(i){var n;alert((null===(n=i.data)||void 0===n?void 0:n.message)||"Failed to add review.")}},className:"bg-white border border-gray-200 rounded-xl p-5 shadow-sm space-y-4",children:[(0,x.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-3",children:h.map(e=>{let{key:t,label:s}=e;return(0,x.jsxs)("label",{className:"flex items-center justify-between gap-3",children:[(0,x.jsx)("span",{className:"text-xs text-gray-600",children:s}),(0,x.jsx)("input",{name:t,type:"number",min:1,max:10,step:1,required:!0,className:"w-16 text-sm border border-gray-200 rounded p-1 text-center"})]},t)})}),(0,x.jsx)("button",{type:"submit",disabled:r,className:"px-4 py-2 text-sm font-semibold rounded-lg bg-blue-500 text-white disabled:opacity-50",children:r?"Adding...":"Add review"})]})};function b(e){var t;let{employerId:s,canAddReview:a=!1}=e;const{data:r,isLoading:l,refetch:n}=(0,m.GK)({employerId:s},{skip:!s}),i=(null===r||void 0===r||null===(t=r.comments)||void 0===t?void 0:t.comments)||{},d=(null===r||void 0===r?void 0:r.averages)||{};if(!s)return(0,x.jsx)("div",{className:"p-6 text-gray-500",children:"No employer selected."});if(l)return(0,x.jsx)("div",{className:"p-6 text-gray-500",children:"Loading reviews..."});const o=(h.reduce((e,t)=>{let{key:s}=t;return e+(d[s]||0)},0)/h.length).toFixed(1);return(0,x.jsxs)("div",{className:"space-y-6 max-w-4xl",children:[(0,x.jsxs)("div",{className:"flex items-center gap-3",children:[(0,x.jsx)(c,{size:22,className:"text-gray-600"}),(0,x.jsx)("h2",{className:"text-2xl font-bold text-gray-800",children:"Employee Reviews"})]}),(0,x.jsxs)("div",{className:"bg-white border border-gray-200 rounded-xl p-5 shadow-sm flex flex-col sm:flex-row items-start sm:items-center gap-6",children:[(0,x.jsxs)("div",{className:"text-center shrink-0",children:[(0,x.jsx)("p",{className:"text-5xl font-bold text-gray-800",children:o}),(0,x.jsx)("p",{className:"text-xs text-gray-400 mt-1",children:"Overall avg"}),(0,x.jsx)("p",{className:"text-xs text-gray-300 mt-0.5",children:"out of 10"})]}),(0,x.jsx)("div",{className:"flex-1 w-full grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-3",children:h.map(e=>{let{key:t,label:s}=e;return(0,x.jsxs)("div",{children:[(0,x.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:s}),(0,x.jsx)(y,{value:d[t]})]},t)})})]}),a&&(0,x.jsxs)("div",{children:[(0,x.jsxs)("h3",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wide mb-3",children:["Add Review (",(null===r||void 0===r?void 0:r.totalRatings)||0," so far)"]}),(0,x.jsx)(g,{employerId:s,refetch:n})]}),(0,x.jsxs)("div",{children:[(0,x.jsx)("h3",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wide mb-3",children:"Comments by Category"}),(0,x.jsx)("div",{className:"space-y-3",children:h.map(e=>{let{key:t,label:s}=e;return(0,x.jsx)(u,{metricKey:t,label:s,score:d[t],comments:i[t]||[],refetch:n},t)})})]})]})}},5556(e,t,s){s.r(t),s.d(t,{default:()=>n});var a=s(9036),r=s(3501),l=s(4414);function n(){const e=(0,r.d4)(e=>e.auth.userInfo).employer_id;return(0,l.jsx)(a.A,{employerId:e})}},6230(e,t,s){s.d(t,{A:()=>
2o});var a=s(9950);const r=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},l=function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter((e,t,s)=>Boolean(e)&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim()},n=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const d=(0,a.forwardRef)((e,t)=>{let{color:s="currentColor",size:r=24,strokeWidth:d=2,absoluteStrokeWidth:o,className:c="",children:m,iconNode:x,...h}=e;return(0,a.createElement)("svg",{ref:t,...i,width:r,height:r,stroke:s,strokeWidth:o?24*Number(d)/Number(r):d,className:l("lucide",c),...!m&&!n(h)&&{"aria-hidden":"true"},...h},[...x.map(e=>{let[t,s]=e;return(0,a.createElement)(t,s)}),...Array.isArray(m)?m:[m]])}),o=(e,t)=>{const s=(0,a.forwardRef)((s,n)=>{let{className:i,...o}=s;return(0,a.createElement)(d,{ref:n,iconNode:t,className:l(`lucide-${c=r(e),c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...o});var c});return s.displayName=r(e),s}},7453(e,t,s){s.d(t,{A:()=>a});const a=(0,s(6230).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},7684(e,t,s){s.d(t,{A:()=>a});const a=(0,s(6230).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])}}]);

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.