@vergelijkdirect/comparison-forms 1.2.35-rc.23 → 1.2.35-rc.25
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 = (_) => {
|
|
30087
|
+
i.value = _;
|
|
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 = (_) => _.join(","), d = () => N(void 0, null, function* () {
|
|
30093
30093
|
return yield ze([
|
|
30094
30094
|
"name",
|
|
30095
30095
|
"phonenumber",
|
|
@@ -30099,8 +30099,10 @@ const TI = tb.exports, EI = (t) => {
|
|
|
30099
30099
|
]);
|
|
30100
30100
|
}), p = () => {
|
|
30101
30101
|
e("close-tab");
|
|
30102
|
-
}, f = () =>
|
|
30103
|
-
|
|
30102
|
+
}, f = () => {
|
|
30103
|
+
e("show-notification");
|
|
30104
|
+
}, h = () => N(void 0, null, function* () {
|
|
30105
|
+
const { data: _ } = yield De.post(Rn.getMijnUrl() + "/api/communication/contact", {
|
|
30104
30106
|
email: S.email,
|
|
30105
30107
|
name: S.firstName,
|
|
30106
30108
|
phone_number: S.phoneNumber,
|
|
@@ -30110,7 +30112,7 @@ const TI = tb.exports, EI = (t) => {
|
|
|
30110
30112
|
contact_reason: a.contactReason,
|
|
30111
30113
|
type: "callback"
|
|
30112
30114
|
});
|
|
30113
|
-
return
|
|
30115
|
+
return _.response === "success";
|
|
30114
30116
|
});
|
|
30115
30117
|
return {
|
|
30116
30118
|
requestStatus: i,
|
|
@@ -30121,15 +30123,15 @@ const TI = tb.exports, EI = (t) => {
|
|
|
30121
30123
|
try {
|
|
30122
30124
|
if (yield d()) {
|
|
30123
30125
|
j.value = !0;
|
|
30124
|
-
const
|
|
30125
|
-
u(
|
|
30126
|
+
const _ = yield h();
|
|
30127
|
+
u(_ ? "success" : "failed"), f(), yield r("/informatie/bedankt/", {
|
|
30126
30128
|
email: S.email,
|
|
30127
30129
|
phone: S.phoneNumber,
|
|
30128
30130
|
firstname: S.firstName
|
|
30129
30131
|
}), yield zm(), c(), l(), p(), j.value = !1;
|
|
30130
30132
|
}
|
|
30131
|
-
} catch (
|
|
30132
|
-
u("failed"), console.error(
|
|
30133
|
+
} catch (_) {
|
|
30134
|
+
u("failed"), console.error(_);
|
|
30133
30135
|
} finally {
|
|
30134
30136
|
j.value = !1;
|
|
30135
30137
|
}
|