@wix/form-elements 0.0.0-stage → 1.54.0
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/LICENSE +21 -0
- package/README.md +118 -2
- package/dist/component/appointment-rac-DlOqbFoi.js +1005 -0
- package/dist/component/bookings-address-rac-CvK-P3df.js +6 -0
- package/dist/component/bookings-email-rac-9BEPTuox.js +6 -0
- package/dist/component/bookings-first-name-rac-BrU-BtPp.js +6 -0
- package/dist/component/bookings-header-rac-8NCL7fxp.js +8 -0
- package/dist/component/bookings-last-name-rac-DgLqZ1nS.js +6 -0
- package/dist/component/bookings-login-bar-rac-C2pzRMyt.js +74 -0
- package/dist/component/bookings-phone-rac-BrPBAo8B.js +6 -0
- package/dist/component/bookings-rich-text-rac-qpPsyIuc.js +8 -0
- package/dist/component/calling-country-codes-PyWuOTmF.js +243 -0
- package/dist/component/checkbox-field-rac-CaloY2Hs.js +625 -0
- package/dist/component/checkbox-group-field-headless-4HlJmarB.js +204 -0
- package/dist/component/checkbox-group-field-rac-B1tFZT3o.js +33 -0
- package/dist/component/checkbox-group-rac-C0SzN2Bx.js +6 -0
- package/dist/component/checkbox-rac-ssJIVvZI.js +6 -0
- package/dist/component/chevron-down-icon-CcpVm6B-.js +15 -0
- package/dist/component/contacts-address-rac-Dwf4yrGq.js +6 -0
- package/dist/component/contacts-birthdate-rac-C195rG5w.js +6 -0
- package/dist/component/contacts-company-rac-BHX6xZU8.js +6 -0
- package/dist/component/contacts-email-rac-CFY-m-r2.js +6 -0
- package/dist/component/contacts-first-name-rac-D23QFUGK.js +6 -0
- package/dist/component/contacts-last-name-rac-COuQB15p.js +6 -0
- package/dist/component/contacts-phone-rac-BfhY_I7p.js +6 -0
- package/dist/component/contacts-position-rac-D80_knc8.js +6 -0
- package/dist/component/contacts-subscribe-rac--NuPoBFm.js +13 -0
- package/dist/component/contacts-tax-id-rac-BURE313k.js +6 -0
- package/dist/component/custom-focus-class-_483Pkwp.js +4 -0
- package/dist/component/data-hooks-Dkw1pbRj.js +6 -0
- package/dist/component/date-availability-BQyNH-7j.js +49 -0
- package/dist/component/date-input-field-rac-BnFvhqe1.js +286 -0
- package/dist/component/date-input-rac-TLkITFRh.js +6 -0
- package/dist/component/date-picker-field-rac-BAFKYE1B.js +304 -0
- package/dist/component/date-picker-rac-uBJQkALE.js +6 -0
- package/dist/component/date-time-input-field-rac-DnOkBj7w.js +421 -0
- package/dist/component/date-time-input-rac-BxbWyK23.js +6 -0
- package/dist/component/default-limits-D7qVv_Hv.js +6 -0
- package/dist/component/dext-checkbox-group-rac-DnifcsEZ.js +18 -0
- package/dist/component/dext-checkbox-rac-D45Ok0J4.js +6 -0
- package/dist/component/dext-date-picker-rac-Cs47jywn.js +6 -0
- package/dist/component/dext-date-time-input-rac-UPwXpk2g.js +6 -0
- package/dist/component/dext-dropdown-rac-D18mhUDU.js +6 -0
- package/dist/component/dext-email-rac-B4frwTvA.js +6 -0
- package/dist/component/dext-number-input-rac-CoS-Fk59.js +6 -0
- package/dist/component/dext-phone-rac-DwR0JLia.js +6 -0
- package/dist/component/dext-radio-group-rac-DogWvoUg.js +18 -0
- package/dist/component/dext-rating-input-rac-C4NxeIto.js +6 -0
- package/dist/component/dext-tags-rac-DsEenrft.js +18 -0
- package/dist/component/dext-text-area-rac-Du-FqTqW.js +6 -0
- package/dist/component/dext-text-input-rac-DUE8JE9b.js +6 -0
- package/dist/component/dext-url-input-rac-Cn55pV9m.js +6 -0
- package/dist/component/donation-rac-Cjk_hFm1.js +305 -0
- package/dist/component/dropdown-field-headless-Dcy46MWj.js +84 -0
- package/dist/component/dropdown-field-rac-rMMPzKxL.js +32 -0
- package/dist/component/dropdown-rac-C6B8C8Yc.js +6 -0
- package/dist/component/ecom-address-rac-1wNixzip.js +6 -0
- package/dist/component/ecom-subscription-checkbox-rac-C5z68KHa.js +49 -0
- package/dist/component/email-input-field-rac-C7Wn2XVU.js +507 -0
- package/dist/component/error-icon-hZxQ6DEy.js +15 -0
- package/dist/component/events-repeater-rac-DTv4JD79.js +247 -0
- package/dist/component/events-rsvp-rac-cS7Mb04F.js +38 -0
- package/dist/component/field-error-headless-Dm5UCOBb.js +34 -0
- package/dist/component/field-label-headless-C7mDzdLq.js +52 -0
- package/dist/component/field-rac.module-DAPTqFDM.js +21 -0
- package/dist/component/fieldset-headless-CD3fds9J.js +54 -0
- package/dist/component/file-upload-rac-DeZvh7dy.js +484 -0
- package/dist/component/find-child-C60k4CxG.js +11 -0
- package/dist/component/fixed-payment-rac-D7t5DjVp.js +62 -0
- package/dist/component/form-DaOKiR16.js +8890 -0
- package/dist/component/form-element-classes-Bi-nNM8q.js +55 -0
- package/dist/component/form.css +1 -0
- package/dist/component/form.js +9 -0
- package/dist/component/format-currency-BwShJ9vM.js +44 -0
- package/dist/component/get-first-day-of-the-week-DvnsxYhQ.js +118 -0
- package/dist/component/header-field-rac-hJSXllPm.js +25 -0
- package/dist/component/header-rac-G_lsddOd.js +6 -0
- package/dist/component/headless-styles-CmcyA_pi.js +20 -0
- package/dist/component/helpers-HmkkXrh2.js +12 -0
- package/dist/component/image-choice-rac-BHyAKRDt.js +141 -0
- package/dist/component/index-CFW1VXFU.js +64 -0
- package/dist/component/index-CkCSQD3_.js +2290 -0
- package/dist/component/isObject-BAwJJxQ3.js +34 -0
- package/dist/component/messages_ar-BZXnU2Gj.js +3517 -0
- package/dist/component/messages_ar-L1BYLZbF.js +20 -0
- package/dist/component/messages_ar-PAHg01OB.js +299 -0
- package/dist/component/messages_bg-CO56qlOt.js +299 -0
- package/dist/component/messages_bg-CQcGl0Yi.js +20 -0
- package/dist/component/messages_bg-DgbMwIbv.js +3515 -0
- package/dist/component/messages_ca-BAHE5nuo.js +3515 -0
- package/dist/component/messages_ca-BRoHmzRw.js +20 -0
- package/dist/component/messages_ca-Bl6rZi_O.js +299 -0
- package/dist/component/messages_cs-BADd3t_h.js +3515 -0
- package/dist/component/messages_cs-CDyWDExk.js +298 -0
- package/dist/component/messages_cs-wn5UmrBw.js +20 -0
- package/dist/component/messages_da-BPnmb9Qb.js +20 -0
- package/dist/component/messages_da-BvVUWnBz.js +3515 -0
- package/dist/component/messages_da-DHlpaT4q.js +298 -0
- package/dist/component/messages_de-2czOmM8X.js +3515 -0
- package/dist/component/messages_de-BKgzIF1d.js +298 -0
- package/dist/component/messages_de-Bwx84N0O.js +20 -0
- package/dist/component/messages_el-BnuYMjcf.js +299 -0
- package/dist/component/messages_el-_D2RUBSU.js +20 -0
- package/dist/component/messages_el-qCyH12Uq.js +3515 -0
- package/dist/component/messages_en-BWaixPd6.js +3518 -0
- package/dist/component/messages_en-CBBcgtxs.js +296 -0
- package/dist/component/messages_en-DvSLxqKp.js +20 -0
- package/dist/component/messages_es-Cq6i2xci.js +3515 -0
- package/dist/component/messages_es-DlGCLaYi.js +298 -0
- package/dist/component/messages_es-rCKXnGf0.js +20 -0
- package/dist/component/messages_fi-B-ciZGqD.js +3515 -0
- package/dist/component/messages_fi-DzKva_Wq.js +299 -0
- package/dist/component/messages_fi-PCCXPo0O.js +20 -0
- package/dist/component/messages_fr-2im0dcYp.js +3515 -0
- package/dist/component/messages_fr-DMFilq1G.js +298 -0
- package/dist/component/messages_fr-DQa1dT9u.js +20 -0
- package/dist/component/messages_he-Bb1qTc2Y.js +299 -0
- package/dist/component/messages_he-BfIkDo1h.js +3515 -0
- package/dist/component/messages_he-DwIysfDp.js +20 -0
- package/dist/component/messages_hi-Bty6ytCh.js +3515 -0
- package/dist/component/messages_hi-C-6UHGbM.js +298 -0
- package/dist/component/messages_hi-DF1w6b6B.js +20 -0
- package/dist/component/messages_hr-BXzIzU3d.js +20 -0
- package/dist/component/messages_hr-CiU1ZVrx.js +3515 -0
- package/dist/component/messages_hr-tRSM9lmc.js +299 -0
- package/dist/component/messages_hu-ChzHFUtB.js +3515 -0
- package/dist/component/messages_hu-D86Taf9R.js +299 -0
- package/dist/component/messages_hu-Z9XpByCO.js +20 -0
- package/dist/component/messages_id-3952ilBE.js +20 -0
- package/dist/component/messages_id-CPuhTUYV.js +298 -0
- package/dist/component/messages_id-Ddr3ijST.js +3515 -0
- package/dist/component/messages_it-B-A1X4BZ.js +298 -0
- package/dist/component/messages_it-DnUTUabT.js +20 -0
- package/dist/component/messages_it-eY6GnuZC.js +3515 -0
- package/dist/component/messages_ja-B3PxHv2c.js +3515 -0
- package/dist/component/messages_ja-Ced6ZBxD.js +298 -0
- package/dist/component/messages_ja-Cg7CqBUL.js +20 -0
- package/dist/component/messages_ko-DBCjHG4c.js +3515 -0
- package/dist/component/messages_ko-PKIrqwPk.js +298 -0
- package/dist/component/messages_ko-zvhtZMGA.js +20 -0
- package/dist/component/messages_lt-DV3hdFsp.js +3515 -0
- package/dist/component/messages_lt-DywusvNm.js +20 -0
- package/dist/component/messages_lt-zxcCPHno.js +299 -0
- package/dist/component/messages_lv-BEowUv-S.js +299 -0
- package/dist/component/messages_lv-DggJE2f9.js +20 -0
- package/dist/component/messages_lv-hIonzpTs.js +3515 -0
- package/dist/component/messages_ms-Ca0m7bf7.js +20 -0
- package/dist/component/messages_ms-Cvypo0vi.js +299 -0
- package/dist/component/messages_ms-DoMzA8a3.js +3515 -0
- package/dist/component/messages_nl-CEmANR_r.js +3515 -0
- package/dist/component/messages_nl-CZR4TvNo.js +298 -0
- package/dist/component/messages_nl-DgVYmdO9.js +20 -0
- package/dist/component/messages_no-B2BBaGBH.js +298 -0
- package/dist/component/messages_no-DJfJSlDm.js +3515 -0
- package/dist/component/messages_no-hPkfRJQ9.js +20 -0
- package/dist/component/messages_pl-Bzph-WyD.js +20 -0
- package/dist/component/messages_pl-ChJVH7RO.js +3515 -0
- package/dist/component/messages_pl-rCMsbMbN.js +298 -0
- package/dist/component/messages_pt-Bv63V1uB.js +3515 -0
- package/dist/component/messages_pt-CBgCNF3T.js +20 -0
- package/dist/component/messages_pt-Cx0FF6uF.js +298 -0
- package/dist/component/messages_ro-BvLoD_wE.js +299 -0
- package/dist/component/messages_ro-CMzcu-9b.js +20 -0
- package/dist/component/messages_ro-PVRK7Gx4.js +3515 -0
- package/dist/component/messages_ru-8BI6MYA0.js +3515 -0
- package/dist/component/messages_ru-BhRKVmVC.js +298 -0
- package/dist/component/messages_ru-C_BaQo57.js +20 -0
- package/dist/component/messages_sk-Bgi_3583.js +3515 -0
- package/dist/component/messages_sk-CrsC7rOj.js +20 -0
- package/dist/component/messages_sk-CtF-ei23.js +299 -0
- package/dist/component/messages_sl-B5t-KKi8.js +299 -0
- package/dist/component/messages_sl-BFdYWVHd.js +3515 -0
- package/dist/component/messages_sl-NqfmyUP1.js +20 -0
- package/dist/component/messages_sv-Bd1CcY6G.js +3515 -0
- package/dist/component/messages_sv-DPRT-DpN.js +20 -0
- package/dist/component/messages_sv-bQwbNmjr.js +298 -0
- package/dist/component/messages_th-BauH9qdo.js +20 -0
- package/dist/component/messages_th-C_dL_PCq.js +298 -0
- package/dist/component/messages_th-DEWm01uD.js +3515 -0
- package/dist/component/messages_tl-CouXLNcW.js +299 -0
- package/dist/component/messages_tl-D2t9Y_ZC.js +3515 -0
- package/dist/component/messages_tl-UDZY8Wuk.js +20 -0
- package/dist/component/messages_tr-2-OHesob.js +3515 -0
- package/dist/component/messages_tr-CpsxYTDb.js +20 -0
- package/dist/component/messages_tr-DHXnlj_j.js +298 -0
- package/dist/component/messages_uk-CPK4y5lH.js +298 -0
- package/dist/component/messages_uk-DIuQ2HoD.js +3515 -0
- package/dist/component/messages_uk-gPkmA_ar.js +20 -0
- package/dist/component/messages_vi-CgxB4Ey0.js +20 -0
- package/dist/component/messages_vi-DZeFWgwp.js +3515 -0
- package/dist/component/messages_vi-Det8i7_V.js +298 -0
- package/dist/component/messages_zh-D53_A4N9.js +298 -0
- package/dist/component/messages_zh-O552w5dp.js +20 -0
- package/dist/component/messages_zh-nG7LNxIt.js +3515 -0
- package/dist/component/multiline-address-field-rac-CwLOzNF6.js +1574 -0
- package/dist/component/multiline-address-rac-C4JXBlFC.js +6 -0
- package/dist/component/non-modal-popover-DtIMXHbe.js +63 -0
- package/dist/component/number-input-field-rac-BOeiugCV.js +89 -0
- package/dist/component/number-input-rac-NqbFwW0d.js +6 -0
- package/dist/component/numeric-input-utils-CuBMi4-a.js +45 -0
- package/dist/component/options-layout-constants-DEfIEJWD.js +6 -0
- package/dist/component/options-rac.module-KM-VT_KY.js +7 -0
- package/dist/component/password-rac-DxCYgvu_.js +142 -0
- package/dist/component/payment-field-utils-DobiK5Xh.js +12 -0
- package/dist/component/payment-input-rac-C2aof0p0.js +137 -0
- package/dist/component/phone-input-field-rac-Cd7RFaoD.js +473 -0
- package/dist/component/phone-rac-4MQREqBG.js +6 -0
- package/dist/component/product-list-rac-CjoepDQ_.js +263 -0
- package/dist/component/quiz-radio-group-rac-CIwk7N3X.js +13 -0
- package/dist/component/radio-group-field-rac-DE2mnUHD.js +40 -0
- package/dist/component/radio-group-field-rac.module-DEP9BCiX.js +124 -0
- package/dist/component/radio-group-rac-XE6CeGnp.js +6 -0
- package/dist/component/rating-input-field-rac-BzAAMipp.js +130 -0
- package/dist/component/rating-input-rac-oIvpEVjK.js +6 -0
- package/dist/component/rich-content-rac.module-cis7mx3M.js +49 -0
- package/dist/component/rich-text-field-rac-CqkM22CI.js +22 -0
- package/dist/component/rich-text-rac-BKbz3TcX.js +6 -0
- package/dist/component/ricos-viewer-chunk-B4rfbgjA.js +5 -0
- package/dist/component/service-dropdown-rac-CfCMbT9d.js +142 -0
- package/dist/component/services-multi-choice-rac-F2h5gUOr.js +76 -0
- package/dist/component/signature-rac-CIRsmZhS.js +795 -0
- package/dist/component/submit-button-rac-BELGrClx.js +115 -0
- package/dist/component/tags-field-rac-B6Hg2XOI.js +201 -0
- package/dist/component/tags-rac-Dfv8VP7J.js +6 -0
- package/dist/component/text-area-field-rac-Bsd1V2Q3.js +69 -0
- package/dist/component/text-area-rac-BNVdI-Gq.js +6 -0
- package/dist/component/text-input-field-rac-DF9dD_KW.js +24 -0
- package/dist/component/text-input-headless-Dlao2R8f.js +44 -0
- package/dist/component/text-input-rac-C2p7E01b.js +6 -0
- package/dist/component/time-input-rac-90mLBZsX.js +152 -0
- package/dist/component/url-input-field-rac-bCEOlctr.js +71 -0
- package/dist/component/url-input-rac-D5o8b9gx.js +6 -0
- package/dist/component/use-invoke-callback-UH73A_J3.js +15 -0
- package/dist/component/use-service-options-base-DO5hy6mn.js +48 -0
- package/dist/component/use-synced-display-value-DcAxdn3M.js +19 -0
- package/dist/form.d.ts +6930 -0
- package/package.json +164 -3
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
import { RicosViewer as Be } from "@wix/ricos/viewer";
|
|
2
|
+
import A from "classnames";
|
|
3
|
+
import u, { useMemo as Ne, useRef as ze, useCallback as Ue } from "react";
|
|
4
|
+
import { CheckboxField as qe, CheckboxButton as He } from "react-aria-components";
|
|
5
|
+
import { ag as J, q as K, R as Ee, aq as Ve, aa as Ge, _ as Ke, ad as ke, ai as Xe, L as We } from "./form-DaOKiR16.js";
|
|
6
|
+
import { f as O } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { D as Ye, E as Je } from "./field-error-headless-Dm5UCOBb.js";
|
|
8
|
+
import { Node_Type as Qe } from "@wix/ricos/schema";
|
|
9
|
+
import { i as N, b as F, r as _, a as L, f as Ze, S as te } from "./isObject-BAwJJxQ3.js";
|
|
10
|
+
import { E as et } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
+
import { s as M } from "./field-rac.module-DAPTqFDM.js";
|
|
12
|
+
import { d as tt, e as rt, F as nt, H as at, l as ot, h as it } from "./form-element-classes-Bi-nNM8q.js";
|
|
13
|
+
var Q = Array.isArray, st = "[object AsyncFunction]", ct = "[object Function]", ut = "[object GeneratorFunction]", lt = "[object Proxy]";
|
|
14
|
+
function $e(e) {
|
|
15
|
+
if (!N(e))
|
|
16
|
+
return !1;
|
|
17
|
+
var t = F(e);
|
|
18
|
+
return t == ct || t == ut || t == st || t == lt;
|
|
19
|
+
}
|
|
20
|
+
var H = _["__core-js_shared__"], re = (function() {
|
|
21
|
+
var e = /[^.]+$/.exec(H && H.keys && H.keys.IE_PROTO || "");
|
|
22
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
23
|
+
})();
|
|
24
|
+
function ft(e) {
|
|
25
|
+
return !!re && re in e;
|
|
26
|
+
}
|
|
27
|
+
var pt = Function.prototype, dt = pt.toString;
|
|
28
|
+
function v(e) {
|
|
29
|
+
if (e != null) {
|
|
30
|
+
try {
|
|
31
|
+
return dt.call(e);
|
|
32
|
+
} catch {
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
return e + "";
|
|
36
|
+
} catch {
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return "";
|
|
40
|
+
}
|
|
41
|
+
var bt = /[\\^$.*+?()[\]{}|]/g, gt = /^\[object .+?Constructor\]$/, ht = Function.prototype, _t = Object.prototype, yt = ht.toString, mt = _t.hasOwnProperty, Tt = RegExp(
|
|
42
|
+
"^" + yt.call(mt).replace(bt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
43
|
+
);
|
|
44
|
+
function jt(e) {
|
|
45
|
+
if (!N(e) || ft(e))
|
|
46
|
+
return !1;
|
|
47
|
+
var t = $e(e) ? Tt : gt;
|
|
48
|
+
return t.test(v(e));
|
|
49
|
+
}
|
|
50
|
+
function vt(e, t) {
|
|
51
|
+
return e == null ? void 0 : e[t];
|
|
52
|
+
}
|
|
53
|
+
function E(e, t) {
|
|
54
|
+
var r = vt(e, t);
|
|
55
|
+
return jt(r) ? r : void 0;
|
|
56
|
+
}
|
|
57
|
+
var k = E(_, "WeakMap"), ne = Object.create, Et = /* @__PURE__ */ (function() {
|
|
58
|
+
function e() {
|
|
59
|
+
}
|
|
60
|
+
return function(t) {
|
|
61
|
+
if (!N(t))
|
|
62
|
+
return {};
|
|
63
|
+
if (ne)
|
|
64
|
+
return ne(t);
|
|
65
|
+
e.prototype = t;
|
|
66
|
+
var r = new e();
|
|
67
|
+
return e.prototype = void 0, r;
|
|
68
|
+
};
|
|
69
|
+
})(), ae = (function() {
|
|
70
|
+
try {
|
|
71
|
+
var e = E(Object, "defineProperty");
|
|
72
|
+
return e({}, "", {}), e;
|
|
73
|
+
} catch {
|
|
74
|
+
}
|
|
75
|
+
})();
|
|
76
|
+
function $t(e, t) {
|
|
77
|
+
for (var r = -1, n = e == null ? 0 : e.length; ++r < n && t(e[r], r, e) !== !1; )
|
|
78
|
+
;
|
|
79
|
+
return e;
|
|
80
|
+
}
|
|
81
|
+
var At = 9007199254740991, Ct = /^(?:0|[1-9]\d*)$/;
|
|
82
|
+
function It(e, t) {
|
|
83
|
+
var r = typeof e;
|
|
84
|
+
return t = t ?? At, !!t && (r == "number" || r != "symbol" && Ct.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
85
|
+
}
|
|
86
|
+
function xt(e, t, r) {
|
|
87
|
+
t == "__proto__" && ae ? ae(e, t, {
|
|
88
|
+
configurable: !0,
|
|
89
|
+
enumerable: !0,
|
|
90
|
+
value: r,
|
|
91
|
+
writable: !0
|
|
92
|
+
}) : e[t] = r;
|
|
93
|
+
}
|
|
94
|
+
function Ae(e, t) {
|
|
95
|
+
return e === t || e !== e && t !== t;
|
|
96
|
+
}
|
|
97
|
+
var Ot = Object.prototype, wt = Ot.hasOwnProperty;
|
|
98
|
+
function St(e, t, r) {
|
|
99
|
+
var n = e[t];
|
|
100
|
+
(!(wt.call(e, t) && Ae(n, r)) || r === void 0 && !(t in e)) && xt(e, t, r);
|
|
101
|
+
}
|
|
102
|
+
var Dt = 9007199254740991;
|
|
103
|
+
function Ce(e) {
|
|
104
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Dt;
|
|
105
|
+
}
|
|
106
|
+
function Pt(e) {
|
|
107
|
+
return e != null && Ce(e.length) && !$e(e);
|
|
108
|
+
}
|
|
109
|
+
var Ft = Object.prototype;
|
|
110
|
+
function Ie(e) {
|
|
111
|
+
var t = e && e.constructor, r = typeof t == "function" && t.prototype || Ft;
|
|
112
|
+
return e === r;
|
|
113
|
+
}
|
|
114
|
+
function Lt(e, t) {
|
|
115
|
+
for (var r = -1, n = Array(e); ++r < e; )
|
|
116
|
+
n[r] = t(r);
|
|
117
|
+
return n;
|
|
118
|
+
}
|
|
119
|
+
var Rt = "[object Arguments]";
|
|
120
|
+
function oe(e) {
|
|
121
|
+
return L(e) && F(e) == Rt;
|
|
122
|
+
}
|
|
123
|
+
var xe = Object.prototype, Mt = xe.hasOwnProperty, Bt = xe.propertyIsEnumerable, Nt = oe(/* @__PURE__ */ (function() {
|
|
124
|
+
return arguments;
|
|
125
|
+
})()) ? oe : function(e) {
|
|
126
|
+
return L(e) && Mt.call(e, "callee") && !Bt.call(e, "callee");
|
|
127
|
+
};
|
|
128
|
+
function zt() {
|
|
129
|
+
return !1;
|
|
130
|
+
}
|
|
131
|
+
var Oe = typeof exports == "object" && exports && !exports.nodeType && exports, ie = Oe && typeof module == "object" && module && !module.nodeType && module, Ut = ie && ie.exports === Oe, se = Ut ? _.Buffer : void 0, qt = se ? se.isBuffer : void 0, we = qt || zt, Ht = "[object Arguments]", Vt = "[object Array]", Gt = "[object Boolean]", Kt = "[object Date]", kt = "[object Error]", Xt = "[object Function]", Wt = "[object Map]", Yt = "[object Number]", Jt = "[object Object]", Qt = "[object RegExp]", Zt = "[object Set]", er = "[object String]", tr = "[object WeakMap]", rr = "[object ArrayBuffer]", nr = "[object DataView]", ar = "[object Float32Array]", or = "[object Float64Array]", ir = "[object Int8Array]", sr = "[object Int16Array]", cr = "[object Int32Array]", ur = "[object Uint8Array]", lr = "[object Uint8ClampedArray]", fr = "[object Uint16Array]", pr = "[object Uint32Array]", s = {};
|
|
132
|
+
s[ar] = s[or] = s[ir] = s[sr] = s[cr] = s[ur] = s[lr] = s[fr] = s[pr] = !0;
|
|
133
|
+
s[Ht] = s[Vt] = s[rr] = s[Gt] = s[nr] = s[Kt] = s[kt] = s[Xt] = s[Wt] = s[Yt] = s[Jt] = s[Qt] = s[Zt] = s[er] = s[tr] = !1;
|
|
134
|
+
function dr(e) {
|
|
135
|
+
return L(e) && Ce(e.length) && !!s[F(e)];
|
|
136
|
+
}
|
|
137
|
+
function Z(e) {
|
|
138
|
+
return function(t) {
|
|
139
|
+
return e(t);
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
var Se = typeof exports == "object" && exports && !exports.nodeType && exports, w = Se && typeof module == "object" && module && !module.nodeType && module, br = w && w.exports === Se, V = br && Ze.process, C = (function() {
|
|
143
|
+
try {
|
|
144
|
+
var e = w && w.require && w.require("util").types;
|
|
145
|
+
return e || V && V.binding && V.binding("util");
|
|
146
|
+
} catch {
|
|
147
|
+
}
|
|
148
|
+
})(), ce = C && C.isTypedArray, gr = ce ? Z(ce) : dr, hr = Object.prototype, _r = hr.hasOwnProperty;
|
|
149
|
+
function yr(e, t) {
|
|
150
|
+
var r = Q(e), n = !r && Nt(e), c = !r && !n && we(e), a = !r && !n && !c && gr(e), o = r || n || c || a, f = o ? Lt(e.length, String) : [], p = f.length;
|
|
151
|
+
for (var l in e)
|
|
152
|
+
_r.call(e, l) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
153
|
+
(l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
154
|
+
c && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
155
|
+
a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
|
|
156
|
+
It(l, p))) && f.push(l);
|
|
157
|
+
return f;
|
|
158
|
+
}
|
|
159
|
+
function De(e, t) {
|
|
160
|
+
return function(r) {
|
|
161
|
+
return e(t(r));
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
var mr = De(Object.keys, Object), Tr = Object.prototype, jr = Tr.hasOwnProperty;
|
|
165
|
+
function vr(e) {
|
|
166
|
+
if (!Ie(e))
|
|
167
|
+
return mr(e);
|
|
168
|
+
var t = [];
|
|
169
|
+
for (var r in Object(e))
|
|
170
|
+
jr.call(e, r) && r != "constructor" && t.push(r);
|
|
171
|
+
return t;
|
|
172
|
+
}
|
|
173
|
+
function Er(e) {
|
|
174
|
+
return Pt(e) ? yr(e) : vr(e);
|
|
175
|
+
}
|
|
176
|
+
var S = E(Object, "create");
|
|
177
|
+
function $r() {
|
|
178
|
+
this.__data__ = S ? S(null) : {}, this.size = 0;
|
|
179
|
+
}
|
|
180
|
+
function Ar(e) {
|
|
181
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
182
|
+
return this.size -= t ? 1 : 0, t;
|
|
183
|
+
}
|
|
184
|
+
var Cr = "__lodash_hash_undefined__", Ir = Object.prototype, xr = Ir.hasOwnProperty;
|
|
185
|
+
function Or(e) {
|
|
186
|
+
var t = this.__data__;
|
|
187
|
+
if (S) {
|
|
188
|
+
var r = t[e];
|
|
189
|
+
return r === Cr ? void 0 : r;
|
|
190
|
+
}
|
|
191
|
+
return xr.call(t, e) ? t[e] : void 0;
|
|
192
|
+
}
|
|
193
|
+
var wr = Object.prototype, Sr = wr.hasOwnProperty;
|
|
194
|
+
function Dr(e) {
|
|
195
|
+
var t = this.__data__;
|
|
196
|
+
return S ? t[e] !== void 0 : Sr.call(t, e);
|
|
197
|
+
}
|
|
198
|
+
var Pr = "__lodash_hash_undefined__";
|
|
199
|
+
function Fr(e, t) {
|
|
200
|
+
var r = this.__data__;
|
|
201
|
+
return this.size += this.has(e) ? 0 : 1, r[e] = S && t === void 0 ? Pr : t, this;
|
|
202
|
+
}
|
|
203
|
+
function j(e) {
|
|
204
|
+
var t = -1, r = e == null ? 0 : e.length;
|
|
205
|
+
for (this.clear(); ++t < r; ) {
|
|
206
|
+
var n = e[t];
|
|
207
|
+
this.set(n[0], n[1]);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
j.prototype.clear = $r;
|
|
211
|
+
j.prototype.delete = Ar;
|
|
212
|
+
j.prototype.get = Or;
|
|
213
|
+
j.prototype.has = Dr;
|
|
214
|
+
j.prototype.set = Fr;
|
|
215
|
+
function Lr() {
|
|
216
|
+
this.__data__ = [], this.size = 0;
|
|
217
|
+
}
|
|
218
|
+
function z(e, t) {
|
|
219
|
+
for (var r = e.length; r--; )
|
|
220
|
+
if (Ae(e[r][0], t))
|
|
221
|
+
return r;
|
|
222
|
+
return -1;
|
|
223
|
+
}
|
|
224
|
+
var Rr = Array.prototype, Mr = Rr.splice;
|
|
225
|
+
function Br(e) {
|
|
226
|
+
var t = this.__data__, r = z(t, e);
|
|
227
|
+
if (r < 0)
|
|
228
|
+
return !1;
|
|
229
|
+
var n = t.length - 1;
|
|
230
|
+
return r == n ? t.pop() : Mr.call(t, r, 1), --this.size, !0;
|
|
231
|
+
}
|
|
232
|
+
function Nr(e) {
|
|
233
|
+
var t = this.__data__, r = z(t, e);
|
|
234
|
+
return r < 0 ? void 0 : t[r][1];
|
|
235
|
+
}
|
|
236
|
+
function zr(e) {
|
|
237
|
+
return z(this.__data__, e) > -1;
|
|
238
|
+
}
|
|
239
|
+
function Ur(e, t) {
|
|
240
|
+
var r = this.__data__, n = z(r, e);
|
|
241
|
+
return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
|
|
242
|
+
}
|
|
243
|
+
function y(e) {
|
|
244
|
+
var t = -1, r = e == null ? 0 : e.length;
|
|
245
|
+
for (this.clear(); ++t < r; ) {
|
|
246
|
+
var n = e[t];
|
|
247
|
+
this.set(n[0], n[1]);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
y.prototype.clear = Lr;
|
|
251
|
+
y.prototype.delete = Br;
|
|
252
|
+
y.prototype.get = Nr;
|
|
253
|
+
y.prototype.has = zr;
|
|
254
|
+
y.prototype.set = Ur;
|
|
255
|
+
var D = E(_, "Map");
|
|
256
|
+
function qr() {
|
|
257
|
+
this.size = 0, this.__data__ = {
|
|
258
|
+
hash: new j(),
|
|
259
|
+
map: new (D || y)(),
|
|
260
|
+
string: new j()
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
function Hr(e) {
|
|
264
|
+
var t = typeof e;
|
|
265
|
+
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
266
|
+
}
|
|
267
|
+
function U(e, t) {
|
|
268
|
+
var r = e.__data__;
|
|
269
|
+
return Hr(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
|
|
270
|
+
}
|
|
271
|
+
function Vr(e) {
|
|
272
|
+
var t = U(this, e).delete(e);
|
|
273
|
+
return this.size -= t ? 1 : 0, t;
|
|
274
|
+
}
|
|
275
|
+
function Gr(e) {
|
|
276
|
+
return U(this, e).get(e);
|
|
277
|
+
}
|
|
278
|
+
function Kr(e) {
|
|
279
|
+
return U(this, e).has(e);
|
|
280
|
+
}
|
|
281
|
+
function kr(e, t) {
|
|
282
|
+
var r = U(this, e), n = r.size;
|
|
283
|
+
return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
|
|
284
|
+
}
|
|
285
|
+
function I(e) {
|
|
286
|
+
var t = -1, r = e == null ? 0 : e.length;
|
|
287
|
+
for (this.clear(); ++t < r; ) {
|
|
288
|
+
var n = e[t];
|
|
289
|
+
this.set(n[0], n[1]);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
I.prototype.clear = qr;
|
|
293
|
+
I.prototype.delete = Vr;
|
|
294
|
+
I.prototype.get = Gr;
|
|
295
|
+
I.prototype.has = Kr;
|
|
296
|
+
I.prototype.set = kr;
|
|
297
|
+
function Xr(e, t) {
|
|
298
|
+
for (var r = -1, n = t.length, c = e.length; ++r < n; )
|
|
299
|
+
e[c + r] = t[r];
|
|
300
|
+
return e;
|
|
301
|
+
}
|
|
302
|
+
var Wr = De(Object.getPrototypeOf, Object);
|
|
303
|
+
function Yr() {
|
|
304
|
+
this.__data__ = new y(), this.size = 0;
|
|
305
|
+
}
|
|
306
|
+
function Jr(e) {
|
|
307
|
+
var t = this.__data__, r = t.delete(e);
|
|
308
|
+
return this.size = t.size, r;
|
|
309
|
+
}
|
|
310
|
+
function Qr(e) {
|
|
311
|
+
return this.__data__.get(e);
|
|
312
|
+
}
|
|
313
|
+
function Zr(e) {
|
|
314
|
+
return this.__data__.has(e);
|
|
315
|
+
}
|
|
316
|
+
var en = 200;
|
|
317
|
+
function tn(e, t) {
|
|
318
|
+
var r = this.__data__;
|
|
319
|
+
if (r instanceof y) {
|
|
320
|
+
var n = r.__data__;
|
|
321
|
+
if (!D || n.length < en - 1)
|
|
322
|
+
return n.push([e, t]), this.size = ++r.size, this;
|
|
323
|
+
r = this.__data__ = new I(n);
|
|
324
|
+
}
|
|
325
|
+
return r.set(e, t), this.size = r.size, this;
|
|
326
|
+
}
|
|
327
|
+
function x(e) {
|
|
328
|
+
var t = this.__data__ = new y(e);
|
|
329
|
+
this.size = t.size;
|
|
330
|
+
}
|
|
331
|
+
x.prototype.clear = Yr;
|
|
332
|
+
x.prototype.delete = Jr;
|
|
333
|
+
x.prototype.get = Qr;
|
|
334
|
+
x.prototype.has = Zr;
|
|
335
|
+
x.prototype.set = tn;
|
|
336
|
+
var Pe = typeof exports == "object" && exports && !exports.nodeType && exports, ue = Pe && typeof module == "object" && module && !module.nodeType && module, rn = ue && ue.exports === Pe, le = rn ? _.Buffer : void 0;
|
|
337
|
+
le && le.allocUnsafe;
|
|
338
|
+
function nn(e, t) {
|
|
339
|
+
return e.slice();
|
|
340
|
+
}
|
|
341
|
+
function an(e, t) {
|
|
342
|
+
for (var r = -1, n = e == null ? 0 : e.length, c = 0, a = []; ++r < n; ) {
|
|
343
|
+
var o = e[r];
|
|
344
|
+
t(o, r, e) && (a[c++] = o);
|
|
345
|
+
}
|
|
346
|
+
return a;
|
|
347
|
+
}
|
|
348
|
+
function on() {
|
|
349
|
+
return [];
|
|
350
|
+
}
|
|
351
|
+
var sn = Object.prototype, cn = sn.propertyIsEnumerable, fe = Object.getOwnPropertySymbols, un = fe ? function(e) {
|
|
352
|
+
return e == null ? [] : (e = Object(e), an(fe(e), function(t) {
|
|
353
|
+
return cn.call(e, t);
|
|
354
|
+
}));
|
|
355
|
+
} : on;
|
|
356
|
+
function ln(e, t, r) {
|
|
357
|
+
var n = t(e);
|
|
358
|
+
return Q(e) ? n : Xr(n, r(e));
|
|
359
|
+
}
|
|
360
|
+
function fn(e) {
|
|
361
|
+
return ln(e, Er, un);
|
|
362
|
+
}
|
|
363
|
+
var X = E(_, "DataView"), W = E(_, "Promise"), Y = E(_, "Set"), pe = "[object Map]", pn = "[object Object]", de = "[object Promise]", be = "[object Set]", ge = "[object WeakMap]", he = "[object DataView]", dn = v(X), bn = v(D), gn = v(W), hn = v(Y), _n = v(k), h = F;
|
|
364
|
+
(X && h(new X(new ArrayBuffer(1))) != he || D && h(new D()) != pe || W && h(W.resolve()) != de || Y && h(new Y()) != be || k && h(new k()) != ge) && (h = function(e) {
|
|
365
|
+
var t = F(e), r = t == pn ? e.constructor : void 0, n = r ? v(r) : "";
|
|
366
|
+
if (n)
|
|
367
|
+
switch (n) {
|
|
368
|
+
case dn:
|
|
369
|
+
return he;
|
|
370
|
+
case bn:
|
|
371
|
+
return pe;
|
|
372
|
+
case gn:
|
|
373
|
+
return de;
|
|
374
|
+
case hn:
|
|
375
|
+
return be;
|
|
376
|
+
case _n:
|
|
377
|
+
return ge;
|
|
378
|
+
}
|
|
379
|
+
return t;
|
|
380
|
+
});
|
|
381
|
+
var yn = Object.prototype, mn = yn.hasOwnProperty;
|
|
382
|
+
function Tn(e) {
|
|
383
|
+
var t = e.length, r = new e.constructor(t);
|
|
384
|
+
return t && typeof e[0] == "string" && mn.call(e, "index") && (r.index = e.index, r.input = e.input), r;
|
|
385
|
+
}
|
|
386
|
+
var _e = _.Uint8Array;
|
|
387
|
+
function ee(e) {
|
|
388
|
+
var t = new e.constructor(e.byteLength);
|
|
389
|
+
return new _e(t).set(new _e(e)), t;
|
|
390
|
+
}
|
|
391
|
+
function jn(e, t) {
|
|
392
|
+
var r = ee(e.buffer);
|
|
393
|
+
return new e.constructor(r, e.byteOffset, e.byteLength);
|
|
394
|
+
}
|
|
395
|
+
var vn = /\w*$/;
|
|
396
|
+
function En(e) {
|
|
397
|
+
var t = new e.constructor(e.source, vn.exec(e));
|
|
398
|
+
return t.lastIndex = e.lastIndex, t;
|
|
399
|
+
}
|
|
400
|
+
var ye = te ? te.prototype : void 0, me = ye ? ye.valueOf : void 0;
|
|
401
|
+
function $n(e) {
|
|
402
|
+
return me ? Object(me.call(e)) : {};
|
|
403
|
+
}
|
|
404
|
+
function An(e, t) {
|
|
405
|
+
var r = ee(e.buffer);
|
|
406
|
+
return new e.constructor(r, e.byteOffset, e.length);
|
|
407
|
+
}
|
|
408
|
+
var Cn = "[object Boolean]", In = "[object Date]", xn = "[object Map]", On = "[object Number]", wn = "[object RegExp]", Sn = "[object Set]", Dn = "[object String]", Pn = "[object Symbol]", Fn = "[object ArrayBuffer]", Ln = "[object DataView]", Rn = "[object Float32Array]", Mn = "[object Float64Array]", Bn = "[object Int8Array]", Nn = "[object Int16Array]", zn = "[object Int32Array]", Un = "[object Uint8Array]", qn = "[object Uint8ClampedArray]", Hn = "[object Uint16Array]", Vn = "[object Uint32Array]";
|
|
409
|
+
function Gn(e, t, r) {
|
|
410
|
+
var n = e.constructor;
|
|
411
|
+
switch (t) {
|
|
412
|
+
case Fn:
|
|
413
|
+
return ee(e);
|
|
414
|
+
case Cn:
|
|
415
|
+
case In:
|
|
416
|
+
return new n(+e);
|
|
417
|
+
case Ln:
|
|
418
|
+
return jn(e);
|
|
419
|
+
case Rn:
|
|
420
|
+
case Mn:
|
|
421
|
+
case Bn:
|
|
422
|
+
case Nn:
|
|
423
|
+
case zn:
|
|
424
|
+
case Un:
|
|
425
|
+
case qn:
|
|
426
|
+
case Hn:
|
|
427
|
+
case Vn:
|
|
428
|
+
return An(e);
|
|
429
|
+
case xn:
|
|
430
|
+
return new n();
|
|
431
|
+
case On:
|
|
432
|
+
case Dn:
|
|
433
|
+
return new n(e);
|
|
434
|
+
case wn:
|
|
435
|
+
return En(e);
|
|
436
|
+
case Sn:
|
|
437
|
+
return new n();
|
|
438
|
+
case Pn:
|
|
439
|
+
return $n(e);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
function Kn(e) {
|
|
443
|
+
return typeof e.constructor == "function" && !Ie(e) ? Et(Wr(e)) : {};
|
|
444
|
+
}
|
|
445
|
+
var kn = "[object Map]";
|
|
446
|
+
function Xn(e) {
|
|
447
|
+
return L(e) && h(e) == kn;
|
|
448
|
+
}
|
|
449
|
+
var Te = C && C.isMap, Wn = Te ? Z(Te) : Xn, Yn = "[object Set]";
|
|
450
|
+
function Jn(e) {
|
|
451
|
+
return L(e) && h(e) == Yn;
|
|
452
|
+
}
|
|
453
|
+
var je = C && C.isSet, Qn = je ? Z(je) : Jn, Fe = "[object Arguments]", Zn = "[object Array]", ea = "[object Boolean]", ta = "[object Date]", ra = "[object Error]", Le = "[object Function]", na = "[object GeneratorFunction]", aa = "[object Map]", oa = "[object Number]", Re = "[object Object]", ia = "[object RegExp]", sa = "[object Set]", ca = "[object String]", ua = "[object Symbol]", la = "[object WeakMap]", fa = "[object ArrayBuffer]", pa = "[object DataView]", da = "[object Float32Array]", ba = "[object Float64Array]", ga = "[object Int8Array]", ha = "[object Int16Array]", _a = "[object Int32Array]", ya = "[object Uint8Array]", ma = "[object Uint8ClampedArray]", Ta = "[object Uint16Array]", ja = "[object Uint32Array]", i = {};
|
|
454
|
+
i[Fe] = i[Zn] = i[fa] = i[pa] = i[ea] = i[ta] = i[da] = i[ba] = i[ga] = i[ha] = i[_a] = i[aa] = i[oa] = i[Re] = i[ia] = i[sa] = i[ca] = i[ua] = i[ya] = i[ma] = i[Ta] = i[ja] = !0;
|
|
455
|
+
i[ra] = i[Le] = i[la] = !1;
|
|
456
|
+
function B(e, t, r, n, c, a) {
|
|
457
|
+
var o;
|
|
458
|
+
if (o !== void 0)
|
|
459
|
+
return o;
|
|
460
|
+
if (!N(e))
|
|
461
|
+
return e;
|
|
462
|
+
var f = Q(e);
|
|
463
|
+
if (f)
|
|
464
|
+
o = Tn(e);
|
|
465
|
+
else {
|
|
466
|
+
var p = h(e), l = p == Le || p == na;
|
|
467
|
+
if (we(e))
|
|
468
|
+
return nn(e);
|
|
469
|
+
if (p == Re || p == Fe || l && !c)
|
|
470
|
+
o = l ? {} : Kn(e);
|
|
471
|
+
else {
|
|
472
|
+
if (!i[p])
|
|
473
|
+
return c ? e : {};
|
|
474
|
+
o = Gn(e, p);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
a || (a = new x());
|
|
478
|
+
var m = a.get(e);
|
|
479
|
+
if (m)
|
|
480
|
+
return m;
|
|
481
|
+
a.set(e, o), Qn(e) ? e.forEach(function(d) {
|
|
482
|
+
o.add(B(d, t, r, d, e, a));
|
|
483
|
+
}) : Wn(e) && e.forEach(function(d, g) {
|
|
484
|
+
o.set(g, B(d, t, r, g, e, a));
|
|
485
|
+
});
|
|
486
|
+
var $ = fn, T = f ? void 0 : $(e);
|
|
487
|
+
return $t(T || e, function(d, g) {
|
|
488
|
+
T && (g = d, d = e[g]), St(o, g, B(d, t, r, g, e, a));
|
|
489
|
+
}), o;
|
|
490
|
+
}
|
|
491
|
+
var va = 1, Ea = 4;
|
|
492
|
+
function $a(e) {
|
|
493
|
+
return B(e, va | Ea);
|
|
494
|
+
}
|
|
495
|
+
const Aa = (e, t, r) => {
|
|
496
|
+
const n = e === Ee.TEXT ? t("settings.required-indicator-text") : "*", c = (o) => ({
|
|
497
|
+
stringValue: o
|
|
498
|
+
}), a = {
|
|
499
|
+
"aria-hidden": c("true")
|
|
500
|
+
};
|
|
501
|
+
return r && (a.className = c(r)), {
|
|
502
|
+
type: Qe.EXTERNAL,
|
|
503
|
+
id: "",
|
|
504
|
+
nodes: [],
|
|
505
|
+
externalData: {
|
|
506
|
+
fields: a
|
|
507
|
+
},
|
|
508
|
+
textData: {
|
|
509
|
+
text: n,
|
|
510
|
+
decorations: []
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
}, Ca = (e, t, r) => {
|
|
514
|
+
var c;
|
|
515
|
+
const n = $a(e);
|
|
516
|
+
switch (t) {
|
|
517
|
+
case K.BEFORE_FIELD_TITLE:
|
|
518
|
+
const a = n == null ? void 0 : n.nodes.find(Boolean);
|
|
519
|
+
a && (a.nodes ?? (a.nodes = []), a.nodes.unshift(r));
|
|
520
|
+
break;
|
|
521
|
+
case K.AFTER_FIELD_TITLE:
|
|
522
|
+
const o = (c = n == null ? void 0 : n.nodes) == null ? void 0 : c.findLast(Boolean);
|
|
523
|
+
o && (o.nodes ?? (o.nodes = []), o.nodes.push(r));
|
|
524
|
+
break;
|
|
525
|
+
}
|
|
526
|
+
return n;
|
|
527
|
+
}, G = (e) => {
|
|
528
|
+
e.target instanceof Element && e.target.closest("a") && e.stopPropagation();
|
|
529
|
+
}, Ia = {
|
|
530
|
+
onPointerDown: G,
|
|
531
|
+
onMouseDown: G,
|
|
532
|
+
onClick: G
|
|
533
|
+
}, xa = ({ className: e, requiredClassName: t, theme: r, children: n, ...c }) => {
|
|
534
|
+
const { requiredIndicatorHidden: a = !1 } = c, o = J(), { label: f, required: p = !1, disabled: l = !1, requiredIndicatorType: m = Ee.ASTERISK, requiredIndicatorPlacement: $ = K.AFTER_FIELD_TITLE } = o, { t: T } = Ve(), { language: d } = Ge(), g = Ne(() => {
|
|
535
|
+
if (!p || a || !f)
|
|
536
|
+
return f;
|
|
537
|
+
const q = Aa(m, T, t);
|
|
538
|
+
return Ca(f, $, q);
|
|
539
|
+
}, [
|
|
540
|
+
p,
|
|
541
|
+
a,
|
|
542
|
+
f,
|
|
543
|
+
m,
|
|
544
|
+
$,
|
|
545
|
+
T,
|
|
546
|
+
t
|
|
547
|
+
]);
|
|
548
|
+
return /* @__PURE__ */ u.createElement("div", {
|
|
549
|
+
className: e,
|
|
550
|
+
...l ? {} : Ia
|
|
551
|
+
}, n({
|
|
552
|
+
content: g,
|
|
553
|
+
locale: d,
|
|
554
|
+
htmlAttributesPlugin: Ke
|
|
555
|
+
}));
|
|
556
|
+
}, b = ({ children: e }) => {
|
|
557
|
+
const { id: t, FieldLayout: r } = J(), n = O(e, b.Checkbox), c = O(e, b.Description), a = O(e, b.Error);
|
|
558
|
+
return /* @__PURE__ */ u.createElement(r, {
|
|
559
|
+
fieldId: t,
|
|
560
|
+
renderLabel: () => null,
|
|
561
|
+
renderInput: () => n,
|
|
562
|
+
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, a, c)
|
|
563
|
+
});
|
|
564
|
+
}, P = ({ children: e, className: t }) => {
|
|
565
|
+
const { id: r, value: n, onChange: c, disabled: a, required: o, readOnly: f, onBlur: p, onFocus: l, hasError: m } = J(), { inputId: $, ariaDescribedBy: T } = ke(), d = ze(null);
|
|
566
|
+
Xe(() => {
|
|
567
|
+
var R;
|
|
568
|
+
(R = d.current) == null || R.focus();
|
|
569
|
+
}, r);
|
|
570
|
+
const g = O(e, P.RichTextLabel), q = O(e, P.Input), Me = Ue((R) => {
|
|
571
|
+
c(R);
|
|
572
|
+
}, [
|
|
573
|
+
c
|
|
574
|
+
]);
|
|
575
|
+
return /* @__PURE__ */ u.createElement(qe, {
|
|
576
|
+
id: $,
|
|
577
|
+
"aria-describedby": T,
|
|
578
|
+
isSelected: !!n,
|
|
579
|
+
onChange: Me,
|
|
580
|
+
isDisabled: a,
|
|
581
|
+
isReadOnly: f,
|
|
582
|
+
isRequired: o,
|
|
583
|
+
isInvalid: m,
|
|
584
|
+
onBlur: p,
|
|
585
|
+
onFocus: l
|
|
586
|
+
}, /* @__PURE__ */ u.createElement(He, {
|
|
587
|
+
ref: d,
|
|
588
|
+
className: t
|
|
589
|
+
}, q, g));
|
|
590
|
+
}, Oa = ({ className: e }) => /* @__PURE__ */ u.createElement("div", {
|
|
591
|
+
"aria-hidden": "true",
|
|
592
|
+
className: e
|
|
593
|
+
});
|
|
594
|
+
P.RichTextLabel = xa;
|
|
595
|
+
P.Input = Oa;
|
|
596
|
+
b.Checkbox = P;
|
|
597
|
+
b.Description = Ye;
|
|
598
|
+
b.Error = Je;
|
|
599
|
+
const wa = "_label_1egzx_1", Sa = "_required_1egzx_33", ve = {
|
|
600
|
+
label: wa,
|
|
601
|
+
required: Sa
|
|
602
|
+
}, Da = ({ content: e, locale: t }) => /* @__PURE__ */ u.createElement(Be, {
|
|
603
|
+
content: e,
|
|
604
|
+
locale: t
|
|
605
|
+
}), Ga = ({ classes: e = {
|
|
606
|
+
container: nt,
|
|
607
|
+
label: rt,
|
|
608
|
+
control: tt
|
|
609
|
+
} }) => /* @__PURE__ */ u.createElement(b, null, /* @__PURE__ */ u.createElement(b.Checkbox, {
|
|
610
|
+
className: A(e.container, M.checkbox)
|
|
611
|
+
}, /* @__PURE__ */ u.createElement(b.Checkbox.Input, {
|
|
612
|
+
className: A(e.control, M.checkboxInput)
|
|
613
|
+
}), /* @__PURE__ */ u.createElement(b.Checkbox.RichTextLabel, {
|
|
614
|
+
className: A(e.label, ve.label),
|
|
615
|
+
requiredClassName: A(at, ve.required)
|
|
616
|
+
}, ({ content: t }) => /* @__PURE__ */ u.createElement(We, {
|
|
617
|
+
content: t
|
|
618
|
+
}))), /* @__PURE__ */ u.createElement(b.Error, {
|
|
619
|
+
className: A(ot, M.error)
|
|
620
|
+
}, /* @__PURE__ */ u.createElement(et, null), /* @__PURE__ */ u.createElement(b.Error.Text, null)), /* @__PURE__ */ u.createElement(b.Description, {
|
|
621
|
+
className: A(it, M.description)
|
|
622
|
+
}, Da));
|
|
623
|
+
export {
|
|
624
|
+
Ga as C
|
|
625
|
+
};
|