@visitscotland/component-library 5.63.0 → 5.63.2

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.
@@ -28356,18 +28356,18 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_re
28356
28356
  */
28357
28357
  axiosSubmit() {
28358
28358
  this.createDataLayerObject("formsDataEvent"), this.submitting = !0;
28359
- let e = "";
28360
- window.grecaptcha && (e = window.grecaptcha.getResponse());
28359
+ let e = {};
28360
+ window.grecaptcha && (gRecaptchaResponse = window.grecaptcha.getResponse(), e = {
28361
+ withCredentials: !0
28362
+ });
28361
28363
  const n = this.getHiddenFields(), t = this.getFilteredConsents();
28362
28364
  axios.post(this.submitUrl, {
28363
28365
  ...this.form,
28364
28366
  ...n,
28365
28367
  formType: this.formData.content ? this.formData.content.formType : "",
28366
- "g-recaptcha-response": e,
28368
+ "g-recaptcha-response": gRecaptchaResponse,
28367
28369
  consentList: t
28368
- }, {
28369
- withCredentials: !0
28370
- }).then(() => (this.submitting = !1, this.submitted = !0, this.attachEmail(), !1)).catch(() => (this.submitError = !0, !1));
28370
+ }, e).then(() => (this.submitting = !1, this.submitted = !0, this.attachEmail(), !1)).catch(() => (this.submitError = !0, !1));
28371
28371
  },
28372
28372
  /**
28373
28373
  * If exponea is present in the window (via gtm with accepted cookies), and the form uses
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visitscotland/component-library",
3
- "version": "5.63.0",
3
+ "version": "5.63.2",
4
4
  "description": "VisitScotland Component Library",
5
5
  "author": "VisitScotland",
6
6
  "homepage": "https://github.com/visitscotland/vs-component-library#readme",