1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3378],{83378:(e,s,t)=>{t.r(s),t.d(s,{default:()=>E});var a=t(95155),r=t(12115),l=t(82164),i=t(64104),d=t(57223),n=t(9110),c=t(48617),x=t(66507),m=t(66889),o=t(32423),h=t(4839),j=t(46967),u=t(9246),g=t(48173),p=t.n(g),f=t(89983),y=t(48210),k=t(79400),b=t(49213),N=t(53532);let v=()=>(0,a.jsx)(u.Bc,{children:(0,a.jsxs)(u.m_,{children:[(0,a.jsx)(u.k$,{children:(0,a.jsx)("div",{className:"inline-flex items-center rounded-full border border-gray-200 bg-gray-100 px-3 py-1 text-sm font-semibold text-gray-500 transition-all duration-200 dark:border-gray-700 dark:bg-gray-800/50 dark:text-gray-400","data-cy":"anonymous-fit-score",children:(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline",children:"Score: "}),"?%"]})})}),(0,a.jsx)(u.ZI,{className:"max-w-56",children:(0,a.jsx)("p",{children:"Melde dich an, um deinen echten Projekt-Fit-Score zu sehen"})})]})});var w=t(32058),A=t(3574),_=t(29602);let z=e=>{var s,t,g,z;let{userData:D}=(0,r.useContext)(y.UserContext),P=(0,w.q)(),S=Math.round((new Date(e.end).getTime()-new Date(e.start).getTime())/2592e6),M=e=>{switch(e){case"Initiierung":return"bg-blue-600";case"Entwicklung":return"bg-purple-600";case"Wartung":return"bg-emerald-600";default:return"bg-slate-600"}};return(0,a.jsxs)("div",{className:"group relative overflow-hidden rounded-xl bg-white shadow-md transition-all duration-300 hover:shadow-lg dark:bg-slate-800 dark:shadow-slate-700/20","data-cy":"project-list-item",children:[(0,a.jsx)("div",{className:"h-2 w-full ".concat(M(e.projectPhase))}),(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex min-w-0 max-w-[60%] items-center gap-2",children:[(0,a.jsx)("h2",{className:"truncate text-xl font-bold leading-tight tracking-tight text-gray-900 dark:text-white","data-cy":"project-title ",title:e.title,children:e.title}),e.statusfestellungsverfahren&&(0,a.jsx)(u.Bc,{children:(0,a.jsxs)(u.m_,{children:[(0,a.jsx)(u.k$,{children:(0,a.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",children:(0,a.jsx)(l.A,{size:14})})}),(0,a.jsx)(u.ZI,{children:(0,a.jsx)("p",{children:"Projekt mit Statusfeststellungsverfahren"})})]})})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center space-x-2",children:[(0,a.jsx)(b.iB,{children:!(null==D?void 0:D.organization)&&(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(N.A,{project:e})})}),(0,a.jsx)(b.Bl,{children:(0,a.jsx)(v,{})}),!(null==D?void 0:D.organization)&&(0,a.jsx)("div",{"data-cy":"project-watch-button",children:(0,a.jsx)(b.iB,{children:(0,a.jsx)(u.Bc,{children:(0,a.jsxs)(u.m_,{children:[(0,a.jsx)(u.k$,{onClick:()=>{P.mutate({userId:D.clerkId,projectId:e._id})},children:(0,a.jsx)("div",{className:(0,_.cn)("flex h-8 w-8 items-center justify-center rounded-full transition-colors",(null==D?void 0:null===(s=D.markedProjectOffers)||void 0===s?void 0:s.includes(e._id))?"bg-blue-100 text-blue-600 dark:bg-blue-900/30 dark:text-blue-400":"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400"),children:(0,a.jsx)(i.A,{size:18})})}),(0,a.jsx)(u.ZI,{children:(0,a.jsx)("p",{children:"Projekt beobachten"})})]})})})})]})]}),(0,a.jsxs)("div",{className:"mt-2 flex items-center text-sm text-gray-500 dark:text-gray-400",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(d.A,{size:14,className:"mr-1"}),(0,a.jsx)("span",{children:null==e?void 0:null===(g=e.company)||void 0===g?void 0:null===(t=g.address)||void 0===t?void 0:t.city})]}),(0,a.jsx)("div",{className:"mx-2",children:"â¢"}),(0,a.jsxs)("div",{className:"flex items-center","data-cy":"project-company-industry",children:[(0,a.jsx)(n.A,{size:14,className:"mr-1"}),(0,a.jsx)("span",{children:null==e?void 0:null===(z=e.company)||void 0===z?void 0:z.industry})]})]}),(0,a.jsxs)("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-semibold uppercase text-gray-500 dark:text-gray-400",children:"Erforderliche Skills"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:e.mustHaveSkills.map((e,s)=>(0,a.jsx)(f.A,{skill:e.skill,proficiency:e.proficiency},s))})]}),(0,a.jsx)(b.iB,{children:!(null==D?void 0:D.organization)&&(0,a.jsx)("div",{className:"min-w-0 max-w-full",children:(0,a.jsx)(k.A,{projectRate:e.rate,userRate:(null==D?void 0:D.rate)||0})})})]}),(0,a.jsx)("div",{className:"space-y-4",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-semibold uppercase text-gray-500 dark:text-gray-400",children:"Projektdetails"}),(0,a.jsxs)("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[["Initiierung","Entwicklung","Wartung"].map(s=>(0,a.jsx)("div",{className:(0,_.cn)("rounded-full px-3 py-1 text-xs font-medium",e.projectPhase===s?"".concat(M(s)," text-white"):"bg-gray-200 text-gray-700 dark:bg-gray-700 dark:text-gray-300"),children:s},s)),(0,a.jsx)(u.Bc,{children:(0,a.jsxs)(u.m_,{children:[(0,a.jsx)(u.k$,{className:"flex",children:(0,a.jsx)(c.A,{size:12,className:"text-gray-500"})}),(0,a.jsx)(u.ZI,{className:"max-w-56",children:(0,a.jsx)("p",{children:'Hierbei handelt es sich um die Phase, in der sich das Projekt gerade befindet. "Wartung" bedeutet, es handelt sich nicht um ein Projekt, sondern um Linient\xe4tigkeiten'})})]})})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)("div",{className:"flex items-center rounded-full bg-white/20 px-3 py-1 ring-1 ring-gray-200 backdrop-blur-sm dark:ring-gray-700",children:100===e.remoteRatio?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.A,{size:14,className:"mr-1.5 text-blue-500"}),(0,a.jsx)("span",{className:"text-xs font-medium",children:"Remote"})]}):0===e.remoteRatio?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{size:14,className:"mr-1.5 text-blue-500"}),(0,a.jsx)("span",{className:"text-xs font-medium",children:"Vor Ort"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.A,{size:14,className:"mr-1.5 text-blue-500"}),(0,a.jsxs)("span",{className:"text-xs font-medium",children:["Hybrid/",e.remoteRatio,"%"]})]})}),(0,a.jsxs)("div",{className:"flex items-center rounded-full bg-white/20 px-3 py-1 ring-1 ring-gray-200 backdrop-blur-sm dark:ring-gray-700",children:[(0,a.jsx)(m.A,{size:14,className:"mr-1.5 text-purple-500"}),(0,a.jsxs)("span",{className:"text-xs font-medium",children:[e.workload,"h"]})]}),(0,a.jsxs)("div",{className:"flex items-center rounded-full bg-white/20 px-3 py-1 ring-1 ring-gray-200 backdrop-blur-sm dark:ring-gray-700",children:[(0,a.jsx)(o.A,{size:14,className:"mr-1.5 text-emerald-500"}),(0,a.jsxs)("span",{className:"text-xs font-medium",children:[S," Monate"]})]}),(0,a.jsxs)("div",{className:"flex items-center rounded-full bg-white/20 px-3 py-1 ring-1 ring-gray-200 backdrop-blur-sm dark:ring-gray-700",children:[(0,a.jsx)(h.A,{size:14,className:"mr-1.5 text-amber-500"}),(0,a.jsxs)("span",{className:"text-xs font-medium",children:["Start: ",new Date(e.start).toLocaleDateString("de-DE")]})]})]})]})})]}),(0,a.jsxs)("div",{className:"mt-6 flex flex-col items-stretch space-y-4 border-t border-gray-200 pt-4 dark:border-gray-700 md:flex-row md:items-center md:justify-between md:space-y-0",children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-4 text-xs text-gray-500 dark:text-gray-400",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"font-medium text-gray-700 dark:text-gray-300",children:"Erstellt:"}),(0,a.jsx)("span",{className:"ml-1",children:new Date(e.createdAt).toLocaleDateString("de-DE")})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"font-medium text-gray-700 dark:text-gray-300",children:"Bewerbungsende:"}),(0,a.jsx)("span",{className:"ml-1",children:new Date(e.applicationDeadline.deadline).toLocaleDateString("de-DE")})]})]}),(0,a.jsx)(p(),{href:"/projekte/".concat(e._id),className:"flex-grow md:flex-none",onClick:()=>{(0,A.$s)("Viewed Project Offer",{type:"view",project_id:e._id,project_title:e.title,project_position:e.position,project_phase:e.projectPhase,project_workload:e.workload,project_remote_ratio:e.remoteRatio,has_status_check:e.statusfestellungsverfahren,must_have_skills_count:e.mustHaveSkills.length})},children:(0,a.jsxs)("button",{className:"btn-secondary flex w-full justify-center","data-cy":"project-details-button",children:["Details ",(0,a.jsx)(j.A,{size:20,className:"ml-1"})]})})]})]})]})};var D=t(14085),P=t(32472),S=t(11553),M=t(82711),B=t(88629);let E=e=>{let{projectOfferList:s,totalProjectOffers:t,onSortChange:r,currentSortField:l,currentSortOrder:i,isLoading:d}=e,{data:n}=(0,B.J)(),c=!(null==n?void 0:n.organization),x=e=>{l===e?r(e,"asc"===i?"desc":"asc"):r(e,"desc")};return d?(0,a.jsx)(M.XF,{}):(0,a.jsxs)("div",{className:"mt-5","data-cy":"project-list",children:[(0,a.jsxs)("div",{className:"flex items-center justify-end sm:justify-between",children:[(0,a.jsxs)("span",{className:"text-black_slate400 hidden text-lg font-semibold sm:block","data-cy":"project-list-count",children:[t," Projekt(e) gefunden"]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)(D.$,{variant:"outline",size:"sm",onClick:()=>x("createdAt"),"data-cy":"sort-created-at",children:["Erstelldatum","createdAt"===l&&("asc"===i?(0,a.jsx)(P.A,{className:"ml-2 h-4 w-4"}):(0,a.jsx)(S.A,{className:"ml-2 h-4 w-4"}))]}),(0,a.jsxs)(D.$,{variant:"outline",size:"sm",onClick:()=>x("start"),"data-cy":"sort-begin-at",children:["Startdatum","start"===l&&("asc"===i?(0,a.jsx)(P.A,{className:"ml-2 h-4 w-4"}):(0,a.jsx)(S.A,{className:"ml-2 h-4 w-4"}))]}),(0,a.jsx)(b.iB,{children:c&&(0,a.jsxs)(D.$,{variant:"outline",size:"sm",onClick:()=>x("fitScore"),"data-cy":"sort-fit-score",children:["Projekt-Fit","fitScore"===l&&("asc"===i?(0,a.jsx)(P.A,{className:"ml-2 h-4 w-4"}):(0,a.jsx)(S.A,{className:"ml-2 h-4 w-4"}))]})})]})]}),(0,a.jsx)("div",{className:"mt-2 grid gap-4",children:s.map(e=>(0,a.jsx)(z,{...e},e._id))})]})}},11553:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(67401).A)("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}
1],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]])},32472:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(67401).A)("ArrowUpWideNarrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]])}}]);
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.