@verbb/formie-browser 1.0.14 → 1.0.16

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 (156) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/chunks/{address-country-Dn71jroa.js → address-country-DLJF-OkC.js} +5 -9
  3. package/dist/chunks/{address-finder-O49uDRoR.js → address-finder-QK1m1eyv.js} +2 -2
  4. package/dist/chunks/{address-state-ByYatUur.js → address-state-CHKit8AW.js} +113 -112
  5. package/dist/chunks/{api-DYYsVIub.js → api-BPtH5RBA.js} +162 -130
  6. package/dist/chunks/{api-D6kJ7kXZ.js → api-BR2Gqy37.js} +313 -303
  7. package/dist/chunks/{api-ghNr2uxX.js → api-CmuOZ0i3.js} +1 -1
  8. package/dist/chunks/{async-nPFRNQ06.js → async-2GdXNFCE.js} +18 -1
  9. package/dist/chunks/{bpoint-D0RKFM4F.js → bpoint-GvYfyPjD.js} +1 -1
  10. package/dist/chunks/{calculations-YEoVCG2q.js → calculations-DeEmdUDq.js} +5 -7
  11. package/dist/chunks/{captcha-eu-DERJbXnH.js → captcha-eu-eU_M6snp.js} +2 -2
  12. package/dist/chunks/{checkbox-radio-gsm8QPJg.js → checkbox-radio-CSXo6svm.js} +4 -12
  13. package/dist/chunks/{combobox-CWNdx4Fk.js → combobox-CJh2DoSO.js} +323 -363
  14. package/dist/chunks/{conditions-DqNHLTbN.js → conditions-Dz3068K0.js} +140 -153
  15. package/dist/chunks/{country-from-ip-DDj_mFki.js → country-from-ip-BqQ-BqLH.js} +1 -1
  16. package/dist/chunks/{custom-google-maps-C4l2S3GO.js → custom-google-maps-rNm5VFbb.js} +2 -6
  17. package/dist/chunks/{custom-link-CLazgKYH.js → custom-link-CLqFCssQ.js} +1 -1
  18. package/dist/chunks/{custom-maps-DqcAlD0v.js → custom-maps-DgjYQDLj.js} +4 -8
  19. package/dist/chunks/{date-picker-RUnevF7l.js → date-picker-BVJxJVYT.js} +42 -58
  20. package/dist/chunks/{debug-BV0DvdHx.js → debug-rhzqP1j2.js} +2 -14
  21. package/dist/chunks/{dist-ZLeW0zZ3.js → dist-CJReDlDK.js} +13 -8
  22. package/dist/chunks/{eway-or6dtjoT.js → eway-BZuTBAUW.js} +3 -3
  23. package/dist/chunks/{field-references.resolver-Ca8MguFv.js → field-references.resolver-uSHf5-NP.js} +1 -1
  24. package/dist/chunks/{file-upload-Bm-TXyNB.js → file-upload-vEUr_EuP.js} +131 -113
  25. package/dist/chunks/{friendly-captcha-v1-GFqCt1Mh.js → friendly-captcha-v1-C_cF1WD2.js} +2 -2
  26. package/dist/chunks/{friendly-captcha-v2-WoW246JG.js → friendly-captcha-v2-BenESH-n.js} +2 -2
  27. package/dist/chunks/{friendly-challenge-DPG9MJb1.js → friendly-challenge-BgPBEMXx.js} +21 -35
  28. package/dist/chunks/{go-cardless-DzJ-0FKg.js → go-cardless-DWZeB0Bq.js} +2 -6
  29. package/dist/chunks/{google-address-C1P1nTDM.js → google-address-DQR6rsbh.js} +15 -10
  30. package/dist/chunks/{hcaptcha-D0T8aIHz.js → hcaptcha-COilLmRT.js} +2 -2
  31. package/dist/chunks/{hidden-BZhXnNPe.js → hidden-Bc2TpcgF.js} +1 -1
  32. package/dist/chunks/{http-C2QdHuWO.js → http-Dj_skqaa.js} +1 -1
  33. package/dist/chunks/{leaflet-src-DE6rv6M-.js → leaflet-src-Cg-LUOD8.js} +74 -122
  34. package/dist/chunks/{loqate-DD1S7PY9.js → loqate-ZZClcacr.js} +2 -2
  35. package/dist/chunks/{mollie-DG8Ju83x.js → mollie-8OMXIYa8.js} +2 -6
  36. package/dist/chunks/{moneris-C8m3Fvqu.js → moneris-qYHJ9EFy.js} +1 -1
  37. package/dist/chunks/opayo-DlWPEnla.js +159 -0
  38. package/dist/chunks/{paddle-BIYR9Um3.js → paddle-CArfWih0.js} +2 -2
  39. package/dist/chunks/{password-validation-C8_uO_c_.js → password-validation-HGOU9kf3.js} +2 -2
  40. package/dist/chunks/{paypal-B_yxIo2d.js → paypal-BcaMCMGY.js} +2 -2
  41. package/dist/chunks/{payway-CeOzS0sL.js → payway-vxC7_bfR.js} +4 -12
  42. package/dist/chunks/{phone-country-bAqje17P.js → phone-country-Bx9EG50h.js} +124 -141
  43. package/dist/chunks/{place-kit-BE5gi3vo.js → place-kit-BKk8xDXf.js} +10 -10
  44. package/dist/chunks/{placekit-autocomplete.esm-CZZERYur.js → placekit-autocomplete.esm-D2A_0iVU.js} +2 -5
  45. package/dist/chunks/{recaptcha-enterprise-CruXddZq.js → recaptcha-enterprise-Cx6HUpMa.js} +6 -12
  46. package/dist/chunks/recaptcha-shared-CcMI-r8t.js +33 -0
  47. package/dist/chunks/{recaptcha-v2-checkbox-CCnJYCnG.js → recaptcha-v2-checkbox-DQ9BJzcv.js} +2 -2
  48. package/dist/chunks/{recaptcha-v2-invisible-BuVqRRYn.js → recaptcha-v2-invisible-BP0T8Pan.js} +2 -2
  49. package/dist/chunks/recaptcha-v3-DKMGQ27K.js +38 -0
  50. package/dist/chunks/{repeater-DwE27jI1.js → repeater-BR0RUvTs.js} +50 -40
  51. package/dist/chunks/{rich-text-uV4o_pGk.js → rich-text-H2A6cm1t.js} +33 -11
  52. package/dist/chunks/{rolldown-runtime-DtPi1Y-2.js → rolldown-runtime-VHNaYcLd.js} +1 -1
  53. package/dist/chunks/{scripts-CbQ7agX3.js → scripts-DrccjrFv.js} +1 -1
  54. package/dist/chunks/{sdk-lkwSvlpM.js → sdk-_cmrRYgp.js} +4 -16
  55. package/dist/chunks/{shared-OKhSay59.js → shared-CJ1LIEh3.js} +1 -3
  56. package/dist/chunks/{signature-7cldFbqj.js → signature-CfKA_poI.js} +9 -41
  57. package/dist/chunks/skip-CEW89ExY.js +7 -0
  58. package/dist/chunks/{snaptcha-C04kNGYQ.js → snaptcha-P3EoSQud.js} +1 -1
  59. package/dist/chunks/{square-DEzxv9D9.js → square-Dyz0p_GU.js} +2 -2
  60. package/dist/chunks/{stripe-CVPQGDz3.js → stripe-Bfd_jp_k.js} +4 -7
  61. package/dist/chunks/{summary-BF_8mrXI.js → summary-B3CAebLV.js} +45 -37
  62. package/dist/chunks/{survey-likert-fk1hUPff.js → survey-likert-CEtUceag.js} +1 -1
  63. package/dist/chunks/{survey-rank-BsLGl2LX.js → survey-rank-Dtt97y6s.js} +3 -7
  64. package/dist/chunks/{survey-rating-DVS6e6fM.js → survey-rating-mlDMI0uq.js} +9 -23
  65. package/dist/chunks/{table-DnIBdeKF.js → table-0k6Md0IO.js} +2 -2
  66. package/dist/chunks/{text-limit-LGMPhFuC.js → text-limit-CTVML6s7.js} +10 -10
  67. package/dist/chunks/{turnstile-n9DNyPxi.js → turnstile-Sp4ubowK.js} +2 -2
  68. package/dist/chunks/{upload-manager-BbiUosZq.js → upload-manager-Ccg3d_4I.js} +258 -260
  69. package/dist/index.d.ts +1 -0
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +743 -734
  72. package/dist/js/core/create-formie-client.d.ts.map +1 -1
  73. package/dist/js/core/dom-events.d.ts +5 -0
  74. package/dist/js/core/dom-events.d.ts.map +1 -1
  75. package/dist/js/core/page-client-event.d.ts.map +1 -1
  76. package/dist/js/core/submit-result-state.d.ts.map +1 -1
  77. package/dist/js/core/submit-result-ui.d.ts +3 -1
  78. package/dist/js/core/submit-result-ui.d.ts.map +1 -1
  79. package/dist/js/core/validation-focus.d.ts.map +1 -1
  80. package/dist/js/modules/address/google-address.d.ts +10 -0
  81. package/dist/js/modules/address/google-address.d.ts.map +1 -1
  82. package/dist/js/modules/address/place-kit.d.ts.map +1 -1
  83. package/dist/js/modules/captchas/factories.d.ts.map +1 -1
  84. package/dist/js/modules/captchas/host.d.ts +4 -1
  85. package/dist/js/modules/captchas/host.d.ts.map +1 -1
  86. package/dist/js/modules/captchas/recaptcha-shared.d.ts +1 -1
  87. package/dist/js/modules/captchas/recaptcha-shared.d.ts.map +1 -1
  88. package/dist/js/modules/captchas/recaptcha-v3.d.ts.map +1 -1
  89. package/dist/js/modules/fields/address-state.d.ts.map +1 -1
  90. package/dist/js/modules/fields/combobox.d.ts +2 -0
  91. package/dist/js/modules/fields/combobox.d.ts.map +1 -1
  92. package/dist/js/modules/fields/conditions/effects.d.ts.map +1 -1
  93. package/dist/js/modules/fields/conditions.d.ts.map +1 -1
  94. package/dist/js/modules/fields/date-picker.d.ts.map +1 -1
  95. package/dist/js/modules/fields/file-upload.d.ts.map +1 -1
  96. package/dist/js/modules/fields/phone-country.d.ts.map +1 -1
  97. package/dist/js/modules/fields/repeater.d.ts.map +1 -1
  98. package/dist/js/modules/fields/rich-text.d.ts.map +1 -1
  99. package/dist/js/modules/fields/summary.d.ts.map +1 -1
  100. package/dist/js/modules/fields/text-limit.d.ts.map +1 -1
  101. package/dist/js/modules/fields/upload-manager.d.ts.map +1 -1
  102. package/dist/js/modules/payments/factories.d.ts.map +1 -1
  103. package/dist/js/modules/payments/opayo.d.ts.map +1 -1
  104. package/dist/js/submit/pipeline.d.ts +2 -0
  105. package/dist/js/submit/pipeline.d.ts.map +1 -1
  106. package/dist/js/utils/async.d.ts +1 -0
  107. package/dist/js/utils/async.d.ts.map +1 -1
  108. package/dist/js/utils/form-started-at.d.ts +1 -0
  109. package/dist/js/utils/form-started-at.d.ts.map +1 -1
  110. package/dist/js/utils/unload-warning.d.ts +4 -0
  111. package/dist/js/utils/unload-warning.d.ts.map +1 -1
  112. package/dist/js/validation/rules/required.d.ts.map +1 -1
  113. package/dist/js/validation/submit-readiness.d.ts.map +1 -1
  114. package/dist/js/validation/validator.d.ts +1 -0
  115. package/dist/js/validation/validator.d.ts.map +1 -1
  116. package/package.json +3 -3
  117. package/src/index.ts +1 -0
  118. package/src/js/core/create-formie-client.ts +37 -28
  119. package/src/js/core/dom-events.ts +30 -1
  120. package/src/js/core/page-client-event.ts +5 -7
  121. package/src/js/core/submit-result-state.ts +30 -2
  122. package/src/js/core/submit-result-ui.ts +25 -3
  123. package/src/js/core/validation-focus.ts +17 -3
  124. package/src/js/modules/address/google-address.ts +95 -37
  125. package/src/js/modules/address/place-kit.ts +13 -7
  126. package/src/js/modules/captchas/factories.ts +241 -101
  127. package/src/js/modules/captchas/host.ts +16 -0
  128. package/src/js/modules/captchas/recaptcha-enterprise.ts +1 -1
  129. package/src/js/modules/captchas/recaptcha-shared.ts +23 -5
  130. package/src/js/modules/captchas/recaptcha-v3.ts +23 -14
  131. package/src/js/modules/fields/address-country.ts +5 -5
  132. package/src/js/modules/fields/address-state.ts +80 -27
  133. package/src/js/modules/fields/combobox.ts +22 -1
  134. package/src/js/modules/fields/conditions/effects.ts +4 -5
  135. package/src/js/modules/fields/conditions.ts +9 -0
  136. package/src/js/modules/fields/date-picker.ts +6 -3
  137. package/src/js/modules/fields/file-upload.ts +55 -18
  138. package/src/js/modules/fields/phone-country.ts +25 -2
  139. package/src/js/modules/fields/repeater.ts +55 -4
  140. package/src/js/modules/fields/rich-text.ts +33 -0
  141. package/src/js/modules/fields/summary.ts +63 -10
  142. package/src/js/modules/fields/text-limit.ts +11 -0
  143. package/src/js/modules/fields/upload-manager.ts +54 -18
  144. package/src/js/modules/payments/factories.ts +87 -54
  145. package/src/js/modules/payments/opayo.ts +7 -0
  146. package/src/js/submit/pipeline.ts +16 -9
  147. package/src/js/utils/async.ts +34 -0
  148. package/src/js/utils/form-started-at.ts +19 -4
  149. package/src/js/utils/unload-warning.ts +63 -7
  150. package/src/js/validation/rules/required.ts +18 -0
  151. package/src/js/validation/submit-readiness.ts +2 -0
  152. package/src/js/validation/validator.ts +29 -6
  153. package/src/vendor.d.ts +2 -0
  154. package/dist/chunks/opayo-B3EvrVxw.js +0 -188
  155. package/dist/chunks/recaptcha-shared-AQRMDMme.js +0 -27
  156. package/dist/chunks/recaptcha-v3-CloqhO2A.js +0 -28
