@vergelijkdirect/comparison-forms 1.2.35-rc.2 → 1.2.35-rc.20
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,23 +30074,22 @@ 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
|
-
tt(t)
|
|
30078
|
-
let e = Re({
|
|
30077
|
+
let { emitEvent: e } = tt(t), r = Re({
|
|
30079
30078
|
howToContact: [],
|
|
30080
30079
|
whenToContact: [],
|
|
30081
30080
|
whatToHelpWith: "alreadyHasContract",
|
|
30082
30081
|
userQuestion: ""
|
|
30083
|
-
}),
|
|
30084
|
-
const
|
|
30082
|
+
}), n = k("idle");
|
|
30083
|
+
const a = ie(() => [{
|
|
30085
30084
|
rule: "required",
|
|
30086
30085
|
text: "Voornaam is verplicht"
|
|
30087
|
-
}]),
|
|
30088
|
-
|
|
30089
|
-
}, i = () => {
|
|
30090
|
-
e.howToContact = [], e.whenToContact = [], e.whatToHelpWith = "alreadyHasContract", e.userQuestion = "";
|
|
30086
|
+
}]), i = (f) => {
|
|
30087
|
+
n.value = f;
|
|
30091
30088
|
}, o = () => {
|
|
30089
|
+
r.howToContact = [], r.whenToContact = [], r.whatToHelpWith = "alreadyHasContract", r.userQuestion = "";
|
|
30090
|
+
}, u = () => {
|
|
30092
30091
|
S.email = "", S.firstName = "", S.phoneNumber = "";
|
|
30093
|
-
},
|
|
30092
|
+
}, c = (f) => f.join(","), l = () => N(void 0, null, function* () {
|
|
30094
30093
|
return yield ze([
|
|
30095
30094
|
"name",
|
|
30096
30095
|
"phonenumber",
|
|
@@ -30098,35 +30097,35 @@ const TI = tb.exports, EI = (t) => {
|
|
|
30098
30097
|
"whenToContact",
|
|
30099
30098
|
"emailInput"
|
|
30100
30099
|
]);
|
|
30101
|
-
}),
|
|
30102
|
-
|
|
30103
|
-
},
|
|
30104
|
-
const { data:
|
|
30100
|
+
}), s = () => {
|
|
30101
|
+
e("close-tab");
|
|
30102
|
+
}, d = () => N(void 0, null, function* () {
|
|
30103
|
+
const { data: f } = yield De.post(Rn.getMijnUrl() + "/api/communication/contact", {
|
|
30105
30104
|
email: S.email,
|
|
30106
30105
|
name: S.firstName,
|
|
30107
30106
|
phone_number: S.phoneNumber,
|
|
30108
|
-
message:
|
|
30109
|
-
how_to_contact:
|
|
30110
|
-
when_to_contact:
|
|
30111
|
-
what_to_help_with:
|
|
30107
|
+
message: r.userQuestion,
|
|
30108
|
+
how_to_contact: c(r.howToContact),
|
|
30109
|
+
when_to_contact: c(r.whenToContact),
|
|
30110
|
+
what_to_help_with: r.whatToHelpWith,
|
|
30112
30111
|
type: "callback"
|
|
30113
30112
|
});
|
|
30114
|
-
return
|
|
30113
|
+
return f.response === "success";
|
|
30115
30114
|
});
|
|
30116
30115
|
return {
|
|
30117
|
-
requestStatus:
|
|
30118
|
-
nameInputErrorsData:
|
|
30119
|
-
callbackRequestQuestionsData:
|
|
30120
|
-
closeTab:
|
|
30116
|
+
requestStatus: n,
|
|
30117
|
+
nameInputErrorsData: a,
|
|
30118
|
+
callbackRequestQuestionsData: r,
|
|
30119
|
+
closeTab: s,
|
|
30121
30120
|
validateBeforeSubmit: () => N(void 0, null, function* () {
|
|
30122
30121
|
try {
|
|
30123
|
-
if (yield
|
|
30122
|
+
if (yield l()) {
|
|
30124
30123
|
j.value = !0;
|
|
30125
|
-
const
|
|
30126
|
-
|
|
30124
|
+
const f = yield d();
|
|
30125
|
+
i(f ? "success" : "failed"), o(), u(), yield zm(), s(), j.value = !1;
|
|
30127
30126
|
}
|
|
30128
|
-
} catch (
|
|
30129
|
-
|
|
30127
|
+
} catch (f) {
|
|
30128
|
+
i("failed"), console.error(f);
|
|
30130
30129
|
} finally {
|
|
30131
30130
|
j.value = !1;
|
|
30132
30131
|
}
|
|
@@ -30174,17 +30173,17 @@ var rb = function() {
|
|
|
30174
30173
|
return [r("ErrorHandler", { attrs: { name: "whenToContact", "errors-data": [{ rule: "required", text: "Dit veld is verplicht" }] } })];
|
|
30175
30174
|
}, proxy: !0 }]), model: { value: e.callbackRequestQuestionsData.whenToContact, callback: function(n) {
|
|
30176
30175
|
e.$set(e.callbackRequestQuestionsData, "whenToContact", n);
|
|
30177
|
-
}, expression: "callbackRequestQuestionsData.whenToContact" } }), r("div", { staticClass: "vd-form-group vd-radio-group" }, [r("label", { staticClass: "vd-form-group__label", attrs: { for: "whatToHelpWith" } }, [e._v(" Hoe kunnen we je helpen?
|
|
30176
|
+
}, expression: "callbackRequestQuestionsData.whenToContact" } }), r("div", { staticClass: "vd-form-group vd-radio-group" }, [r("label", { staticClass: "vd-form-group__label", attrs: { for: "whatToHelpWith" } }, [e._v(" Hoe kunnen we je helpen?"), r("span", { staticClass: "text-danger ml-1 mt-2" }, [e._v("*")])]), r("b-form-radio-group", { staticClass: "vd-radio-buttons", staticStyle: { display: "block" }, attrs: { id: "paymentTerm", options: e.callbackRequestQuestions.whatToHelpWith, "data-vv-name": "whatToHelpWith", name: "whatToHelpWith" }, model: { value: e.callbackRequestQuestionsData.whatToHelpWith, callback: function(n) {
|
|
30178
30177
|
e.$set(e.callbackRequestQuestionsData, "whatToHelpWith", n);
|
|
30179
|
-
}, expression: "callbackRequestQuestionsData.whatToHelpWith" } }), r("ErrorHandler", { attrs: { "errors-data": [{ rule: "required", text: "Selecteer een dekking" }] } })], 1), r("h6", [e._v("Wil je ons alvast meer informatie geven over je vraag? (optioneel)")]), r("default-text-area", { attrs: { id: "userQuestions", placeholder: "Geef hier een korte beschrijving van je vraag of verzoek...", name: "userQuestion" }, model: { value: e.callbackRequestQuestionsData.userQuestion, callback: function(n) {
|
|
30178
|
+
}, expression: "callbackRequestQuestionsData.whatToHelpWith" } }), r("ErrorHandler", { attrs: { "errors-data": [{ rule: "required", text: "Selecteer een dekking" }] } })], 1), r("h6", { staticClass: "vd-form-card__textarea-label" }, [e._v("Wil je ons alvast meer informatie geven over je vraag? (optioneel)")]), r("default-text-area", { attrs: { id: "userQuestions", placeholder: "Geef hier een korte beschrijving van je vraag of verzoek...", name: "userQuestion" }, model: { value: e.callbackRequestQuestionsData.userQuestion, callback: function(n) {
|
|
30180
30179
|
e.$set(e.callbackRequestQuestionsData, "userQuestion", n);
|
|
30181
|
-
}, expression: "callbackRequestQuestionsData.userQuestion" } }), r("button", { staticClass: "vd-btn vd-btn-primary-alt", on: { click: e.validateBeforeSubmit } }, [e._v("Bel me terug")]), r("button", { staticClass: "vd-btn vd-btn-
|
|
30180
|
+
}, expression: "callbackRequestQuestionsData.userQuestion" } }), r("button", { staticClass: "vd-btn vd-btn-primary-alt", on: { click: e.validateBeforeSubmit } }, [e._v("Bel me terug")]), r("button", { staticClass: "vd-form__button vd-btn vd-btn-secondary-alternative", attrs: { type: "button" }, on: { click: e.closeTab } }, [e._v("Sluit formulier")]), r("button", { staticClass: "vd-form__button_mobile vd-btn vd-btn-secondary-alternative", attrs: { type: "button" }, on: { click: e.closeTab } }, [e._v("Sluiten")])], 1)]);
|
|
30182
30181
|
}, $I = [function() {
|
|
30183
30182
|
var t = this, e = t._self._c;
|
|
30184
|
-
return t._self._setupProxy, e("h6", { staticClass: "vd-contact-slider__checkboxes-title" }, [t._v("Hoe wil je dat we contact met je opnemen? (meerdere opties mogelijk)
|
|
30183
|
+
return t._self._setupProxy, e("h6", { staticClass: "vd-contact-slider__checkboxes-title" }, [t._v("Hoe wil je dat we contact met je opnemen? (meerdere opties mogelijk)"), e("span", { staticClass: "text-danger ml-1 mt-2" }, [t._v("*")])]);
|
|
30185
30184
|
}, function() {
|
|
30186
30185
|
var t = this, e = t._self._c;
|
|
30187
|
-
return t._self._setupProxy, e("h6", { staticClass: "vd-contact-slider__checkboxes-title" }, [t._v("Wanneer past het jou om teruggebeld te worden? (meerdere opties mogelijk)
|
|
30186
|
+
return t._self._setupProxy, e("h6", { staticClass: "vd-contact-slider__checkboxes-title" }, [t._v("Wanneer past het jou om teruggebeld te worden? (meerdere opties mogelijk)"), e("span", { staticClass: "text-danger ml-1 mt-2" }, [t._v("*")])]);
|
|
30188
30187
|
}];
|
|
30189
30188
|
rb._withStripped = !0;
|
|
30190
30189
|
var nb = /* @__PURE__ */ E(
|