@vergelijkdirect/comparison-forms 1.2.38 → 1.2.39

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.
@@ -30173,13 +30173,13 @@ const NI = ab.exports, II = (t) => {
30173
30173
  const o = ie(() => [{
30174
30174
  rule: "required",
30175
30175
  text: "Voornaam is verplicht"
30176
- }]), u = (v) => {
30177
- i.value = v;
30176
+ }]), u = (_) => {
30177
+ i.value = _;
30178
30178
  }, c = () => {
30179
30179
  a.contactMethods = [], a.contactTime = [], a.contactReason = "Vraag over bestaand contract", a.userQuestion = "";
30180
30180
  }, l = () => {
30181
30181
  S.email = "", S.firstName = "", S.phoneNumber = "";
30182
- }, s = (v) => v.join(","), d = () => N(void 0, null, function* () {
30182
+ }, s = (_) => _.join(","), d = () => N(void 0, null, function* () {
30183
30183
  return yield ze([
30184
30184
  "name",
30185
30185
  "phonenumber",
@@ -30190,7 +30190,7 @@ const NI = ab.exports, II = (t) => {
30190
30190
  }), p = () => {
30191
30191
  e("close-tab");
30192
30192
  }, f = () => N(void 0, null, function* () {
30193
- const { data: v } = yield De.post(Rn.getMijnUrl() + "/api/communication/contact", {
30193
+ const { data: _ } = yield De.post(Rn.getMijnUrl() + "/api/communication/contact", {
30194
30194
  email: S.email,
30195
30195
  name: S.firstName,
30196
30196
  phone_number: S.phoneNumber,
@@ -30200,7 +30200,9 @@ const NI = ab.exports, II = (t) => {
30200
30200
  contact_reason: a.contactReason,
30201
30201
  type: "callback"
30202
30202
  });
30203
- return v.response === "success";
30203
+ return _.response === "success";
30204
+ }), h = () => N(void 0, null, function* () {
30205
+ yield Ym(), c(), l(), p();
30204
30206
  });
30205
30207
  return {
30206
30208
  requestStatus: i,
@@ -30211,15 +30213,15 @@ const NI = ab.exports, II = (t) => {
30211
30213
  try {
30212
30214
  if (yield d()) {
30213
30215
  j.value = !0;
30214
- const v = yield f();
30215
- if (u(v ? "success" : "failed"), !v)
30216
+ const _ = yield f();
30217
+ if (u(_ ? "success" : "failed"), !_)
30216
30218
  return;
30217
- r({ refId: "272" }), yield n();
30219
+ r({ refId: "272" }), yield n(), yield h();
30218
30220
  }
30219
- } catch (v) {
30220
- u("failed"), console.error(v);
30221
+ } catch (_) {
30222
+ u("failed"), console.error(_), yield h();
30221
30223
  } finally {
30222
- yield Ym(), c(), l(), p(), j.value = !1;
30224
+ j.value = !1;
30223
30225
  }
30224
30226
  })
30225
30227
  };