@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.
- package/CHANGELOG.md +66 -0
- package/dist/chunks/{address-country-Dn71jroa.js → address-country-DLJF-OkC.js} +5 -9
- package/dist/chunks/{address-finder-O49uDRoR.js → address-finder-QK1m1eyv.js} +2 -2
- package/dist/chunks/{address-state-ByYatUur.js → address-state-CHKit8AW.js} +113 -112
- package/dist/chunks/{api-DYYsVIub.js → api-BPtH5RBA.js} +162 -130
- package/dist/chunks/{api-D6kJ7kXZ.js → api-BR2Gqy37.js} +313 -303
- package/dist/chunks/{api-ghNr2uxX.js → api-CmuOZ0i3.js} +1 -1
- package/dist/chunks/{async-nPFRNQ06.js → async-2GdXNFCE.js} +18 -1
- package/dist/chunks/{bpoint-D0RKFM4F.js → bpoint-GvYfyPjD.js} +1 -1
- package/dist/chunks/{calculations-YEoVCG2q.js → calculations-DeEmdUDq.js} +5 -7
- package/dist/chunks/{captcha-eu-DERJbXnH.js → captcha-eu-eU_M6snp.js} +2 -2
- package/dist/chunks/{checkbox-radio-gsm8QPJg.js → checkbox-radio-CSXo6svm.js} +4 -12
- package/dist/chunks/{combobox-CWNdx4Fk.js → combobox-CJh2DoSO.js} +323 -363
- package/dist/chunks/{conditions-DqNHLTbN.js → conditions-Dz3068K0.js} +140 -153
- package/dist/chunks/{country-from-ip-DDj_mFki.js → country-from-ip-BqQ-BqLH.js} +1 -1
- package/dist/chunks/{custom-google-maps-C4l2S3GO.js → custom-google-maps-rNm5VFbb.js} +2 -6
- package/dist/chunks/{custom-link-CLazgKYH.js → custom-link-CLqFCssQ.js} +1 -1
- package/dist/chunks/{custom-maps-DqcAlD0v.js → custom-maps-DgjYQDLj.js} +4 -8
- package/dist/chunks/{date-picker-RUnevF7l.js → date-picker-BVJxJVYT.js} +42 -58
- package/dist/chunks/{debug-BV0DvdHx.js → debug-rhzqP1j2.js} +2 -14
- package/dist/chunks/{dist-ZLeW0zZ3.js → dist-CJReDlDK.js} +13 -8
- package/dist/chunks/{eway-or6dtjoT.js → eway-BZuTBAUW.js} +3 -3
- package/dist/chunks/{field-references.resolver-Ca8MguFv.js → field-references.resolver-uSHf5-NP.js} +1 -1
- package/dist/chunks/{file-upload-Bm-TXyNB.js → file-upload-vEUr_EuP.js} +131 -113
- package/dist/chunks/{friendly-captcha-v1-GFqCt1Mh.js → friendly-captcha-v1-C_cF1WD2.js} +2 -2
- package/dist/chunks/{friendly-captcha-v2-WoW246JG.js → friendly-captcha-v2-BenESH-n.js} +2 -2
- package/dist/chunks/{friendly-challenge-DPG9MJb1.js → friendly-challenge-BgPBEMXx.js} +21 -35
- package/dist/chunks/{go-cardless-DzJ-0FKg.js → go-cardless-DWZeB0Bq.js} +2 -6
- package/dist/chunks/{google-address-C1P1nTDM.js → google-address-DQR6rsbh.js} +15 -10
- package/dist/chunks/{hcaptcha-D0T8aIHz.js → hcaptcha-COilLmRT.js} +2 -2
- package/dist/chunks/{hidden-BZhXnNPe.js → hidden-Bc2TpcgF.js} +1 -1
- package/dist/chunks/{http-C2QdHuWO.js → http-Dj_skqaa.js} +1 -1
- package/dist/chunks/{leaflet-src-DE6rv6M-.js → leaflet-src-Cg-LUOD8.js} +74 -122
- package/dist/chunks/{loqate-DD1S7PY9.js → loqate-ZZClcacr.js} +2 -2
- package/dist/chunks/{mollie-DG8Ju83x.js → mollie-8OMXIYa8.js} +2 -6
- package/dist/chunks/{moneris-C8m3Fvqu.js → moneris-qYHJ9EFy.js} +1 -1
- package/dist/chunks/opayo-DlWPEnla.js +159 -0
- package/dist/chunks/{paddle-BIYR9Um3.js → paddle-CArfWih0.js} +2 -2
- package/dist/chunks/{password-validation-C8_uO_c_.js → password-validation-HGOU9kf3.js} +2 -2
- package/dist/chunks/{paypal-B_yxIo2d.js → paypal-BcaMCMGY.js} +2 -2
- package/dist/chunks/{payway-CeOzS0sL.js → payway-vxC7_bfR.js} +4 -12
- package/dist/chunks/{phone-country-bAqje17P.js → phone-country-Bx9EG50h.js} +124 -141
- package/dist/chunks/{place-kit-BE5gi3vo.js → place-kit-BKk8xDXf.js} +10 -10
- package/dist/chunks/{placekit-autocomplete.esm-CZZERYur.js → placekit-autocomplete.esm-D2A_0iVU.js} +2 -5
- package/dist/chunks/{recaptcha-enterprise-CruXddZq.js → recaptcha-enterprise-Cx6HUpMa.js} +6 -12
- package/dist/chunks/recaptcha-shared-CcMI-r8t.js +33 -0
- package/dist/chunks/{recaptcha-v2-checkbox-CCnJYCnG.js → recaptcha-v2-checkbox-DQ9BJzcv.js} +2 -2
- package/dist/chunks/{recaptcha-v2-invisible-BuVqRRYn.js → recaptcha-v2-invisible-BP0T8Pan.js} +2 -2
- package/dist/chunks/recaptcha-v3-DKMGQ27K.js +38 -0
- package/dist/chunks/{repeater-DwE27jI1.js → repeater-BR0RUvTs.js} +50 -40
- package/dist/chunks/{rich-text-uV4o_pGk.js → rich-text-H2A6cm1t.js} +33 -11
- package/dist/chunks/{rolldown-runtime-DtPi1Y-2.js → rolldown-runtime-VHNaYcLd.js} +1 -1
- package/dist/chunks/{scripts-CbQ7agX3.js → scripts-DrccjrFv.js} +1 -1
- package/dist/chunks/{sdk-lkwSvlpM.js → sdk-_cmrRYgp.js} +4 -16
- package/dist/chunks/{shared-OKhSay59.js → shared-CJ1LIEh3.js} +1 -3
- package/dist/chunks/{signature-7cldFbqj.js → signature-CfKA_poI.js} +9 -41
- package/dist/chunks/skip-CEW89ExY.js +7 -0
- package/dist/chunks/{snaptcha-C04kNGYQ.js → snaptcha-P3EoSQud.js} +1 -1
- package/dist/chunks/{square-DEzxv9D9.js → square-Dyz0p_GU.js} +2 -2
- package/dist/chunks/{stripe-CVPQGDz3.js → stripe-Bfd_jp_k.js} +4 -7
- package/dist/chunks/{summary-BF_8mrXI.js → summary-B3CAebLV.js} +45 -37
- package/dist/chunks/{survey-likert-fk1hUPff.js → survey-likert-CEtUceag.js} +1 -1
- package/dist/chunks/{survey-rank-BsLGl2LX.js → survey-rank-Dtt97y6s.js} +3 -7
- package/dist/chunks/{survey-rating-DVS6e6fM.js → survey-rating-mlDMI0uq.js} +9 -23
- package/dist/chunks/{table-DnIBdeKF.js → table-0k6Md0IO.js} +2 -2
- package/dist/chunks/{text-limit-LGMPhFuC.js → text-limit-CTVML6s7.js} +10 -10
- package/dist/chunks/{turnstile-n9DNyPxi.js → turnstile-Sp4ubowK.js} +2 -2
- package/dist/chunks/{upload-manager-BbiUosZq.js → upload-manager-Ccg3d_4I.js} +258 -260
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +743 -734
- package/dist/js/core/create-formie-client.d.ts.map +1 -1
- package/dist/js/core/dom-events.d.ts +5 -0
- package/dist/js/core/dom-events.d.ts.map +1 -1
- package/dist/js/core/page-client-event.d.ts.map +1 -1
- package/dist/js/core/submit-result-state.d.ts.map +1 -1
- package/dist/js/core/submit-result-ui.d.ts +3 -1
- package/dist/js/core/submit-result-ui.d.ts.map +1 -1
- package/dist/js/core/validation-focus.d.ts.map +1 -1
- package/dist/js/modules/address/google-address.d.ts +10 -0
- package/dist/js/modules/address/google-address.d.ts.map +1 -1
- package/dist/js/modules/address/place-kit.d.ts.map +1 -1
- package/dist/js/modules/captchas/factories.d.ts.map +1 -1
- package/dist/js/modules/captchas/host.d.ts +4 -1
- package/dist/js/modules/captchas/host.d.ts.map +1 -1
- package/dist/js/modules/captchas/recaptcha-shared.d.ts +1 -1
- package/dist/js/modules/captchas/recaptcha-shared.d.ts.map +1 -1
- package/dist/js/modules/captchas/recaptcha-v3.d.ts.map +1 -1
- package/dist/js/modules/fields/address-state.d.ts.map +1 -1
- package/dist/js/modules/fields/combobox.d.ts +2 -0
- package/dist/js/modules/fields/combobox.d.ts.map +1 -1
- package/dist/js/modules/fields/conditions/effects.d.ts.map +1 -1
- package/dist/js/modules/fields/conditions.d.ts.map +1 -1
- package/dist/js/modules/fields/date-picker.d.ts.map +1 -1
- package/dist/js/modules/fields/file-upload.d.ts.map +1 -1
- package/dist/js/modules/fields/phone-country.d.ts.map +1 -1
- package/dist/js/modules/fields/repeater.d.ts.map +1 -1
- package/dist/js/modules/fields/rich-text.d.ts.map +1 -1
- package/dist/js/modules/fields/summary.d.ts.map +1 -1
- package/dist/js/modules/fields/text-limit.d.ts.map +1 -1
- package/dist/js/modules/fields/upload-manager.d.ts.map +1 -1
- package/dist/js/modules/payments/factories.d.ts.map +1 -1
- package/dist/js/modules/payments/opayo.d.ts.map +1 -1
- package/dist/js/submit/pipeline.d.ts +2 -0
- package/dist/js/submit/pipeline.d.ts.map +1 -1
- package/dist/js/utils/async.d.ts +1 -0
- package/dist/js/utils/async.d.ts.map +1 -1
- package/dist/js/utils/form-started-at.d.ts +1 -0
- package/dist/js/utils/form-started-at.d.ts.map +1 -1
- package/dist/js/utils/unload-warning.d.ts +4 -0
- package/dist/js/utils/unload-warning.d.ts.map +1 -1
- package/dist/js/validation/rules/required.d.ts.map +1 -1
- package/dist/js/validation/submit-readiness.d.ts.map +1 -1
- package/dist/js/validation/validator.d.ts +1 -0
- package/dist/js/validation/validator.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +1 -0
- package/src/js/core/create-formie-client.ts +37 -28
- package/src/js/core/dom-events.ts +30 -1
- package/src/js/core/page-client-event.ts +5 -7
- package/src/js/core/submit-result-state.ts +30 -2
- package/src/js/core/submit-result-ui.ts +25 -3
- package/src/js/core/validation-focus.ts +17 -3
- package/src/js/modules/address/google-address.ts +95 -37
- package/src/js/modules/address/place-kit.ts +13 -7
- package/src/js/modules/captchas/factories.ts +241 -101
- package/src/js/modules/captchas/host.ts +16 -0
- package/src/js/modules/captchas/recaptcha-enterprise.ts +1 -1
- package/src/js/modules/captchas/recaptcha-shared.ts +23 -5
- package/src/js/modules/captchas/recaptcha-v3.ts +23 -14
- package/src/js/modules/fields/address-country.ts +5 -5
- package/src/js/modules/fields/address-state.ts +80 -27
- package/src/js/modules/fields/combobox.ts +22 -1
- package/src/js/modules/fields/conditions/effects.ts +4 -5
- package/src/js/modules/fields/conditions.ts +9 -0
- package/src/js/modules/fields/date-picker.ts +6 -3
- package/src/js/modules/fields/file-upload.ts +55 -18
- package/src/js/modules/fields/phone-country.ts +25 -2
- package/src/js/modules/fields/repeater.ts +55 -4
- package/src/js/modules/fields/rich-text.ts +33 -0
- package/src/js/modules/fields/summary.ts +63 -10
- package/src/js/modules/fields/text-limit.ts +11 -0
- package/src/js/modules/fields/upload-manager.ts +54 -18
- package/src/js/modules/payments/factories.ts +87 -54
- package/src/js/modules/payments/opayo.ts +7 -0
- package/src/js/submit/pipeline.ts +16 -9
- package/src/js/utils/async.ts +34 -0
- package/src/js/utils/form-started-at.ts +19 -4
- package/src/js/utils/unload-warning.ts +63 -7
- package/src/js/validation/rules/required.ts +18 -0
- package/src/js/validation/submit-readiness.ts +2 -0
- package/src/js/validation/validator.ts +29 -6
- package/src/vendor.d.ts +2 -0
- package/dist/chunks/opayo-B3EvrVxw.js +0 -188
- package/dist/chunks/recaptcha-shared-AQRMDMme.js +0 -27
- 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-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
|
8
|
-
function
|
|
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
|
|
23
|
-
let t = Array.from(e.querySelectorAll(
|
|
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
|
|
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:
|
|
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
|
|
79
|
-
function
|
|
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
|
|
87
|
-
let n =
|
|
88
|
-
return 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.
|
|
102
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
119
|
-
|
|
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(
|
|
113
|
+
e.removeAttribute(v), e.classList.remove(g), e.classList.remove(_);
|
|
125
114
|
}
|
|
126
115
|
function A(e) {
|
|
127
|
-
e.removeAttribute(
|
|
116
|
+
e.removeAttribute(m), e.classList.remove(...a(e, "conditionalHidden"));
|
|
128
117
|
}
|
|
129
118
|
function j(e) {
|
|
130
|
-
let t = e.closest(
|
|
131
|
-
for (; t;)
|
|
119
|
+
let t = e.closest(x);
|
|
120
|
+
for (; t;) ee(t), t = t.parentElement?.closest(x) || null;
|
|
132
121
|
}
|
|
133
|
-
function
|
|
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),
|
|
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
|
|
127
|
+
if (r.displayMode === "muted") return N(e, t);
|
|
139
128
|
let i = !1;
|
|
140
|
-
return (e.hasAttribute(
|
|
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
|
|
131
|
+
function N(e, t) {
|
|
143
132
|
let n = !1;
|
|
144
|
-
return t ? ((e.hasAttribute(
|
|
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
|
|
149
|
-
function
|
|
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
|
|
153
|
-
let t = e.querySelector(
|
|
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
|
|
159
|
-
return e.closest(
|
|
147
|
+
function R(e) {
|
|
148
|
+
return e.closest(F);
|
|
160
149
|
}
|
|
161
150
|
function te(e) {
|
|
162
|
-
return Array.from(e.querySelectorAll(
|
|
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
|
|
181
|
-
let n =
|
|
169
|
+
function z(e, t) {
|
|
170
|
+
let n = R(e);
|
|
182
171
|
if (!n) return t;
|
|
183
|
-
let r = t.filter((e) =>
|
|
172
|
+
let r = t.filter((e) => R(e) === n);
|
|
184
173
|
return r.length ? r : t;
|
|
185
174
|
}
|
|
186
|
-
function
|
|
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
|
|
190
|
-
let r =
|
|
178
|
+
function V(e, t, n) {
|
|
179
|
+
let r = B(n);
|
|
191
180
|
if (!r || r.target !== "field" || !r.handle) return [];
|
|
192
|
-
let i =
|
|
193
|
-
if (c.length) return (
|
|
194
|
-
let l =
|
|
195
|
-
if (d.length || f.length) return
|
|
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 =
|
|
198
|
-
if (p && !
|
|
199
|
-
let t =
|
|
200
|
-
if (i.length ||
|
|
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 (!
|
|
203
|
-
let m =
|
|
204
|
-
return Array.from(e.querySelectorAll("[name]")).filter((e) =>
|
|
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
|
|
209
|
-
function
|
|
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
|
-
|
|
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
|
|
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
|
|
226
|
-
let r =
|
|
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
|
|
220
|
+
function J(e, t) {
|
|
232
221
|
return e.name || `__condition_input_${t}`;
|
|
233
222
|
}
|
|
234
|
-
function
|
|
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
|
|
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) =>
|
|
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 =
|
|
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) =>
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
|
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 (!
|
|
318
|
+
if (!u(t).length) {
|
|
334
319
|
Q.log("No condition nodes in scope.");
|
|
335
320
|
return;
|
|
336
321
|
}
|
|
337
|
-
let n = [],
|
|
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
|
-
},
|
|
342
|
-
let n =
|
|
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) =>
|
|
331
|
+
sourceInputs: $(n.conditions.flatMap((n) => V(t, e, n)))
|
|
347
332
|
}] : [];
|
|
348
|
-
}),
|
|
349
|
-
let t = new Map(e.map((e) => [e.node, e])), n = /* @__PURE__ */ new Set(), r = [],
|
|
350
|
-
|
|
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
|
|
354
|
-
if (
|
|
355
|
-
r.slice(
|
|
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(
|
|
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),
|
|
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),
|
|
368
|
-
},
|
|
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
|
|
371
|
-
let
|
|
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
|
-
} :
|
|
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" :
|
|
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:
|
|
384
|
-
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:
|
|
389
|
-
finalResult:
|
|
373
|
+
shouldHide: i.shouldHide,
|
|
374
|
+
finalResult: i.finalResult,
|
|
390
375
|
clearOnHide: r.settings.clearOnHide,
|
|
391
|
-
diagnostics:
|
|
376
|
+
diagnostics: a.has(r.node) ? [{ code: "dependencyCycle" }] : []
|
|
392
377
|
});
|
|
393
378
|
}), n;
|
|
394
|
-
},
|
|
395
|
-
if (!
|
|
396
|
-
|
|
379
|
+
}, _ = () => {
|
|
380
|
+
if (!h) {
|
|
381
|
+
h = !0;
|
|
397
382
|
try {
|
|
398
|
-
|
|
383
|
+
g();
|
|
399
384
|
} finally {
|
|
400
|
-
|
|
385
|
+
h = !1;
|
|
401
386
|
}
|
|
402
387
|
}
|
|
403
|
-
}, _ = () => {
|
|
404
|
-
m || a || (a = !0, requestAnimationFrame(() => {
|
|
405
|
-
a = !1, !m && g();
|
|
406
|
-
}));
|
|
407
388
|
}, v = () => {
|
|
408
|
-
|
|
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)
|
|
426
|
-
|
|
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
|
|
429
|
-
|
|
415
|
+
let a = () => {
|
|
416
|
+
v();
|
|
430
417
|
};
|
|
431
|
-
e.form.addEventListener(
|
|
432
|
-
e.form?.removeEventListener(
|
|
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
|
-
|
|
439
|
-
|
|
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
|
-
},
|
|
442
|
-
if (
|
|
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 ?
|
|
431
|
+
t ? x() : n && v();
|
|
445
432
|
});
|
|
446
|
-
return
|
|
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
|
-
|
|
443
|
+
H
|
|
457
444
|
]
|
|
458
|
-
}),
|
|
459
|
-
|
|
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 {
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
143
|
-
e();
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
r = e;
|
|
142
|
+
i ? e() : r = e;
|
|
147
143
|
}), () => {
|
|
148
144
|
i = !0, r?.();
|
|
149
145
|
};
|