PageSourceSearch

https://app.baumev.de/_next/static/chunks/pages/users/[userid]-a0da0ccdd5acfc25.js

js baumev.de collected 2026-10-02 06:41:03 UTC 10,303 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]="b1c9220c-361c-410e-ae8e-0d44d3809c69",e._sentryDebugIdIdentifier="sentry-dbid-b1c9220c-361c-410e-ae8e-0d44d3809c69")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2573],{82494:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/users/[userid]",function(){return i(59304)}])},59304:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return B},default:function(){return K}});var t=i(24476);i(64660);var s=i(53162),l=i(952),o=i(596),r=i(3980),a=i(55741),d=i(82973),c=i(55943),u=i(60905),p=i(50775),m=i(77659),f=i(50333),x=i(82698),h=i(40841),b=i(25925),g=i(63984),v=i(23952),j=i(62682),_=i(64536),w=i(75891),k=i(75312),y=i(37251),C=i(48455),I=i(3319),U=i(63903),D=i(89778),P=i(40597),S=i(29354),z=i(66676),L=i(6961),R=i(27846),O=i(6345);let T=(0,i(30331).Ry)({firstname:O.n.string,lastname:O.n.stringOptional,phoneNumber:O.n.stringOptional,jobDescription:O.n.stringOptional,location:O.n.stringOptional,email:O.n.email,bio:O.n.stringOptional,tags:O.n.tagsOptions,salutation:O.n.select,title:O.n.select,position:O.n.select}),A=e=>{var n,i,s;let l,o,{userId:a,userStatus:d}=e,{isOpen:c,onOpen:u,onClose:p}=(0,j.q)(),{t:m}=(0,b.Z)("common"),f=m("common.logout"),x=m("settings.mail"),g=m("company.save"),O=m("register.first"),A=m("register.last"),B=(0,_.p)(),{firstname:K,lastname:E,email:N,salutation:M,title:W,position:F,code:q,isEmailConfirmed:X,organization:H,acceptedTermsAt:Q,role:V,createdBy:Z,initiator:$,user:J}="temp"===d?(0,h.OR)({tempUserId:a}):(0,h.BQ)({confUserId:a});if("conf"===d){let{employeeId:e}=(0,h.aF)({userid:null==J?void 0:J.objectId}),{firstname:n,lastname:i}=(0,h.Ei)({employeeId:e});l=n,o=i}let G="temp"===d&&X?"pending_admin_confirmation":"temp"!==d||X?"conf"===d&&H?"pending_set_password":"pending_reset_password":"pending_mail_confirmation",[Y]=(0,v.D)(L.o8),[ee]=(0,v.D)(L.$1),[en]=(0,v.D)(L.DP),[ei]=(0,v.D)(L.vp),[et]=(0,v.D)(L.Vx),es=async e=>{let{firstname:n,lastname:i,email:t,salutation:s,title:l,position:o,acceptedTermsAt:r,role:c,createdBy:u}=e;try{var p,m,f,x;if("temp"===d){let{data:e}=await Y({variables:{tempUserID:a,user:{name:n,role:c,email:t,title:null==l?void 0:l.value,lastname:i,position:null==o?void 0:o.value,salutation:null==s?void 0:s.value,acceptedTermsAt:r}}});if((null==e?void 0:null===(p=e.UpdateTempUser)||void 0===p?void 0:p.status)!=="OK"){B({description:"".concat(null==e?void 0:null===(m=e.UpdateTempUser)||void 0===m?void 0:m.error,": Konnte nicht aktualiseren"),status:"error",duration:5e3,isClosable:!0});return}B({description:"Benutzer erfolgreich aktualisiert",status:"success",duration:5e3,isClosable:!0})}if("conf"===d){let{data:e}=await en({variables:{confUserID:a,user:{name:n,role:c,email:t,title:null==l?void 0:l.value,lastname:i,position:null==o?void 0:o.value,createdBy:u,salutation:null==s?void 0:s.value,acceptedTermsAt:r}}});if((null==e?void 0:null===(f=e.UpdateConfUser)||void 0===f?void 0:f.status)!=="OK"){B({description:"".concat(null==e?void 0:null===(x=e.UpdateConfUser)||void 0===x?void 0:x.error,": Konnte nicht aktualiseren"),status:"error",duration:5e3,isClosable:!0});return}B({description:"Benutzer erfolgreich aktualisiert",status:"success",duration:5e3,isClosable:!0})}}catch(e){B({description:"".concat(e,": Konnte nicht aktualiseren"),status:"error",duration:5e3,isClosable:!0})}},el=async()=>{var e,n;let{data:i}=await et({variables:{userId:a,userStatus:"temp"===d&&X?"pending_admin_confirmation":"temp"!==d||X?"conf"===d&&H?"pending_set_password":"pending_reset_password":"pending_mail_confirmation"}});(null==i?void 0:null===(e=i.SendLink)||void 0===e?void 0:e.status)!=="OK"?B({description:"".concat(null==i?void 0:null===(n=i.SendLink)||void 0===n?void 0:n.error,": Send link Failed, please try again"),status:"error",duration:5e3,isClosable:!0}):B({description:"Link has been sent successfully",status:"success",duration:5e3,isClosable:!0})},eo=async()=>{var e,n,i,t;if("temp"===d){let{data:i}=await ee({variables:{tempUserID:a}});(null==i?void 0:null===(e=i.DeleteTempUser)||void 0===e?void 0:e.status)!=="OK"?B({description:"".concat(null==i?void 0:null===(n=i.DeleteTempUser)||void 0===n?void 0:n.error,": Benutzer l\xf6schen fehlgeschlagen"),status:"error",duration:5e3,isClosable:!0}):B({description:"Benutzer wurde gel\xf6scht",status:"success",duration:5e3,isClosable:!0})}if("conf"===d){let{data:e}=await ei({variables:{confUserID:a}});(null==e?void 0:null===(i=e.DeleteConfUser)||void 0===i?void 0:i.status)!=="OK"?B({description:"".concat(null==e?void 0:null===(t=e.DeleteConfUser)||void 0===t?void 0:t.error,": Benutzer l\xf6schen fehlgeschlagen"),status:"error",duration:5e3,isClosable:!0}):B({description:"Benutzer wurde gel\xf6scht",status:"success",duration:5e3,isClosable:!0})}p()},er=window.location.origin;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.k,{gap:4,pb:8,flexWrap:"wrap",children:(0,t.jsx)(w.k,{flex:2,children:(0,t.jsx)(I.l0,{onSubmit:es,validationSchema:T,enableReinitialize:!0,initialValues:{firstname:null!==(n=null!=K?K:l)&&void 0!==n?n:"",lastname:null!==(i=null!=E?E:o)&&void 0!==i?i:"",role:V,email:null!==(s=null!=N?N:$)&&void 0!==s?s:"",AdminConfirmationLink:"".concat(er,"/employeeEntry/").concat(N,"/").concat(q,"/true"),MailConfirmationLink:"".concat(er,"/confirmation/").concat(q),SetPasswordLink:"".concat(er,"/password_set/").concat(q),ResetPasswordLink:"".concat(er,"/password_reset/").concat(q),salutation:{value:M,label:M},title:{value:W,label:W},position:{value:F,label:F},acceptedTermsAt:Q,createdBy:Z},children:(0,t.jsxs)(k.K,{width:"full",bg:"white",px:12,py:12,borderRadius:"bubble",minH:"800px",children:[(0,t.jsxs)(w.k,{dir:"row",bg:"secondary",minH:"50px",w:"calc(100% + 50px)",ml:"-25px",mt:-30,borderRadius:"5px",p:5,children:[(0,t.jsxs)(w.k,{direction:"column",children:[(0,t.jsx)(r.x,{fontSize:"12px",pb:"5px",children:"User Status"}),(0,t.jsx)(r.x,{p:2,bg:"primary",fontSize:"12px",color:"white",borderRadius:"5px",children:"temp"===d&&X?"Pending Admin Confirmation":"temp"!==d||X?"conf"===d&&H?"Pending Set Password":"Pending Reset Password":"Pending Mail Confirmation"})]}),(0,t.jsx)(D.zx,{isPrimary:!1,ml:"auto",bg:"tomatoRed",mt:"14px",fontSize:"13px",color:"white",_hover:{bg:"red"},onClick:()=>{u()},children:"L\xf6schen"})]}),(0,t.jsx)(y.U,{alignItems:"center",gap:4,mt:1,mb:4,verticalAlign:"middle"}),(0,t.jsxs)(k.K,{gap:4,flexDir:"column",flexWrap:"wrap",children:[(0,t.jsxs)(y.U,{children:[(0,t.jsx)(I.Ph,{name:"salutation",options:S.L.map(e=>{let{label:n,value:i}=e;return{label:n,value:i}}),placeholder:"Bitte ausw\xe4hlen",label:"Anrede*"}),(0,t.jsx)(I.Ph,{name:"title",options:z.F.map(e=>{let{label:n,value:i}=e;return{label:n,value:i}}),placeholder:"Bitte ausw\xe4hlen",label:"Titel*"})]}),(0,t.jsxs)(y.U,{children:[(0,t.jsx)(I.II,{name:"firstname",placeholder:"",label:O}),(0,t.jsx)(I.II,{name:"lastname",placeholder:"",label:A})]}),(0,t.jsxs)(y.U,{children:[(0,t.jsx)(I.II,{name:"email",placeholder:"[email protected]",label:x,isDisabled:!0}),(0,t.jsx)(I.Ph,{name:"position",options:P.m.map(e=>{let{label:n,value:i}=e;return{label:n,value:i}}),placeholder:"Bitte ausw\xe4hlen",label:"Position*"})]}),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(w.k,{direction:"column",gap:5,children:[(0,t.jsx)(I.II,{name:"pending_admin_confirmation"===G?"AdminConfirmationLink":"pending_mail_confirmation"===G?"MailConfirmationLink":"pending_set_password"===G?"SetPasswordLink":"ResetPasswordLink",placeholder:"",label:"pending_admin_confirmation"===G?"Admin Confirmation Link":"pending_mail_confirmation"===G?"Mail Confirmation Link":"pending_set_password"===G?"Set Password Link":"Reset Password Link",isDisabled:!0,_hover:{cursor:"text"}}),(0,t.jsx)(D.zx,{isPrimary:!1,w:"10%",h:"30px",ml:"auto",mt:-58,fontSize:12,onClick:()=>el(),children:"Send Link"})]})})]}),(0,t.jsx)(I.Mm,{alignSelf:"flex-end",marginTop:"8",borderRadius:"bubble",px:12,children:g}),(0,t.jsx)(r.x,{fontStyle:"italic",fontSize:"sm",children:"*nicht im Profil sichtbar"})]})})})}),(0,t.jsxs)(w.k,{ml:"auto",width:"fit-content",my:8,alignItems:"center",gap:"4",children:[(0,t.jsx)(D.rU,{href:"/logout",children:f})," ",(0,t.jsx)(R.R0,{})]}),(0,t.jsx)(C.M,{minChildWidth:"400px",gap:4,children:(0,t.jsx)(U.fj,{isOpen:c,onClose:p,isCentered:!0,children:(0,t.jsxs)(w.k,{flexDir:"column",gap:2,children:[(0,t.jsx)(r.x,{mt:4,children:"Sie sind dabei, den User und alle Inhalte zu l\xf6schen."}),(0,t.jsx)(r.x,{fontWeight:"bold",textAlign:"center",children:"".concat(K," ").concat(E)}),(0,t.jsxs)(w.k,{gap:4,children:[(0,t.jsx)(D.zx,{isPrimary:!1,onClick:()=>eo(),bgColor:"tomatoRed",borderRadius:"bubble",flex:"1",px:4,children:"L\xf6schen"}),(0,t.jsx)(D.zx,{isPrimary:!1,color:"white",px:"12",flex:"1",onClick:p,children:"Cancel"})]})]})})})]})};var B=!0,K=()=>{let e=(0,s.useRouter)(),{query:{userid:n}}=e,{userstatus:i}=e.query,{user:{objectId:v}}=(0,x.aC)(),{t:j}=(0,b.Z)("common"),_=j("common.organisation"),[w]=(0,l.a)("(max-width: 768px)"),{query:k}=(0,s.useRouter)(),{role:y}=(0,h.j$)({userId:v}),C=k.from&&"company-profile"===decodeURIComponent(k.from)?1:0,I=["User Details","admin"===y&&"temp"!==i&&"conf"!==i?"".concat(_," Details"):""],{organisation:U,userId:D}=(0,h.Ei)({employeeId:n});return(0,t.jsxs)(o.x,{pt:"8rem",px:{base:4,xl:14},children:[(0,t.jsx)(r.x,{as:"h1",color:"primary",fontSize:"2xl",fontWeight:"bold",mb:"2",children:"temp"===i||"conf"===i?"Temp User":"Registerd User"}),(0,t.jsx)(a.i,{}),(0,t.jsxs)(d.m,{orientation:w?"horizontal":"vertical",mt:8,defaultIndex:C,children:[(0,t.jsx)(c.t,{flex:1,mb:"6",overflowX:["scroll","initial"],h:"fit-content",children:I.map(e=>e&&(0,t.jsx)(u.O,{_selected:{borderColor:"primary",color:"primary",fontWeight:" bold"},textAlign:"start",justifyContent:"flex-start",children:e},e))}),(0,t.jsxs)(p.n,{flex:3,children:[(0,t.jsx)(m.x,{pt:0,children:"registerd"===i?(0,t.jsx)(g._,{employeeId:n,userId:D}):n&&(0,t.jsx)(A,{userId:n,userStatus:i})}),(0,t.jsx)(m.x,{pt:0,children:"admin"===y&&(0,t.jsx)(f.Q,{organizationId:null==U?void 0:U.objectId,userId:D})})]})]})]})}}},function(e){e.O(0,[7362,3903,2888,9774,179],function(){return e(e.s=82494)}),_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.