PageSourceSearch

https://cdn.sellwerk.de/_nuxt/BRx2YSXD.js

js sellwerk.de collected 2026-09-24 10:31:16 UTC 1,345 bytes, 1 lines download raw bytes

1import{a9 as u,s as p,w as l,P as v,g as c}from"./-ADE_wtW.js";import{u as h}from"./CeN794FS.js";const f=e=>{if(e.sameAsCompanyAddress)return{email:e.invoiceEmail};const t={email:e.invoiceEmail,zipCode:e.zipCode,city:e.city};return e.postfach?{...t,poBox:e.postfach}:{...t,street:e.street,houseNumber:e.houseNumber}},y=e=>!!(e?.street||e?.poBox||e?.zipCode||e?.city),A=()=>({invoiceEmail:"",sameAsCompanyAddress:!0,postfach:"",street:"",houseNumber:"",zipCode:"",city:""}),S=(e={})=>{const t=u(),{invoiceAddress:o}=p(t),i=v(!1),d=c(()=>!!o.value?.rolePartnerId),m=()=>({...A(),invoiceEmail:o.value?.email??"",sameAsCompanyAddress:!y(o.value),postfach:o.value?.poBox??"",street:o.value?.street??"",houseNumber:o.value?.houseNumber??"",zipCode:o.value?.zipCode??"",city:o.value?.city??""}),{formData:r}=h(()=>m(),{preventSubmitOnError:!0,forceSubmit:!0,isSaving:i}),n=c(()=>!!r.value.postfach);return l(n,s=>{s&&(r.value.street="",r.value.houseNumber="")}),{formData:r,handleSubmit:async s=>{try{const a=f(s);o.value?.rolePartnerId&&(a.rolePartnerId=o.value.rolePartnerId),await t.saveCompanyAdditionalData({data:{additionalDataType:"invoiceAddress",invoiceAddressDto:a}}),e.onSuccess?.()}catch(a){console.error("Failed to save invoice address:",a),e.onError?.()}},hasPostfach:n,hasRolePartnerId:d,isSaving:i}};export{S as useInvoiceAddressForm};

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.