@vergelijkdirect/comparison-forms 1.2.35-rc.24 → 1.2.35-rc.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30083,13 +30083,13 @@ const TI = tb.exports, EI = (t) => {
|
|
|
30083
30083
|
const o = ie(() => [{
|
|
30084
30084
|
rule: "required",
|
|
30085
30085
|
text: "Voornaam is verplicht"
|
|
30086
|
-
}]), u = (
|
|
30087
|
-
i.value =
|
|
30086
|
+
}]), u = (v) => {
|
|
30087
|
+
i.value = v;
|
|
30088
30088
|
}, c = () => {
|
|
30089
30089
|
a.contactMethods = [], a.contactTime = [], a.contactReason = "alreadyHasContract", a.userQuestion = "";
|
|
30090
30090
|
}, l = () => {
|
|
30091
30091
|
S.email = "", S.firstName = "", S.phoneNumber = "";
|
|
30092
|
-
}, s = (
|
|
30092
|
+
}, s = (v) => v.join(","), d = () => N(void 0, null, function* () {
|
|
30093
30093
|
return yield ze([
|
|
30094
30094
|
"name",
|
|
30095
30095
|
"phonenumber",
|
|
@@ -30099,10 +30099,8 @@ const TI = tb.exports, EI = (t) => {
|
|
|
30099
30099
|
]);
|
|
30100
30100
|
}), p = () => {
|
|
30101
30101
|
e("close-tab");
|
|
30102
|
-
}, f = () => {
|
|
30103
|
-
|
|
30104
|
-
}, h = () => N(void 0, null, function* () {
|
|
30105
|
-
const { data: _ } = yield De.post(Rn.getMijnUrl() + "/api/communication/contact", {
|
|
30102
|
+
}, f = () => N(void 0, null, function* () {
|
|
30103
|
+
const { data: v } = yield De.post(Rn.getMijnUrl() + "/api/communication/contact", {
|
|
30106
30104
|
email: S.email,
|
|
30107
30105
|
name: S.firstName,
|
|
30108
30106
|
phone_number: S.phoneNumber,
|
|
@@ -30112,7 +30110,7 @@ const TI = tb.exports, EI = (t) => {
|
|
|
30112
30110
|
contact_reason: a.contactReason,
|
|
30113
30111
|
type: "callback"
|
|
30114
30112
|
});
|
|
30115
|
-
return
|
|
30113
|
+
return v.response === "success";
|
|
30116
30114
|
});
|
|
30117
30115
|
return {
|
|
30118
30116
|
requestStatus: i,
|
|
@@ -30123,15 +30121,15 @@ const TI = tb.exports, EI = (t) => {
|
|
|
30123
30121
|
try {
|
|
30124
30122
|
if (yield d()) {
|
|
30125
30123
|
j.value = !0;
|
|
30126
|
-
const
|
|
30127
|
-
u(
|
|
30124
|
+
const v = yield f();
|
|
30125
|
+
u(v ? "success" : "failed"), yield r("/informatie/bedankt/", {
|
|
30128
30126
|
email: S.email,
|
|
30129
30127
|
phone: S.phoneNumber,
|
|
30130
30128
|
firstname: S.firstName
|
|
30131
|
-
}),
|
|
30129
|
+
}), yield zm(), c(), l(), p(), j.value = !1;
|
|
30132
30130
|
}
|
|
30133
|
-
} catch (
|
|
30134
|
-
u("failed"), console.error(
|
|
30131
|
+
} catch (v) {
|
|
30132
|
+
u("failed"), console.error(v);
|
|
30135
30133
|
} finally {
|
|
30136
30134
|
j.value = !1;
|
|
30137
30135
|
}
|