PageSourceSearch

https://www.buchkatalog.de/_next/static/chunks/pages/contract-cancelled-792defdc928473fd.js

js buchkatalog.de collected 2026-10-01 11:36:28 UTC 5,790 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5244],{92101:(e,a,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contract-cancelled",function(){return l(9555)}])},9555:(e,a,l)=>{"use strict";l.r(a),l.d(a,{__N_SSP:()=>p,default:()=>m});var t=l(31085),n=l(26535),c=l(823),o=l(20303),s=l(21259),r=l(43597),i=l(22297),d=l(14041),C=l(56097),u=l(43140);let x=()=>{let{t:e}=(0,i.Bd)("common"),{storeParams:a}=(0,u.s)(),[l,n]=(0,d.useState)(""),[x,p]=(0,d.useState)(""),[m,h]=(0,d.useState)(""),[f,g]=(0,d.useState)(""),[v,N]=(0,d.useState)(""),[b,j]=(0,d.useState)(""),[S,A]=(0,d.useState)(""),[w,$]=(0,d.useState)(""),[O,_]=(0,d.useState)(""),[y,E]=(0,d.useState)(""),[L,J]=(0,d.useState)(!1),[T,q]=(0,d.useState)(""),[R,P]=(0,d.useState)(""),k=async t=>{t.preventDefault(),q(""),P("");let c={orderNumber:l,orderDate:x,orderReceivingDate:m||void 0,firstName:f,lastName:v,addressLine:b||void 0,zipCode:S||void 0,city:w||void 0,email:O,additionalInformation:y||void 0};console.log("[ContractCancelled] Form submitted"),console.log("[ContractCancelled] Form data:",JSON.stringify(c,null,2)),console.log("[ContractCancelled] Store params:",a),console.log("[ContractCancelled] Target URL:","/api/order/cancelOrder"+a);try{J(!0),console.log("[ContractCancelled] Sending POST request...");let l=await C.A.post("/api/order/cancelOrder"+a,c);console.log("[ContractCancelled] Response status:",l.status),console.log("[ContractCancelled] Response data:",JSON.stringify(l.data,null,2)),q(e("contractCancellationSuccess")),console.log("[ContractCancelled] Success - resetting form fields"),n(""),p(""),h(""),g(""),N(""),j(""),A(""),$(""),_(""),E("")}catch(a){console.error("[ContractCancelled] Request failed:",a),console.error("[ContractCancelled] Error status:",a?.status),console.error("[ContractCancelled] Error response data:",a?.data),console.error("[ContractCancelled] Error message:",a?.message),P(e("contractCancellationError"))}finally{J(!1),console.log("[ContractCancelled] Request completed, loading set to false")}};return(0,t.jsxs)(c.A,{className:"flex flex-col pb-32 gap-8 max-w-3xl mx-auto",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold uppercase mt-8",children:e("contractCancellationPageTitle")}),(0,t.jsx)("p",{className:"text-base text-muted-500",children:e("contractCancellationDescription")}),(0,t.jsxs)("form",{onSubmit:k,className:"flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(o.A,{label:`${e("contractCancellationOrderNumber")} *`,placeholder:e("contractCancellationOrderNumber"),onChange:n,value:l,required:!0}),(0,t.jsx)(o.A,{label:`${e("contractCancellationOrderDate")} *`,placeholder:"TT.MM.JJJJ",onChange:p,value:x,type:"date",required:!0}),(0,t.jsx)(o.A,{label:`${e("contractCancellationReceivedDate")} (${e("contractCancellationOptional")})`,placeholder:"TT.MM.JJJJ",onChange:h,value:m,type:"date"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(o.A,{label:`${e("contractCancellationFirstName")} *`,placeholder:e("contractCancellationFirstName"),onChange:g,value:f,required:!0})}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(o.A,{label:`${e("contractCancellationLastName")} *`,placeholder:e("contractCancellationLastName"),onChange:N,value:v,required:!0})})]}),(0,t.jsx)(o.A,{label:`${e("contractCancellationAddressLine")} (${e("contractCancellationOptional")})`,placeholder:e("contractCancellationAddressLine"),onChange:j,value:b}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[(0,t.jsx)("div",{className:"w-full sm:w-1/3",children:(0,t.jsx)(o.A,{label:`${e("contractCancellationZipCode")} (${e("contractCancellationOptional")})`,placeholder:e("contractCancellationZipCode"),onChange:A,value:S})}),(0,t.jsx)("div",{className:"w-full sm:w-2/3",children:(0,t.jsx)(o.A,{label:`${e("contractCancellationCity")} (${e("contractCancellationOptional")})`,placeholder:e("contractCancellationCity"),onChange:$,value:w})})]}),(0,t.jsx)(o.A,{label:`${e("contractCancellationEmail")} *`,placeholder:e("contractCancellationEmail"),type:"email",onChange:_,value:O,required:!0})]}),(0,t.jsx)(s.A,{label:`${e("contractCancellationAdditionalInfo")} (${e("contractCancellationOptional")})`,placeholder:e("contractCancellationAdditionalInfo"),onChange:E,value:y,maxCharacters:2e3,maxCharactersLabel:e("contractCancellationAdditionalInfo"),uppercase:!1}),T&&(0,t.jsx)("div",{className:"text-green-600 font-bold text-sm",children:T}),R&&(0,t.jsx)("div",{className:"text-red-500 font-bold text-sm",children:R}),(0,t.jsx)(r.A,{variant:"slim",type:"submit",loading:L,loadingStyle:"spinner",showLabelWhileLoading:!1,children:(0,t.jsx)("span",{className:"uppercase",children:e("contractCancellationSubmit")})})]})]})};x.Layout=n.PE;var p=!0;let m=x},21259:(e,a,l)=>{"use strict";l.d(a,{A:()=>c});var t=l(31085);l(14041);var n=l(54357);let c=e=>{let{label:a,...l}=e,{className:c,onChange:o,value:s,maxCharacters:r,maxCharactersLabel:i,placeholder:d,disabled:C,error:u=!1,uppercase:x=!0,labelClassName:p="",tabIndex:m=0,...h}=l,f=(0,n.A)(`w-full rounded tabFocus ${u&&"border-red-500"}`,{},c);return(0,t.jsxs)("label",{className:"flex flex-col gap-1 2xl:gap-2",children:[a&&(0,t.jsx)("span",{className:(0,n.A)(`text-xs ${x&&"uppercase"}`,p),children:a}),(0,t.jsx)("textarea",{tabIndex:m,placeholder:d,disabled:C,className:f,onChange:e=>(o&&o(e.target.value),null),autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",value:s,maxLength:r,...h}),r&&(0,t.jsxs)("span",{className:"text-xs",children:[i,":"," ",r-Number(s&&s.length?s.length:0)]})]})}}},e=>{var a=a=>e(e.s=a);e.O(0,[636,6593,8792],()=>a(92101)),_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.