ire-preview 3.2.17 → 3.2.18
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.
- package/dist/lib.es.js +11 -8
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -5675,21 +5675,24 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5675
5675
|
comment: ""
|
|
5676
5676
|
}), De = ref(!1), Le = ref(!1), Re = async () => {
|
|
5677
5677
|
var je;
|
|
5678
|
+
if (De.value) return;
|
|
5678
5679
|
De.value = !0;
|
|
5679
5680
|
const { data: ze } = await createAxios().post("", {
|
|
5680
5681
|
action: "irep_create_reservation",
|
|
5681
5682
|
nonce: (je = Ne.irePlaginWp) == null ? void 0 : je.nonce,
|
|
5682
5683
|
...Ve.value
|
|
5683
5684
|
});
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5685
|
+
ze != null && ze.success ? (setTimeout(() => {
|
|
5686
|
+
De.value = !1, Le.value = !0, Ve.value = {
|
|
5687
|
+
...Ve.value,
|
|
5688
|
+
name: "",
|
|
5689
|
+
phone: "",
|
|
5690
|
+
email: "",
|
|
5691
|
+
comment: ""
|
|
5692
|
+
};
|
|
5693
|
+
}, 500), setTimeout(() => {
|
|
5691
5694
|
Le.value = !1;
|
|
5692
|
-
}, 5e3)) : console.error("Something went wrong!");
|
|
5695
|
+
}, 5e3)) : (De.value = !1, console.error("Something went wrong!"));
|
|
5693
5696
|
};
|
|
5694
5697
|
return (ze, je) => (openBlock(), createElementBlock("form", {
|
|
5695
5698
|
onSubmit: withModifiers(Re, ["prevent"]),
|