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.
Files changed (2) hide show
  1. package/dist/lib.es.js +11 -8
  2. 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
- De.value = !1, ze != null && ze.success ? (Le.value = !0, Ve.value = {
5685
- ...Ve.value,
5686
- name: "",
5687
- phone: "",
5688
- email: "",
5689
- comment: ""
5690
- }, setTimeout(() => {
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"]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ire-preview",
3
- "version": "3.2.17",
3
+ "version": "3.2.18",
4
4
  "type": "module",
5
5
  "emitDeclarationOnly": true,
6
6
  "declaration": true,