PageSourceSearch

https://www.smow.de/checkout/assets/typescripts/9f1fd5fe3e08ce617d757ec99293b34d-contactStore.js

js smow.de collected 2026-10-02 11:43:26 UTC 3,671 bytes, 78 lines download raw bytes

1"use strict";
2// noinspection JSAnnotator
3/// <reference path="./types/global.d.ts" />
4document.addEventListener("click", function (e) {
5    if (e.target.id == "contactFormStoreButtonSubmit") {
6        const clientPrefix = document.getElementById("clientPrefix");
7        const checkboxBusiness = document.getElementById("checkboxBusiness");
8        const checkboxLiving = document.getElementById("checkboxLiving");
9        const checkboxProducts = document.getElementById("checkboxProducts");
10        const checkboxPrivacy = document.getElementById("checkboxPrivacy");
11        const message = document.getElementById("contactFormStoreTextboxMessage");
12        const fullName = document.getElementById("fullName");
13        const emapwpewfnr = document.getElementById("emapwpewfnr");
14        const email = document.getElementById("email");
15        const phone = document.getElementById("phone");
16        const zip = document.getElementById("zip");
17        axios
18            .post(
19        // @ts-ignore
20        jsRoutes.controllers.InfoController.contactRequestStore().url, {
21            clientPrefix: clientPrefix.value,
22            checkboxBusiness: checkboxBusiness.checked,
23            checkboxLiving: checkboxLiving.checked,
24            checkboxProducts: checkboxProducts.checked,
25            checkboxPrivacy: checkboxPrivacy.checked,
26            fullName: fullName.value,
27            emapwpewfnr: emapwpewfnr.value,
28            email: email.value,
29            phone: phone.value,
30            zip: zip.value,
31            contactFormStoreTextboxMessage: message.value
32        })
33            .then(function (response) {
34            const contactFormStore = document.getElementById("contactFormStore");
35            const contactThankYouStore = document.getElementById("contactThankYouStore");
36            const contactErrorStore = document.getElementById("contactErrorStore");
37            if (contactFormStore) {
38                contactFormStore.classList.add("d-none");
39            }
40            if (response.data.status == "OK" && contactThankYouStore) {
41                contactThankYouStore.classList.remove("d-none");
42            }
43            else if (contactErrorStore) {
44                contactErrorStore.classList.remove("d-none");
45            }
46        })
47            .catch(function (error) {
48            if (error.response) {
49                const errors = error.response.data;
50                const allInputsWithError = document.querySelectorAll(".is-invalid");
51                const allErrorMessages = document.querySelectorAll(".invalid-feedback");
52                allInputsWithError.forEach((el) => {
53                    el.classList.remove("is-invalid");
54                });
55                allErrorMessages.forEach((el) => {
56                    el.remove();
57                });
58                for (let key in errors) {
59                    if (errors.hasOwnProperty(key)) {
60                        let errorMessage = document.createElement("div");
61                        errorMessage.classList.add("invalid-feedback");
62                        errorMessage.innerHTML = errors[key].join(",&nbsp;");
63                        const element = document.querySelector("#" + key);
64                        if (element) {
65                            element.classList.add("is-invalid");
66                            if (element.parentNode)
67                                element.parentNode.appendChild(errorMessage);
68                        }
69                    }
70                }
71            }
72            else {
73                window.location.reload();
74            }
75        });
76    }
77});
78//# sourceMappingURL=/checkout/assets/typescripts/contactStore.js.map

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.