@vergelijkdirect/comparison-forms 1.2.35-rc.25 → 1.2.35-rc.27
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.
|
@@ -30074,7 +30074,7 @@ var tb = /* @__PURE__ */ E(
|
|
|
30074
30074
|
);
|
|
30075
30075
|
tb.options.__file = "/Users/mac/Work/comparison-forms/src/components/common/inputs/DefaultTextArea.vue";
|
|
30076
30076
|
const TI = tb.exports, EI = (t) => {
|
|
30077
|
-
let { emitEvent: e,
|
|
30077
|
+
let { emitEvent: e, setQuotationData: r, submitAndSendQuotationData: n } = tt(t), a = Re({
|
|
30078
30078
|
contactMethods: [],
|
|
30079
30079
|
contactTime: [],
|
|
30080
30080
|
contactReason: "alreadyHasContract",
|
|
@@ -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,17 +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(
|
|
30128
|
-
|
|
30129
|
-
|
|
30130
|
-
firstname: S.firstName
|
|
30131
|
-
}), yield zm(), c(), l(), p(), j.value = !1;
|
|
30124
|
+
const v = yield f();
|
|
30125
|
+
if (u(v ? "success" : "failed"), !v)
|
|
30126
|
+
return;
|
|
30127
|
+
r({ refId: "272" }), yield n();
|
|
30132
30128
|
}
|
|
30133
|
-
} catch (
|
|
30134
|
-
u("failed"), console.error(
|
|
30129
|
+
} catch (v) {
|
|
30130
|
+
u("failed"), console.error(v);
|
|
30135
30131
|
} finally {
|
|
30136
|
-
j.value = !1;
|
|
30132
|
+
yield zm(), c(), l(), p(), j.value = !1;
|
|
30137
30133
|
}
|
|
30138
30134
|
})
|
|
30139
30135
|
};
|