1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9cb082d5-0d78-4925-be44-5e5c05e28762",e._sentryDebugIdIdentifier="sentry-dbid-9cb082d5-0d78-4925-be44-5e5c05e28762")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1741],{11741:function(e,n,r){r.d(n,{t:function(){return $},$H:function(){return z},pw:function(){return V}});var l=r(24476),t=r(23952),o=r(64536),i=r(75312),s=r(37251),d=r(596),a=r(85207),c=r(23823),u=r(97487),h=r(0),p=r(3980),x=r(792),j=r(92440),v=r(89778),f=r(59739),m=r.n(f),b=r(15721);let g=e=>{let{href:n="",as:r,replace:t,scroll:o,shallow:i,prefetch:s,children:d,...a}=e;return(0,l.jsx)(b.r,{as:m(),passHref:!0,href:n,replace:t,scroll:o,shallow:i,prefetch:s,color:"primary",_hover:{color:"secondary"},...a,children:d})};var y=r(82698),I=r(33352),w=r(27846),C=r(25925),_=r(24117),k=r(40841);let $=e=>{let{project:n}=e,r=(0,o.p)(),{user:{orgId:f,userID:m}}=(0,y.aC)(),{t:b}=(0,C.Z)("project"),{role:$}=(0,k.j$)({userId:m}),D=b("projects.edit"),S=b("projects.clear"),P=b("projects.progress"),{status:z,name:B,startDate:A,description:E,toDo:R,tags:W,relatedTo:T}=n,q=Array.isArray(R)&&(null==R?void 0:R.length)>0&&(null==R?void 0:R.filter(e=>{if((null==e?void 0:e.__typename)==="Element"){var n;return null==e?void 0:null===(n=e.value)||void 0===n?void 0:n.done}})),L="admin"===$&&f===(null==T?void 0:T.objectId),[H]=(0,t.D)(I.Yr),N=async()=>{try{var e,l;let{data:t}=await H({variables:{objectId:null==n?void 0:n.objectId},refetchQueries:["projects"]});if((null==t?void 0:null===(e=t.deleteProject)||void 0===e?void 0:e.status)!=="OK"){r({description:null==t?void 0:null===(l=t.deleteProject)||void 0===l?void 0:l.error,status:"error",duration:5e3,isClosable:!0});return}r({description:"Erfolgreich gel\xf6scht",status:"success",duration:5e3,isClosable:!0})}catch(e){r({description:e.message,status:"error",duration:5e3,isClosable:!0}),console.error(e)}};return(0,l.jsxs)(i.K,{bg:"white",borderRadius:"bubble",padding:4,children:[(0,l.jsxs)(s.U,{justifyContent:"space-between",children:[(0,l.jsx)(d.x,{as:"span",bg:"secondary60",px:4,py:1,borderRadius:"full",color:"primary",fontSize:"sm",children:z}),L?(0,l.jsxs)(a.v,{autoSelect:!1,placement:"bottom-end",children:[(0,l.jsx)(c.j,{_hover:{color:"secondary"},color:"greyText",children:(0,l.jsx)(w.m1,{})}),(0,l.jsxs)(u.q,{children:[(0,l.jsx)(g,{href:"/projects/entry/".concat(null==n?void 0:n.objectId),children:(0,l.jsx)(h.s,{children:(0,l.jsx)(p.x,{fontSize:"sm",color:"greyText",children:D})})}),(0,l.jsx)(h.s,{onClick:()=>N(),children:(0,l.jsx)(p.x,{fontSize:"sm",children:S})})]})]}):null]}),(0,l.jsx)(p.x,{noOfLines:1,color:"primary",fontSize:"2xl",fontWeight:700,children:B}),(0,l.jsx)(x.aV,{paddingLeft:0,display:"flex",gap:2,flexWrap:"wrap",children:null==W?void 0:W.map(e=>{if((null==e?void 0:e.__typename)==="Element")return(0,l.jsx)(x.HC,{borderRadius:"2xl",borderColor:"grayText",border:"1px",fontSize:"sm",px:4,py:1,textAlign:"center",children:null==e?void 0:e.value},null==e?void 0:e.value)})}),(0,l.jsxs)(p.x,{display:"inline-flex",alignItems:"center",children:[(0,l.jsx)(w.wZ,{mr:2})," ",(0,_.L0)(A)]}),(0,l.jsx)(p.x,{noOfLines:5,dangerouslySetInnerHTML:{__html:E}}),(0,l.jsxs)(s.U,{justify:"space-between",align:"center",gap:8,pt:4,mt:"auto",children:[(0,l.jsxs)(i.K,{width:"100%",children:[(0,l.jsxs)(s.U,{justifyContent:"space-between",children:[(0,l.jsx)(p.x,{children:P}),q&&(0,l.jsxs)(d.x,{as:"span",children:[null==q?void 0:q.length,"/",null==R?void 0:R.length,(0,l.jsx)(w.B3,{})]})]}),q&&(0,l.jsx)(j.E,{colorScheme:"primary-scheme",background:"secondary",size:"xs",value:(null==q?void 0:q.length)/(null==R?void 0:R.length)*100})]}),(0,l.jsx)(v.rU,{href:"/projects/".concat(null==n?void 0:n.objectId),background:"primary",padding:4,borderRadius:"3xl",_hover:{background:"secondary",color:"primary"},children:(0,l.jsx)(w.UV,{width:6,height:6,color:"white"})})]})]})};var D=r(79096),S=r(48455),P=r(75891);let z=e=>{var n;let{toDo:r}=e,t=null!==(n=null==r?void 0:r.filter(e=>{let{value:n}=e;return null==n?void 0:n.done}))&&void 0!==n?n:[];return(0,l.jsxs)(d.x,{my:4,children:[(0,l.jsxs)(p.x,{fontWeight:"bold",children:[null==t?void 0:t.length,"/",null==r?void 0:r.length," ",(0,l.jsx)(w.B3,{})]}),(0,l.jsx)(S.M,{columns:{base:1,md:2,xl:2},spacing:"10px",children:Array.isArray(r)&&(null==r?void 0:r.map((e,n)=>{let{value:r}=e;return(0,l.jsxs)(P.k,{alignItems:"center",gap:2,as:"label",children:[(0,l.jsx)(p.x,{children:r.name}),r.done?(0,l.jsx)(P.k,{bg:"primary",alignItems:"center",justifyContent:"center",w:4,h:4,borderRadius:"50%",children:(0,l.jsx)(D.n,{color:"white",w:2,h:2})}):null]},"".concat(r.name,".").concat(n))}))})]})};var B=r(64660),A=r(53162),E=r(62682),R=r(21984),W=r(61089),T=r(77410),q=r(98286),L=r(75376),H=r(92836),N=r(67771),O=r(16016),U=r(92607),M=r(3319),Z=r(37360),K=r(77707),Q=r(18423);let V=e=>{var n,r,o,i,s,a,c,u,h;let{sponsorPackages:x,project:j}=e,{t:f}=(0,C.Z)("common"),m=f("sponsoring.opportunities"),b=f("sponsoring.contact"),g=f("sponsoring.send"),{isOpen:I,onOpen:w,onClose:_}=(0,E.q)(),k=(0,A.useRouter)(),[$]=(0,t.D)(K.Ji),[D,S]=(0,B.useState)(null===(r=x[0])||void 0===r?void 0:null===(n=r.node)||void 0===n?void 0:n.objectId),[z,V]=(0,B.useState)("Hallo ".concat(null==j?void 0:null===(o=j.createdBy)||void 0===o?void 0:o.firstname,", ich interessiere mich f\xfcr die Beteiligungsm\xf6glichkeiten zum Projekt. ").concat(null==j?void 0:j.name)),{getRootProps:G,getRadioProps:J}=(0,R.a)({name:"sponsor-package",defaultValue:D,value:D}),{user:{employee:Y}}=(0,y.aC)(),F=G(),X=e=>{S(e)},ee=e=>{V(e.target.value)},en=async()=>{var e,n,r;let{data:l}=await $({variables:{employeeId:null==j?void 0:null===(e=j.createdBy)||void 0===e?void 0:e.objectId,name:"test"},refetchQueries:["getChannels"]});k.push({pathname:"/messages",query:{chatId:null==l?void 0:null===(r=l.createChannel)||void 0===r?void 0:null===(n=r.channel)||void 0===n?void 0:n.objectId,message:z}})};return(0,l.jsxs)(d.x,{my:4,children:[(0,l.jsx)(p.x,{fontWeight:"bold",children:m}),(0,l.jsxs)(P.k,{gap:4,flexWrap:"wrap",flexDir:"column",h:"full",children:[(0,l.jsx)(P.k,{flexWrap:["wrap","nowrap"],justifyContent:"space-between",gap:2,w:"full",mt:4,...F,children:Array.isArray(x)&&x.map(e=>{let{node:n}=e,r=J({value:null==n?void 0:n.objectId});
1return(0,l.jsx)(M.RO,{...r,onChange:()=>{X(null==n?void 0:n.objectId)},children:(0,l.jsx)(p.x,{children:null==n?void 0:n.name})},null==n?void 0:n.objectId)})}),(0,l.jsx)(P.k,{flex:1,children:(0,l.jsx)(d.x,{height:"full",background:"lightGray",p:4,borderRadius:"bubble",border:"none",overflowY:"auto",resize:"none",width:"100%",dangerouslySetInnerHTML:{__html:(0,Q.x)((e=>{var n;let r=x.find(n=>{let{node:r}=n;return(null==r?void 0:r.objectId)===e});return null==r?void 0:null===(n=r.node)||void 0===n?void 0:n.description})(D))},whiteSpace:"pre-wrap"})}),(0,l.jsxs)(P.k,{my:8,justifyContent:"space-between",gap:4,flexWrap:"wrap",children:[(0,l.jsxs)(d.x,{children:[(0,l.jsx)(p.x,{fontWeight:"bold",children:b}),(0,l.jsxs)(v.rU,{href:"/profile/".concat(null==j?void 0:null===(s=j.createdBy)||void 0===s?void 0:null===(i=s.user)||void 0===i?void 0:i.objectId),children:[null==j?void 0:null===(a=j.createdBy)||void 0===a?void 0:a.firstname," ",null==j?void 0:null===(c=j.createdBy)||void 0===c?void 0:c.lastname]})]}),(0,l.jsx)(Z.z,{isPrimary:!1,textTransform:"none",py:8,px:8,borderRadius:"bubble",onClick:()=>w(),isDisabled:(null==j?void 0:null===(u=j.createdBy)||void 0===u?void 0:u.objectId)===Y,children:g}),(0,l.jsxs)(W.u_,{isOpen:I,onClose:_,isCentered:!0,children:[(0,l.jsx)(T.Z,{}),(0,l.jsxs)(q.h,{children:[(0,l.jsxs)(L.x,{children:["Nachricht senden an ",null==j?void 0:null===(h=j.createdBy)||void 0===h?void 0:h.firstname,":"]}),(0,l.jsx)(H.o,{}),(0,l.jsx)(N.f,{children:(0,l.jsx)(O.g,{value:z,onChange:e=>ee(e)})}),(0,l.jsx)(U.m,{children:(0,l.jsx)(Z.z,{isPrimary:!0,variant:"ghost",onClick:en,children:g})})]})]})]})]})]})}},77707:function(e,n,r){r.d(n,{$:function(){return o},Ji:function(){return i},XQ:function(){return s},pD:function(){return t}});var l=r(692);let t=(0,l.P)("\n query getChannels($employeeId: ID, $first: Int, $after: String, $order: [ChannelOrder!]) {\n channels(order: $order, first: $first, after: $after) {\n edges {\n node {\n objectId\n lastMessage\n updatedAt\n ACL {\n users {\n write\n userId\n }\n }\n employees(where: { objectId: { notEqualTo: $employeeId } }) {\n edges {\n node {\n objectId\n status\n firstname\n lastname\n photo {\n url\n }\n }\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n"),o=(0,l.P)("\n query getChannelParticipants($channelId: ID!, $employeeId: ID) {\n channel(id: $channelId) {\n employees(where: { objectId: { notEqualTo: $employeeId } }) {\n edges {\n node {\n firstname\n lastname\n objectId\n photo {\n url\n }\n user {\n objectId\n }\n }\n }\n }\n }\n }\n"),i=(0,l.P)("\n mutation createChannel($name: String, $employeeId: ID) {\n createChannel(input: { name: $name, employeeId: $employeeId }) {\n status\n error\n channel {\n objectId\n }\n }\n }\n"),s=(0,l.P)("\n mutation deleteChannel($objectId: ID) {\n deleteChannel(input: { objectId: $objectId }) {\n status\n error\n }\n }\n")},18423:function(e,n,r){r.d(n,{x:function(){return l}});let l=e=>{if(e)return e.replace(/(((https?:\/\/)|(www\.))[^\s]+)/g,e=>{let n=e.startsWith("www")?"https://".concat(e):e;return'<a rel="noopener noreferrer" target="_blank" href="'.concat(n,'">').concat(e,"</a>")}).replace(/\n/g,"<br />")}},92607:function(e,n,r){r.d(n,{m:function(){return a}});var l=r(24476),t=r(64928),o=r(13477),i=r(61089),s=r(19419),d=r(78607);let a=(0,s.G)((e,n)=>{let{className:r,...s}=e,a=(0,o.cx)("chakra-modal__footer",r),c=(0,i.I_)(),u=(0,t.k0)({display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer});return(0,l.jsx)(d.m.footer,{ref:n,...s,__css:u,className:a})});a.displayName="ModalFooter"}}]);
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.