PageSourceSearch

https://www.burkert.com/bundles/buerkertwebsite/generated/new-buerkert-builds/reformatDetails-CKWWysa8.js

js burkert.com collected 2026-10-03 19:55:16 UTC 8,026 bytes, 166 lines download raw bytes

1import { a as m, d as a } from "./helpers-A1-IBo3V.js";
2const C = {
3  getData(e) {
4    return m(
5      {
6        method: "GET",
7        url: "buerkert-rest/common/get-user-data"
8      },
9      e
10    );
11  },
12  getReducedData(e) {
13    return m(
14      {
15        method: "POST",
16        url: "buerkert-rest/common/get-user-data",
17        headers: {
18          "Content-Type": "application/vnd.ibexa.api.CustomerRequest+json"
19        },
20        data: {
21          CustomerRequest: {
22            "_media-type": "application/vnd.ibexa.api.CustomerRequest+json",
23            type: "quickorder"
24          }
25        }
26      },
27      e
28    );
29  },
30  updateUserPassword(e, n, r) {
31    return m(
32      {
33        method: "POST",
34        url: "buerkert-rest/common/update-ldap-password",
35        headers: {
36          "Content-Type": "application/vnd.ibexa.api.PasswordRequest+json"
37        },
38        data: {
39          PasswordRequest: {
40            PasswordOld: n,
41            PasswordNew: r
42          }
43        }
44      },
45      e
46    );
47  }
48}, u = (e, n, r = !1, d = [
49  "name",
50  "email",
51  "street",
52  "additionalStreet",
53  "street3",
54  "street4",
55  "street5",
56  "city",
57  "postalcode",
58  "country",
59  "countryIdentificationCode",
60  "state"
61]) => {
62  let t = "", o = "", s = {}, c = {};
63  e.SesExtension.addressHTML && (o = e.SesExtension.addressHTML), e.PartyName && Object.keys(e.PartyName).length && (Array.isArray(e.PartyName) ? t = e.PartyName.map((y) => y.Name || "").join(" ") : t = e.PartyName.Name || null), e.SesExtension && Object.keys(e.SesExtension).length && (c = {
64    email: e.SesExtension.ElectronicMail || null,
65    phone: e.SesExtension.Telephone || null,
66    fax: e.SesExtension.Telefax || null,
67    image: e.SesExtension.Image || null
68  });
69  const i = {
70    title: n,
71    addressHTML: o,
72    data: {
73      // image: 'https://placehold.co/100x100', // TODO: get user specific image
74      name: t,
75      ...s,
76      ...c
77    }
78  };
79  return Object.keys(i.data).forEach((y) => {
80    d.includes(y) || delete i.data[y];
81  }), r && (i.popup = r), a(i), i;
82}, P = (e, n, r = !0, d = !0) => {
83  const t = {};
84  if (!e.CustomerResponse) return t;
85  if (a(e.CustomerResponse), t.dataBasics = {
86    administration: {},
87    accessdata: {},
88    contactdata: {},
89    companydata: {}
90  }, e.CustomerResponse.Administration && Object.keys(e.CustomerResponse.Administration).length && (t.dataBasics.administration = e.CustomerResponse.Administration), e.CustomerResponse.Contact && Object.keys(e.CustomerResponse.Contact).length && (t.dataBasics.accessdata = {
91    account: e.CustomerResponse.Contact.ElectronicMail,
92    password: "**************"
93  }, t.dataBasics.contactdata = {
94    name: `${e.CustomerResponse.Contact.FirstName || ""} ${e.CustomerResponse.Contact.SurName || ""}`.trim(),
95    firstName: e.CustomerResponse.Contact.FirstName,
96    lastName: e.CustomerResponse.Contact.SurName,
97    email: e.CustomerResponse.Contact.ElectronicMail
98  }, a(t.dataBasics.accessdata), a(t.dataBasics.contactdata)), e.CustomerResponse.BuyerParty && Object.keys(e.CustomerResponse.BuyerParty).length && (t.dataBasics.companydata = {}, e.CustomerResponse.BuyerParty.SesExtension.addressHTML && (t.dataBasics.companydata.addressHTML = e.CustomerResponse.BuyerParty.SesExtension.addressHTML), e.CustomerResponse.BuyerParty.SesExtension && Object.keys(e.CustomerResponse.BuyerParty.SesExtension).length && (t.dataBasics.companydata.postoffice = {
99    boxnumber: e.CustomerResponse.BuyerParty.SesExtension.PO_BOX,
100    postalcode: e.CustomerResponse.BuyerParty.SesExtension.PO_ZIP,
101    email: e.CustomerResponse.BuyerParty.SesExtension.ElectronicMail,
102    fax: e.CustomerResponse.BuyerParty.SesExtension.Telefax,
103    phone: e.CustomerResponse.BuyerParty.SesExtension.Telephone
104  }, a(t.dataBasics.companydata.postoffice), t.dataBasics.companydata.taxnumbers = [], e.CustomerResponse.BuyerParty.SesExtension.VatNo && t.dataBasics.companydata.taxnumbers.push(
105    e.CustomerResponse.BuyerParty.SesExtension.VatNo
106  ), e.CustomerResponse.BuyerParty.SesExtension.VatNo1 && t.dataBasics.companydata.taxnumbers.push(
107    e.CustomerResponse.BuyerParty.SesExtension.VatNo1
108  ), a(t.dataBasics.companydata.taxnumbers), t.dataBasics.companydata.paymentmethod = e.CustomerResponse.BuyerParty.SesExtension.TermsOfPayment, t.dataBasics.companydata = {
109    ...t.dataBasics.companydata,
110    email: e.CustomerResponse.BuyerParty.SesExtension.ElectronicMail,
111    fax: e.CustomerResponse.BuyerParty.SesExtension.Telefax,
112    phone: e.CustomerResponse.BuyerParty.SesExtension.Telephone
113  }), e.CustomerResponse.BuyerParty.PartyIdentification && Object.keys(e.CustomerResponse.BuyerParty.PartyIdentification).length && (t.dataBasics.companydata.customerid = e.CustomerResponse.BuyerParty.PartyIdentification.ID), a(t.dataBasics.companydata)), Object.keys(t.dataBasics.accessdata).length || delete t.dataBasics.accessdata, Object.keys(t.dataBasics.contactdata).length || delete t.dataBasics.contactdata, Object.keys(t.dataBasics.companydata).length || delete t.dataBasics.companydata, Object.keys(t.dataBasics).length || delete t.dataBasics, r) {
114    if (t.dataAddresses = {
115      showSection: !1,
116      default: [],
117      others: []
118    }, e.CustomerResponse.DeliveryParties && Object.keys(e.CustomerResponse.DeliveryParties).length) {
119      t.dataAddresses.showSection = !0;
120      const o = e.CustomerResponse.DeliveryParties.filter(
121        (s) => s.SesExtension && s.SesExtension.DEFAULT_ADDRESS === "X"
122      ).length;
123      e.CustomerResponse.DeliveryParties.forEach((s, c) => {
124        o && s.SesExtension && s.SesExtension.DEFAULT_ADDRESS === "X" || !o && c === 0 ? t.dataAddresses.default.push(
125          u(
126            s,
127            n.addresses.default.delivery.headline,
128            n.addresses.default.delivery.popup
129          )
130        ) : t.dataAddresses.others.push(u(s, !1));
131      });
132    }
133    e.CustomerResponse.InvoiceParty && Object.keys(e.CustomerResponse.InvoiceParty).length && (e.CustomerResponse.InvoiceParty.PostalAddress && a(e.CustomerResponse.InvoiceParty.PostalAddress), e.CustomerResponse.InvoiceParty.Contact && a(e.CustomerResponse.InvoiceParty.Contact), e.CustomerResponse.InvoiceParty.Person && a(e.CustomerResponse.InvoiceParty.Person), a(e.CustomerResponse.InvoiceParty)), e.CustomerResponse.InvoiceParty && Object.keys(e.CustomerResponse.InvoiceParty).length && (t.dataAddresses.showSection = !0, t.dataAddresses.default.push(
134      u(
135        e.CustomerResponse.InvoiceParty,
136        n.addresses.default.billing.headline,
137        n.addresses.default.billing.popup || {}
138      )
139    )), a(t.dataAddresses.default), a(t.dataAddresses.others), a(t.dataAddresses);
140  }
141  return d && (t.dataContacts = [], e.CustomerResponse.BuyerParty && e.CustomerResponse.BuyerParty.SesExtension && e.CustomerResponse.BuyerParty.SesExtension.BuerkertContacts && Object.keys(e.CustomerResponse.BuyerParty).length && Object.keys(e.CustomerResponse.BuyerParty.SesExtension).length && Object.keys(e.CustomerResponse.BuyerParty.SesExtension.BuerkertContacts).length && e.CustomerResponse.BuyerParty.SesExtension.BuerkertContacts.forEac
141h((o) => {
142    const s = o.SesExtension && o.SesExtension.ContactType ? o.SesExtension.ContactType : null;
143    t.dataContacts.push(
144      u(o, s, !1, ["image", "name", "phone", "fax", "email"])
145    );
146  }), e.CustomerResponse.BuyerParty && e.CustomerResponse.BuyerParty.SesExtension && e.CustomerResponse.BuyerParty.SesExtension.ContactData && Object.keys(e.CustomerResponse.BuyerParty).length && Object.keys(e.CustomerResponse.BuyerParty.SesExtension).length && Object.keys(e.CustomerResponse.BuyerParty.SesExtension.ContactData).length && e.CustomerResponse.BuyerParty.SesExtension.ContactData.forEach((o) => {
147    const s = {
148      SesExtension: {
149        ...o
150      }
151    };
152    t.dataContacts.push(
153      u(s, s.SesExtension.ContactType, !1, [
154        "image",
155        "name",
156        "phone",
157        "fax",
158        "email"
159      ])
160    );
161  }), a(t.dataContacts)), a(t), t;
162};
163export {
164  C as m,
165  P as r
166};

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.