PageSourceSearch

https://www.neuegalerie.org/_next/static/chunks/pages/withdrawal-request-b025a145aff14478.js

js neuegalerie.org collected 2026-10-02 03:05:50 UTC 13,501 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[969],{37795:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSG:()=>S,default:()=>R});var r=t(37876),i=t(45105),s=t.n(i),l=t(73940),n=t.n(l),o=t(69001),d=t.n(o),c=t(94185),m=t(2608),u=t(78896),h=t(48896),p=t(13190),w=t(63541),v=t(2542),_=t(25339),x=t(6800),b=t(22744),f=t(14314),j=t(12566),g=t(14232),N=t(89099),y=t(88992),F=t(41054);let A={pageTitle:"Withdraw My Order",description:"To withdraw from a recent order, enter the details below exactly as they appear on your order confirmation.",sidebarDescription:"If you have any questions about your order or this withdrawal process, our team can help.",sidebarButtonLabel:"Contact Us",sidebarButtonLink:"/shop/shop-customer-support",reviewMessage:"Please review the entered details and confirm the withdrawal.",successMessage:"Your order withdrawal was received on {{timestamp}} and a copy of the submission has been sent to the email provided. Our team is reviewing this request and will confirm next steps.",errorMessage:"There was a problem with your order withdrawal submission. Please try again or contact our customer support.",fields:{name:{label:"Full name*",placeholder:""},email:{label:"Email*",placeholder:""},orderNumber:{label:"Order No.*",placeholder:""}},continueLabel:"Continue",confirmLabel:"Confirm Withdrawal",editLabel:"Edit Details",homeLabel:"Back to Home",retryLabel:"Try Again",submittingLabel:"Submitting...",reviewLabels:{name:"Customer Name",email:"Email",orderNumber:"Order No."},validation:{missingRequireds:"Please complete all fields",invalidEmail:"Please enter a valid email.",invalidField:e=>"Please check ".concat(e," is valid."),captcha:"Please complete the captcha to continue."}},L=e=>{let a="string"==typeof e?new Date(e):e,t=new Intl.DateTimeFormat("en-GB",{timeZone:"America/New_York",weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZoneName:"longOffset"}).formatToParts(a),r=e=>{var a;return(null==(a=t.find(a=>a.type===e))?void 0:a.value)||""},i=r("timeZoneName").replace("GMT","UTC");return"".concat(r("weekday"),", ").concat(r("day")," ").concat(r("month")," ").concat(r("year")," at ").concat(r("hour"),":").concat(r("minute"),":").concat(r("second")," ").concat(i)};var k=t(44376),W=t.n(k),T=t(65364);let C=[{label:A.fields.name.label,placeholder:A.fields.name.placeholder,name:"name",type:"text",required:!0,pattern:null},{label:A.fields.email.label,placeholder:A.fields.email.placeholder,name:"email",type:"email",required:!0,pattern:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i},{label:A.fields.orderNumber.label,placeholder:A.fields.orderNumber.placeholder,name:"orderNumber",type:"text",required:!0,pattern:null}],E="0x4AAAAAAEAbspQPCa9Oe76p",P=e=>{let{className:a=null,wording:t}=e,[i,s]=(0,g.useState)("form"),[l,n]=(0,g.useState)(null),[o,c]=(0,g.useState)(!1),[m,u]=(0,g.useState)(null),[h,p]=(0,g.useState)(!1),w=(0,g.useRef)(null),v=(0,g.useRef)(null),_=(0,N.useRouter)(),x="true"===T.env.NEXT_PUBLIC_STATE_PREVIEW;(0,g.useEffect)(()=>{if(!x||!_.isReady)return;let e=_.query.formState;("review"===e||"success"===e||"error"===e)&&(n({name:"Jane Doe",email:"[email protected]",orderNumber:"#12345"}),"success"===e&&u(new Date().toISOString()),s(e))},[_.isReady]);let{handleSubmit:b,register:k,formState:{errors:P}}=(0,y.mN)();(0,g.useEffect)(()=>{if(!E||!w.current)return;let e=w.current,a=()=>{var a;return!!(null==(a=window.turnstile)?void 0:a.render)&&(0===e.childNodes.length&&(v.current=window.turnstile.render(e,{sitekey:E})),!0)};if(a())return;let t=setInterval(()=>{a()&&clearInterval(t)},300);return()=>clearInterval(t)},[]);let D=()=>{var e,a;if(E)return null==(e=window.turnstile)?void 0:e.getResponse(null!=(a=v.current)?a:void 0)},I=async()=>{if(l&&!o){c(!0);try{let e=await fetch("/api/withdrawal/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l,captchaToken:D()})});if(!e.ok)throw Error("Submit failed (".concat(e.status,")"));let a=await e.json();u(a.submittedAt),s("success")}catch(e){s("error")}finally{c(!1)}}},B=Object.keys(P),S=B.filter(e=>{var a;return(null==(a=P[e])?void 0:a.type)!=="required"}).map(e=>{if("email"===e)return A.validation.invalidEmail;let a=C.find(a=>a.name===e);return a?A.validation.invalidField(a.label.replace(/\*$/,"")):null}
1).filter(Boolean),R=B.some(e=>{var a;return(null==(a=P[e])?void 0:a.type)==="required"}),q=((null==t?void 0:t.successMessage)||A.successMessage).replace("{{timestamp}}",m?L(m):"");return(0,r.jsxs)("div",{className:d()(a||null,W().withdrawalForm),children:[(0,r.jsxs)("div",{className:d()(W().step,"form"!==i&&W().hidden),children:[(0,r.jsx)("div",{className:d()(W().description,"--lead"),children:(null==t?void 0:t.description)?(0,r.jsx)(f.A,{content:t.description}):(0,r.jsx)("p",{className:"is-default",children:A.description})}),(0,r.jsxs)("form",{className:W().form,onSubmit:b((e,a)=>{if(a.preventDefault(),E&&!D())return void p(!0);p(!1),n({name:e.name,email:e.email,orderNumber:e.orderNumber}),s("review")}),children:[(0,r.jsx)("div",{className:W().formFields,children:C.map(e=>(0,r.jsx)(F.A,{className:W().formField,inputClassName:W().formFieldInput,field:e,register:k,disabled:o,hasError:B.includes(e.name)},e.name))}),(0,r.jsx)("div",{className:W().honeypot,"aria-hidden":"true",children:(0,r.jsx)("input",{type:"text",tabIndex:-1,autoComplete:"off",placeholder:"Company",...k("company")})}),E&&(0,r.jsx)("div",{className:W().captcha,ref:w}),(0,r.jsxs)("div",{className:W().errors,children:[S.map(e=>(0,r.jsx)("p",{className:W().error,children:e},e)),R&&(0,r.jsx)("p",{className:W().error,children:A.validation.missingRequireds}),h&&(0,r.jsx)("p",{className:W().error,children:A.validation.captcha})]}),(0,r.jsx)("div",{className:W().formActions,children:(0,r.jsx)(j.A,{type:"submit",onClick:()=>null,className:W().button,styled:!0,themeClass:"theme-black",children:(0,r.jsx)("span",{children:A.continueLabel})})})]})]}),"review"===i&&l&&(0,r.jsxs)("div",{className:W().step,children:[(0,r.jsx)("p",{className:W().message,children:(null==t?void 0:t.reviewMessage)||A.reviewMessage}),(0,r.jsxs)("dl",{className:W().reviewList,children:[(0,r.jsxs)("div",{className:W().reviewRow,children:[(0,r.jsx)("dt",{className:W().reviewLabel,children:A.reviewLabels.name}),(0,r.jsx)("dd",{className:W().reviewValue,children:l.name})]}),(0,r.jsxs)("div",{className:W().reviewRow,children:[(0,r.jsx)("dt",{className:W().reviewLabel,children:A.reviewLabels.email}),(0,r.jsx)("dd",{className:W().reviewValue,children:l.email})]}),(0,r.jsxs)("div",{className:W().reviewRow,children:[(0,r.jsx)("dt",{className:W().reviewLabel,children:A.reviewLabels.orderNumber}),(0,r.jsx)("dd",{className:W().reviewValue,children:l.orderNumber})]})]}),(0,r.jsxs)("div",{className:W().formActions,children:[(0,r.jsx)(j.A,{onClick:()=>s("form"),className:W().button,styled:!0,disabled:o,children:(0,r.jsx)("span",{children:A.editLabel})}),(0,r.jsx)(j.A,{onClick:I,className:W().button,styled:!0,themeClass:"theme-black",disabled:o,children:(0,r.jsx)("span",{children:o?A.submittingLabel:A.confirmLabel})})]})]}),"success"===i&&(0,r.jsxs)("div",{className:W().step,children:[(0,r.jsx)("p",{className:W().message,children:q}),(0,r.jsx)("div",{className:W().formActions,children:(0,r.jsx)(j.A,{to:"/",className:W().button,styled:!0,children:(0,r.jsx)("span",{children:A.homeLabel})})})]}),"error"===i&&(0,r.jsxs)("div",{className:W().step,children:[(0,r.jsx)("p",{className:W().message,children:(null==t?void 0:t.errorMessage)||A.errorMessage}),(0,r.jsx)("div",{className:W().formActions,children:(0,r.jsx)(j.A,{onClick:()=>{var e,a;E&&(null==(e=window.turnstile)?void 0:e.reset)&&window.turnstile.reset(null!=(a=v.current)?a:void 0),s("form")},className:W().button,styled:!0,children:(0,r.jsx)("span",{children:A.retryLabel})})})]})]})};var D=t(94318),I=t.n(D);let B=e=>{let{settings:a,wording:t}=e,{announcement:i}=a,l=n()(i,["enabled"]),o=(0,c.Ay)(),g=(0,m.KJ)(o),N=(0,m.D4)(o),y=(0,u.A)(m.M1,!0),F=(null==t?void 0:t.pageTitle)||A.pageTitle,L=(null==t?void 0:t.sidebarButtonLink)||A.sidebarButtonLink,k=(null==t?void 0:t.sidebarButtonLabel)||A.sidebarButtonLabel;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.A,{metaTitle:F,metaDescription:"Submit a withdrawal request for a recent order.",settings:a}),(0,r.jsx)(s(),{src:"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",strategy:"afterInteractive"}),(0,r.jsxs)("div",{className:I().page,children:[l&&(0,r.jsx)(b.A,{announcement:i}),(0,r.jsx)(p.A,{settings:a}),(0,r.jsx)("main",{ref:y,className:d()(I().mainContent,N&&I().announcementBarVisible),children:(0,r.jsxs)("div",{className:d()(I().layout,"layout-block"),children:[(0,r.jsx)("h1",{className:d()(I().title,"is-h1"),children:F}),(0,r.jsx)("div",{className:I().main,children:(0,r.jsx)(P,{wording:t})}),(0,r.jsxs)("aside",{className:I().sidebar,children:[(null==t?void 0:t.sidebarDescription)?(0,r.jsx)(f.A,{className:I().sidebarDescription,content:t.sidebarDescription}):(0,r.jsx)("p",{className:I().sidebarDescription,children:A.sidebarDescription}),(0,r.jsx)(j.A,{to:L,className:I().sidebarButton,styled:!0,children:(0,r.jsx)("span",{children:k})})]})]})}),(0,r.jsx)(w.A,{settings:a}),(0,r.jsx)(v.A,{settings:a}),(0,r.jsx)(_.A,{show:g,onClick:m.IV}),(0,r.jsx)(x.A,{})]})]})};var S=!0;let R=e=>{let{settingsData:a,wording:t}=e,i=null==a?void 0:a.settings;return(0,r.jsx)(B,{settings:i,wording:t})}},44376:e=>{e.exports={withdrawalForm:"WithdrawalForm_withdrawalForm__Udlix",step:"WithdrawalForm_step__NkVmm",hidden:"WithdrawalForm_hidden__uC0TK",description:"WithdrawalForm_description____2n_",form:"WithdrawalForm_form__NQ9AX",formFields:"WithdrawalForm_formFields__BIvz0",formField:"WithdrawalForm_formField__0Yj6s",formFieldInput:"WithdrawalForm_formFieldInput__XSUjw",honeypot:"WithdrawalForm_honeypot__aBbxu",captcha:"WithdrawalForm_captcha__kdRlI",errors:"WithdrawalForm_errors__2b4Fy",error:"WithdrawalForm_error__MMIoy",formActions:"WithdrawalForm_formActions__4WbFL",button:"WithdrawalForm_button__rxq1V",message:"WithdrawalForm_message__lT8Nv",reviewList:"WithdrawalForm_reviewList__Ed4LO",reviewRow:"WithdrawalForm_reviewRow__KnCo3",reviewLabel:"WithdrawalForm_reviewLabel___p_7q",reviewValue:"WithdrawalForm_reviewValue__5EyBT"}},47486:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/withdrawal-request",function(){return t(37795)}])},48896:(e,a,t)=>{"use strict";t.d(a,{A:()=>h});var r=t(37876),i=t(77328),s=t.n(i),l=t(73940),n=t.n(l),o=t(4587),d=t(89099),c=t(14232),m=t(44893),u=t(30457);let h=e=>{let{metaTitle:a,metaDescription:t,metaImage:i,settings:l,canonicalPath:h}=e,{asPath:p}=(0,d.useRouter)(),w=l.siteUrl,v=(0,c.useMemo)(()=>{let e=(0,u.qw)(w,p,h),r=n()(l,["title"]),s=n()(l,["seo","fallback_title"]),d=n()(l,["seo","fallback_description"]),c=n()(l,["seo","fallback_preview_image","asset"]),v=(0,m.N)(o.cL.image(c).width(1200).height(630).auto("format").url());return{siteName:r,metaTitle:a||s,metaDescription:t||d,metaImage:"".concat(i,"?_crop=center,top&width=1200&height=630")||v,ogUrl:e,canonicalUrl:e}},[p,h]);return(0,r.jsxs)(s(),{children:[(null==v?void 0:v.metaTitle)&&(0,r.jsx)("title",{children:String(v.metaTitle)}),(null==v?void 0:v.ogUrl)&&(0,r.jsx)("meta",{property:"og:url",content:v.ogUrl}),(null==v?void 0:v.metaTitle)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"title",content:null==v?void 0:v.metaTitle}),(0,r.jsx)("meta",{property:"og:title",content:null==v?void 0:v.metaTitle}),(0,r.jsx)("meta",{name:"twitter:title",content:null==v?void 0:v.metaTitle})]}),(null==v?void 0:v.metaDescription)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:null==v?void 0:v.metaDescription}),(0,r.jsx)("meta",{property:"og:description",content:null==v?void 0:v.metaDescription}),(0,r.jsx)("meta",{name:"twitter:description",content:null==v?void 0:v.metaDescription})]}),(null==v?void 0:v.metaImage)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:image",content:null==v?void 0:v.metaImage}
1),(0,r.jsx)("meta",{property:"og:image:width",content:"1200"}),",",(0,r.jsx)("meta",{property:"og:image:height",content:"630"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:image",content:null==v?void 0:v.metaImage})]}),(null==v?void 0:v.siteName)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:site_name",content:v.siteName}),(0,r.jsx)("meta",{name:"twitter:site",content:v.siteName})]}),(0,r.jsx)("link",{rel:"canonical",href:v.canonicalUrl}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/favicon/apple-touch-icon.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon/favicon-32x32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/favicon/site.webmanifest"}),(0,r.jsx)("meta",{name:"theme-color",content:"#ffffff"})]})}},94318:e=>{e.exports={page:"WithdrawalPage_page__oDis5",mainContent:"WithdrawalPage_mainContent__RpMFp",announcementBarVisible:"WithdrawalPage_announcementBarVisible__h6EOu",layout:"WithdrawalPage_layout__jGdOd",title:"WithdrawalPage_title___E6Bp",main:"WithdrawalPage_main__8y5UE",sidebar:"WithdrawalPage_sidebar__fqAZn",sidebarDescription:"WithdrawalPage_sidebarDescription__WZdjY",sidebarButton:"WithdrawalPage_sidebarButton__rOL7A"}}},e=>{var a=a=>e(e.s=a);e.O(0,[520,486,305,636,593,792],()=>a(47486)),_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.