1import{r as c,j as a}from"./react-DjP1ANNA.js";import{I as G}from"./react-infinite-scroll-component-zxdVSlM8.js";import{u as M,a as V}from"./react-redux-CvGH35IU.js";import{T as W,u as q,i as z,F as X,t as Z,V as $,X as H,be as D,Z as J,_ as L,a0 as K,bE as Q,a3 as U,bF as Y,bk as j,bG as ss,bw as as,I as is,j as ts,L as es,bx as rs}from"./index-BVgXFSN9.js";import{s as os,u as ns}from"./suiteCase-CuZtcwmG.js";import{R as ms}from"./ReferModal-yBNkHzB6.js";import{C as ls}from"./CardHeader-Dvwg5MYe.js";import{R as ds}from"./Refer-DR2bAafo.js";import"./@lottiefiles-BW4ya4wF.js";import"./crypto-js-BQRu_zAZ.js";import"./socket.io-client-BGdex47s.js";import{n as cs}from"./No JPF Found-CnlzIHAG.js";import"./@babel-DLSbV39L.js";import"./use-sync-external-store-Bv2BUH2l.js";import"./react-dom-CH1r7ODx.js";import"./react-router-dom-B-I8Kkrm.js";import"./react-router-BLLygtAF.js";import"./@remix-run-yqlN7Vj_.js";import"./axios-BimPEqV4.js";import"./redux-BECV-Nlq.js";import"./@mui-Cpwdqv5S.js";import"./react-is-DcfIKM1A.js";import"./clsx-B-dksMZM.js";import"./react-transition-group-CxNLX-ix.js";import"./@emotion-BMnXlmzl.js";import"./hoist-non-react-statics-B-49tuQ9.js";import"./stylis-FDnFs_-n.js";import"./@popperjs-BQBsAJpH.js";import"./jss-CFGRwE_1.js";import"./is-in-browser-I-S1O4Zl.js";import"./jss-plugin-rule-value-function-BFRIntEn.js";import"./jss-plugin-global-BYzrZYyJ.js";import"./jss-plugin-nested-D_ejpMkQ.js";import"./jss-plugin-camel-case-B3itHn0h.js";import"./hyphenate-style-name-HOLnhz8K.js";import"./jss-plugin-default-unit-DI8ZotHi.js";import"./jss-plugin-vendor-prefixer-CJNl0PRb.js";import"./css-vendor-DxT3DpbQ.js";import"./jss-plugin-props-sort-D2CdvUsV.js";import"./redux-persist-C5kDgR2m.js";import"./@reduxjs-Cpep842i.js";import"./redux-thunk-ClJT1hhx.js";import"./react-helmet-async-BK4tB33I.js";import"./react-fast-compare-CbukUWDo.js";import"./invariant-CvSiY3tr.js";import"./shallowequal--AeqoEPp.js";import"./react-ga4-vDwhweBP.js";import"./jspdf-BNIpv04V.js";import"./fflate-EnPhvkmS.js";import"./react-toastify-mV4AXyxU.js";import"./styled-components-Cz_yWE8X.js";import"./react-chat-elements-DcSu28hc.js";import"./dompurify-Bq0E5Q3l.js";import"./emoji-picker-react-C8AahYtu.js";import"./flairup-CpvKgcza.js";import"./react-hook-form-BGrmxbtY.js";import"./otp-input-react-d_JYOq3_.js";import"./react-select-CV5rslID.js";import"./@floating-ui-D6mDMy8Y.js";import"./use-isomorphic-layout-effect-f5bfSEtN.js";import"./memoize-one-BdPwpGay.js";import"./dayjs-ByzvYeBt.js";import"./jszip-BlU_Vd2G.js";import"./@e965-BR7518fZ.js";import"./file-saver-B72EZ2em.js";import"./react-to-print-Y8s0l9m2.js";import"./html2canvas-CBrSDip1.js";import"./@react-google-maps-mug9B72a.js";import"./lodash-pQOYHdgg.js";import"./react-simple-typewriter-ldWg-Jcc.js";import"./react-circular-progressbar-Bv_m6Qu3.js";import"./react-swipeable-views-Dinl_PID.js";import"./prop-types-BE-839HU.js";import"./warning-C20GYw-A.js";import"./react-swipeable-views-core-_gFpKrjL.js";import"./react-quill-BNkyPIyx.js";import"./quill-BGuB3LiM.js";import"./swiper-Br_ZBqpF.js";import"./react-responsive-carousel-4RjJB35h.js";import"./react-easy-swipe-hxMy2-lg.js";import"./classnames-DzlfNvT2.js";import"./@hookform-CWJHxq4r.js";import"./react-card-flip-DR_S2qIS.js";import"./react-cropper-Bexj_cHZ.js";import"./cropperjs-CH_N_9NM.js";import"./copy-to-clipboard-ljHEMGi2.js";import"./toggle-selection-BHUZwh74.js";import"./react-phone-number-input-B1gYhXcx.js";import"./libphonenumber-js-91HKQ04p.js";import"./input-format-DJEsyv6L.js";import"./country-flag-icons-D4lwPBzr.js";import"./react-scroll-8VRGKgkn.js";import"./lodash.throttle-C9QyS3WI.js";import"./react-hover-video-player-Czw9SE1t.js";/* empty css */import"./bootstrap-Dz-rzKL8.js";/* empty css */import"./engine.io-client-BY_6WtMP.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./propic-onbehalf-Bgnlc9lE.js";const fs=({project:s,loadProjects:v,anchorEl:B,setAnchorEl:S})=>{var u,y,_,T,k,O,F,I,A,E;const p=(s==null?void 0:s.onBehalfOf)||(s==null?void 0:s.postedBy),{handleCopy:N}=W(),{gotoFullProject:i,gotoProjectDash:f,gotoRepostProject:C}=q(),{successToast:m,errorHandle:R}=z(),h=M(),l=c.useRef(5),[P,x]=c.useState(!1),[d,o]=c.useState(!1),[n,g]=c.useState({show:!1,options:[]}),b=()=>{x(!1),g({...n,show:!1})},r=()=>g({...n,show:!0});s!=null&&s.onBehalfOf?(y=(u=s==null?void 0:s.onBehalfOf)==null?void 0:u.ratings)==null||y.forEac
1h(t=>{t.module==="projects"&&(l.current=t.ratings)}):(T=(_=s==null?void 0:s.postedBy)==null?void 0:_.ratings)==null||T.forEach(t=>{t.module==="projects"&&(l.current=t.ratings)});const w=async()=>{var t;try{const e=await Q(U(s._id));e!=null&&e.data&&((t=e==null?void 0:e.data)!=null&&t.project)&&(m(Y),h(j(s==null?void 0:s._id)))}catch(e){R(e)}};return a.jsxs(a.Fragment,{children:[s?a.jsxs("main",{className:"jpfi-parent",children:[a.jsx(ls,{mType:"p",avatar:X(p==null?void 0:p.subType),uniqueId:s==null?void 0:s._id,onBehalf:(k=s==null?void 0:s.onBehalfOf)==null?void 0:k.avatar,handleClick:i,HeadingName:s.name,checkOnBehalf:s.onBehalfOf,onBehalfName:(O=s==null?void 0:s.onBehalfOf)==null?void 0:O.firstName,handleCopy:N,copyPath:"full-project",handleClose:w,setConfirm:o,confirm:d,setAnchorEl:S,anchorEl:B}),a.jsxs("div",{className:"display-flex-aic-jcsb jpficard_row_space_between",children:[a.jsx("p",{className:"posteddate",children:Z(s.createdAt)}),a.jsx($,{data:l.current,size:"small"})]}),a.jsxs("div",{className:"display-flex-aic-jcsb jpficard_row_space_between",style:{marginTop:"unset"},children:[a.jsx("p",{className:"green_text",children:s.engagementType}),(s==null?void 0:s.engagementType)==="StaffAugmentation"?a.jsx("p",{className:"posteddate",children:s.location}):null]}),a.jsxs("div",{className:"projectCard__four",children:[a.jsxs("aside",{className:"four__row1",children:[a.jsxs("div",{children:[a.jsx("img",{src:os,alt:"sector",className:"currency-Icon"}),a.jsx("p",{className:"posteddate",children:s.sector})]}),a.jsx("div",{})]}),a.jsx("aside",{className:"display-flex-aic-jcsb four__row1",children:(s==null?void 0:s.engagementType)==="StaffAugmentation"?a.jsxs(a.Fragment,{children:[a.jsxs("div",{children:[a.jsx("img",{src:ns,alt:"positions",className:"currency-Icon"}),a.jsxs("p",{children:[(F=s==null?void 0:s.staffAugmentation)==null?void 0:F.noOfPositions," Positions"]})]}),a.jsxs("div",{children:[a.jsx(H,{curr:(I=s==null?void 0:s.pricing)==null?void 0:I.currency}),D(s.pricing)]})]}):a.jsx(a.Fragment,{children:a.jsxs("div",{className:"project-pricing",children:[a.jsx(H,{curr:(A=s==null?void 0:s.pricing)==null?void 0:A.currency}),a.jsx("p",{className:"posteddate",children:D(s.pricing)})]})})}),a.jsx("aside",{className:"four__row3",children:a.jsx("p",{children:J(s.skills)})})]}),a.jsx("div",{className:"jpficard_open_targetcandidates",children:a.jsx("div",{className:"flex-wrap d-flex align-items-center",children:(E=s.targetCandidates)==null?void 0:E.map((t,e)=>a.jsx("p",{className:"lineStyle",children:t},e))})}),a.jsx("div",{className:"jpfiCard__six ",children:a.jsxs("div",{className:"jpfiCard__six-container",children:[a.jsx(L,{onClickFn:f,arg:s,name:"Applications",cssStyle:"jpfiCard__six-applications-btn"}),a.jsx(L,{onClickFn:C,arg:s._id,name:"Repost",cssStyle:"jpfiCard__six-Repost-btn"}),a.jsx(K,{onClickFn:r,altText:"refer",imgSrc:ds,cssStyle:"jpfiCard__six-btn-2"})]})})]}):null,a.jsx(ms,{loadingRefer:P,setloadingRefer:x,refer:n,referClose:b,referShow:r,itemId:s==null?void 0:s._id,postedBy:s==null?void 0:s.postedBy,onBehalfOf:s==null?void 0:s.onBehalfOf,module:"project"})]})},ps=fs;function mi(){const s=M(),{gotoRepostProject:v}=q(),{successToast:B,warningToast:S,errorToast:p,errorHandle:N}=z(),{projects:i,pageNo:f,totalPages:C,tab:m,loading:R,sortDesc:h,filters:l}=V(o=>o.projects),[P,x]=c.useState({i:"",show:!1}),d=c.useCallback(async o=>{const{sector:n,engagementType:g,location:b}=l;try{const r=await ss({pageNo:o,sortDesc:h,tab:m,sector:n,engagementType:g,location:b}),{projects:w,totalPages:u,currentPage:y,unseenNotifications:_}=r==null?void 0:r.data;s(as(w,y,u)),s(is(_))}catch(r){N(r)}},[s,m,h,l]);return ts(()=>{s(rs()),d(1)},[d,m,s]),a.jsx(a.Fragment,{children:(i==null?void 0:i.length)>0?a.jsx(G,{dataLength:f*10,next:()=>{i.length&&i.length%10==0&&d(f+1)},hasMore:f!==C,loader:a.jsx(es,{}),children:a.jsx("main",{className:"main-parent",children:i==null?void 0:i.map((o,n)=>a.jsx(ps,{project:o,handleRepostClick:v,tab:m,anchorEl:P,setAnchorEl:x,loadProjects:d},n))})}):a.jsxs("section",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:[a.jsx("img",{src:cs,alt:"no projects found"}),a.jsx("p",{style:{color:"#d6dcdd"},children:"Check back later!"})]})})}export{mi as default};
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.