PageSourceSearch

https://de.serlo.org/_next/static/chunks/pages/user/settings-79621aa2b897797c.js

js serlo.org collected 2026-09-24 17:44:01 UTC 13,494 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5168],{94784:function(e,n,t){"use strict";var r,s,c,l,i=t(2784);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}n.Z=function(e){return i.createElement("svg",a({viewBox:"0 0 966.3 1000"},e),r||(r=i.createElement("defs",null,i.createElement("style",null,".cl1{fill:#ca7a68}.cl2{fill:#e78780}"))),s||(s=i.createElement("path",{fill:"#1f0202",d:"M966 110c1 13-9 24-18 36-17 21-36 39-51 60-1 1-2 3-1 4 6 10-1 17-7 25-25 35-61 60-88 93-22 26-42 52-64 76l-64 67-48 55-81 93-100 104-75 74c-25 25-49 51-71 80-11 15-27 17-42 22l-146 58c-23 9-45 20-67 32a152 152 0 01-21 10c-8 3-14 0-19-6-6-7-2-16 1-23 16-31 29-63 42-95 15-37 31-74 44-112s42-69 69-99l76-86 75-85 89-103c30-34 58-65 89-96 35-36 73-69 109-104l83-82 39-35c5-4 10-5 16-2 3 2 4-1 6-2 25-23 49-48 81-63 28-13 53-4 73 17l64 68c4 4 7 9 7 19z"})),c||(c=i.createElement("path",{d:"M211 774c-106-26-73-39-61-59 48-57 100-109 147-166 99-117 201-231 314-336C756 72 716 99 758 125c23 21 44 21 22 39-71 71-124 149-188 223-126 130-261 251-381 387zM235 798c-2-6-1-11 4-15 61-60 112-125 174-183 198-182 238-241 310-331 110-129 85-100 119-78 9 10 23 15 26 26-12 21-33 37-50 54-114 129-204 224-258 287-76 91-163 171-244 256-23 22-38 51-44 48a91 91 0 01-37-64z",className:"cl1"})),l||(l=i.createElement("path",{d:"M245 873c-129 52-128 55-137 45-12-13-38-26-33-43 14-36 28-74 45-109 16 9 34 21 53 26 69 11 11 27 72 81zM844 27c31 0 61 49 74 59 7 12 28 20 16 34-27 32-54 66-60 63-108-90-120-88-112-96 25-23 49-49 82-60z",className:"cl2"})))}},14130:function(e,n,t){"use strict";var r,s,c=t(2784);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}n.Z=function(e){return c.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 972"},e),r||(r=c.createElement("path",{fill:"#03040f",d:"M999 159c2 37 2 66-3 94a526 526 0 01-37 129 614 614 0 01-143 203c-25 26-50 51-77 75L578 807l-90 80c-2 2 0 3 1 5 19 17 38 34 60 47 7 5 11 12 7 20s-10 10-18 8c-13-2-22-12-31-19-15-11-28-24-42-36-1-1-2-2-4 0-19 16-36 33-53 51-7 8-16 13-25 4s-5-18 2-26c15-15 30-31 46-44 15-12 0-16-4-21l-54-53-50-52-114-124c-30-31-57-65-83-99a664 664 0 01-74-127c-20-46-34-94-44-143-8-45-11-91-3-137C19 61 87 10 170 19c54 7 99 32 138 70 42 41 65 91 82 146l6 27a28 28 0 001 4 15 15 0 003-2A1093 1093 0 01755 20C796 3 838-6 880 2c36 7 65 26 86 56 23 33 30 70 34 100z"})),s||(s=c.createElement("path",{fill:"#8a93cc",d:"M32 182C34 54 141 23 230 71c86 45 131 138 140 231 0 9-2 18 10 22 9 3 15-5 20-12C482 204 824-57 929 64c50 56 44 159 31 216-39 174-159 278-267 380-274 247-223 205-236 202C198 597 34 451 32 182z"})))}},11012:function(e,n,t){"use strict";var r,s,c,l,i,a,o=t(2784);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}n.Z=function(e){return o.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1002 1030"},e),r||(r=o.createElement("defs",null,o.createElement("style",null,".c1{fill:#030303}.c2{fill:#7d8284}"))),s||(s=o.createElement("path",{d:"M613 497c-6 7-4 13 1 18 32 34 63 70 98 102l58 61c22 25 45 47 68 70s48 49 73 72c22 21 44 42 64 65 10 12 20 24 25 38 4 12 0 22-8 30l-51 55a100 100 0 01-33 20c-18 7-27-9-37-19-24-22-47-45-69-68-26-28-53-55-77-84-23-27-47-52-71-78-28-31-57-61-84-93l-79-94",className:"c1"})),c||(c=o.createElement("path",{fill:"#8fc3b6",d:"M399 592h-21c-79-8-168-45-238-101C61 428 17 351 15 272c-1-40 6-77 22-109 15-30 36-56 65-78 61-47 137-64 191-70h2c86 0 174 39 242 108s105 154 104 238v1c-1 68-27 127-73 169-44 40-104 61-169 61z"})),l||(l=o.createElement("path",{d:"M296 30c171 0 332 162 330 331-3 135-104 216-227 216h-19C228 563 33 433 30 272 25 113 162 44 294 30h1m1-30h-5a466 466 0 00-104 23c-36 13-68 30-95 50A234 234 0 000 273c2 83 48 164 131 230 71 57 164 96 246 104h1a305 305 0 00118-16 243 243 0 0082-49 231 231 0 0056-78c14-31 21-65 22-102 1-89-38-180-108-250S385 0 296 0z"})),i||(i=o.createElement("path",{d:"M712 659c288 319 294 236 202 331-11 9-14 5-23-5-77-76-147-152-219-231-41-41-9-11 40-95zM684 636c-7 30-36 58-53 69-27-18-47-55-72-79-63-73-39-32 27-94 31 28 65 71 98 104z",className:"c2"})),a||(a=o.createElement("path",{d:"M559 329c2 46-9 85-36 120a147 147 0 01-33 32c-8 6-16 4-22-4s-3-14 5-20c41-33 59-76 55-129-2-30-8-59-2
11-85-17-33-39-63-69-86-17-13-32-28-48-42-9-7-10-16-2-25s15-4 23 3c21 19 44 37 65 57a263 263 0 0183 179z",className:"c1"})))}},80438:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/settings",function(){return t(15443)}])},10662:function(e,n,t){"use strict";t.d(n,{V:function(){return i}});var r=t(52322),s=t(97729),c=t.n(s),l=t(34387);function i(e){let{headTitle:n,title:t,icon:s,extraBold:i}=e;return(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)(c(),{children:(0,r.jsx)("title",{children:t})}),(0,r.jsxs)("h1",{className:(0,l.cn)("serlo-h1 mt-20 hyphens-manual",i&&"text-4xl font-extrabold tracking-tight text-almost-black"),children:[t," ",s]})]})}},50448:function(e,n,t){"use strict";t.d(n,{x:function(){return m}});var r=t(52322),s=t(2784),c=t(67063),l=t(22435),i=t(50079),a=t(31668);function o(e){let{error:n}=e,{strings:t}=(0,a.xN)();return console.error(n),(0,r.jsxs)("p",{className:"serlo-p mt-12 text-brand",children:[(0,r.jsx)(i.J,{icon:l.RL})," ",t.loading.unknownProblem]})}var u=t(51515),d=t(72329);function m(e){let{children:n,data:t,error:l,needsAuth:i}=e,a=(0,c.J)(),[m,h]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{i&&h(!0)},[i]),i&&!m)?null:i&&null===a?(0,r.jsx)(d.I,{}):t||l?l?(0,r.jsx)(o,{error:JSON.stringify(l)}):t&&n?(0,r.jsx)(r.Fragment,{children:n}):null:(0,r.jsx)(u.T,{noText:!0})}},72329:function(e,n,t){"use strict";t.d(n,{I:function(){return l}});var r=t(52322),s=t(30675),c=t(31668);function l(e){let{noWrapper:n}=e,{strings:t}=(0,c.xN)();if(n)return l();return(0,r.jsx)("p",{className:"serlo-p",children:l()});function l(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.r,{href:"/auth/login",children:t.auth.pleaseLogInLink})," ",t.auth.pleaseLogInText]})}}},58052:function(e,n,t){"use strict";t.d(n,{D:function(){return o},E:function(){return u}});var r=t(52322),s=t(94784),c=t(14130),l=t(11012),i=t(30675),a=t(31668);function o(e){let{user:n,withIcon:t,noBadges:o,className:d}=e,{strings:m}=(0,a.xN)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(i.r,{href:"/user/profile/".concat(n.username),className:d,children:[t&&(0,r.jsx)("img",{className:"mr-2 w-9 rounded-full align-middle",src:u(n.username),alt:"User-Avatar: ".concat(n.username)}),n.username,!o&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("span",{className:"ml-[3px] inline-block align-text-bottom",children:[n.isActiveReviewer&&(0,r.jsx)("span",{title:m.roles.reviewer,children:(0,r.jsx)(l.Z,{className:"ml-1 inline h-auto w-4"})}),n.isActiveAuthor&&(0,r.jsx)("span",{title:m.roles.author,children:(0,r.jsx)(s.Z,{className:"ml-1 inline h-auto w-4"})}),n.isActiveDonor&&(0,r.jsx)("span",{title:m.roles.donor,children:(0,r.jsx)(c.Z,{className:"ml-1 inline h-auto w-4"})})]})})]})})}function u(e){return"https://community.serlo.org/avatar/".concat(e)}},76508:function(e,n,t){"use strict";t.d(n,{bv:function(){return o},oU:function(){return a},vu:function(){return u}});var r=t(73235),s=t(2409);function c(){let e=(0,r._)(["\n  fragment userData on User {\n    username\n    date\n    lastLogin\n    description\n    isActiveReviewer\n    isActiveAuthor\n    isActiveDonor\n    chatUrl\n    imageUrl\n    motivation\n    roles {\n      nodes {\n        scope\n        role\n      }\n    }\n    activityByType {\n      edits\n      comments\n      reviews\n      taxonomy\n    }\n  }\n"]);return c=function(){return e},e}function l(){let e=(0,r._)(["\n  fragment basicUserData on User {\n    id\n    username\n    isActiveAuthor\n    isActiveDonor\n    isActiveReviewer\n    isNewAuthor\n  }\n"]);return l=function(){return e},e}function i(){let e=(0,r._)(["\n  query userByUsername($username: String!) {\n    authorization\n    user {\n      userByUsername(username: $username) {\n        id\n        __typename\n        trashed\n        ...userData\n      }\n    }\n  }\n\n  ","\n"]);return i=function(){return e},e}let a=(0,s.Ps)(c()),o=(0,s.Ps)(l()),u=(0,s.Ps)(i(),a)},15443:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return I}});var r=t(52322),s=t(1229),c=t(67063),l=t(10662),i=t(23306),a=t(50448),o=t(38719),u=t(72329),d=t(62378),m=t(73235),h=t(2409),f=t(22428),x=t(84185);function p(){let e=(0,m._)(["\n  mutation setDescription($input: UserSetDescriptionInput!) {\n    user {\n      setDescription(input: $input) {\n        success\n      }\n    }\n  }\n"]);return p=function(){return e},e}let j=(0,h.Ps)(p());
1var v=t(71873),g=t(85941);function N(e){let{username:n,rawDescription:t}=e,s=function(){let e=(0,c.J)(),n=(0,f.K)(),t=(0,x.X)();return async function(r){if(e)return t({success:await n(j,r),toastKey:"save",redirectUrl:"/user/profile/".concat(e.username)})}}(),l=async e=>{let t=await s({description:e.description});return t?(0,d.t)("/user/profile/".concat(n)):(console.error(t,e),!1)},i=(0,v.xz)(t);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"[&>div.relative]:mt-12",children:(0,r.jsx)(g.R,{onSave:l,initialState:i})})})}var w=t(58052),b=t(31668),y=t(95529),k=t(98041),E=t(34387),A=t(51592);function _(e){let{rawDescription:n}=e,t=(0,y.t)(),{lang:s}=(0,b.xN)(),l=(0,c.J)();if(!l)return null;let i=l.username;if(!t)return null;let a=t.strings.profileSettings;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{id:"image",className:"serlo-h2",children:a.editImage.header}),function(){let{buttonText:e,description:n,steps:t}=a.editImage,s=(0,r.jsx)("a",{className:"serlo-link",href:"https://community.serlo.org",children:"community.serlo.org"}),c=(0,r.jsx)("a",{className:"serlo-link",href:"https://community.serlo.org/account/profile",children:t.myAccount}),l=(0,r.jsx)("a",{className:"serlo-link cursor-pointer",onClick:async()=>{let e=await caches.open("v1");await e.delete((0,w.E)(i)),location.reload()},children:t.refreshLink});return o(e,(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"serlo-p mt-5",children:(0,A.w)(n,{chatLink:s})}),(0,r.jsxs)("ol",{className:"serlo-ol",children:[(0,r.jsx)("li",{children:(0,A.w)(t.goToChat,{chatLink:s})}),(0,r.jsx)("li",{children:t.signIn}),(0,r.jsx)("li",{children:(0,A.w)(t.goToMyAccount,{myAccountLink:c})}),(0,r.jsx)("li",{children:t.uploadPicture}),(0,r.jsx)("li",{children:(0,A.w)(t.refreshPage,{refreshLink:l})})]})]}))}(),(0,r.jsx)("h2",{id:"motivation",className:"serlo-h2",children:a.motivation.header}),function(){if(s!==k.K4.De)return null;let{buttonText:e,intro:n,privacy:t,toForm:c}=a.motivation,l="https://docs.google.com/forms/d/e/1FAIpQLSdb_My7YAVNA7ha9XnBcYCZDk36cOqgcWkBqowatbefX0IzEg/viewform?usp=pp_url&entry.14483495=".concat(i);return o(e,(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"serlo-p mt-5",children:n}),(0,r.jsx)("p",{className:"serlo-p",children:t}),(0,r.jsx)("p",{className:"serlo-p",children:(0,r.jsx)("a",{href:l,className:"serlo-button-learner-primary",children:c})})]}))}(),(0,r.jsx)("h2",{className:"serlo-h2",children:a.editAbout}),(0,r.jsx)(N,{rawDescription:n,username:i}),(0,r.jsx)("h2",{id:"delete",className:"serlo-h2",children:a.delete.heading}),function(){let e="".concat(a.delete.deleteAccount,": ").concat(i),n=encodeURIComponent(e);return(0,r.jsx)("p",{className:"serlo-p",children:(0,A.w)(a.delete.text,{mailLink:(0,r.jsx)("a",{href:"mailto:[email protected]?subject=".concat(n),className:"serlo-link",children:"[email protected]"}),subjectLine:(0,r.jsx)("b",{children:'"'.concat(e,'"')}),break:(0,r.jsx)("br",{})})})}()]});function o(e,n){return(0,r.jsxs)("div",{className:(0,E.cn)("mb-block flex flex-col rounded-lg border-3","border-brand-200 [&>div.my-block:first-of-type]:mt-5"),children:[(0,r.jsx)("div",{className:(0,E.cn)("serlo-input-font-reset m-0 border-none bg-brand-200 px-side py-2.5","text-left text-lg leading-normal text-almost-black transition-colors"),children:(0,r.jsxs)("span",{className:"flex",children:[(0,r.jsxs)("span",{className:"inline-block w-4",children:["▾ "," "]}),e]})}),n]})}}var z=t(76508),I=(0,t(53972).Q)(()=>(0,r.jsx)(i.V,{noIndex:!0,children:(0,r.jsx)(M,{})}));function M(){var e,n;let{strings:t}=(0,b.xN)(),i=(0,c.J)(),{data:d,error:m}=(n=null==i?void 0:i.username,(0,s.IG)({query:z.vu,variables:{username:n},noKey:void 0===n,config:{refreshInterval:6e5}})),h=null==d?void 0:null===(e=d.user)||void 0===e?void 0:e.userByUsername,f=(null==h?void 0:h.description)&&"NULL"!==h.description?h.description:"";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.O,{data:[{label:t.entities.userProfile,url:i?"/user/profile/".concat(i.username):"/user/me"}],asBackButton:!0}),(0,r.jsx)(l.V,{title:t.pageTitles.editProfile,headTitle:!0}),i?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.x,{data:d,error:m,needsAuth:!0,children:(0,r.jsx)(_,{rawDescription:f})})}):(0,r.jsx)(u.I,{})]})}}},function(e){e.O(0,[5089,1364,2941,2409,8870,4233,965,7899,5257,8384,3306,9692,440,2944,6179,2888,9774,179],function(){return e(e.s=80438)}),_N_E=e.O()}]);
2//# sourceMappingURL=settings-79621aa2b897797c.js.map

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.