@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,11 +1,12 @@
1
- import { c as e, d as t, l as n } from "./dist-ZLeW0zZ3.js";
2
- import { t as r } from "./debug-BV0DvdHx.js";
3
- import { n as i } from "./theme-classes-DAQuEqdP.js";
4
- import { t as a } from "./field-references.keys-58ZSTrCW.js";
5
- import { r as o } from "./shared-OKhSay59.js";
1
+ import { c as e, d as t, l as n } from "./dist-CJReDlDK.js";
2
+ import { a as r } from "./event-names-BCI2FLD8.js";
3
+ import { t as i } from "./debug-rhzqP1j2.js";
4
+ import { n as a } from "./theme-classes-DAQuEqdP.js";
5
+ import { t as o } from "./field-references.keys-58ZSTrCW.js";
6
+ import { r as s } from "./shared-CJ1LIEh3.js";
6
7
  //#region src/js/modules/fields/conditions/config.ts
7
- var s = "[data-formie-conditions]";
8
- function c(e) {
8
+ var c = "[data-formie-conditions]";
9
+ function l(e) {
9
10
  if (!e || typeof e != "object") return null;
10
11
  let t = e, n = t.transformerParams;
11
12
  return {
@@ -19,11 +20,11 @@ function c(e) {
19
20
  isValid: t.isValid !== !1
20
21
  };
21
22
  }
22
- function l(e) {
23
- let t = Array.from(e.querySelectorAll(s));
23
+ function u(e) {
24
+ let t = Array.from(e.querySelectorAll(c));
24
25
  return e.matches("[data-formie-conditions]") ? [e, ...t] : t;
25
26
  }
26
- function u(e) {
27
+ function d(e) {
27
28
  let t = e.getAttribute("data-formie-conditions");
28
29
  if (!t) return null;
29
30
  try {
@@ -36,7 +37,7 @@ function u(e) {
36
37
  let t = e && typeof e == "object" ? e : {};
37
38
  return {
38
39
  field: typeof t.field == "string" ? t.field : "",
39
- source: c(t.source),
40
+ source: l(t.source),
40
41
  condition: String(t.operator ?? t.condition ?? ""),
41
42
  valueType: t.valueType,
42
43
  browserSafe: t.browserSafe !== !1,
@@ -75,91 +76,79 @@ function u(e) {
75
76
  }
76
77
  //#endregion
77
78
  //#region src/js/modules/fields/conditions/effects.ts
78
- var d = "data-formie-conditions-disabled", f = "data-formie-preserve-disabled", p = "data-formie-conditionally-hidden", m = "data-formie-page-hidden", h = "fui-cp-muted-conditional-field", g = "fui-cp-muted-conditional-field--expanded", _ = "data-formie-cp-muted", v = "data-formie-row-hidden", y = "data-formie-field-count", b = "[data-formie-row], [data-formie-subfield-row], [data-formie-nested-field-row]", x = ":scope > [data-formie-field]";
79
- function S(e) {
79
+ var f = "data-formie-conditions-disabled", p = "data-formie-preserve-disabled", m = "data-formie-conditionally-hidden", h = "data-formie-page-hidden", g = "fui-cp-muted-conditional-field", _ = "fui-cp-muted-conditional-field--expanded", v = "data-formie-cp-muted", y = "data-formie-row-hidden", b = "data-formie-field-count", x = "[data-formie-row], [data-formie-subfield-row], [data-formie-nested-field-row]", S = ":scope > [data-formie-field]";
80
+ function C(e) {
80
81
  e.querySelectorAll("input, select, textarea").forEach((e) => {
81
82
  (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement) && (e instanceof HTMLInputElement && (e.type === "checkbox" || e.type === "radio" ? e.checked = !1 : e.type !== "hidden" && (e.value = "")), e instanceof HTMLSelectElement && (e.multiple ? Array.from(e.options).forEach((e) => {
82
83
  e.selected = !1;
83
84
  }) : e.selectedIndex = -1), e instanceof HTMLTextAreaElement && (e.value = ""));
84
85
  }), e.dispatchEvent(new CustomEvent("formie:field:clear", { bubbles: !0 }));
85
86
  }
86
- function C(e, t) {
87
- let n = e.hasAttribute("data-formie-page"), r = n ? m : p, a = i(e, n ? "pageHidden" : "conditionalHidden"), o = e.hasAttribute(r);
88
- return t ? (o || e.setAttribute(r, "true"), e.classList.add(...a)) : (o && e.removeAttribute(r), e.classList.remove(...a)), o !== t;
89
- }
90
- var w = "button[type=\"submit\"], button[data-formie-action], input[type=\"submit\"]";
91
- function T(e, t) {
92
- if (e instanceof HTMLButtonElement || e instanceof HTMLInputElement) {
93
- if (t) {
94
- e.hasAttribute(d) || (e.hasAttribute("disabled") && e.setAttribute(f, "true"), e.setAttribute(d, "true")), e.setAttribute("disabled", "true");
95
- return;
96
- }
97
- e.hasAttribute(d) && (e.hasAttribute(f) ? (e.setAttribute("disabled", "true"), e.removeAttribute(f)) : e.removeAttribute("disabled"), e.removeAttribute(d));
98
- }
87
+ function w(e, t) {
88
+ let n = m, r = a(e, "conditionalHidden"), i = e.hasAttribute(n);
89
+ return t ? (i || e.setAttribute(n, "true"), e.classList.add(...r)) : (i && e.removeAttribute(n), e.classList.remove(...r)), i !== t;
99
90
  }
91
+ var T = "button[type=\"submit\"], button[data-formie-action], input[type=\"submit\"]";
100
92
  function E(e, t) {
101
- e.matches(w) && T(e, t), e.querySelectorAll(w).forEach((e) => {
102
- T(e, t);
93
+ (e instanceof HTMLButtonElement || e instanceof HTMLInputElement) && (t ? (e.hasAttribute(f) || (e.hasAttribute("disabled") && e.setAttribute(p, "true"), e.setAttribute(f, "true")), e.setAttribute("disabled", "true")) : e.hasAttribute(f) && (e.hasAttribute(p) ? (e.setAttribute("disabled", "true"), e.removeAttribute(p)) : e.removeAttribute("disabled"), e.removeAttribute(f)));
94
+ }
95
+ function D(e, t) {
96
+ e.matches(T) && E(e, t), e.querySelectorAll(T).forEach((e) => {
97
+ E(e, t);
103
98
  }), e.querySelectorAll("input, textarea, select").forEach((e) => {
104
- if (t) {
105
- e.hasAttribute(d) || (e.hasAttribute("disabled") && e.setAttribute(f, "true"), e.setAttribute(d, "true")), e.setAttribute("disabled", "true");
106
- return;
107
- }
108
- e.hasAttribute(d) && (e.hasAttribute(f) ? (e.setAttribute("disabled", "true"), e.removeAttribute(f)) : e.removeAttribute("disabled"), e.removeAttribute(d));
99
+ t ? (e.hasAttribute(f) || (e.hasAttribute("disabled") && e.setAttribute(p, "true"), e.setAttribute(f, "true")), e.setAttribute("disabled", "true")) : e.hasAttribute(f) && (e.hasAttribute(p) ? (e.setAttribute("disabled", "true"), e.removeAttribute(p)) : e.removeAttribute("disabled"), e.removeAttribute(f));
109
100
  });
110
101
  }
111
- function D(e) {
112
- return !e.hasAttribute(p) && !e.hasAttribute(m) && !e.hasAttribute(v) && !e.hasAttribute("hidden");
113
- }
114
102
  function O(e) {
115
- let t = i(e, "rowHidden"), n = Array.from(e.querySelectorAll(x)).filter((e) => D(e)).length;
103
+ return !e.hasAttribute(m) && !e.hasAttribute(h) && !e.hasAttribute(y) && !e.hasAttribute("hidden");
104
+ }
105
+ function ee(e) {
106
+ let t = a(e, "rowHidden"), n = Array.from(e.querySelectorAll(S)).filter((e) => O(e)).length;
116
107
  if (n > 0) {
117
108
  let r = String(n);
118
- e.getAttribute(y) !== r && e.setAttribute(y, r), e.hasAttribute(v) && e.removeAttribute(v), e.classList.remove(...t);
119
- return;
120
- }
121
- e.hasAttribute(y) && e.removeAttribute(y), e.hasAttribute(v) || e.setAttribute(v, "true"), e.classList.add(...t);
109
+ e.getAttribute(b) !== r && e.setAttribute(b, r), e.hasAttribute(y) && e.removeAttribute(y), e.classList.remove(...t);
110
+ } else e.hasAttribute(b) && e.removeAttribute(b), e.hasAttribute(y) || e.setAttribute(y, "true"), e.classList.add(...t);
122
111
  }
123
112
  function k(e) {
124
- e.removeAttribute(_), e.classList.remove(h), e.classList.remove(g);
113
+ e.removeAttribute(v), e.classList.remove(g), e.classList.remove(_);
125
114
  }
126
115
  function A(e) {
127
- e.removeAttribute(p), e.removeAttribute(m), e.classList.remove(...i(e, "conditionalHidden")), e.classList.remove(...i(e, "pageHidden"));
116
+ e.removeAttribute(m), e.classList.remove(...a(e, "conditionalHidden"));
128
117
  }
129
118
  function j(e) {
130
- let t = e.closest(b);
131
- for (; t;) O(t), t = t.parentElement?.closest(b) || null;
119
+ let t = e.closest(x);
120
+ for (; t;) ee(t), t = t.parentElement?.closest(x) || null;
132
121
  }
133
- function ee(e, t, n, r = {}) {
122
+ function M(e, t, n, r = {}) {
134
123
  if (r.disabledOnly) {
135
124
  let r = e.hasAttribute("data-formie-conditionally-disabled") !== t;
136
- return e.toggleAttribute("data-formie-conditionally-disabled", t), E(e, t), t && n && r && S(e), r;
125
+ return e.toggleAttribute("data-formie-conditionally-disabled", t), D(e, t), t && n && r && C(e), r;
137
126
  }
138
- if (r.displayMode === "muted") return M(e, t);
127
+ if (r.displayMode === "muted") return N(e, t);
139
128
  let i = !1;
140
- return (e.hasAttribute(_) || e.classList.contains(h) || e.classList.contains(g)) && (k(e), i = !0), i = C(e, t) || i, E(e, t), j(e), t && n && i && S(e), i;
129
+ return (e.hasAttribute(v) || e.classList.contains(g) || e.classList.contains(_)) && (k(e), i = !0), i = w(e, t) || i, D(e, t), j(e), t && n && i && C(e), i;
141
130
  }
142
- function M(e, t) {
131
+ function N(e, t) {
143
132
  let n = !1;
144
- return t ? ((e.hasAttribute(p) || e.hasAttribute(m)) && (A(e), n = !0), e.hasAttribute(_) || (e.setAttribute(_, "true"), n = !0), e.classList.contains(h) || (e.classList.add(h), n = !0)) : ((e.hasAttribute(_) || e.classList.contains(h) || e.classList.contains(g)) && (k(e), n = !0), (e.hasAttribute(p) || e.hasAttribute(m)) && (A(e), n = !0)), j(e), n;
133
+ return t ? ((e.hasAttribute(m) || e.hasAttribute(h)) && (A(e), n = !0), e.hasAttribute(v) || (e.setAttribute(v, "true"), n = !0), e.classList.contains(g) || (e.classList.add(g), n = !0)) : ((e.hasAttribute(v) || e.classList.contains(g) || e.classList.contains(_)) && (k(e), n = !0), (e.hasAttribute(m) || e.hasAttribute(h)) && (A(e), n = !0)), j(e), n;
145
134
  }
146
135
  //#endregion
147
136
  //#region src/js/modules/fields/conditions/references.ts
148
- var N = "input, select, textarea", P = "[data-formie-repeater-item], [data-formie-table-row]";
149
- function F(e) {
137
+ var P = "input, select, textarea", F = "[data-formie-repeater-item], [data-formie-table-row]";
138
+ function I(e) {
150
139
  return e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement;
151
140
  }
152
- function I(e) {
153
- let t = e.querySelector(N);
141
+ function L(e) {
142
+ let t = e.querySelector(P);
154
143
  if (!t) return null;
155
144
  let n = t.getAttribute("name") || "", r = Array.from(n.matchAll(/\[(\d+)\]/g));
156
145
  return r.length && r[r.length - 1]?.[1] || null;
157
146
  }
158
- function L(e) {
159
- return e.closest(P);
147
+ function R(e) {
148
+ return e.closest(F);
160
149
  }
161
150
  function te(e) {
162
- return Array.from(e.querySelectorAll(N)).filter((e) => F(e) && !!e.name);
151
+ return Array.from(e.querySelectorAll(P)).filter((e) => I(e) && !!e.name);
163
152
  }
164
153
  function ne(e) {
165
154
  let t = e.getAttribute("name") || "";
@@ -177,74 +166,70 @@ function ie(e, t) {
177
166
  let n = e.filter((e) => re(e, t));
178
167
  return n.length ? n : e;
179
168
  }
180
- function R(e, t) {
181
- let n = L(e);
169
+ function z(e, t) {
170
+ let n = R(e);
182
171
  if (!n) return t;
183
- let r = t.filter((e) => L(e) === n);
172
+ let r = t.filter((e) => R(e) === n);
184
173
  return r.length ? r : t;
185
174
  }
186
- function z(e) {
175
+ function B(e) {
187
176
  return !e.source?.target || !e.source.handle ? null : e.source.target === "field" || e.source.target === "submission" ? e.source : null;
188
177
  }
189
- function B(e, t, n) {
190
- let r = z(n);
178
+ function V(e, t, n) {
179
+ let r = B(n);
191
180
  if (!r || r.target !== "field" || !r.handle) return [];
192
- let i = o(r.handle), s = !!r.transformerParams.scope, c = Array.from(e.querySelectorAll(`[data-formie-field-handle="${i}"]`));
193
- if (c.length) return (s ? c : R(t, c)).flatMap((e) => ie(te(e), r.selector));
194
- let l = a(r.handle), u = o(l), d = Array.from(e.querySelectorAll(`[name="${u}"]`)).filter((e) => F(e)), f = Array.from(e.querySelectorAll(`[name="${u}[]"]`)).filter((e) => F(e));
195
- if (d.length || f.length) return s ? [...d, ...f] : R(t, [...d, ...f]);
181
+ let i = s(r.handle), a = !!r.transformerParams.scope, c = Array.from(e.querySelectorAll(`[data-formie-field-handle="${i}"]`));
182
+ if (c.length) return (a ? c : z(t, c)).flatMap((e) => ie(te(e), r.selector));
183
+ let l = o(r.handle), u = s(l), d = Array.from(e.querySelectorAll(`[name="${u}"]`)).filter((e) => I(e)), f = Array.from(e.querySelectorAll(`[name="${u}[]"]`)).filter((e) => I(e));
184
+ if (d.length || f.length) return a ? [...d, ...f] : z(t, [...d, ...f]);
196
185
  if (!r.handle.includes("__ROW__")) return [];
197
- let p = I(t);
198
- if (p && !s) {
199
- let t = a(r.handle.replace(/__ROW__/g, p)), n = o(t), i = Array.from(e.querySelectorAll(`[name="${n}"]`)).filter((e) => F(e)), s = Array.from(e.querySelectorAll(`[name="${n}[]"]`)).filter((e) => F(e));
200
- if (i.length || s.length) return [...i, ...s];
186
+ let p = L(t);
187
+ if (p && !a) {
188
+ let t = o(r.handle.replace(/__ROW__/g, p)), n = s(t), i = Array.from(e.querySelectorAll(`[name="${n}"]`)).filter((e) => I(e)), a = Array.from(e.querySelectorAll(`[name="${n}[]"]`)).filter((e) => I(e));
189
+ if (i.length || a.length) return [...i, ...a];
201
190
  }
202
- if (!s) return [];
203
- let m = a(r.handle).replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/__ROW__/g, "\\d+"), h = new RegExp(m);
204
- return Array.from(e.querySelectorAll("[name]")).filter((e) => F(e) && h.test(e.getAttribute("name") || ""));
191
+ if (!a) return [];
192
+ let m = o(r.handle).replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/__ROW__/g, "\\d+"), h = new RegExp(m);
193
+ return Array.from(e.querySelectorAll("[name]")).filter((e) => I(e) && h.test(e.getAttribute("name") || ""));
205
194
  }
206
195
  //#endregion
207
196
  //#region src/js/modules/fields/conditions/submission-context.ts
208
- var V = "data-formie-submission", H = "formie:submission-context-change";
209
- function U(e) {
197
+ var H = "data-formie-submission", U = "formie:submission-context-change";
198
+ function W(e) {
210
199
  return !!e && typeof e == "object" && !Array.isArray(e);
211
200
  }
212
- function W(e, t = e) {
213
- return t.closest(`[${V}]`) || (e instanceof Element && e.hasAttribute("data-formie-submission") ? e : e.querySelector(`[${V}]`));
214
- }
215
201
  function G(e, t = e) {
216
- let n = W(e, t)?.getAttribute(V);
202
+ return t.closest(`[${H}]`) || (e instanceof Element && e.hasAttribute("data-formie-submission") ? e : e.querySelector(`[${H}]`));
203
+ }
204
+ function K(e, t = e) {
205
+ let n = G(e, t)?.getAttribute(H);
217
206
  if (!n) return {};
218
207
  try {
219
208
  let e = JSON.parse(n);
220
- return U(e) ? Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t == null ? "" : String(t)])) : {};
209
+ return W(e) ? Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t == null ? "" : String(t)])) : {};
221
210
  } catch (e) {
222
211
  return console.error("[formie] Invalid submission context JSON.", e), {};
223
212
  }
224
213
  }
225
- function K(e, t, n = e) {
226
- let r = G(e, n), i = String(t.handle || "").trim(), a = "";
214
+ function q(e, t, n = e) {
215
+ let r = K(e, n), i = String(t.handle || "").trim(), a = "";
227
216
  return i !== "" && (a = Object.prototype.hasOwnProperty.call(r, i) ? r[i] ?? "" : r[`submission${i.charAt(0).toUpperCase()}${i.slice(1)}`] ?? ""), a === "" && t.defaultValue && (a = t.defaultValue), [a];
228
217
  }
229
218
  //#endregion
230
219
  //#region src/js/modules/fields/conditions/values.ts
231
- function q(e, t) {
220
+ function J(e, t) {
232
221
  return e.name || `__condition_input_${t}`;
233
222
  }
234
- function J(e) {
223
+ function ae(e) {
235
224
  return (e.id ? e.ownerDocument.querySelector(`label[for="${e.id}"]`)?.textContent?.trim() : "") || e.closest("label")?.textContent?.trim() || "";
236
225
  }
237
- function ae(e, t = "") {
226
+ function oe(e, t = "") {
238
227
  let n = e[0];
239
228
  if (!n) return [];
240
229
  if (n instanceof HTMLInputElement) {
241
- if (n.type === "checkbox") {
242
- let n = e.filter((e) => e instanceof HTMLInputElement && e.checked);
243
- return t === "label" ? n.map((e) => J(e)).filter(Boolean) : n.map((e) => e.value);
244
- }
245
- if (n.type === "radio") {
230
+ if (n.type === "checkbox" || n.type === "radio") {
246
231
  let n = e.filter((e) => e instanceof HTMLInputElement && e.checked);
247
- return t === "label" ? n.map((e) => J(e)).filter(Boolean) : n.map((e) => e.value);
232
+ return t === "label" ? n.map((e) => ae(e)).filter(Boolean) : n.map((e) => e.value);
248
233
  }
249
234
  if (n.type === "file") return Array.from(n.files || []).map((e) => e.name);
250
235
  }
@@ -256,10 +241,10 @@ function Y(e) {
256
241
  function X(e, t = null) {
257
242
  let n = /* @__PURE__ */ new Map();
258
243
  e.forEach((e, t) => {
259
- let r = q(e, t), i = n.get(r) || [];
244
+ let r = J(e, t), i = n.get(r) || [];
260
245
  i.push(e), n.set(r, i);
261
246
  });
262
- let r = Array.from(n.values()).flatMap((e) => ae(e, t?.selector || ""));
247
+ let r = Array.from(n.values()).flatMap((e) => oe(e, t?.selector || ""));
263
248
  return (r.length === 0 || r.every((e) => e === "")) && t?.defaultValue ? [t.defaultValue] : r;
264
249
  }
265
250
  function Z(e, n, r, i) {
@@ -296,9 +281,9 @@ function Z(e, n, r, i) {
296
281
  }
297
282
  //#endregion
298
283
  //#region src/js/modules/fields/conditions/evaluator.ts
299
- function oe(t, r, i = {}) {
284
+ function se(t, r, i = {}) {
300
285
  let a = i.root, o = i.from || a, s = t.conditions.map((t) => {
301
- let n = r(t), i = z(t), s = i?.target === "submission" && a && o ? K(a, i, o) : X(n, i);
286
+ let n = r(t), i = B(t), s = i?.target === "submission" && a && o ? q(a, i, o) : X(n, i);
302
287
  if (t.browserSafe === !1 || i?.transformerId || i?.isValid === !1 || !n.length && i?.target !== "submission") return {
303
288
  value: null,
304
289
  diagnostics: [{ code: "unresolvedReference" }]
@@ -313,12 +298,12 @@ function oe(t, r, i = {}) {
313
298
  }
314
299
  //#endregion
315
300
  //#region src/js/modules/fields/conditions.ts
316
- var Q = r("conditions");
301
+ var Q = i("conditions");
317
302
  function $(e) {
318
303
  let t = /* @__PURE__ */ new Set();
319
304
  return e.filter((e) => !t.has(e) && (t.add(e), !0));
320
305
  }
321
- var se = {
306
+ var ce = {
322
307
  moduleId: "formie:conditions",
323
308
  version: 2,
324
309
  surfaces: [
@@ -330,84 +315,84 @@ var se = {
330
315
  match: (e) => e.target instanceof HTMLElement && (e.target.matches("[data-formie-conditions]") || !!e.target.querySelector("[data-formie-conditions]")),
331
316
  setup: async (e) => {
332
317
  let t = e.target instanceof HTMLElement ? e.target : e.root;
333
- if (!l(t).length) {
318
+ if (!u(t).length) {
334
319
  Q.log("No condition nodes in scope.");
335
320
  return;
336
321
  }
337
- let n = [], r = [], i = /* @__PURE__ */ new Set(), a = !1, o = !1, c = () => {
322
+ let n = [], i = [], a = /* @__PURE__ */ new Set(), o = !1, s = !1, l = () => {
338
323
  n.forEach((e) => {
339
324
  e();
340
325
  }), n.length = 0;
341
- }, d = () => l(t).flatMap((e) => {
342
- let n = u(e);
326
+ }, f = () => u(t).flatMap((e) => {
327
+ let n = d(e);
343
328
  return n ? [{
344
329
  node: e,
345
330
  settings: n,
346
- sourceInputs: $(n.conditions.flatMap((n) => B(t, e, n)))
331
+ sourceInputs: $(n.conditions.flatMap((n) => V(t, e, n)))
347
332
  }] : [];
348
- }), f = (e) => {
349
- let t = new Map(e.map((e) => [e.node, e])), n = /* @__PURE__ */ new Set(), r = [], a = [];
350
- i = /* @__PURE__ */ new Set();
333
+ }), p = (e) => {
334
+ let t = new Map(e.map((e) => [e.node, e])), n = /* @__PURE__ */ new Set(), r = [], i = [];
335
+ a = /* @__PURE__ */ new Set();
351
336
  let o = (e) => {
352
337
  if (n.has(e.node)) return;
353
- let c = r.indexOf(e.node);
354
- if (c >= 0) {
355
- r.slice(c).forEach((e) => i.add(e));
338
+ let s = r.indexOf(e.node);
339
+ if (s >= 0) {
340
+ r.slice(s).forEach((e) => a.add(e));
356
341
  return;
357
342
  }
358
343
  r.push(e.node);
359
344
  let l = (e) => {
360
- for (let n = e?.closest(s); n; n = n.parentElement?.closest(s)) {
345
+ for (let n = e?.closest(c); n; n = n.parentElement?.closest(c)) {
361
346
  let e = t.get(n);
362
347
  e && o(e);
363
348
  }
364
349
  };
365
- l(e.node.parentElement), e.sourceInputs.forEach((e) => l(e)), r.pop(), n.add(e.node), a.push(e);
350
+ l(e.node.parentElement), e.sourceInputs.forEach((e) => l(e)), r.pop(), n.add(e.node), i.push(e);
366
351
  };
367
- return e.forEach(o), i.size && Q.warn("Condition dependency cycle.", { count: i.size }), a;
368
- }, p = e.options?.cpDisplayMode === "muted" ? "muted" : "hide", m = !1, h = () => {
352
+ return e.forEach(o), a.size && Q.warn("Condition dependency cycle.", { count: a.size }), i;
353
+ }, m = e.options?.cpDisplayMode === "muted" ? "muted" : "hide", h = !1, g = () => {
369
354
  let n = !1;
370
- return r.forEach((r) => {
371
- let a = i.has(r.node) ? {
355
+ return i.forEach((r) => {
356
+ let i = a.has(r.node) ? {
372
357
  finalResult: !1,
373
358
  shouldHide: ["show", "enable"].includes(r.settings.showRule),
374
359
  diagnostics: [{ code: "dependencyCycle" }]
375
- } : oe(r.settings, (e) => B(t, r.node, e), {
360
+ } : se(r.settings, (e) => V(t, r.node, e), {
376
361
  root: t,
377
362
  from: r.node
378
- }), o = r.node.hasAttribute("data-formie-page") ? "hide" : p, s = ee(r.node, a.shouldHide, r.settings.clearOnHide, {
363
+ }), o = r.node.hasAttribute("data-formie-page") ? "hide" : m, s = M(r.node, i.shouldHide, r.settings.clearOnHide, {
379
364
  displayMode: o,
380
365
  disabledOnly: ["enable", "disable"].includes(r.settings.showRule)
381
366
  });
382
367
  n ||= s, Q.log("Condition evaluated.", {
383
- shouldHide: a.shouldHide,
384
- finalResult: a.finalResult,
368
+ shouldHide: i.shouldHide,
369
+ finalResult: i.finalResult,
385
370
  stateChanged: s
386
371
  }), e.emit("formie:conditions:evaluated", {
387
372
  node: r.node,
388
- shouldHide: a.shouldHide,
389
- finalResult: a.finalResult,
373
+ shouldHide: i.shouldHide,
374
+ finalResult: i.finalResult,
390
375
  clearOnHide: r.settings.clearOnHide,
391
- diagnostics: i.has(r.node) ? [{ code: "dependencyCycle" }] : []
376
+ diagnostics: a.has(r.node) ? [{ code: "dependencyCycle" }] : []
392
377
  });
393
378
  }), n;
394
- }, g = () => {
395
- if (!m) {
396
- m = !0;
379
+ }, _ = () => {
380
+ if (!h) {
381
+ h = !0;
397
382
  try {
398
- h();
383
+ g();
399
384
  } finally {
400
- m = !1;
385
+ h = !1;
401
386
  }
402
387
  }
403
- }, _ = () => {
404
- m || a || (a = !0, requestAnimationFrame(() => {
405
- a = !1, !m && g();
406
- }));
407
388
  }, v = () => {
408
- if ($(r.flatMap((e) => e.sourceInputs)).forEach((e) => {
389
+ h || o || (o = !0, requestAnimationFrame(() => {
390
+ o = !1, !h && _();
391
+ }));
392
+ }, y = () => {
393
+ if ($(i.flatMap((e) => e.sourceInputs)).forEach((e) => {
409
394
  let t = () => {
410
- _();
395
+ v();
411
396
  };
412
397
  Y(e).forEach((n) => {
413
398
  e.addEventListener(n, t);
@@ -419,31 +404,33 @@ var se = {
419
404
  }), e.form) {
420
405
  let t = () => {
421
406
  window.setTimeout(() => {
422
- _();
407
+ v();
423
408
  }, 0);
424
409
  };
425
- e.form.addEventListener("reset", t), n.push(() => {
426
- e.form?.removeEventListener("reset", t);
410
+ e.form.addEventListener("reset", t);
411
+ let i = r("reset");
412
+ e.form.addEventListener(i, _), n.push(() => {
413
+ e.form?.removeEventListener("reset", t), e.form?.removeEventListener(i, _);
427
414
  });
428
- let r = () => {
429
- _();
415
+ let a = () => {
416
+ v();
430
417
  };
431
- e.form.addEventListener(H, r), n.push(() => {
432
- e.form?.removeEventListener(H, r);
418
+ e.form.addEventListener(U, a), n.push(() => {
419
+ e.form?.removeEventListener(U, a);
433
420
  });
434
421
  }
435
- }, y = () => {
436
- c(), r = f(d()), v(), Q.log("Rebuilt condition graph.", { entryCount: r.length }), _();
437
422
  }, b = () => {
438
- m || o || (o = !0, requestAnimationFrame(() => {
439
- o = !1, !m && y();
423
+ l(), i = p(f()), y(), Q.log("Rebuilt condition graph.", { entryCount: i.length }), v();
424
+ }, x = () => {
425
+ h || s || (s = !0, requestAnimationFrame(() => {
426
+ s = !1, !h && b();
440
427
  }));
441
- }, x = new MutationObserver((e) => {
442
- if (m) return;
428
+ }, S = new MutationObserver((e) => {
429
+ if (h) return;
443
430
  let t = e.some((e) => e.type === "childList" && (e.addedNodes.length > 0 || e.removedNodes.length > 0)), n = e.some((e) => e.type === "attributes");
444
- t ? b() : n && _();
431
+ t ? x() : n && v();
445
432
  });
446
- return x.observe(t, {
433
+ return S.observe(t, {
447
434
  childList: !0,
448
435
  subtree: !0,
449
436
  attributes: !0,
@@ -453,12 +440,12 @@ var se = {
453
440
  "data-formie-conditionally-hidden",
454
441
  "data-formie-page-hidden",
455
442
  "data-formie-row-hidden",
456
- V
443
+ H
457
444
  ]
458
- }), y(), await e.emit("formie:module:conditions:init", { count: r.length }), Q.log("Module setup complete.", { entryCount: r.length }), { destroy: () => {
459
- c(), x.disconnect(), Q.log("Module destroy."), e.emit("formie:module:conditions:destroy", {});
445
+ }), b(), _(), await e.emit("formie:module:conditions:init", { count: i.length }), Q.log("Module setup complete.", { entryCount: i.length }), { destroy: () => {
446
+ l(), S.disconnect(), Q.log("Module destroy."), e.emit("formie:module:conditions:destroy", {});
460
447
  } };
461
448
  }
462
449
  };
463
450
  //#endregion
464
- export { se as conditionsModule };
451
+ export { ce as conditionsModule };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./request-profile-DhwkeCpS.js";
2
- import { t } from "./dist-ZLeW0zZ3.js";
2
+ import { t } from "./dist-CJReDlDK.js";
3
3
  //#region src/js/utils/country-from-ip.ts
4
4
  var n = "formie/address/country-from-ip", r = /* @__PURE__ */ new Map();
5
5
  function i(e) {
@@ -1,4 +1,4 @@
1
- import { a as e, c as t } from "./shared-OKhSay59.js";
1
+ import { a as e, c as t } from "./shared-CJ1LIEh3.js";
2
2
  //#region src/js/modules/fields/custom-google-maps.ts
3
3
  var n = "custom-google-maps", r = "[data-formie-custom-google-maps]", i = null;
4
4
  function a(e) {
@@ -170,11 +170,7 @@ async function y(e, t) {
170
170
  function b(e) {
171
171
  let t = s(e), n = o(e), r = null, i = !1;
172
172
  return y(t, n).then((e) => {
173
- if (i) {
174
- e();
175
- return;
176
- }
177
- r = e;
173
+ i ? e() : r = e;
178
174
  }).catch((e) => {
179
175
  console.warn("[Formie] Unable to initialize Google Maps custom field.", e);
180
176
  }), () => {
@@ -1,4 +1,4 @@
1
- import { a as e, c as t } from "./shared-OKhSay59.js";
1
+ import { a as e, c as t } from "./shared-CJ1LIEh3.js";
2
2
  //#region src/js/modules/fields/custom-link.ts
3
3
  var n = "custom-link", r = "[data-formie-custom-link]";
4
4
  function i(e, t) {
@@ -1,6 +1,6 @@
1
- import { n as e } from "./rolldown-runtime-DtPi1Y-2.js";
1
+ import { n as e } from "./rolldown-runtime-VHNaYcLd.js";
2
2
  import { t } from "./styles-BfoIZwJp.js";
3
- import { a as n, c as r } from "./shared-OKhSay59.js";
3
+ import { a as n, c as r } from "./shared-CJ1LIEh3.js";
4
4
  //#region ../../node_modules/leaflet/dist/leaflet.css?inline
5
5
  var i = ".leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{-webkit-transform-origin:0 0;width:1600px;height:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{width:auto;padding:0;max-width:none!important;max-height:none!important}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:#33b5e566}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;z-index:800;width:0;height:0}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{z-index:800;pointer-events:visiblePainted;pointer-events:auto;position:relative}.leaflet-top,.leaflet-bottom{z-index:1000;pointer-events:none;position:absolute}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{outline-offset:1px;background:#ddd}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:#ffffff80;border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px #000000a6}.leaflet-bar a{text-align:center;color:#000;background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;text-decoration:none;display:block}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.leaflet-bar a.leaflet-disabled{cursor:default;color:#bbb;background-color:#f4f4f4}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{text-indent:1px;font:700 18px Lucida Console,Monaco,monospace}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px #0006}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{color:#333;background:#fff;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{padding-right:5px;overflow:hidden scroll}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{font-size:1.08333em;display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{width:1em;height:.6669em;vertical-align:baseline!important;display:inline!important}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{white-space:nowrap;box-sizing:border-box;text-shadow:1px 1px #fff;background:#fffc;border:2px solid #777;border-top:none;padding:2px 5px 1px;line-height:1.1}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{background-clip:padding-box;border:2px solid #0003}.leaflet-popup{text-align:center;margin-bottom:20px;position:absolute}.leaflet-popup-content-wrapper{text-align:left;border-radius:12px;padding:1px}.leaflet-popup-content{min-height:1px;margin:13px 24px 13px 20px;font-size:1.08333em;line-height:1.3}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{pointer-events:none;width:40px;height:20px;margin-top:-1px;margin-left:-20px;position:absolute;left:50%;overflow:hidden}.leaflet-popup-tip{pointer-events:auto;width:17px;height:17px;margin:-10px auto 0;padding:1px;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{color:#333;background:#fff;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{text-align:center;color:#757575;background:0 0;border:none;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;text-decoration:none;position:absolute;top:0;right:0}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";width:24px;filter:progid:DXImageTransform.Microsoft.Matrix(M11=.707107, M12=.707107, M21=-.707107, M22=.707107);margin:0 auto}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#fff;border:1px solid #fff;border-radius:3px;padding:6px;position:absolute;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{pointer-events:none;content:\"\";background:0 0;border:6px solid #0000;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{margin-left:-6px;left:50%}.leaflet-tooltip-top:before{border-top-color:#fff;margin-bottom:-12px;bottom:0}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-top:-12px;margin-left:-6px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;margin-left:-12px;left:0}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}", a = "custom-maps", o = "[data-formie-custom-maps]";
6
6
  t(a, [i]);
@@ -51,7 +51,7 @@ function h(e, t, n) {
51
51
  m(e.latInput, t.lat), m(e.lngInput, t.lng), n !== void 0 && m(e.zoomInput, n);
52
52
  }
53
53
  function g() {
54
- return s ||= import("./leaflet-src-DE6rv6M-.js").then((t) => /* @__PURE__ */ e(t.default, 1)), s;
54
+ return s ||= import("./leaflet-src-Cg-LUOD8.js").then((t) => /* @__PURE__ */ e(t.default, 1)), s;
55
55
  }
56
56
  function _(e) {
57
57
  switch (e.mapTiles) {
@@ -139,11 +139,7 @@ async function x(e, t) {
139
139
  function S(e) {
140
140
  let t = u(e), n = l(e), r = null, i = !1;
141
141
  return e.getAttribute("data-formie-custom-map-hide-map") !== "1" && x(t, n).then((e) => {
142
- if (i) {
143
- e();
144
- return;
145
- }
146
- r = e;
142
+ i ? e() : r = e;
147
143
  }), () => {
148
144
  i = !0, r?.();
149
145
  };