PageSourceSearch

https://www.moviepilot.de/_next/static/chunks/pages/users/[permalink]/edit/membership-2730df0383e7c2e6.js

js moviepilot.de collected 2026-10-02 03:33:29 UTC 18,499 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8380,8357,8818,6842],{4149:function(e,t,n){var r;!function(t){"use strict";var debug=function(){},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function FastDom(){this.reads=[],this.writes=[],this.raf=i.bind(t),debug("initialized",this)}function scheduleFlush(e){e.scheduled||(e.scheduled=!0,e.raf(flush.bind(null,e)),debug("flush scheduled"))}function flush(e){debug("flush");var t,n=e.writes,r=e.reads;try{debug("flushing reads",r.length),e.runTasks(r),debug("flushing writes",n.length),e.runTasks(n)}catch(e){t=e}if(e.scheduled=!1,(r.length||n.length)&&scheduleFlush(e),t){if(debug("task errored",t.message),e.catch)e.catch(t);else throw t}}function remove(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}FastDom.prototype={constructor:FastDom,runTasks:function(e){var t;for(debug("run tasks");t=e.shift();)t()},measure:function(e,t){debug("measure");var n=t?e.bind(t):e;return this.reads.push(n),scheduleFlush(this),n},mutate:function(e,t){debug("mutate");var n=t?e.bind(t):e;return this.writes.push(n),scheduleFlush(this),n},clear:function(e){return debug("clear",e),remove(this.reads,e)||remove(this.writes,e)},extend:function(e){if(debug("extend",e),"object"!=typeof e)throw Error("expected object");var t=Object.create(this);return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var s=t.fastdom=t.fastdom||new FastDom;void 0!==(r=(function(){return s}).call(s,n,s,e))&&(e.exports=r)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},23493:function(e,t,n){var r=n(23279),i=n(13218);e.exports=function(e,t,n){var s=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(s="leading"in n?!!n.leading:s,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:s,maxWait:t,trailing:a})}},50617:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/users/[permalink]/edit/membership",function(){return n(59702)}])},77029:function(e,t,n){"use strict";n.d(t,{$J:function(){return toggleModal},K4:function(){return showModal},VG:function(){return hideModal}});var r=n(65664),i=n(85888),showModal=function(e,t){return function(n){return(0,i.Z)(!0),n((0,r.u)(e,t))}},hideModal=function(){return function(e){return(0,i.Z)(!1),e((0,r.V)())}},toggleModal=function(e,t){return function(n,i){return n(i().modal.modalType===e?(0,r.V)():(0,r.u)(e,t))}}},76842:function(e,t,n){"use strict";n.r(t);var r=n(72253),i=n(14932),s=n(85893),a=n(45697),o=n.n(a),u=n(33406),c=n(51250),l=n(52439),H2=function(e){var t=e.title,n=e.url,a=e.tracking,o=e.children,d=e.className,f=e.id,h=e.noBorder,p=e.as;return(0,s.jsx)(c.N,{className:d,id:f,noBorder:h,children:(0,s.jsx)(c.x,{as:p,children:n?(0,s.jsx)(u.default,{href:n,children:(0,s.jsx)(c.A,(0,i._)((0,r._)({title:t,rel:"follow"},(0,l.hN)(a)),{children:o}))}):o})})};H2.propTypes={className:o().string,url:o().string,title:o().string,tracking:o().object,children:o().any,id:o().string,noBorder:o().bool,as:o().string},H2.defaultProps={className:null,url:void 0,title:void 0,tracking:{},children:null,id:void 0,noBorder:!1,as:void 0},t.default=H2},28818:function(e,t,n){"use strict";n.r(t);var r=n(72253),i=n(14932),s=n(47702),a=n(85893),o=n(45697),u=n.n(o),c=n(33406),l=n(94277),d=n(52439),H3=function(e){var t=e.title,n=e.url,o=e.tracking,u=e.children,f=e.id,h=e.className,p=(0,s._)(e,["title","url","tracking","children","id","className"]);return(0,a.jsx)(l.e,{className:h,id:f,children:null!=n?(0,a.jsx)(c.default,{href:n,children:(0,a.jsx)("a",(0,i._)((0,r._)({title:t},(0,d.hN)(o),p),{children:u}))}):u})};H3.propTypes={children:u().any,additionalParams:u().any,className:u().string,id:u().string,url:u().string,title:u().string,tracking:u().object},H3.defaultProps={children:null,additionalParams:null,className:null,id:"",url:void 0,title:void 0,tracking:{}},t.default=H3},51250:function(e,t,n){"use strict";n.d(t,{A:function(){return l},N:function(){return c},x:function(){return u}});var r=n(82729),i=n(19521),s=n(58101),a=n(9195),o=n(5367);
1function _templateObject(){var e=(0,r._)(["\n    padding-bottom: 11px;\n    font-size: 30px;\n    line-height: 1.13;\n  "]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,r._)(["\n  ","\n  display: inline-block;\n  margin: 0 0 -1px;\n  padding: 0 10px 10px 0;\n  border-bottom: 1px solid ",";\n  font-size: 23px;\n  line-height: 1.25;\n  text-transform: uppercase;\n\n  ","\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,r._)(["\n    border-bottom: 0;\n    margin-bottom: 0;\n\n    "," {\n      border-bottom: 0;\n    }\n  "]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,r._)(["\n  display: block;\n  margin-bottom: 20px;\n  border-bottom: 1px solid ",";\n\n  ","\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,r._)(["\n  text-decoration: none;\n"]);return _templateObject4=function(){return e},e}var u=i.ZP.h2.withConfig({componentId:"sc-39130209-0"})(_templateObject1(),(0,o.sX)({spacing:.04,weight:600}),s.rP,(0,a.gv)((0,i.iv)(_templateObject()))),c=i.ZP.div.withConfig({componentId:"sc-39130209-1"})(_templateObject3(),s._4,function(e){return e.noBorder&&(0,i.iv)(_templateObject2(),u)}),l=i.ZP.a.withConfig({componentId:"sc-39130209-2"})(_templateObject4())},94277:function(e,t,n){"use strict";n.d(t,{L:function(){return o},e:function(){return u}});var r=n(82729),i=n(19521),s=n(9195),a=n(58101);function _templateObject(){var e=(0,r._)(["\n    font-size: 18px;\n  "]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,r._)(["\n  color: ",";\n  font-size: 15px;\n  font-weight: 400;\n\n  a {\n    color: ",";\n    text-decoration: none;\n  }\n\n  ",";\n\n  &:first-child {\n    margin-top: 0;\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,r._)(["\n  ","\n"]);return _templateObject2=function(){return e},e}var o=(0,i.iv)(_templateObject1(),a.O5,a.O5,(0,s.gv)((0,i.iv)(_templateObject()))),u=i.ZP.h3.withConfig({componentId:"sc-178d9ca2-0"})(_templateObject2(),o)},95971:function(e,t,n){"use strict";n.d(t,{lc:function(){return fetchUserCurrentEmail},j_:function(){return fetchUserSettings},TO:function(){return requestUserData},wo:function(){return submitAccountDeletionRequest},f$:function(){return submitUpdateEmailAddress},dV:function(){return submitUpdatePassword},o5:function(){return submitUpdateProfile},FJ:function(){return submitUserSettings}});var r=n(72253),i=n(11163),s=n.n(i),a=n(27361),o=n.n(a),u=n(41609),c=n.n(u),l=n(50308),d=n.n(l),f=n(85957),h=n(88183),p=n(83696),fetchedUserSettings=function(e){return{type:p.n,data:e}},fetchedUserCurrentEmail=function(e){return{type:p.j,data:e}},m=n(79979),b=n(93271),g="/api/users",createApiBaseUrlWithUserId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"".concat(g,"/").concat(e)},getUserIdWithGetState=function(e){return o()(e().session,"data.id",null)},fetchUserSettings=function(){return function(e,t){var n=getUserIdWithGetState(t);if(n){var r="".concat(createApiBaseUrlWithUserId(n)).concat("/edit_settings");f.Z.get(r).then(function(t){var n=t.data;e(fetchedUserSettings((0,b.zW)(n)))})}}},submitUserSettings=function(e){return function(t,n){if(!c()(e)){var i=getUserIdWithGetState(n),s="".concat(createApiBaseUrlWithUserId(i)).concat("/update_settings"),a={user_setting:(0,r._)({},e)};f.Z.put(s,a).then(function(e){var n=e.data;t(fetchedUserSettings((0,b.zW)(n))),t((0,m.s$)({message:"Die Einstellungen wurden gespeichert"}))}).catch(function(){t((0,m.x2)())})}}},fetchUserCurrentEmail=function(){return function(e,t){var n=getUserIdWithGetState(t);if(n){var r="".concat(createApiBaseUrlWithUserId(n)).concat("/email");f.Z.get(r).then(function(t){var n=t.data;e(fetchedUserCurrentEmail((0,b.zW)(n)))})}}},submitUpdateEmailAddress=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d();return function(n,i){var s=getUserIdWithGetState(i),a={user:(0,r._)({},e)};if(s){var u="".concat(g).concat("/update_email");f.Z.put(u,a).then(function(e){var r=e.data;t(),n(fetchedUserCurrentEmail((0,b.zW)(r))),n((0,m.s$)({message:"Deine E-Mail Adresse wurde aktualisiert"}))}).catch(function(e){var t=e.response;n((0,m.x2)({responseCode:t.status,message:o()(t,"data.email",[])[0]}))})}}},submitUpdatePassword=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d();return function(n,i){var s=getUserIdWithGetState(i),a={user:(0,r._)({},e)};if(s){var o="".concat(g).concat("/update_password");f.Z.put(o,a).then(function(){t(),n((0,m.s$)({message:"Dein Passwort wurde aktualisiert"}))}).catch(function(){n((0,m.x2)())})}}},requestUserData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d();return function(t,n){var r=getUserIdWithGetState(n);if(r){var i="".concat(createApiBaseUrlWithUserId(r)).concat("/user_data_request");f.Z.post(i).then(function(){t((0,m.s$)({message:"Wir haben deine Anfrage erhalten und werden sie bearbeiten"})),e(!0)}).catch(function(){t((0,m.x2)())})}}}
1,submitAccountDeletionRequest=function(e){return function(t,n){var r=getUserIdWithGetState(n);if(r){var i="".concat(createApiBaseUrlWithUserId(r));f.Z.delete(i,{user:{password:e}}).then(function(){t((0,h.sd)()),t((0,m.s$)({message:"Deine Mitgliedschaft wurde beendet und dein Profil erfolgreich gel\xf6scht"})),s().push("/")}).catch(function(){t((0,m.x2)())})}}},submitUpdateProfile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d();return function(n,i){var a=o()(i().session,"data.id",null),u={profile:(0,r._)({},e)};if(a){var c="".concat(createApiBaseUrlWithUserId(a)).concat("/profile_update");f.Z.put(c,u).then(function(){n((0,m.s$)({message:"Dein Profil wurde aktualisiert"}));var e=o()(i().session,"data.permalink","");s().push("/users/".concat(e),void 0,{shallow:!0})}).catch(function(e){if(e.response){var t;n((0,m.x2)({responseCode:e.response.status,message:422===e.response.status?"Bitte \xfcberpr\xfcfen Sie Ihre Eingaben und versuchen Sie es erneut.":null===(t=e.response.data)||void 0===t?void 0:t.error}))}else n((0,m.x2)())}).finally(function(){t()})}}}},59702:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var r,i=n(11010),s=n(72253),a=n(14932),o=n(24043),u=n(70655),c=n(85893),l=n(45697),d=n.n(l),f=n(27361),h=n.n(f),p=n(14416),m=n(67294),b=n(11163),g=n(77158),v=n(21549),_=n(76842),w=n(92465),x=n(18168),UserspaceMembershipActivity=function(e){var t=e.username,n=e.admin,r=e.editor,i=e.critic,s=e.movieRatingsCount,a=e.seriesRatingsCount,o=e.seasonRatingsCount,u=e.movieFollowshipsCount,l=e.seriesFollowshipsCount,d=e.commentCount,f=e.replyCount,h=e.listCount;return(0,c.jsxs)("div",{children:["Als ",t," habe ich im Laufe meiner Zeit bei Moviepilot insgesamt ",s," Filme, ",a," Serien und ",o," Staffeln bewertet, mir ",u," Filme und ",l," Serien vorgemerkt, selbst ",d," Kommentare und ",f," Antworten auf Kommentare anderer geschrieben und ",h," Listen erstellt.",(n||r||i)&&(0,c.jsxs)("div",{children:[(0,c.jsx)("br",{}),"Mein Status:\xa0",n&&"Admin ",r&&"Redakteur",i&&"Kritiker"]})]})};UserspaceMembershipActivity.propTypes={username:d().string.isRequired,admin:d().bool,editor:d().bool,critic:d().bool,movieRatingsCount:d().number,seriesRatingsCount:d().number,seasonRatingsCount:d().number,movieFollowshipsCount:d().number,seriesFollowshipsCount:d().number,commentCount:d().number,replyCount:d().number,listCount:d().number},UserspaceMembershipActivity.defaultProps={admin:!1,editor:!1,critic:!1,movieRatingsCount:0,seriesRatingsCount:0,seasonRatingsCount:0,movieFollowshipsCount:0,seriesFollowshipsCount:0,commentCount:0,replyCount:0,listCount:0};var j=n(80098),y=n(28818),U=n(95971),C=(0,c.jsx)(y.default,{children:"Hier kannst du deine personenbezogenen Daten herunterladen:"}),k=(0,c.jsxs)(y.default,{children:["Ein personenbezogener Datensatz wird nun generiert.",(0,c.jsx)("br",{}),"Sobald alles bereit ist, schicken wir dir eine E-Mail.",(0,c.jsx)("br",{}),"Das kann mitunter etwas dauern, hab also bitte etwas Geduld."]}),UserspaceMembershipDataRequest=function(e){var t=e.userDataRequestPresent,n=(0,p.useDispatch)(),r=(0,o._)((0,m.useState)(t),2),i=r[0],s=r[1];return i?k:(0,c.jsxs)(c.Fragment,{children:[C,(0,c.jsx)(j.Z,{primary:!0,onClick:function(){return n((0,U.TO)(s))},children:"Meine Person betreffende Daten herunterladen"})]})};UserspaceMembershipDataRequest.propTypes={userDataRequestPresent:d().bool},UserspaceMembershipDataRequest.defaultProps={userDataRequestPresent:!1};var P=n(37274),R=n(77029),userspace_UserspaceMembershipDeletion=function(){var e=(0,p.useDispatch)();return(0,c.jsx)(j.Z,{primary:!0,onClick:function(){return e((0,R.K4)(P.yw,{width:400}))},children:"Mein Profil und alle meine Daten unwiderruflich l\xf6schen"})},D=n(85957),O=n(81388),M=n(96024),A=n(40169),S=n(23382),E=n(19695),I=n(79526),q=n(93271),W=(0,E.m)({siteRoute:"userspaceSettingsEdit"}),EditMembership=function(e){var t=e.currentPath,n=e.errorCode,r=e.history,i=e.noAds,o=e.username,u=e.permalink,l=e.dataLayer,d=e.membershipData,f=e.userDataRequestPresent,j=(0,m.useMemo)(function(){return(0,a._)((0,s._)({},e),{jadPagePositions:W})},[e]),y=(0,a._)((0,s._)({},l),{current_url:"".concat("https://www.moviepilot.de").concat(t),site_route:"user_edit",site_section:"community"}),U=(0,b.useRouter)(),C=(0,p.useSelector)(function(e){return(0,I.A1)(e)}),k=(0,p.useSelector)(function(e){return(0,I.dd)(e)}),P=(0,p.useSelector)(function(e){return h()(e.session.data,"permalink","")})===u;(0,m.useEffect)(function(){!C||k&&P||U.push("/users/".concat(u))},[u,k,C,U,P]);var R=(0,A.Xk)({username:o,permalink:u,additionalBreadcrumbItem:{title:"Mitgliedschaft",url:"/users/".concat(u,"/membership")}});return P?(0,c.jsx)(g.Z.Provider,{value:j,children:(0,c.jsxs)(w.Z,{title:"Mitgliedschaft bearbeiten",dataLayer:y,meta:{description:"Mitgliedschaft bearbeiten"},breadcrumb:R,errorCode:n,history:r,pagePositions:W,noAds:i,children:[(0,c.jsx)(M.Grid,{children:(0,c.jsx)(M.Row,{children:(0,c.jsx)(M.Col,{children:(0,c.jsxs)(v.default,{uppercase:!0,children:[o," - Mitgliedschaft Einstellungen"]})})})}),(0,c.jsx)(x.default,{items:(0,S.Xh)({active:"membership",permalink:u}),hasUnderline:!0}),(0,c.jsxs)(M.Grid,{children:[(0,c.jsx)(M.Row,{vSpacingTop:1.5,children:(0,c.jsx)(M.Col,{children:(0,c.jsx)(UserspaceMembershipActivity,(0,s._)({},d))})}),(0,c.jsx)(M.Row,{vSpacing:1,children:(0,c.jsxs)(M.Col,{children:[(0,c.jsx)(_.default,{children:"Datenabfrage"}),(0,c.jsx)(UserspaceMembershipDataRequest,{userDataRequestPresent:f})]})}),(0,c.jsx)(M.Row,{vSpacing:1,children:(0,c.jsxs)(M.Col,{children:[(0,c.jsx)(_.default,{children:"Danger Zone"}),(0,c.jsx)(userspace_UserspaceMembershipDeletion,{})]})})]})]})}):null};EditMembership.getInitialProps=(r=(0,i._)(function(e){var t,n,r,i,c,l,d,f,h,p,m,b;return(0,u.Jh)(this,function(u){switch(u.label){case 0:t=e.res,n=e.req,r=e.query.permalink,u.label=1;case 1:return u.trys.push([1,3,,4]),c={},(null==n?void 0:null===(i=n.headers)||void 0===i?void 0:i.cookie)&&(c.Cookie=n.headers.cookie),l="/api/users/".concat(r,"/shared"),d="/api/users/".concat(r,"/membership"),[4,Promise.all([D.Z.get(l).then(function(e){return e.data}),D.Z.get(d,{headers:c}).then(function(e){return e.data})])];case 2:return h=(f=o._.apply(void 0,[u.sent(),2]))[0],p=f[1],m=(0,a._)((0,s._)({userDataRequestPresent:(0,q.zW)(p).userDataRequestPresent,membershipData:(0,s._)({},(0,q.zW)(p))},(0,q.zW)(h)),{dataLayer:h.dataLayer||h.data_layer||null}),[2,(0,s._)({permalink:r},m)];case 3:return b=u.sent(),[2,(0,O.Z)(t,b)];case 4:return[2]}})}),function(e){return r.apply(this,arguments)}),EditMembership.propTypes={currentPath:d().string,permalink:d().string,noAds:d().bool,errorCode:d().number,history:d().object,dataLayer:d().object,username:d().string,membershipData:d().object,userDataRequestPresent:d().bool},EditMembership.defaultProps={currentPath:"/",permalink:"",noAds:!1,errorCode:null,history:{},dataLayer:{},username:"",membershipData:{},userDataRequestPresent:!1};var Z=EditMembership},9008:function(e,t,n){e.exports=n(79201)},18357:function(e,t,n){"use strict";n.d(t,{YD:function(){return useInView}});var r,i,s=n(67294),a=Object.defineProperty,o=new Map,u=new WeakMap,c=0;function useInView({threshold:e,delay:t,trackVisibility:n,rootMargin:i,root:a,triggerOnce:l,skip:d,initialInView:f,fallbackInView:h,onChange:p}={}){var m;let[b,g]=s.useState(null),v=s.useRef(p),_=s.useRef(f),[w,x]=s.useState({inView:!!f,entry:void 0});v.current=p,s.useEffect(()=>{let s;if(void 0===_.current&&(_.current=f),!d&&b)return s=function(e,t,n={},i=r){if(void 0===window.IntersectionObserver&&void 0!==i){let r=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:s,observer:a,elements:l}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(u.has(n)||(c+=1,u.set(n,c.toString())),u.get(n)):"0":e[t]}`}).toString(),n=o.get(t);if(!n){let r;let i=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var n;let s=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),null==(n=i.get(t.target))||n.forEac
1h(e=>{e(s,t)})})},e);r=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:s,elements:i},o.set(t,n)}return n}(n),d=l.get(e)||[];return l.has(e)||l.set(e,d),d.push(t),a.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(l.delete(e),a.unobserve(e)),0===l.size&&(a.disconnect(),o.delete(s))}}(b,(e,t)=>{let n=_.current;_.current=e,(void 0!==n||e)&&(x({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&l&&s&&(s(),s=void 0))},{root:a,rootMargin:i,threshold:e,trackVisibility:n,delay:t},h),()=>{s&&s()}},[Array.isArray(e)?e.toString():e,b,a,i,l,d,n,h,t]);let j=null==(m=w.entry)?void 0:m.target,y=s.useRef(void 0);b||!j||l||d||y.current===j||(y.current=j,x({inView:!!f,entry:void 0}),_.current=f);let U=[g,w.inView,w.entry];return U.ref=U[0],U.inView=U[1],U.entry=U[2],U}s.Component,null!=(null!=(i=s.useInsertionEffect)?i:s.useLayoutEffect)||s.useEffect}},function(e){e.O(0,[2465,8874,2327,9774,2888,179],function(){return e(e.s=50617)}),_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.