1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="2eb8ec0c-1ebd-4cc5-8d43-7d69ed0bfdb1",e._sentryDebugIdIdentifier="sentry-dbid-2eb8ec0c-1ebd-4cc5-8d43-7d69ed0bfdb1")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8462],{38462:function(e,r,t){t.r(r),t.d(r,{default:function(){return b}});var d=t(57437),s=t(75481),n=t(2265),l=t(29501),i=t(65178),o=t(22329),u=t(4649),c=t(34653),a=t(79224);let f=()=>s.Ry().shape({agreement:s.O7().required("This field is required").oneOf([!0],"This field is required")});function b(){let{payment_option:e}=(0,a.C)(e=>e.checkout.preOrder),r=(0,a.T)(),[t,s]=(0,n.useState)(null),{register:b,handleSubmit:h}=(0,l.cI)({resolver:(0,i.X)(f())}),[p]=(0,u.ge)(),x=async()=>{r((0,o.o)(!0));try{let e=await p().unwrap();s(null==e?void 0:e.errors)}catch(e){console.error("Error",e)}setTimeout(()=>{r((0,o.o)(!1))},1e3)};return(0,c.rJ)(),(0,d.jsx)("div",{className:"checkout-redirection-payment-wrapper",children:(0,d.jsxs)("form",{id:null==e?void 0:e.slug,onSubmit:h(x),className:"flex flex-col gap-y-1",children:[(0,d.jsx)("input",{type:"hidden",value:1,...b("agreement")}),(null==t?void 0:t.non_field_errors)&&(0,d.jsx)("div",{className:"px-1 mt-3 w-full text-xs text-start text-error","data-testid":"checkout-form-error",children:t.non_field_errors}),(null==t?void 0:t.status)&&(0,d.jsx)("div",{className:"px-1 mt-3 w-full text-xs text-start text-error","data-testid":"checkout-form-error",children:t.status})]})})}}}]);
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.