PageSourceSearch

https://www.excelrs.dev/_next/static/chunks/app/%5Busername%5D/FeedReview/page-1117b72bf38c131e.js

js excelrs.dev collected 2026-09-24 15:00:57 UTC 10,572 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5826],{97014:function(e,t,r){Promise.resolve().then(r.bind(r,93709))},87138:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var n=r(231),a=r.n(n)},39350:function(e,t,r){"use strict";r.d(t,{w_:function(){return o}});var n=r(2265),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=n.createContext&&n.createContext(a),l=function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function o(e){return function(t){return n.createElement(i,l({attr:l({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return n.createElement(t.tag,l({key:r},t.attr),e(t.child))})}(e.child))}}function i(e){var t=function(t){var r,a=e.attr,s=e.size,o=e.title,i=c(e,["attr","size","title"]),u=s||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,i,{className:r,style:l(l({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&n.createElement("title",null,o),e.children)};return void 0!==s?n.createElement(s.Consumer,null,function(e){return t(e)}):t(a)}},93709:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(57437);r(2265);var a=r(24485),s=r(65118),l=r(14063),c=e=>{let{value:t}=e,r="";for(let e=0;e<t;e++)r+="⭐";return(0,n.jsx)("div",{children:r})},o=r(87138),i=e=>{let{params:t}=e,{username:r}=t,{isLoading:i,isError:u,data:d}=(0,s.a)({queryKey:["feedReview",r],queryFn:()=>(0,a.RF)(r)}),{data:f}=(0,s.a)({queryKey:["feedback",r],queryFn:()=>(0,a.qm)(r)});if(i)return(0,n.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,n.jsx)(l.lbL,{className:"animate-spin text-4xl text-gray-500"})});if(u)return(0,n.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,n.jsx)(l.lbL,{className:"animate-spin text-4xl text-gray-500"})});let h=d._id,m=null==f?void 0:f.feedbacks.filter(e=>e.candidateId===h),x=0,p=0,v=0,y=0,w=0;if(m&&m.length>0){m.forEach(e=>{e.scores&&"number"==typeof e.scores.availability&&(x+=e.scores.availability),e.scores&&"number"==typeof e.scores.communication&&(p+=e.scores.communication),e.scores&&"number"==typeof e.scores.leadership&&(v+=e.scores.leadership),e.scores&&"number"==typeof e.scores.ownership&&(y+=e.scores.ownership),e.scores&&"number"==typeof e.scores.technical&&(w+=e.scores.technical)});let e=m.length,t=e>0?x/e:0,r=e>0?p/e:0,a=e>0?v/e:0,s=e>0?y/e:0,i=e>0?w/e:0,u=(t+r+a+s+i)/5;return(0,n.jsx)("div",{className:"bg-stone-200 p-4 md:p-8 min-h-screen flex flex-col md:gap-2",children:(0,n.jsxs)("div",{className:"bg-white w-full md:w-[80%] md:min-h-screen pt-0 rounded-lg shadow-md hover:shadow-xl hover:z-100 flex flex-col mx-auto",children:[(0,n.jsxs)("div",{className:"flex flex-col md:flex-row items-center justify-between p-4",children:[(0,n.jsxs)("div",{className:"text-4xl p-4 font-bold flex flex-col",children:[null==d?void 0:d.fullName,(0,n.jsx)("div",{className:"text-sm ml-1 text-gray-400",children:"Software Engineer"})]}),(0,n.jsx)("div",{className:"items-center ml-10 flex flex-col p-4",children:(0,n.jsx)(o.default,{href:"/".concat(null==d?void 0:d.username,"/FeedReview/reviewform"),children:(0,n.jsxs)("button",{className:"p-3 bg-blue-400 text-white flex items-center hover:bg-blue-600",children:[(0,n.jsx)(l.yGM,{className:"text-lg mr-2"}),"Write a Review"]})})})]}),(0,n.jsxs)("div",{className:"font-bold text-7xl p-8 pt-0 flex flex-col md:flex-row items-center",children:[(0,n.jsx)("span",{className:"text-yellow-400",children:u}),(0,n.jsx)("div",{className:"text-2xl ml-4 mt-auto mb-2",children:(0,n.jsx)(c,{value:u})}),(0,n.jsxs)("span",{className:"text-sm font-bold ml-4 mt-auto mb-2 text-gray-600",children:[e," Reviews"]})]}),(0,n.jsxs)("div",{className:"flex flex-col mb-10 p-8 pt-0",children:[(0,n.jsxs)("div",{className:"flex flex-row",children:[(0,n.jsx)("span",{className:"font-bold",children:"Availability:"}),(0,n.jsx)(c,{value:t})]}),(0,n.jsxs)("div",{className:"flex flex-row",children:[(0,n.jsx)("span",{className:"font-bold",children:"Communication:"}),(0,n.jsx)(c,{value:r})]}),(0,n.jsxs)("div",{className:"flex flex-row",children:[(0,n.jsx)("span",{className:"font-bold",children:"Leadership:"}),(0,n.jsx)(c,{value:a})]}),(0,n.jsxs)("div",{className:"flex flex-row",children:[(0,n.jsx)("span",{className:"font-bold",children:"Ownership:"}),(0,n.jsx)(c,{value:s})]}),(0,n.jsxs)("div",{className:"flex flex-row",children:[(0,n.jsx)("span",{className:"font-bold",children:"Technical:"}),(0,n.jsx)(c,{value:i})]})]}),(0,n.jsx)("hr",{className:"border-gray-300 w-[90%] mx-auto"}),(0,n.jsx)("div",{className:"p-8 flex flex-col ",children:(0,n.jsx)("div",{className:"flex flex-wrap justify-center",children:null==m?void 0:m.map(e=>(0,n.jsx)("div",{className:"p-8 flex flex-col border border-gray-200 rounded-lg shadow-lg mb-4 mx-2",children:(0,n.jsxs)("div",{className:"flex flex-row",children:[(0,n.jsx)("div",{className:"mr-5",children:(0,n.jsx)(l.m3W,{className:"text-3xl"})}),(0,n.jsxs)("div",{className:"font-bold text-xl flex flex-col",children:[e.reviewerId,(0,n.jsx)("span",{className:"font-bold text-gray-400 text-sm mt-1",children:new Date(e.feedbackDate).toLocaleDateString()}),e.scores&&Object.entries(e.scores).map(e=>{let[t,r]=e;return(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsxs)("span",{className:"mr-2",children:[t,":"]}),(0,n.jsx)(c,{value:r})]},t)}),(0,n.jsx)("span",{children:e.summary})]})]})},e._id))})})]})})}return null}},58357:function(e,t,r){"use strict";r.d(t,{CT:function(){return n},bz:function(){return s},nL:function(){return a}});let n=(r(20357).env.NEXT_PUBLIC_CLOUD_API_URL||"https://excelrs-cloud-new-1069037816864.asia-south1.run.app").replace(/\/+$/,""),a="https://powr-api.lawazia.tech";function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(e||"").replace(/^\/+/,"");return t?"".concat(a,"/").concat(t):a}},28388:function(e,t,r){"use strict";r.d(t,{oD:function(){return a}});var n=r(20357);let a=120;n.env.STATIC_PROFILE_PARAM_LIMIT},24485:function(e,t,r){"use strict";r.d(t,{Q_:function(){return y},Ax:function(){return j},p8:function(){return h},XQ:function(){return v},RF:function(){return f},qm:function(){return p},Fe:function(){return w},qr:function(){return x}});var n=r(65399),a=r(2265),s=r(58357),l=(r(28388),r(38472));let c=()=>{try{let{useAuthStore:e}=r(96450);return e.getState().token}catch(t){var e;return console.warn("Store not available, falling back to localStorage"),null===(e=localStorage)||void 0===e?void 0:e.getItem("accessToken")}return""},o=l.Z.create({baseURL:"/api"});async function i(e){let t="".concat(s.CT,"/profiles/by-username/").concat(encodeURIComponent(e)),r=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(404===r.status)return null;if(!r.ok){let e=await r.text();throw Error("Error fetching candidate: ".concat(r.statusText," - ").concat(e))}return r.json()}async function u(e,t){let r="".concat(s.CT,"/profiles/by-username/").concat(encodeURIComponent(e)),n=await fetch(r,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}});if(404===n.status)return null;if(!n.ok){let e=await n.text();throw Error("Error fetching candidate: ".concat(n.statusText," - ").concat(e))}return n.json()}o.interceptors.request.use(e=>{let t=c();return t&&(e.headers.Authorization="Bearer ".concat(t)),e}),l.Z.create({baseURL:"/api"}).interceptors.request.use(e=>{let t=c();return t&&(e.headers.Authorization="Bearer ".concat(t)),e}),(0,a.cache)(i);let d=(0,a.cache)(u),f=async(e,t)=>{let r=null!=t?t:"";if(!r){let t=await i(e);if(null===t)throw Error("Error fetching candidate: Not Found");return t}let n=await d(e,r);if(null===n)throw Error("Error fetching candidate: Not Found");return n},h=async e=>{try{let t=new URLSearchParams;e.skills&&t.set("skills",JSON.stringify(e.skills)),e.pageNo&&t.set("pageNo",e.pageNo.toString()),e.pageSize&&t.set("pageSize",e.pageSize.toString());let r="/candidate/getAll?".concat(t.toString()),{data:n}=await o.get(r);return console.log("Fetched data:",n),n}catch(e){throw e}},m=e=>{var t;let r=null===(t=e.response)||void 0===t?void 0:t.data;throw Error((null==r?void 0:r.message)||"An unexpected error occurred")},x=async e=>{try{return(await o.post("/api/candidate/feedback",e)).data}catch(e){m(e)}},p=async e=>{let t=await fetch("/api/candidate/".concat(e));if(!t.ok)throw Error("Error fetching candidate feedback: ".concat(t.statusText));return t.json()},v=async()=>{let e=await fetch("/api/candidate/skills");if(!e.ok)throw Error("Error fetching candidate skills: ".concat(e.statusText));return e.json()},y=async e=>{try{return(await o.post("/api/candidate",e)).data}catch(e){m(e)}},w=async()=>{try{return(await o.get("/api/filter/".concat(n.h))).data}catch(e){m(e)}},j=async(e,t)=>{try{let r=await fetch("".concat(s.CT,"/users/admins"),{method:"GET",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}});if(r.ok){let t=await r.json();return(Array.isArray(t.admins)?t.admins:[]).some(t=>t._id===e)}return!1}catch(e){return!1}}},96450:function(e,t,r){"use strict";r.r(t),r.d(t,{useAuthStore:function(){return s}});var n=r(10903),a=r(89291);let s=(0,n.U)()((0,a.tJ)((e,t)=>({user:null,token:null,refreshToken:null,isHydrated:!1,setAuthData:function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e({user:t,token:r,refreshToken:n,isHydrated:!0})},clearAuthData:()=>{let r=t();if(null!==r.user||null!==r.token||null!==r.refreshToken){e({user:null,token:null,refreshToken:null,isHydrated:!0});try{localStorage.removeItem("auth-store")}catch(e){console.warn("Failed to clear localStorage:",e)}}}}),{name:"auth-store",storage:(0,a.FL)(()=>localStorage),skipHydration:!0,onRehydrateStorage:()=>e=>{e&&(e.isHydrated=!0)}}));try{s.persist.rehydrate()}catch(e){console.warn("Failed to rehydrate auth store:",e)}}},function(e){e.O(0,[2420,231,251,8472,1336,4080,2971,7023,1744],function(){return e(e.s=97014)}),_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.