PageSourceSearch

https://app.baumev.de/_next/static/chunks/pages/profile/[id]-34fde58505f47bb6.js

js baumev.de collected 2026-10-02 06:40:36 UTC 16,608 bytes, 1 lines download raw bytes

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]="a425f33e-c6c1-4dd9-9356-11e73d40713c",e._sentryDebugIdIdentifier="sentry-dbid-a425f33e-c6c1-4dd9-9356-11e73d40713c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7192],{17961:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/[id]",function(){return r(17819)}])},90588:function(e,n,r){"use strict";r.d(n,{ob:function(){return h},$I:function(){return K},pw:function(){return U},gS:function(){return z},T5:function(){return b}});var l=r(24476),i=r(596),o=r(17903),t=r(77812),d=r(85568),s=r(792),a=r(3319),c=r(71289),u=r(27846),x=r(64660);let p=[13,9,188],h=e=>{let{placeholder:n,isRemovable:r,name:h,label:g}=e,[j,f]=(0,x.useState)(""),[{value:v},{touched:b},{setValue:m,setTouched:y}]=(0,c.U$)(h),I=null!=v?v:[],w=""!==j.trim(),_=e=>{m(I.filter((n,r)=>r!==e))},k=e=>{if(e){let n=[...I,{__typename:"Element",value:e}];b||y(!0),m(n)}};return(0,l.jsxs)(i.x,{width:"full",children:[r&&(0,l.jsxs)(o.B,{marginBottom:3,sx:{".register-eye":{top:"24px"}},children:[(0,l.jsx)(a.II,{name:h,value:j,onChange:e=>{b||y(!0),f(e.target.value)},label:g,placeholder:n,maxLength:60,onKeyDown:e=>{p.includes(e.keyCode)&&!1===e.shiftKey&&(e.preventDefault(),k(j),f(""))}}),(0,l.jsx)(t.x,{width:"4rem",top:"auto",bottom:"1",className:"register-eye",children:(0,l.jsx)(d.h,{"aria-label":"add tag",h:"1.75rem",onClick:()=>{w&&(k(j),f(""))},children:(0,l.jsx)(u.pO,{})})})]}),(0,l.jsx)(s.aV,{display:"flex",fontSize:"sm",color:"greyText",gap:2,flexWrap:"wrap",children:Array.isArray(I)&&I.map((e,n)=>{let{value:i}=e;return(0,l.jsxs)(s.HC,{display:"flex",alignItems:"center",borderRadius:"2xl",borderColor:"grayText",border:"1px",px:4,py:2,textAlign:"center",mr:2,lineHeight:".75",children:[i,r&&(0,l.jsx)(u.HF,{onClick:()=>_(n)})]},"".concat(i,"-").concat(n))})})]})};var g=r(59739),j=r.n(g),f=r(79735),v=r(3980);let b=e=>{let{project:n}=e;return(0,l.jsx)(f.f,{as:"article",children:(0,l.jsxs)(i.x,{background:"white",borderRadius:"bubble",padding:8,children:[(0,l.jsx)(j(),{href:"/projects/".concat(n.objectId),passHref:!0,children:(0,l.jsx)(f.A,{children:(0,l.jsx)(v.x,{color:"primary",fontWeight:"bold",children:null==n?void 0:n.name})})}),(0,l.jsx)(v.x,{noOfLines:3,color:"greyText",dangerouslySetInnerHTML:{__html:null==n?void 0:n.description}})]})})};var m=r(23952),y=r(64536),I=r(1910),w=r(37251),_=r(75312),k=r(83581),A=r(75891),C=r(89778),T=r(45246),W=r(40841),$=r(82698);let z=e=>{var n,r,i;let{member:o}=e,t=(0,y.p)(),{user:{objectId:d,orgId:s}}=(0,$.aC)(),{role_level_type:a}=(0,W.j$)({userId:d}),{isAllowed:c}=(0,W.gu)({api_name:"addOrganizationAdmin"}),{isAllowed:x}=(0,W.gu)({api_name:"removeOrganizationAdmin"}),{role_level:p,role_level_type:h}=(0,W.j$)({userId:null==o?void 0:null===(n=o.user)||void 0===n?void 0:n.objectId}),g=s===(null==o?void 0:null===(r=o.organization)||void 0===r?void 0:r.objectId)&&c&&"admin"===a,j="admin"===h,[f]=(0,m.D)(T.dS),[b]=(0,m.D)(T.gQ),z=async e=>{let{member:n,isMemberAdmin:r}=e;try{var l,i,o,d,s,a,c,u;if(r&&x){let{data:e}=await f({variables:{userId:null==n?void 0:null===(l=n.user)||void 0===l?void 0:l.objectId,orgId:null==n?void 0:null===(i=n.organization)||void 0===i?void 0:i.objectId},refetchQueries:["org_employees","getUserRole"]});if((null==e?void 0:null===(o=e.removeOrganizationAdmin)||void 0===o?void 0:o.status)!=="OK"){t({description:"".concat(null==e?void 0:null===(d=e.removeOrganizationAdmin)||void 0===d?void 0:d.error,": Konnte nicht aktualiseren"),status:"error",duration:5e3,isClosable:!0});return}}else{let{data:e}=await b({variables:{userId:null==n?void 0:null===(s=n.user)||void 0===s?void 0:s.objectId,orgId:null==n?void 0:null===(a=n.organization)||void 0===a?void 0:a.objectId},refetchQueries:["org_employees","getUserRole"]});if((null==e?void 0:null===(c=e.addOrganizationAdmin)||void 0===c?void 0:c.status)!=="OK"){t({description:"".concat(null==e?void 0:null===(u=e.addOrganizationAdmin)||void 0===u?void 0:u.error,": Konnte nicht aktualiseren"),status:"error",duration:5e3,isClosable:!0});return}}t({description:"".concat(null==n?void 0:n.firstname," ").concat(null==n?void 0:n.lastname," ").concat(g?"ist nicht mehr ein Administrator":"ist jetzt ein Administrator"),status:"success",duration:1500,isClosable:!0})}catch(e){t({description:"".concat(e,": Konnte nicht aktualiseren"),status:"error",duration:5e3,isClosable:!0}),console.error(e)}};return(0,l.jsxs)(I.g,{background:"white",borderRadius:"bubble",gap:4,align:"start",padding:4,children:[(0,l.jsxs)(w.U,{justifyContent:"space-between",width:"full",children:[(0,l.jsx)(_.K,{children:(0,l.jsx)(C.rU,{href:"/profile/".concat(o.user.objectId),passHref:!0,children:(0,l.jsxs)(w.U,{align:"center",cursor:"pointer",gap:0,children:[(0,l.jsx)(k.q,{src:null==o?void 0:null===(i=o.photo)||void 0===i?void 0:i.url,mr:2}),(0,l.jsxs)(_.K,{gap:0,children:[(0,l.jsxs)(v.x,{color:"primary",fontWeight:"bold",children:[null==o?void 0:o.firstname," ",null==o?void 0:o.lastname]}),(0,l.jsx)(v.x,{color:"gray",fontWeight:"bold",children:null==o?void 0:o.jobDescription})]})]})})}),(0,l.jsx)(v.x,{bg:"lightGray",w:"fit-content",color:"grayText",py:1,px:4,fontSize:"xs",fontWeight:"bold",borderRadius:"bubble",textTransform:"uppercase",children:p})]}),(0,l.jsx)(A.k,{gap:2,flexWrap:"wrap",children:g?(0,l.jsxs)(C.zx,{isPrimary:!1,_hover:{bg:j?"red":"primary",color:"white"},bgColor:"transparent",color:j?"red":"primary",borderColor:j?"red":"primary",border:"1px",onClick:()=>{z({member:o,isMemberAdmin:j})},textTransform:"initial",gap:2,children:[j?"Admin entfernen":"Admin hinzuf\xfcgen",j?(0,l.jsx)(u.gO,{stroke:"none"}):(0,l.jsx)(u.L,{stroke:"none"})]}):null})]})},U=e=>{let{event:n}=e;return(0,l.jsx)(f.f,{as:"article",children:(0,l.jsxs)(i.x,{background:"white",borderRadius:"bubble",padding:8,children:[(0,l.jsx)(j(),{href:"/events/".concat(n.objectId),passHref:!0,children:(0,l.jsx)(f.A,{children:(0,l.jsx)(v.x,{color:"primary",fontWeight:"bold",children:null==n?void 0:n.title})})}),(0,l.jsx)(v.x,{noOfLines:3,dangerouslySetInnerHTML:{__html:null==n?void 0:n.shortDescription}})]})})},K=e=>{let{course:n}=e;return(0,l.jsx)(f.f,{as:"article",children:(0,l.jsxs)(i.x,{background:"white",borderRadius:"bubble",padding:8,children:[(0,l.jsx)(j(),{href:"/digital-academy/".concat(null==n?void 0:n.objectId),passHref:!0,children:(0,l.jsx)(f.A,{children:(0,l.jsx)(v.x,{color:"primary",fontWeight:"bold",children:null==n?void 0:n.name})})}),(0,l.jsx)(v.x,{noOfLines:3,dangerouslySetInnerHTML:{__html:null==n?void 0:n.description}})]})})}},77707:function(e,n,r){"use strict";r.d(n,{$:function(){return o},Ji:function(){return t},XQ:function(){return d},pD:function(){return i}});var l=r(692);let i=(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          }
1\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"),t=(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"),d=(0,l.P)("\n  mutation deleteChannel($objectId: ID) {\n    deleteChannel(input: { objectId: $objectId }) {\n      status\n      error\n    }\n  }\n")},17819:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSP:function(){return U},default:function(){return K}});var l=r(24476),i=r(53162),o=r(23952),t=r(12045),d=r(49341),s=r(75312),a=r(37251),c=r(596),u=r(61134),x=r(46949),p=r(3980),h=r(792),g=r(82973),j=r(55943),f=r(60905),v=r(50775),b=r(77659),m=r(77163),y=r(90588),I=r(89778),w=r(82698),_=r(77707),k=r(40841),A=r(75432),C=r(51357);let T=e=>{var n;let{employeeId:r}=e,{data:l,loading:i}=(0,A.aM)(C.oD,{variables:{employeeId:r},skip:!r});return{courses:null==l?void 0:null===(n=l.courses)||void 0===n?void 0:n.edges,loading:i}};var W=r(27846),$=r(25925),z=r(24117),U=!0,K=()=>{var e,n;let{t:r}=(0,$.Z)("profile"),A=r("profile.edit"),C=r("profile.send"),U=r("profile.aboutMe"),K=r("profile.projects"),S=r("profile.events"),H=r("profile.courses"),D=r("profile.nocontent"),O=r("profile.noprojects"),R=r("profile.noevents"),P=r("profile.nocourses"),E=r("profile.interests"),L=r("profile.postProfile"),N=r("profile.position"),V=(0,i.useRouter)(),{query:{id:q}}=V,{user:{userID:M,objectId:B}}=(0,w.aC)(),{firstname:Q,lastname:J,organization:X,ACL:F,location:G,phoneNumber:Z,bio:Y,createdAt:ee,jobDescription:en,photo:er,tags:el,employeeId:ei,loading:eo}=(0,k.aF)({userid:q}),{posts:et}=(0,k.Tz)({employeeId:ei}),{projects:ed}=(0,k.V1)({employeeId:ei}),{events:es}=(0,k.GP)({employeeId:ei}),{courses:ea}=T({employeeId:ei}),ec=[{value:(0,z.L0)(ee),icon:(0,l.jsx)(W.wZ,{})},{value:Z,icon:(0,l.jsx)(W.qW,{})}],eu=null==F?void 0:null===(n=F.users)||void 0===n?void 0:null===(e=n.find(e=>{let{userId:n}=e;return n===M}))||void 0===e?void 0:e.write,[ex]=(0,o.D)(_.Ji),ep=async()=>{var e,n;let{data:r}=await ex({variables:{employeeId:ei,name:"test"},refetchQueries:["getChannels"]});V.push("/messages?chatId=".concat(null==r?void 0:null===(n=r.createChannel)||void 0===n?void 0:null===(e=n.channel)||void 0===e?void 0:e.objectId))};return eo?(0,l.jsx)(t.M,{children:(0,l.jsx)(d.$,{})}):(0,l.jsxs)(s.K,{pt:32,px:{base:4,xl:14},gap:8,children:[(0,l.jsxs)(s.K,{padding:{base:4,lg:8},background:"secondary60",borderRadius:"bubble",minHeight:44,children:[(0,l.jsxs)(a.U,{align:"start",gap:4,children:[(0,l.jsx)(c.x,{marginTop:-16,width:"full",minWidth:200,maxHeight:200,maxWidth:200,children:(0,l.jsx)(u.o,{ratio:1,children:(0,l.jsx)(x.E,{src:null==er?void 0:er.url,fallbackSrc:"/assets/img/fallback.png",alt:"Profile thumbnail of ".concat(Q," ").concat(J),borderRadius:"bubble"})})}),(0,l.jsxs)(s.K,{children:[(0,l.jsxs)(p.x,{color:"primary",fontWeight:"bold",children:[Q," ",J]}),(0,l.jsxs)(a.U,{gap:1,color:"greyText",display:{base:"none",lg:"flex"},children:[Array.isArray(ed)&&(null==ed?void 0:ed.length)>0&&(0,l.jsxs)(p.x,{children:[null==ed?void 0:ed.length," Projekte"]}),Array.isArray(ea)&&(null==ea?void 0:ea.length)>0&&(0,l.jsxs)(p.x,{children:[null==ea?void 0:ea.length," Kurse"]}),es&&Array.isArray(es)&&(null==es?void 0:es.length)>0&&(0,l.jsxs)(p.x,{children:[null==es?void 0:es.length," Events"]})]}),(0,l.jsxs)(a.U,{gap:8,justify:"space-between",display:{base:"none",lg:"flex"},children:[(0,l.jsxs)(h.aV,{fontSize:"sm",color:"greyText",children:[(0,l.jsxs)(h.HC,{verticalAlign:"middle",children:[(0,l.jsx)(W.WJ,{mr:2}),en&&(0,l.jsxs)(p.x,{as:"span",children:[en," bei "]}),(0,l.jsx)(I.rU,{display:"inline",href:"/profile/company/".concat(null==X?void 0:X.objectId),fontWeight:"bold",children:null==X?void 0:X.name})]}),G&&(0,l.jsxs)(h.HC,{verticalAlign:"middle",children:[(0,l.jsx)(W._t,{mr:2}),G]})]}),Array.isArray(el)&&(null==el?void 0:el.length)>0?(0,l.jsxs)(s.K,{maxWidth:"3xl",children:[(0,l.jsx)(p.x,{color:"primary",children:E}),(0,l.jsx)(h.aV,{as:a.U,fontSize:"sm",color:"greyText",flexWrap:"wrap",children:null==el?void 0:el.map((e,n)=>{if((null==e?void 0:e.__typename)==="Element")return(0,l.jsx)(h.HC,{borderRadius:"full",color:"primary",borderColor:"primary",border:"1px",px:4,py:1,children:null==e?void 0:e.value},"".concat(null==e?void 0:e.value,"-").concat(n))})})]}):null]})]}),B===q||eu?(0,l.jsx)(I.rU,{href:"/settings",background:"primary",color:"white",px:8,py:2,borderRadius:"full",textTransform:"uppercase",_hover:{color:"primary",background:"secondary"},ml:"auto",display:{base:"none",lg:"block"},children:A}):(0,l.jsx)(I.zx,{wordBreak:"break-word",whiteSpace:"pre-wrap",width:"fit-content",textTransform:"none",isPrimary:!0,onClick:ep,display:{base:"none",lg:"block"},ml:"auto",children:C})]}),(0,l.jsxs)(a.U,{paddingTop:4,gap:8,justify:"space-between",display:{base:"flex",lg:"none"},flexWrap:"wrap",children:[" ",B===q||eu?(0,l.jsx)(I.rU,{href:"/settings",background:"primary",color:"white",px:8,py:2,borderRadius:"full",textTransform:"uppercase",_hover:{color:"primary",background:"secondary"},width:"full",display:{base:"block",lg:"none"},wordBreak:"break-word",whiteSpace:"pre-wrap",textAlign:"center",children:A}):(0,l.jsx)(I.zx,{wordBreak:"break-word",whiteSpace:"pre-wrap",textTransform:"none",isPrimary:!1,onClick:ep,display:{base:"block",lg:"none"},width:"full",children:C}),(0,l.jsxs)(h.aV,{fontSize:"sm",color:"greyText",children:[(0,l.jsxs)(h.HC,{verticalAlign:"middle",children:[(0,l.jsx)(W.WJ,{mr:2}),en&&(0,l.jsxs)(p.x,{as:"span",children:[en," bei "]}),(0,l.jsx)(I.rU,{display:"inline",href:"/profile/company/".concat(null==X?void 0:X.objectId),fontWeight:"bold",children:null==X?void 0:X.name})]}),G&&(0,l.jsxs)(h.HC,{verticalAlign:"middle",children:[(0,l.jsx)(W._t,{mr:2}),G]})]}),Array.isArray(el)&&(null==el?void 0:el.length)>0?(0,l.jsxs)(s.K,{maxWidth:"3xl",children:[(0,l.jsx)(p.x,{color:"primary",children:E}),(0,l.jsx)(h.aV,{as:a.U,fontSize:"sm",color:"greyText",flexWrap:"wrap",children:null==el?void 0:el.map((e,n)=>{if((null==e?void 0:e.__typename)==="Element")return(0,l.jsx)(h.HC,{borderRadius:"full",borderColor:"grayText",border:"1px",px:4,py:1,children:null==e?void 0:e.value},"".concat(null==e?void 0:e.value,"-").concat(n))})})]}):null]})]}
1),(0,l.jsxs)(a.U,{align:"start",gap:8,flexWrap:"wrap",children:[(0,l.jsxs)(g.m,{width:{base:"full",lg:"50%"},children:[(0,l.jsx)(j.t,{border:"none",children:[U,K,S,H].map(e=>(0,l.jsx)(f.O,{_selected:{background:"secondary60"},_hover:{background:"secondary60"},color:"primary",fontWeight:"600",px:4,mr:2,py:2,borderRadius:"bubble",children:e},e))}),(0,l.jsxs)(v.n,{children:[(0,l.jsx)(b.x,{px:0,children:(0,l.jsxs)(s.K,{background:"white",borderRadius:"bubble",padding:8,gap:2,color:"greyText",children:[(0,l.jsxs)(a.U,{justifyContent:"space-between",children:[(0,l.jsx)(p.x,{fontWeight:"bold",children:U}),B===q&&eu?(0,l.jsx)(I.rU,{href:"/settings",children:A}):null]}),Y?(0,l.jsx)(c.x,{children:(0,l.jsx)(I.UO,{content:Y,color:"greyText"})}):(0,l.jsx)(p.x,{mb:4,children:D}),(0,l.jsx)(h.aV,{children:ec.map(e=>e.value&&(0,l.jsx)(h.HC,{as:a.U,gap:2,align:"center",children:(0,l.jsxs)(p.x,{children:[e.icon," ",e.value]})},e.value))})]})}),(0,l.jsx)(b.x,{px:0,children:(0,l.jsx)(s.K,{spacing:4,children:Array.isArray(ed)&&(null==ed?void 0:ed.length)?ed.map(e=>{var n;return(0,l.jsx)(y.T5,{project:null==e?void 0:e.node},null==e?void 0:null===(n=e.node)||void 0===n?void 0:n.objectId)}):(0,l.jsx)(p.x,{children:O})})}),(0,l.jsx)(b.x,{px:0,children:(0,l.jsx)(s.K,{spacing:4,children:Array.isArray(es)&&(null==es?void 0:es.length)?es.map(e=>{var n;return(0,l.jsx)(y.pw,{event:null==e?void 0:e.node},null==e?void 0:null===(n=e.node)||void 0===n?void 0:n.objectId)}):(0,l.jsx)(p.x,{children:R})})}),(0,l.jsx)(b.x,{px:0,children:(0,l.jsx)(s.K,{spacing:4,children:Array.isArray(ea)&&(null==ea?void 0:ea.length)?null==ea?void 0:ea.map(e=>{var n;return(0,l.jsx)(y.$I,{course:null==e?void 0:e.node},null==e?void 0:null===(n=e.node)||void 0===n?void 0:n.objectId)}):(0,l.jsx)(p.x,{children:P})})})]})]}),(0,l.jsxs)(s.K,{flex:1,children:[(0,l.jsx)(p.x,{color:"primary",fontWeight:"bold",children:L}),Array.isArray(et)&&(null==et?void 0:et.length)>0?et.filter(e=>{var n;return!(null==e?void 0:null===(n=e.node)||void 0===n?void 0:n.relatedTo)}).map(e=>{var n;return(0,l.jsx)(m.V,{post:null==e?void 0:e.node},null==e?void 0:null===(n=e.node)||void 0===n?void 0:n.objectId)}):(0,l.jsx)(p.x,{children:N})]})]})]})}}},function(e){e.O(0,[7163,2888,9774,179],function(){return e(e.s=17961)}),_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.