@@ -1,7 +1,7 @@
1
- import { n as e, t } from "./rolldown-runtime-DtPi1Y-2.js";
2
- import { t as n } from "./debug-BV0DvdHx.js";
1
+ import { n as e, t } from "./rolldown-runtime-VHNaYcLd.js";
2
+ import { t as n } from "./debug-rhzqP1j2.js";
3
3
  import { t as r } from "./styles-BfoIZwJp.js";
4
- import { i, n as a, t as o } from "./shared-OKhSay59.js";
4
+ import { i, n as a, t as o } from "./shared-CJ1LIEh3.js";
5
5
  //#region ../../node_modules/flatpickr/dist/esm/types/options.js
6
6
  var s = [
7
7
  "onChange",
@@ -411,11 +411,8 @@ var b = function() {}, x = function(e, t, n) {
411
411
  }), s = f ? s : void 0;
412
412
  }
413
413
  }
414
- if (!(s instanceof Date && !isNaN(s.getTime()))) {
415
- n.errorHandler(/* @__PURE__ */ Error("Invalid date provided: " + l));
416
- return;
417
- }
418
- return r === !0 && s.setHours(0, 0, 0, 0), s;
414
+ if (!(s instanceof Date && !isNaN(s.getTime()))) n.errorHandler(/* @__PURE__ */ Error("Invalid date provided: " + l));
415
+ else return r === !0 && s.setHours(0, 0, 0, 0), s;
419
416
  }
