@vergelijkdirect/comparison-forms 1.2.32-rc.3 → 1.2.32-rc.4

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.
@@ -30199,13 +30199,13 @@ const YI = () => {
30199
30199
  const t = ie(() => [{
30200
30200
  rule: "required",
30201
30201
  text: "Voornaam is verplicht"
30202
- }]), e = (u) => {
30203
- Yp.value = u;
30202
+ }]), e = (c) => {
30203
+ Yp.value = c;
30204
30204
  }, r = () => {
30205
30205
  sr.howToContact = [], sr.whenToContact = [], sr.whatToHelpWith = "alreadyHasContract", sr.userQuestion = "";
30206
30206
  }, n = () => {
30207
30207
  S.email = "", S.firstName = "", S.phoneNumber = "";
30208
- }, a = () => N(void 0, null, function* () {
30208
+ }, a = (c) => c.join(","), i = () => N(void 0, null, function* () {
30209
30209
  return yield ze([
30210
30210
  "name",
30211
30211
  "phonenumber",
@@ -30213,18 +30213,18 @@ const YI = () => {
30213
30213
  "whenToContact",
30214
30214
  "emailInput"
30215
30215
  ]);
30216
- }), i = () => N(void 0, null, function* () {
30217
- const { data: u } = yield xe.post(Rn.getMijnUrl() + "/api/communication/contact", {
30216
+ }), o = () => N(void 0, null, function* () {
30217
+ const { data: c } = yield xe.post(Rn.getMijnUrl() + "/api/communication/contact", {
30218
30218
  email: S.email,
30219
30219
  name: S.firstName,
30220
30220
  phone_number: S.phoneNumber,
30221
30221
  message: sr.userQuestion,
30222
- how_to_contact: sr.howToContact,
30223
- when_to_contact: sr.whenToContact,
30222
+ how_to_contact: a(sr.howToContact),
30223
+ when_to_contact: a(sr.whenToContact),
30224
30224
  what_to_help_with: sr.whatToHelpWith,
30225
30225
  type: "callback"
30226
30226
  });
30227
- return u.response === "success";
30227
+ return c.response === "success";
30228
30228
  });
30229
30229
  return {
30230
30230
  requestStatus: Yp,
@@ -30232,13 +30232,13 @@ const YI = () => {
30232
30232
  callbackRequestQuestionsData: sr,
30233
30233
  validateBeforeSubmit: () => N(void 0, null, function* () {
30234
30234
  try {
30235
- if (yield a()) {
30235
+ if (yield i()) {
30236
30236
  j.value = !0;
30237
- const u = yield i();
30238
- console.warn(u), e(u ? "success" : "failed"), r(), n(), yield Wm(), j.value = !1;
30237
+ const c = yield o();
30238
+ console.warn(c), e(c ? "success" : "failed"), r(), n(), yield Wm(), j.value = !1;
30239
30239
  }
30240
- } catch (u) {
30241
- e("failed"), console.error(u);
30240
+ } catch (c) {
30241
+ e("failed"), console.error(c);
30242
30242
  } finally {
30243
30243
  j.value = !1;
30244
30244
  }