@visitscotland/component-library 5.63.2 → 5.63.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.
|
@@ -28356,17 +28356,17 @@ 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
|
|
28359
|
+
let e = {}, n = "";
|
|
28360
|
+
window.grecaptcha ? n = window.grecaptcha.getResponse() : e = {
|
|
28361
28361
|
withCredentials: !0
|
|
28362
|
-
}
|
|
28363
|
-
const
|
|
28362
|
+
};
|
|
28363
|
+
const t = this.getHiddenFields(), a = this.getFilteredConsents();
|
|
28364
28364
|
axios.post(this.submitUrl, {
|
|
28365
28365
|
...this.form,
|
|
28366
|
-
...
|
|
28366
|
+
...t,
|
|
28367
28367
|
formType: this.formData.content ? this.formData.content.formType : "",
|
|
28368
|
-
"g-recaptcha-response":
|
|
28369
|
-
consentList:
|
|
28368
|
+
"g-recaptcha-response": n,
|
|
28369
|
+
consentList: a
|
|
28370
28370
|
}, e).then(() => (this.submitting = !1, this.submitted = !0, this.attachEmail(), !1)).catch(() => (this.submitError = !0, !1));
|
|
28371
28371
|
},
|
|
28372
28372
|
/**
|
package/package.json
CHANGED