420
417
  };
421
418
  };
@@ -589,20 +586,19 @@ function le(e, t) {
589
586
  Array.prototype.forEach.call(n.element.querySelectorAll("[data-" + e + "]"), function(t) {
590
587
  return j(t, "click", n[e]);
591
588
  });
592
- }), n.isMobile) {
593
- Ge();
594
- return;
589
+ }), n.isMobile) Ge();
590
+ else {
591
+ var e = f(De, 50);
592
+ n._debouncedChange = f(de, ce), n.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && j(n.daysContainer, "mouseover", function(e) {
593
+ n.config.mode === "range" && J(y(e));
594
+ }), j(n._input, "keydown", Ee), n.calendarContainer !== void 0 && j(n.calendarContainer, "keydown", Ee), !n.config.inline && !n.config.static && j(window, "resize", e), window.ontouchstart === void 0 ? j(window.document, "mousedown", we) : j(window.document, "touchstart", we), j(window.document, "focus", we, { capture: !0 }), n.config.clickOpens === !0 && (j(n._input, "focus", n.open), j(n._input, "click", n.open)), n.daysContainer !== void 0 && (j(n.monthNav, "click", Ze), j(n.monthNav, ["keyup", "increment"], ue), j(n.daysContainer, "click", Le)), n.timeContainer !== void 0 && n.minuteElement !== void 0 && n.hourElement !== void 0 && (j(n.timeContainer, ["increment"], S), j(n.timeContainer, "blur", S, { capture: !0 }), j(n.timeContainer, "click", fe), j([n.hourElement, n.minuteElement], ["focus", "click"], function(e) {
595
+ return y(e).select();
596
+ }), n.secondElement !== void 0 && j(n.secondElement, "focus", function() {
597
+ return n.secondElement && n.secondElement.select();
598
+ }), n.amPM !== void 0 && j(n.amPM, "click", function(e) {
599
+ S(e);
600
+ })), n.config.allowInput && j(n._input, "blur", Te);
595
601
  }
