PageSourceSearch

https://www.dumont-buchverlag.de/_next/static/chunks/pages/thread/CommentForm-3f8e40f7fcfec26a.js

js dumont-buchverlag.de collected 2026-10-02 03:35:51 UTC 7,744 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2624],{6876:(e,t,m)=>{"use strict";m.d(t,{A:()=>p});var n=m(26514),o=m(7086),r=m(69001),_=m.n(r),a=m(68208),i=m.n(a),d=m(75834),s=m(1730),l=m(9374),c=m.n(l),b=m(19601),g=m(60715),u=m(70382),h=m(25985);function C(e){let{item:t,userVote:m,onInitReply:r,onEditReply:a,isCollapsed:i,locked:l,apiEndpoint:C,onVote:p}=e,f=t.isHost?"host":t.isAuthor?"author":t.isModerator?"moderator":"regular",[x,v]=(0,d.useState)(t.votes||0),[y,j]=(0,d.useState)(t.votes||0),[N,M]=(0,d.useState)(m||0),[w,k]=(0,d.useState)(!1),T=(0,h.A)(e=>e),E=T?.data?.user?.userId;async function I(e){if(l)return;if(p){if(!await p(t.commentId,e))return}else if(!E)return;clearTimeout(w);let m=0;N===e?(m=-e,M(0)):(m=0===N?e:e-N,M(e)),j(y+m),k(setTimeout(async()=>{await o.A.post(C||"/api/thread/vote",{commentId:t.commentId,direction:e}),v(x+m),j(x+m)},2e3))}let D=new Date((0,b.p)({date:new Date,format:"YYYY-MM-DDTHH:mm:ss"})+"Z"),Y=new Date((0,b.p)({date:t.created,format:"YYYY-MM-DDTHH:mm:ss"})+"Z");return(0,n.jsxs)("div",{className:"mb-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("span",{className:_()(c().user,"b-light-14"),title:t.commentId,children:[t.nickname," "]}),"host"===f&&(0,n.jsxs)("span",{className:_()(c()[f]),children:[" ",(0,n.jsx)(s.g,{icon:g.A54})," Host "]}),"author"===f&&(0,n.jsxs)("span",{className:_()(c()[f]),children:[" ",(0,n.jsx)(s.g,{icon:g.us_})," Autor "]}),"moderator"===f&&(0,n.jsxs)("span",{className:_()(c()[f]),children:[" ",(0,n.jsx)(s.g,{icon:g.fLc})," Moderator "]}),t.modified?(0,n.jsxs)("span",{className:_()(c().modified,"b-light-14"),title:t.modified.substring(0,19),children:["zuletzt bearbeitet ",(0,b.v)(D-new Date(t.modified))]}):(0,n.jsx)("span",{className:_()(c().created,"b-light-14"),title:t.created.substring(0,19),children:(0,b.v)(D-new Date(t.created))})]}),"      ",!i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:_()(c().text,t.published?"":c().redacted,"b-light-18"),children:t.text}),(0,n.jsx)(s.g,{icon:u.INu,className:_()(c().vote,l?c().locked:"",1===N?c().voted:""),onClick:()=>{I(1)}}),(0,n.jsx)("span",{className:_()(c().voteCount,"mx-2 b-light-14"),style:{fontVariantNumeric:"tabular-nums"},children:Math.max(y,0)}),(0,n.jsx)(s.g,{icon:u.B0C,className:_()(c().vote,l?c().locked:"",-1===N?c().voted:""),onClick:()=>{I(-1)}}),!l&&(0,n.jsx)("span",{className:_()(c().reply,"mx-2 b-light-14"),onClick:()=>r(t.commentId),children:"Antworten"}),!l&&E===t.userId&&D-Y<864e5&&(0,n.jsx)("span",{className:_()(c().reply,"mx-2 b-light-14"),onClick:()=>a(t.commentId),children:"Bearbeiten"})]})]})}C.propTypes={item:i().object,userVote:i().number,onInitReply:i().func,onEditReply:i().func,isCollapsed:i().bool,locked:i().bool,apiEndpoint:i().string,onVote:i().func};let p=C},9374:e=>{e.exports={"margin-y-24":"Comment_margin-y-24__VT594","margin-y-16":"Comment_margin-y-16__2Wl5Q","margin-top-16":"Comment_margin-top-16__cbzA3","margin-b-8":"Comment_margin-b-8__u1Ltr","margin-y-8":"Comment_margin-y-8__SLcVC","margin-b-24":"Comment_margin-b-24__0ozUz","margin-y-30":"Comment_margin-y-30__OFBv5","margin-t-30":"Comment_margin-t-30__6y5Mv","margin-b-32":"Comment_margin-b-32__jT1qi","margin-t-45":"Comment_margin-t-45__QnKJG","margin-y-45":"Comment_margin-y-45__ukZ1F","margin-t-24":"Comment_margin-t-24__dNHYE","margin-b-16":"Comment_margin-b-16__bXa4T","margin-y-72":"Comment_margin-y-72__hfZPj","margin-t-72":"Comment_margin-t-72__OgiOE","margin-b-72":"Comment_margin-b-72__xYgn4","padding-y-72":"Comment_padding-y-72__Stt7q","margin-b-64":"Comment_margin-b-64__FE4UX","b-light-14":"Comment_b-light-14__ysK19","b-light-16":"Comment_b-light-16__Ij8YK","b-light-18":"Comment_b-light-18__LR4Da","b-light-20":"Comment_b-light-20__7gudG","b-light-25":"Comment_b-light-25__mlRxf","b-light-25-md-b-light-20":"Comment_b-light-25-md-b-light-20__vUc2o","b-md-30-md-b-md-25":"Comment_b-md-30-md-b-md-25__VWPvP","b-md-45":"Comment_b-md-45__JkZeE","b-reg-18":"Comment_b-reg-18__EVUGh","b-reg-20":"Comment_b-reg-20__dQr5q","b-reg-20-md-b-reg-18":"Comment_b-reg-20-md-b-reg-18__zYZU7","b-reg-25":"Comment_b-reg-25__dj78N","b-md-18":"Comment_b-md-18__94QUt","b-md-20":"Comment_b-md-20__PBxT_","b-md-20-md-b-md-18":"Comment_b-md-20-md-b-md-18__cLh_7","b-md-25":"Comment_b-md-25__QVDqU","b-md-30":"Comment_b-md-30__b
1NbMh","b-md-50":"Comment_b-md-50__spAmK","b-ti-18":"Comment_b-ti-18__vttHv","b-mi-18":"Comment_b-mi-18__2_S3m","b-ri-18":"Comment_b-ri-18__caUrT","cm-r-18":"Comment_cm-r-18__i_BnX","cm-r-25":"Comment_cm-r-25__UDNBE","cm-r-20":"Comment_cm-r-20__cBMy6","cm-r-14":"Comment_cm-r-14__MLQZc","loading-placeholder":"Comment_loading-placeholder__OHl1B","animated-background":"Comment_animated-background__s0dbX",placeHolderShimmer:"Comment_placeHolderShimmer__YULyJ",user:"Comment_user__GZ1Sr",created:"Comment_created__fpVu9",modified:"Comment_modified__A3PzU",vote:"Comment_vote__hrPZ8",voted:"Comment_voted__aQHKK",voteCount:"Comment_voteCount__Sl8uH",highlight:"Comment_highlight__LGs2g",text:"Comment_text__ZKCtc",redacted:"Comment_redacted__3FRt3",reply:"Comment_reply__lo8tp",locked:"Comment_locked__zWw2e",host:"Comment_host__zEtRr",author:"Comment_author__f1_yW",moderator:"Comment_moderator__wE_T0"}},19601:(e,t,m)=>{"use strict";m.d(t,{p:()=>i,v:()=>d});var n=m(75834),o=m(26707),r=m.n(o);m(42964);let _=m(24874),a=m(70995);r().extend(_),r().extend(a);let i=({date:e,format:t="DD. MMMM YYYY",locale:m="de",ignoreTimeZone:o=!1})=>{r().locale(m);let[_,a]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{a(!0)},[]),_){let m=e?r()(e):r()();return o&&(m=m.tz("Europe/Berlin")),m.format(t)}return e};function d(e){if(!e||e<=0)return"gerade eben";if(e<6e4)return`vor ${Math.floor(e/1e3)} Sekunden`;if(e<36e5)return`vor ${Math.floor(e/6e4)} Minuten`;if(e<864e5)return`vor ${Math.floor(e/36e5)} Stunden`;if(e<6048e5)return`vor ${Math.floor(e/864e5)} Tagen`;if(e<2592e6)return`vor ${Math.floor(e/6048e5)} Wochen`;else if(e<31536e6)return`vor ${Math.floor(e/2592e6)} Monaten`;else return`vor ${Math.floor(e/31536e6)} Jahren`}},41618:(e,t,m)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/thread/CommentForm",function(){return m(81954)}])},70520:e=>{e.exports={mainImage:"Thread_mainImage__EOtWc",widgetPadding:"Thread_widgetPadding__FQeF4",commentWrapper:"Thread_commentWrapper__p1WkF",comment:"Thread_comment__3I7Lb",comment2n:"Thread_comment2n__Dw8ge",collapse:"Thread_collapse__eMngk",collapseMobile:"Thread_collapseMobile__XRRt9",form:"Thread_form__VLw8O"}},81954:(e,t,m)=>{"use strict";m.r(t),m.d(t,{default:()=>g});var n=m(26514),o=m(68208),r=m.n(o),_=m(18590),a=m(10880),i=m(69001),d=m.n(i),s=m(6876),l=m(70520),c=m.n(l);let b=e=>{let{onSubmit:t,formParentCommentId:m,formEditCommentId:o,drafts:r,setDrafts:i,commentItem:l,oncloseReply:b}=e;return(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),t(e.target.text.value)},className:d()(m||o?c().widgetPadding:"","pt-4"),children:[!!m&&(0,n.jsx)(s.A,{item:l,locked:!0},l.commentId),(0,n.jsx)(_.A,{type:"textarea",id:"comment",name:"text",className:"dumont-basket-input w-100 b-light-20 mt-1 form-control",onChange:e=>{var t;t=e.target.value,m?i({...r,[`r-${m}`]:t}):o?i({...r,[`e-${o}`]:t}):i({...r,"top-comment":t})},value:r[`r-${m}`]||r[`e-${o}`]||r["top-comment"]||""}),(0,n.jsxs)("div",{className:"d-flex flex-row justify-content-between",children:[m||o?(0,n.jsx)(a.A,{className:"my-2 button-dumont",onClick:b,children:"Abbrechen"}):(0,n.jsx)("div",{}),(0,n.jsx)(a.A,{className:"my-2 button-dumont-shop",type:"submit",children:"Antworten"})]})]})};b.propTypes={onSubmit:r().func,formParentCommentId:r().number,formEditCommentId:r().number,drafts:r().object,setDrafts:r().func,commentItem:r().object,oncloseReply:r().func};let g=b}},e=>{e.O(0,[4726,636,6593,8792],()=>e(e.s=41618)),_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.