1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9808],{79808:(e,r,t)=>{t.r(r),t.d(r,{default:()=>p});var n=t(31085),o=t(16572),s=t(22297),a=t(14041),d=t(83894),c=t.n(d),u=t(91268),i=t(23175);let l=c()(()=>t.e(7374).then(t.bind(t,77374)),{loadableGenerated:{webpack:()=>[77374]},ssr:!1}),p=e=>{let{onApprove:r=()=>{},onError:t=()=>{},onSubmit:d=()=>{},disabled:c=!1,newsletterChecked:p=!1,orderComment:h=""}=e,{t:y}=(0,s.Bd)("common"),{selectedPaymentMethodName:f,selectedBillingAddress:v,isVoucherActive:m,voucherData:b,voucherId:w,voucherPin:R,selectedDeliveryOption:I}=(0,a.useContext)(o.A),{data:A,customerData:N}=(0,u._)(),S=(0,i.A)(),k=async()=>{d();try{let e=N?.deliveryAddresses.find(e=>e.addressId===v),r=await S({order:{totalPrice:A?.totalPrice,userId:N?.entityId,selectedPaymentMethodName:f,redirectUrl:window?window.location.origin:"",currency:A?.currency.code,firstName:e?.firstName,lastName:e?.lastName,country:e?.country,isVoucherApplied:m?"true":"",voucherPin:R,voucherId:w,voucherReferenceId:b?.voucherReferenceId?b?.voucherReferenceId:"",voucherAmount:b?.voucherBalance?b?.voucherBalance.toString():"",selectedBillingAddress:v,newsletter:p,orderComment:h,orderType:I}});if(void 0!==r&&r.payOneResponse)return{txId:r.payOneResponse.txid||"",payoneResponseStatus:r.payOneResponse.status||"",redirecturl:r.payOneResponse.redirecturl||""}}catch(e){t("errorSofort")}return null};return(0,n.jsx)(l,{disabled:c,onStartPresubmitRequest:k,onApprove:r,onError:t,onSubmit:()=>d,buttonText:y("payWithSofort")})}}}]);
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.