596
- var e = f(De, 50);
597
- n._debouncedChange = f(de, ce), n.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && j(n.daysContainer, "mouseover", function(e) {
598
- n.config.mode === "range" && J(y(e));
599
- }), j(n._input, "keydown", Ee), n.calendarContainer !== void 0 && j(n.calendarContainer, "keydown", Ee), !n.config.inline && !n.config.static && j(window, "resize", e), window.ontouchstart === void 0 ? j(window.document, "mousedown", we) : j(window.document, "touchstart", we), j(window.document, "focus", we, { capture: !0 }), n.config.clickOpens === !0 && (j(n._input, "focus", n.open), j(n._input, "click", n.open)), n.daysContainer !== void 0 && (j(n.monthNav, "click", Ze), j(n.monthNav, ["keyup", "increment"], ue), j(n.daysContainer, "click", Le)), n.timeContainer !== void 0 && n.minuteElement !== void 0 && n.hourElement !== void 0 && (j(n.timeContainer, ["increment"], S), j(n.timeContainer, "blur", S, { capture: !0 }), j(n.timeContainer, "click", fe), j([n.hourElement, n.minuteElement], ["focus", "click"], function(e) {
600
- return y(e).select();
601
- }), n.secondElement !== void 0 && j(n.secondElement, "focus", function() {
602
- return n.secondElement && n.secondElement.select();
603
- }), n.amPM !== void 0 && j(n.amPM, "click", function(e) {
604
- S(e);
605
- })), n.config.allowInput && j(n._input, "blur", Te);
606
602
  }
