PageSourceSearch

https://www.excelrs.dev/_next/static/chunks/app/my-engagements/page-6a1ba563b842dfc6.js

js excelrs.dev collected 2026-09-24 15:02:02 UTC 15,480 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1576],{29288:function(e,t,r){Promise.resolve().then(r.bind(r,41795))},20357:function(e,t,r){"use strict";var n,a;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(a=r.g.process)?void 0:a.env)?r.g.process:r(88081)},88081:function(e){!function(){var t={229:function(e){var t,r,n,a=e.exports={};function l(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function c(e){if(t===setTimeout)return setTimeout(e,0);if((t===l||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:l}catch(e){t=l}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var o=[],s=!1,u=-1;function d(){s&&n&&(s=!1,n.length?o=n.concat(o):u=-1,o.length&&f())}function f(){if(!s){var e=c(d);s=!0;for(var t=o.length;t;){for(n=o,o=[];++u<t;)n&&n[u].run();u=-1,t=o.length}n=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];o.push(new m(e,t)),1!==o.length||s||c(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var l=r[e]={exports:{}},i=!0;try{t[e](l,l.exports,n),i=!1}finally{i&&delete r[e]}return l.exports}n.ab="//";var a=n(229);e.exports=a}()},41795:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return d}});var n=r(57437),a=r(7824),l=r(58357),i=r(96450),c=r(35549),o=r(16463),s=r(2265),u=r(34248);function d(){let{user:e,token:t,isHydrated:r}=(0,i.useAuthStore)(),d=(0,o.useRouter)(),[f,m]=(0,s.useState)([]),[h,v]=(0,s.useState)(!0),[g,p]=(0,s.useState)("");return((0,s.useEffect)(()=>{if(r){if(!e){d.replace("/login");return}(0,c.Sk)(e)||d.replace("/404")}},[r,e,d]),(0,s.useEffect)(()=>{(async function(){if(r&&e&&t&&(0,c.Sk)(e)){v(!0),p("");try{let e=await fetch("".concat(l.CT,"/staffing/my-engagements"),{headers:{Authorization:"Bearer ".concat(t)}}),r=await e.json();if(!e.ok)throw Error((null==r?void 0:r.message)||"Failed to load engagements");m(r.engagements||[])}catch(e){p(e.message||"Failed to load engagements")}finally{v(!1)}}})()},[r,e,t]),r&&e)?(0,n.jsx)(a.default,{currentPath:"/my-engagements",children:(0,n.jsxs)("div",{className:"px-4 py-6",children:[(0,n.jsxs)("div",{className:"mb-8 text-center",children:[(0,n.jsx)("h1",{className:"text-4xl font-bold text-gray-800",children:"My Engagements"}),(0,n.jsx)("p",{className:"mt-2 text-gray-500",children:"Clients you are assigned to"})]}),h&&(0,n.jsx)("div",{className:"flex justify-center mt-16",children:(0,n.jsx)("div",{className:"h-10 w-10 animate-spin rounded-full border-4 border-teal-400 border-t-transparent"})}),g&&(0,n.jsx)("p",{className:"text-center text-red-500 font-medium",children:g}),!h&&!g&&0===f.length&&(0,n.jsx)("p",{className:"mt-16 text-center text-gray-400",children:"No engagements yet."}),!h&&f.length>0&&(0,n.jsx)("div",{className:"mx-auto max-w-5xl overflow-x-auto rounded-2xl border border-gray-200 bg-white shadow-sm",children:(0,n.jsxs)("table",{className:"min-w-full text-left text-sm",children:[(0,n.jsx)("thead",{className:"bg-gray-50 text-gray-600",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"px-4 py-3 font-semibold",children:"Client"}),(0,n.jsx)("th",{className:"px-4 py-3 font-semibold",children:"Rate"}),(0,n.jsx)("th",{className:"px-4 py-3 font-semibold",children:"Start"}),(0,n.jsx)("th",{className:"px-4 py-3 font-semibold",children:"Status"}),(0,n.jsx)("th",{className:"px-4 py-3 font-semibold",children:"Contract"})]})}),(0,n.jsx)("tbody",{children:f.map(e=>(0,n.jsxs)("tr",{className:"border-t border-gray-100",children:[(0,n.jsxs)("td",{className:"px-4 py-3",children:[(0,n.jsx)("div",{className:"font-medium text-gray-800",children:e.clientName||e.clientId}),e.clientEmail&&(0,n.jsx)("div",{className:"text-xs text-gray-500",children:e.clientEmail})]}),(0,n.jsx)("td",{className:"px-4 py-3 text-gray-700",children:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"INR";try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t,maximumFractionDigits:0}).format(e)}catch(r){return"".concat(t," ").concat(e)}}(e.rate,e.currency||"INR")}),(0,n.jsx)("td",{className:"px-4 py-3 text-gray-700",children:function(e){if(!e)return"—";let t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString()}(e.startDate||e.assignedAt)}),(0,n.jsx)("td",{className:"px-4 py-3",children:(0,n.jsx)("span",{className:"active"===e.status?"rounded-full bg-teal-50 px-2.5 py-1 text-xs font-medium text-teal-800":"rounded-full bg-gray-100 px-2.5 py-1 text-xs font-medium text-gray-600",children:e.status||"active"})}),(0,n.jsx)("td",{className:"px-4 py-3",children:e.contract?(0,n.jsxs)("a",{href:(0,u.zl)(e.contract),target:"_blank",rel:"noreferrer",className:"text-sm font-medium text-teal-700 hover:underline",children:["v",e.contract.ver
1sion," \xb7 ",(0,u.Aq)(e.contract.status)]}):(0,n.jsx)("span",{className:"text-xs text-gray-400",children:"None yet"})})]},e._id))})]})})]})}):(0,n.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,n.jsx)("div",{className:"h-12 w-12 animate-spin rounded-full border-b-2 border-teal-600"})})}},34248:function(e,t,r){"use strict";function n(e){let t=String(e||"").trim();return/@excelrs\.dev$/i.test(t)?t:void 0}function a(e){let t=String(e||"").trim();return t.includes("@")?t:void 0}function l(e){let t=String((null==e?void 0:e.developerName)||"developer").replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"_").slice(0,40),r=Number(null==e?void 0:e.version)||1;return"Excelrs_Developer_Contract_".concat(t,"_v").concat(r,".pdf")}r.d(t,{AG:function(){return a},Aq:function(){return v},Fe:function(){return c},G$:function(){return l},Qd:function(){return f},VA:function(){return u},_i:function(){return n},hr:function(){return s},lb:function(){return d},n$:function(){return h},zl:function(){return o}});let i=/(?:^|-)([a-f0-9]{32}|[a-f0-9]{16}|[a-f0-9]{12})$/i;function c(e){let t=String(e||"").trim(),r=t.match(i);return r?r[1].toLowerCase():t}function o(e){let t=function(e){let t=String(e||"").trim().toLowerCase();return t?t.length>12?t.slice(-12):t:""}(null==e?void 0:e.shareToken);return t?"/contract/".concat(String((null==e?void 0:e.developerName)||"").normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"developer","-").concat(t):""}function s(e){return"hourly"===e?"/h":"monthly"===e?"/mo":"/wk"}function u(e){return"hourly"===e?"Hourly rate":"monthly"===e?"Monthly salary":"Weekly seat"}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t,maximumFractionDigits:2}).format(e)}catch(r){return"".concat(t," ").concat(e)}}function f(e){if(!e)return"—";let t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})}function m(e){if(null==e||""===e)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:(t.setHours(0,0,0,0),t)}function h(e){if(!e)return!1;let t=e.terms||{};if(!0===t.trialApplies)return!0;if(!1===t.trialApplies||1!==Number(e.version))return!1;let r=m(e.startDate);if(!r)return!0;let n=m(new Date);return!!n&&(n.setDate(n.getDate()-(Number(t.trialDays)||14)),r>=n)}function v(e,t){return"superseded"===e?"Replaced":"ended"===e||"ended"===t?"Offloaded":"accepted"===e?"Agreed":"Awaiting agree"}},58357:function(e,t,r){"use strict";r.d(t,{CT:function(){return n},bz:function(){return l},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 l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(e||"").replace(/^\/+/,"");return t?"".concat(a,"/").concat(t):a}},90047:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M10.394 2.08a1 1 0 00-.788 0l-7 3a1 1 0 000 1.84L5.25 8.051a.999.999 0 01.356-.257l4-1.714a1 1 0 11.788 1.838L7.667 9.088l1.94.831a1 1 0 00.787 0l7-3a1 1 0 000-1.838l-7-3zM3.31 9.397L5 10.12v4.102a8.969 8.969 0 00-1.05-.174 1 1 0 01-.89-.89 11.115 11.115 0 01.25-3.762zM9.3 16.573A9.026 9.026 0 007 14.935v-3.957l1.818.78a3 3 0 002.364 0l5.508-2.361a11.026 11.026 0 01.25 3.762 1 1 0 01-.89.89 8.968 8.968 0 00-5.35 2.524 1 1 0 01-1.4 0zM6 18a1 1 0 001-1v-2.065a8.935 8.935 0 00-2-.712V17a1 1 0 001 1z"}))});t.Z=a},99493:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});t.Z=a},41395:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M6 6V5a3 3 0 013-3h2a3 3 0 013 3v1h2a2 2 0 012 2v3.57A22.952 22.952 0 0110 13a22.95 22.95 0 01-8-1.43V8a2 2 0 012-2h2zm2-1a1 1 0 011-1h2a1 1 0 011 1v1H8V5zm1 5a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1z",clipRule:"evenodd"}),n.createElement("path",{d:"M2 13.692V16a2 2 0 002 2h12a2 2 0 002-2v-2.308A24.974 24.974 0 0110 15c-2.796 0-5.487-.46-8-1.308z"}))});t.Z=a},26945:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),n.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z",clipRule:"evenodd"}))});t.Z=a},62818:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z",clipRule:"evenodd"}))});t.Z=a},18256:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"}))});t.Z=a},5607:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"}))});t.Z=a},89633:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 3a1 1 0 00-1 1v12a1 1 0 102 0V4a1 1 0 00-1-1zm10.293 9.293a1 1 0 001.414 1.414l3-3a1 1 0 000-1.414l-3-3a1 1 0 10-1.414 1.414L14.586 9H7a1 1 0 100 2h7.586l-1.293 1.293z",clipRule:"evenodd"}))});t.Z=a},95438:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M2.166 4.999A11.954 11.954 0 0010 1.944 11.954 11.954 0 0017.834 5c.11.65.166 1.32.166 2.001 0 5.225-3.34 9.67-8 11.317C5.34 16.67 2 12.225 2 7c0-.682.057-1.35.166-2.001zm11.541 3.708a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});t.Z=a},9968:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm3.293 1.293a1 1 0 011.414 0l3 3a1 1 0 010 1.414l-3 3a1 1 0 01-1.414-1.414L7.586 10 5.293 7.707a1 1 0 010-1.414zM11 12a1 1 0 100 2h3a1 1 0 100-2h-3z",clipRule:"evenodd"}))});t.Z=a},28490:function(e,t,r){"use strict";var n=r(2265);let a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 
10 014 0zM14 15a4 4 0 00-8 0v3h8v-3zM6 8a2 2 0 11-4 0 2 2 0 014 0zM16 18v-3a5.972 5.972 0 00-.75-2.906A3.005 3.005 0 0119 15v3h-3zM4.75 12.094A5.973 5.973 0 004 15v3H1v-3a3 3 0 013.75-2.906z"}))});t.Z=a}},function(e){e.O(0,[231,4868,6575,7824,2971,7023,1744],function(){return e(e.s=29288)}),_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.