607
603
  function N(e, t) {
608
604
  var r = e === void 0 ? n.latestSelectedDateObj || (n.config.minDate && n.config.minDate > n.now ? n.config.minDate : n.config.maxDate && n.config.maxDate < n.now ? n.config.maxDate : n.now) : n.parseDate(e), i = n.currentYear, a = n.currentMonth;
@@ -910,17 +906,13 @@ function le(e, t) {
910
906
  for (var r = e ? e.dateObj.getTime() : n.days.firstElementChild.dateObj.getTime(), i = n.parseDate(n.selectedDates[0], void 0, !0).getTime(), a = Math.min(r, n.selectedDates[0].getTime()), o = Math.max(r, n.selectedDates[0].getTime()), s = !1, c = 0, l = 0, u = a; u < o; u += ae.DAY) K(new Date(u), !0) || (s ||= u > a && u < o, u < i && (!c || u > c) ? c = u : u > i && (!l || u < l) && (l = u));
911
907
  Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+" + n.config.showMonths + ") > ." + t)).forEach(function(t) {
912
908
  var a = t.dateObj.getTime(), o = c > 0 && a < c || l > 0 && a > l;
913
- if (o) {
914
- t.classList.add("notAllowed"), [
915
- "inRange",
916
- "startRange",
917
- "endRange"
918
- ].forEach(function(e) {
919
- t.classList.remove(e);
920
- });
921
- return;
922
- }
923
- (!s || o) && ([
909
+ o ? (t.classList.add("notAllowed"), [
910
+ "inRange",
911
+ "startRange",
912
+ "endRange"
913
+ ].forEach(function(e) {
914
+ t.classList.remove(e);
915
+ })) : (!s || o) && ([
924
916
  "startRange",
925
917
  "inRange",
926
918
  "endRange",
@@ -942,9 +934,7 @@ function le(e, t) {
942
934
  r && r.blur();
943
935
  }
944
936
  n.mobileInput !== void 0 && (n.mobileInput.focus(), n.mobileInput.click()), Z("onOpen");
945
- return;
946
- }
947
- if (!(n._input.disabled || n.config.inline)) {
937
+ } else if (!(n._input.disabled || n.config.inline)) {
948
938
  var i = n.isOpen;
949
939
  n.isOpen = !0, i || (n.calendarContainer.classList.add("open"), n._input.classList.add("active"), Z("onOpen"), Y(t)), n.config.enableTime === !0 && n.config.noCalendar === !0 && n.config.allowInput === !1 && (e === void 0 || !n.timeContainer.contains(e.relatedTarget)) && setTimeout(function() {
950
940
  return n.hourElement.select();
@@ -1049,11 +1039,8 @@ function le(e, t) {
1049
1039
  });
1050
1040
  }
1051
1041
  function Y(e) {
1052
- if (typeof n.config.position == "function") {
1053
- n.config.position(n, e);
1054
- return;
1055
- }
1056
- if (n.calendarContainer !== void 0) {
1042
+ if (typeof n.config.position == "function") n.config.position(n, e);
1043
+ else if (n.calendarContainer !== void 0) {
1057
1044
  Z("onPreCalendarPosition");
1058
1045
  var t = e || n._positionElement, r = Array.prototype.reduce.call(n.calendarContainer.children, (function(e, t) {
1059
1046
  return e + t.offsetHeight;
@@ -1195,11 +1182,7 @@ function le(e, t) {
1195
1182
  e && ze(e, n.config.dateFormat), n._initialDate = n.selectedDates.length > 0 ? n.selectedDates[0] : n.config.minDate && n.config.minDate.getTime() > n.now.getTime() ? n.config.minDate : n.config.maxDate && n.config.maxDate.getTime() < n.now.getTime() ? n.config.maxDate : n.now, n.currentYear = n._initialDate.getFullYear(), n.currentMonth = n._initialDate.getMonth(), n.selectedDates.length > 0 && (n.latestSelectedDateObj = n.selectedDates[0]), n.config.minTime !== void 0 && (n.config.minTime = n.parseDate(n.config.minTime, "H:i")), n.config.maxTime !== void 0 && (n.config.maxTime = n.parseDate(n.config.maxTime, "H:i")), n.minDateHasTime = !!n.config.minDate && (n.config.minDate.getHours() > 0 || n.config.minDate.getMinutes() > 0 || n.config.minDate.getSeconds() > 0), n.maxDateHasTime = !!n.config.maxDate && (n.config.maxDate.getHours() > 0 || n.config.maxDate.getMinutes() > 0 || n.config.maxDate.getSeconds() > 0);
1196
1183
  }
1197
1184
  function Ue() {
1198
- if (n.input = je(), !n.input) {
1199
- n.config.errorHandler(/* @__PURE__ */ Error("Invalid input element specified"));
1200
- return;
1201
- }
1202
- n.input._type = n.input.type, n.input.type = "text", n.input.classList.add("flatpickr-input"), n._input = n.input, n.config.altInput && (n.altInput = h(n.input.nodeName, n.config.altInputClass), n._input = n.altInput, n.altInput.placeholder = n.input.placeholder, n.altInput.disabled = n.input.disabled, n.altInput.required = n.input.required, n.altInput.tabIndex = n.input.tabIndex, n.altInput.type = "text", n.input.setAttribute("type", "hidden"), !n.config.static && n.input.parentNode && n.input.parentNode.insertBefore(n.altInput, n.input.nextSibling)), n.config.allowInput || n._input.setAttribute("readonly", "readonly"), We();
1185
+ n.input = je(), n.input ? (n.input._type = n.input.type, n.input.type = "text", n.input.classList.add("flatpickr-input"), n._input = n.input, n.config.altInput && (n.altInput = h(n.input.nodeName, n.config.altInputClass), n._input = n.altInput, n.altInput.placeholder = n.input.placeholder, n.altInput.disabled = n.input.disabled, n.altInput.required = n.input.required, n.altInput.tabIndex = n.input.tabIndex, n.altInput.type = "text", n.input.setAttribute("type", "hidden"), !n.config.static && n.input.parentNode && n.input.parentNode.insertBefore(n.altInput, n.input.nextSibling)), n.config.allowInput || n._input.setAttribute("readonly", "readonly"), We()) : n.config.errorHandler(/* @__PURE__ */ Error("Invalid input element specified"));
1203
1186
  }
1204
1187
  function We() {
1205
1188
  n._positionElement = n.config.positionElement || n._input;
@@ -1308,10 +1291,10 @@ O.defaultConfig = {}, O.l10ns = {
1308
1291
  }, typeof window < "u" && (window.flatpickr = O);
1309
1292
  //#endregion
1310
1293
  //#region ../../node_modules/flatpickr/dist/flatpickr.css?inline
1311
- var k = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
1294
+ var k = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t, n) => {
1312
1295
  (function(n, r) {
1313
1296
  typeof e == "object" && t !== void 0 ? r(e) : typeof define == "function" && define.amd ? define(["exports"], r) : (n = typeof globalThis < "u" ? globalThis : n || self, r(n.index = {}));
1314
- })(e, (function(e) {
1297
+ })(n, (function(e) {
1315
1298
  var t = function() {
1316
1299
  return t = Object.assign || function(e) {
1317
1300
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
@@ -5198,30 +5181,31 @@ function fe() {
5198
5181
  }
5199
5182
  function P(e, t) {
5200
5183
  if (!e) return null;
5201
- if (!Number.isNaN(Date.parse(e))) return new Date(e);
5202
- let n = e.trim().match(/^([+-]?\d+)\s*(day|days|week|weeks|month|months|year|years)$/i);
5203
- if (!n) return null;
5204
- let r = parseInt(n[1] || "0", 10), i = (n[2] || "").toLowerCase(), a = /* @__PURE__ */ new Date();
5205
- switch (i) {
5184
+ let n = B(e);
5185
+ if (n) return n;
5186
+ let r = e.trim().match(/^([+-]?\d+)\s*(day|days|week|weeks|month|months|year|years)$/i);
5187
+ if (!r) return null;
5188
+ let i = parseInt(r[1] || "0", 10), a = (r[2] || "").toLowerCase(), o = /* @__PURE__ */ new Date();
5189
+ switch (a) {
5206
5190
  case "day":
5207
5191
  case "days":
5208
- a.setDate(a.getDate() + r);
5192
+ o.setDate(o.getDate() + i);
5209
5193
  break;
5210
5194
  case "week":
5211
5195
  case "weeks":
5212
- a.setDate(a.getDate() + r * 7);
5196
+ o.setDate(o.getDate() + i * 7);
5213
5197
  break;
5214
5198
  case "month":
5215
5199
  case "months":
5216
- a.setMonth(a.getMonth() + r);
5200
+ o.setMonth(o.getMonth() + i);
5217
5201
  break;
5218
5202
  case "year":
5219
5203
  case "years":
5220
- a.setFullYear(a.getFullYear() + r);
5204
+ o.setFullYear(o.getFullYear() + i);
5221
5205
  break;
5222
5206
  default: return null;
5223
5207
  }
5224
- return t === "min" ? a.setHours(0, 0, 0, 0) : a.setHours(23, 59, 59, 999), a;
5208
+ return t === "min" ? o.setHours(0, 0, 0, 0) : o.setHours(23, 59, 59, 999), o;
5225
5209
  }
5226
5210
  function pe(e) {
5227
5211
  return (e.getIsDate ? e.dateFormat || "" : e.getIsTime ? e.timeFormat || "" : `${e.dateFormat || ""} ${e.timeFormat || ""}`.trim()).replaceAll("A", "K").replaceAll("a", "K").replaceAll("s", "S").replaceAll("g", "h").replaceAll("h", "G");
@@ -5250,7 +5234,7 @@ function z(e, t) {
5250
5234
  return !t.getIsTime && !t.getIsDateTime ? `${n}-${r}-${i}` : `${n}-${r}-${i} ${R(e.getHours())}:${R(e.getMinutes())}:${R(e.getSeconds())}`;
5251
5235
  }
5252
5236
  function B(e) {
5253
- let t = new Date(e);
5237
+ let t = new Date(/^\d{4}-\d{2}-\d{2}$/.test(e) ? `${e}T00:00:00` : e);
5254
5238
  return Number.isNaN(t.getTime()) ? null : t;
5255
5239
  }
5256
5240
  function V(e, t, n, r) {
@@ -9,22 +9,10 @@ function n(t) {
9
9
  e().__FORMIE_DEBUG__ = t;
10
10
  }
11
11
  function r(e, n, r) {
12
- if (t()) {
13
- if (r === void 0) {
14
- console.log(`[formie:${e}] ${n}`);
15
- return;
16
- }
17
- console.log(`[formie:${e}] ${n}`, r);
18
- }
12
+ t() && (r === void 0 ? console.log(`[formie:${e}] ${n}`) : console.log(`[formie:${e}] ${n}`, r));
19
13
  }
20
14
  function i(e, n, r) {
21
- if (t()) {
22
- if (r === void 0) {
23
- console.warn(`[formie:${e}] ${n}`);
24
- return;
25
- }
26
- console.warn(`[formie:${e}] ${n}`, r);
27
- }
15
+ t() && (r === void 0 ? console.warn(`[formie:${e}] ${n}`) : console.warn(`[formie:${e}] ${n}`, r));
28
16
  }
29
17
  function a(e, t) {
30
18
  let n = t ? `${e}:${t}` : e;
@@ -1,5 +1,5 @@
1
1
  //#region ../formie-core/dist/index.js
2
- var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
2
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, i, o, s) => {
3
3
  if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
4
4
  get: ((e) => i[e]).bind(null, d),
5
5
  enumerable: !(s = n(i, d)) || s.enumerable
@@ -321,10 +321,10 @@ function C(e) {
321
321
  n.add(e.key);
322
322
  }
323
323
  }
324
- var w = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
324
+ var w = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t, n) => {
325
325
  (function(n, r) {
326
326
  typeof e == "object" && t !== void 0 ? r(e) : typeof define == "function" && define.amd ? define(["exports"], r) : r((n = typeof globalThis < "u" ? globalThis : n || self).ExpressionLanguage = {});
327
- })(e, function(e) {
327
+ })(n, function(e) {
328
328
  function t(e, t, n) {
329
329
  return (t = function(e) {
330
330
  var t = function(e, t) {
@@ -335,7 +335,7 @@ var w = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
335
335
  if (typeof r != "object") return r;
336
336
  throw TypeError("@@toPrimitive must return a primitive value.");
337
337
  }
338
- return (t === "string" ? String : Number)(e);
338
+ return String(e);
339
339
  }(e, "string");
340
340
  return typeof t == "symbol" ? t : t + "";
341
341
  }(t)) in e ? Object.defineProperty(e, t, {
@@ -3204,7 +3204,7 @@ var w = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3204
3204
  e in n || (n[e] = t[e]);
3205
3205
  }), e.ExpressionLanguage = n;
3206
3206
  }
3207
- }(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : e);
3207
+ }(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : n);
3208
3208
  })))(), 1), T = null;
3209
3209
  function E() {
3210
3210
  let e = w, t = e.ExpressionLanguage || e.default || w;
@@ -3225,9 +3225,7 @@ function ne(e, t) {
3225
3225
  if (Array.isArray(n)) {
3226
3226
  let r = n.map((e) => typeof e == "string" && e.trim() !== "" && !Number.isNaN(Number(e)) ? Number(e) : e), i = r.filter((e) => typeof e == "number");
3227
3227
  e[t] = i.length === r.length && r.length > 0 ? i.reduce((e, t) => e + Number(t || 0), 0) : r;
3228
- return;
3229
- }
3230
- typeof n == "string" && n.trim() !== "" && !Number.isNaN(Number(n)) && (e[t] = Number(n));
3228
+ } else typeof n == "string" && n.trim() !== "" && !Number.isNaN(Number(n)) && (e[t] = Number(n));
3231
3229
  }), e;
3232
3230
  }
3233
3231
  function re(e, t) {
@@ -3238,6 +3236,13 @@ function re(e, t) {
3238
3236
  return `${t.prefix || ""}${i}${t.suffix || ""}`;
3239
3237
  }
3240
3238
  function O(e, t) {
3239
+ if (e.numberFormat) {
3240
+ let { prefix: n = "", suffix: r = "" } = e.numberFormat, i = (e) => {
3241
+ let t = e;
3242
+ return n && t.startsWith(n) && (t = t.slice(n.length)), r && t.endsWith(r) && (t = t.slice(0, -r.length)), Number(t || 0);
3243
+ };
3244
+ return Array.isArray(t) ? t.map(i) : i(t);
3245
+ }
3241
3246
  let n = e.type?.endsWith("\\Number");
3242
3247
  return e.type?.endsWith("\\Checkboxes") ? Array.isArray(t) ? t.length ? t : "" : t ? [t] : "" : Array.isArray(t) ? t.length ? n ? t.map((e) => Number(e || 0)) : t : "" : n ? Number(t || 0) : t;
3243
3248
  }
@@ -1,6 +1,6 @@
1
- import { t as e } from "./api-D6kJ7kXZ.js";
2
- import { r as t } from "./async-nPFRNQ06.js";
3
- import { r as n } from "./scripts-CbQ7agX3.js";
1
+ import { t as e } from "./api-BR2Gqy37.js";
2
+ import { r as t } from "./async-2GdXNFCE.js";
3
+ import { r as n } from "./scripts-DrccjrFv.js";
4
4
  //#region src/js/modules/payments/eway.ts
5
5
  var r = [{
6
6
  id: "FORMIE_EWAY_SCRIPT_MIN",
@@ -1,4 +1,4 @@
1
- import { f as e, u as t } from "./dist-ZLeW0zZ3.js";
1
+ import { f as e, u as t } from "./dist-CJReDlDK.js";
2
2
  import { n, r, t as i } from "./field-references.keys-58ZSTrCW.js";
3
3
  //#region src/js/utils/field-references.parser.ts
4
4
  function a(t) {