@wix/form-elements 1.166.0 → 1.168.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/dist/component/{appointment-rac-BXpWILhi.js → appointment-rac-BbXyKTd7.js} +72 -72
- package/dist/component/{bookings-address-rac-Cf--TgsR.js → bookings-address-rac-VJkR_U9L.js} +1 -1
- package/dist/component/{bookings-email-rac-BtB8owOl.js → bookings-email-rac-_EupwXpQ.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CBFDjB_k.js → bookings-first-name-rac-DTZixHYj.js} +1 -1
- package/dist/component/{bookings-header-rac-CrJORcuL.js → bookings-header-rac-BKbKTv5g.js} +1 -1
- package/dist/component/{bookings-last-name-rac-erG4ldFt.js → bookings-last-name-rac-BDy860-C.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Di4qLQUH.js → bookings-login-bar-rac-DgNP-YNZ.js} +5 -5
- package/dist/component/{bookings-phone-rac-DdM48Obh.js → bookings-phone-rac-B_I6n96b.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Cl8zOiU1.js → bookings-rich-text-rac-prYPbIiz.js} +1 -1
- package/dist/component/{checkbox-field-rac-CzIDF6aj.js → checkbox-field-rac-C-4PXuxG.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-B8tsQCwV.js → checkbox-group-field-headless-D16bAcaq.js} +35 -35
- package/dist/component/{checkbox-group-field-rac-h02K8CPA.js → checkbox-group-field-rac-GUQ5dO_s.js} +4 -4
- package/dist/component/{checkbox-group-rac-GfebLnuS.js → checkbox-group-rac-Bl6xL5-H.js} +1 -1
- package/dist/component/{checkbox-rac-Dn24U4oG.js → checkbox-rac-Blg0KVyP.js} +1 -1
- package/dist/component/{contacts-address-rac-CtVtIwOV.js → contacts-address-rac-BfOhCAj8.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CK2odpbJ.js → contacts-birthdate-rac-DYBvDh62.js} +1 -1
- package/dist/component/{contacts-company-rac-ue8vAn9A.js → contacts-company-rac-DIJr7zjA.js} +1 -1
- package/dist/component/{contacts-email-rac-lleErjYl.js → contacts-email-rac-DjmqELhC.js} +1 -1
- package/dist/component/{contacts-first-name-rac-D5wtz4Z1.js → contacts-first-name-rac-DGNll7gw.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cj9GKWBY.js → contacts-last-name-rac-BJ8AZYQN.js} +1 -1
- package/dist/component/{contacts-phone-rac-BP6unckw.js → contacts-phone-rac-BC-QtpEN.js} +1 -1
- package/dist/component/{contacts-position-rac-XjUdZglr.js → contacts-position-rac-BQia__74.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Dnpbgw5C.js → contacts-subscribe-rac-CTFptz01.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-pNFMOZl6.js → contacts-tax-id-rac-Cy72Jouc.js} +1 -1
- package/dist/component/{date-availability-BRA7k6ep.js → date-availability-BC6updcS.js} +1 -1
- package/dist/component/{date-input-field-rac-B15XH-D_.js → date-input-field-rac-b_T1yf8D.js} +38 -38
- package/dist/component/{date-input-rac-B7XvsFeB.js → date-input-rac-KkRyWRP_.js} +1 -1
- package/dist/component/{date-picker-field-rac-BNgKcgVi.js → date-picker-field-rac-BLWVJbTJ.js} +6 -6
- package/dist/component/{date-picker-rac-P54cHP86.js → date-picker-rac-DKCQza7v.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Dt-jUznP.js → date-time-input-field-rac-CZxZW6fz.js} +45 -45
- package/dist/component/{date-time-input-rac-DHmOLCvg.js → date-time-input-rac-DQ-iBwmr.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Bo2ZRcJc.js → dext-checkbox-group-rac-kp1Jbwt-.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BdA2i9PR.js → dext-checkbox-rac-CBm9cRUz.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BME9ZDFy.js → dext-date-picker-rac-DsVKWsRy.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-owEU8r5-.js → dext-date-time-input-rac-CO26-8Qo.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BAeN43fo.js → dext-dropdown-rac-eRzu2C-y.js} +1 -1
- package/dist/component/{dext-email-rac-D7HBfCis.js → dext-email-rac-DDrZzE_G.js} +1 -1
- package/dist/component/{dext-number-input-rac-DEB2ji5S.js → dext-number-input-rac-Dj7sInLk.js} +1 -1
- package/dist/component/{dext-phone-rac-TOfFCmhD.js → dext-phone-rac-g8M77F7m.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DGsQLres.js → dext-radio-group-rac-BjhygC0R.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CFcRQeE7.js → dext-rating-input-rac-BraNjvyA.js} +1 -1
- package/dist/component/{dext-tags-rac-CGsaKVfb.js → dext-tags-rac-B5mAIuDi.js} +2 -2
- package/dist/component/{dext-text-area-rac-BqbLXOdt.js → dext-text-area-rac-D_YBnaWi.js} +1 -1
- package/dist/component/{dext-text-input-rac-CpXfQV53.js → dext-text-input-rac-BzeWH1jv.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bbm3_OG9.js → dext-url-input-rac-Cn0h_vx3.js} +1 -1
- package/dist/component/{donation-rac-DvBAOz6H.js → donation-rac-CQRdHxWh.js} +46 -46
- package/dist/component/{dropdown-field-rac-BW0UDoBO.js → dropdown-field-rac-C7LL0W5Z.js} +3 -3
- package/dist/component/{dropdown-rac-B6ZD6Qgb.js → dropdown-rac-Nb2VyJ0x.js} +1 -1
- package/dist/component/{ecom-address-rac-Dnv9Yswd.js → ecom-address-rac-_c2YIIwg.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BVqvUwn4.js → ecom-subscription-checkbox-rac-Bma7TAVj.js} +2 -2
- package/dist/component/{email-input-field-rac-CuaMcfZR.js → email-input-field-rac-2E2tEaS5.js} +47 -47
- package/dist/component/events-repeater-rac-COWHYBFD.js +280 -0
- package/dist/component/{events-rsvp-rac-D4hSrIsE.js → events-rsvp-rac-CXp8j19Y.js} +3 -3
- package/dist/component/{field-error-headless-NGaTm3dF.js → field-error-headless-S-ugOQQX.js} +7 -7
- package/dist/component/{field-label-headless-Bx1UjEcp.js → field-label-headless-_n4I0_tX.js} +14 -14
- package/dist/component/{file-upload-rac-oOnemmUg.js → file-upload-rac-DCH_iwDg.js} +79 -79
- package/dist/component/{fixed-payment-rac-C9YkIvQO.js → fixed-payment-rac-CYkKJUfM.js} +14 -14
- package/dist/component/{form-sH9m0ReT.js → form-jK8ezTss.js} +1110 -1109
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-N5Oclne_.js → header-field-rac-DnbjI6W5.js} +6 -6
- package/dist/component/{header-rac-CTmSJdoY.js → header-rac-DKUICrni.js} +1 -1
- package/dist/component/{image-choice-rac-BYZ61yof.js → image-choice-rac-B_9ponST.js} +4 -4
- package/dist/component/{index-B56GTN_5.js → index-BxdMzOvN.js} +68 -68
- package/dist/component/{index-SHZx7XzS.js → index-ZYnsxY-a.js} +2 -2
- package/dist/component/{isObjectLike-BFpR7Q-o.js → isObjectLike-BW-9QEQl.js} +9 -9
- package/dist/component/{multiline-address-field-rac-DvMyN2gF.js → multiline-address-field-rac-k-P0ijWG.js} +40 -40
- package/dist/component/{multiline-address-rac-Cfv0QzzV.js → multiline-address-rac-Bbn9mNDa.js} +1 -1
- package/dist/component/{number-input-field-rac-CWQw7p2k.js → number-input-field-rac--lom-B_X.js} +7 -7
- package/dist/component/{number-input-rac-DJ2Nh9Vm.js → number-input-rac-Bhbd6T9S.js} +1 -1
- package/dist/component/{password-rac-ayoa5FQV.js → password-rac-BV_uTHb3.js} +14 -14
- package/dist/component/{payment-input-rac-CBjP_xjz.js → payment-input-rac-cawyGN_t.js} +28 -28
- package/dist/component/{phone-input-field-rac-BWOEiUK7.js → phone-input-field-rac-CsElHRto.js} +67 -67
- package/dist/component/{phone-rac-Dp7FouV3.js → phone-rac-XrHN5Nko.js} +1 -1
- package/dist/component/{product-list-rac-D_EoPXl-.js → product-list-rac-cxv_xz7K.js} +30 -30
- package/dist/component/{quiz-radio-group-rac-RWM0riuU.js → quiz-radio-group-rac-DGaxOPE1.js} +1 -1
- package/dist/component/{radio-button-module-classes-nK-xhmxh.js → radio-button-module-classes-Xv2Jn01x.js} +21 -21
- package/dist/component/{radio-group-field-rac-Cc-pvwZn.js → radio-group-field-rac-DgGqgTql.js} +4 -4
- package/dist/component/{radio-group-rac-xvesuLSn.js → radio-group-rac-Bh0E-oe1.js} +1 -1
- package/dist/component/{rating-input-field-rac-BgMRUXQy.js → rating-input-field-rac-C3YLV971.js} +10 -10
- package/dist/component/{rating-input-rac-CeZtJR2S.js → rating-input-rac-CfcC5EUh.js} +1 -1
- package/dist/component/{rich-content-rac.module-Cv7PIbmM.js → rich-content-rac.module-DUjzLGtX.js} +5 -5
- package/dist/component/{rich-text-field-rac-CmbNBe2u.js → rich-text-field-rac-BmguoJhk.js} +5 -5
- package/dist/component/{rich-text-rac-9hwPCQXl.js → rich-text-rac-BWhHcq25.js} +1 -1
- package/dist/component/{service-dropdown-rac-2Wjgmo75.js → service-dropdown-rac-C5oX-ql7.js} +30 -30
- package/dist/component/{services-multi-choice-rac-cZ7elBhc.js → services-multi-choice-rac-C1fem9NB.js} +12 -12
- package/dist/component/{signature-rac-BfE2328G.js → signature-rac-BtHqiWj1.js} +62 -62
- package/dist/component/{submit-button-rac-oYO7pska.js → submit-button-rac-OYeKJFF8.js} +39 -39
- package/dist/component/{tags-field-rac-B-_LzCFU.js → tags-field-rac-kA2RSijL.js} +37 -37
- package/dist/component/{tags-rac-D5bRM462.js → tags-rac-B_2qCZGu.js} +1 -1
- package/dist/component/{text-area-field-rac-fwtICvjX.js → text-area-field-rac-DeO609Mv.js} +17 -17
- package/dist/component/{text-area-rac-C4EkhfB5.js → text-area-rac-BAQFBOZd.js} +1 -1
- package/dist/component/{text-input-field-rac-CxZYUtxX.js → text-input-field-rac-CCcKwuLZ.js} +3 -3
- package/dist/component/{text-input-headless-DK5wBGBb.js → text-input-headless-D8-jkaYm.js} +8 -8
- package/dist/component/{text-input-rac-FS49SxCK.js → text-input-rac-BVcgjj8g.js} +1 -1
- package/dist/component/{time-input-rac-CDUVS7kp.js → time-input-rac-BYctyHgU.js} +11 -11
- package/dist/component/{url-input-field-rac-B2ypvh7T.js → url-input-field-rac-COC9qgcs.js} +23 -23
- package/dist/component/{url-input-rac-DbJx2T1R.js → url-input-rac-BZXLh0Ej.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-0ZlT4g7h.js → use-dropdown-option-class-name-BTltqRl1.js} +2 -2
- package/dist/component/use-dropdown-trigger-class-name-BjJZfl3i.js +98 -0
- package/dist/component/{use-element-state-class-name-DCAoZgWT.js → use-element-state-class-name-CkT6Ga8t.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-BvP8fzTQ.js → use-hoverable-input-class-name-BkoSr6tr.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-B-eR29aQ.js → use-is-forced-open-dropdown-fo_NCnSk.js} +1 -1
- package/dist/component/{use-service-options-base-BF_peAsS.js → use-service-options-base-Wp8RZ4Z8.js} +1 -1
- package/dist/component/use-text-input-class-name-DS7i03Gk.js +6 -0
- package/package.json +2 -2
- package/dist/component/events-repeater-rac-CNsh8NRh.js +0 -271
- package/dist/component/use-dropdown-trigger-class-name-PItHRYWo.js +0 -96
- package/dist/component/use-text-input-class-name-CQf8yep5.js +0 -6
package/dist/component/form.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import m from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as g, R as p, s as
|
|
5
|
-
const
|
|
3
|
+
import { bD as u, bf as i, be as C, bh as R, aQ as T, ay as d } from "./form-jK8ezTss.js";
|
|
4
|
+
import { u as g, R as p, s as h, T as S } from "./rich-content-rac.module-DUjzLGtX.js";
|
|
5
|
+
const H = ({ truncate: t = !0 } = {}) => {
|
|
6
6
|
const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: {
|
|
@@ -11,14 +11,14 @@ const b = ({ truncate: t = !0 } = {}) => {
|
|
|
11
11
|
}
|
|
12
12
|
}), []), { displayedContent: o, isTruncated: r, isTruncateButtonShown: c, toggleTruncate: l } = g(a, t ? s : void 0);
|
|
13
13
|
return /* @__PURE__ */ e.createElement(p, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(T, {
|
|
14
|
-
className: m(d,
|
|
14
|
+
className: m(d, h.richContent),
|
|
15
15
|
content: o,
|
|
16
16
|
customTheme: n
|
|
17
|
-
}), c && /* @__PURE__ */ e.createElement(
|
|
17
|
+
}), c && /* @__PURE__ */ e.createElement(S, {
|
|
18
18
|
isTruncated: r,
|
|
19
19
|
onClick: l
|
|
20
20
|
})));
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
H
|
|
24
24
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useMemo as H, useCallback as T, useRef as G } from "react";
|
|
2
2
|
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
3
|
import I from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { bD as b, bA as x, bF as P, bw as j, U as B, af as q, Q as U, S as w, K, G as Q, R as V, f } from "./form-jK8ezTss.js";
|
|
5
5
|
import { CheckboxGroup as z, CheckboxField as Y, CheckboxButton as $ } from "react-aria-components";
|
|
6
6
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as J, g as W } from "./field-label-headless-
|
|
8
|
-
import { D as X, E as Z } from "./field-error-headless-
|
|
7
|
+
import { L as J, g as W } from "./field-label-headless-_n4I0_tX.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-S-ugOQQX.js";
|
|
9
9
|
import { F as ee } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as O } from "./field-rac.module-ts2t4WUO.js";
|
|
12
|
-
import { u as ae } from "./use-element-state-class-name-
|
|
12
|
+
import { u as ae } from "./use-element-state-class-name-CkT6Ga8t.js";
|
|
13
13
|
const a = ({ children: t, className: n }) => {
|
|
14
14
|
const { id: s, value: o, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError: g, FieldLayout: C } = b(), { inputId: L, labelId: _, ariaDescribedBy: N } = x(), S = m(t, a.Label), A = m(t, a.Options), D = m(t, a.Description), h = m(t, a.Error), M = H(() => o || [], [
|
|
15
15
|
o
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as R,
|
|
2
|
-
import {
|
|
1
|
+
import { e as R, aY as _, bb as de, aZ as g, aE as Ge, B as Be, aS as qe, aL as He, aK as I, aT as Ee, b0 as re, aW as Fe, c as B, aM as M, bn as Te, aO as je, aN as he, aP as q } from "./form-jK8ezTss.js";
|
|
2
|
+
import { bi as Mn } from "./form-jK8ezTss.js";
|
|
3
3
|
import Xe from "ajv";
|
|
4
4
|
import ke from "ajv-errors";
|
|
5
5
|
import We from "ajv-formats";
|
|
6
6
|
import Ke from "fast-deep-equal";
|
|
7
|
-
import { parsePhoneNumber as ze, parsePhoneNumberWithError as
|
|
7
|
+
import { parsePhoneNumber as ze, parsePhoneNumberWithError as Ze, ParseError as Ve } from "libphonenumber-js/max";
|
|
8
8
|
import Je from "libphonenumber-js/metadata.max.json";
|
|
9
|
-
import { p as Qe, i as et } from "./date-availability-
|
|
10
|
-
import { a as Sn } from "./date-availability-
|
|
9
|
+
import { p as Qe, i as et } from "./date-availability-BC6updcS.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-BC6updcS.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -274,10 +274,10 @@ function Tt() {
|
|
|
274
274
|
e.exports = s;
|
|
275
275
|
})(X, X.exports)), X.exports;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
277
|
+
var Ae = H.exports, Ie;
|
|
278
278
|
function ht() {
|
|
279
|
-
return
|
|
280
|
-
var r =
|
|
279
|
+
return Ie || (Ie = 1, (function(e, t) {
|
|
280
|
+
var r = Ae && Ae.__importDefault || function(i) {
|
|
281
281
|
return i && i.__esModule ? i : { default: i };
|
|
282
282
|
};
|
|
283
283
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
@@ -286,7 +286,7 @@ function ht() {
|
|
|
286
286
|
})(H, H.exports)), H.exports;
|
|
287
287
|
}
|
|
288
288
|
var Rt = ht();
|
|
289
|
-
const
|
|
289
|
+
const At = /* @__PURE__ */ de(Rt);
|
|
290
290
|
function h(e, t, r) {
|
|
291
291
|
if (typeof w(e) < "u")
|
|
292
292
|
return e;
|
|
@@ -298,7 +298,7 @@ function w(e) {
|
|
|
298
298
|
function j(e) {
|
|
299
299
|
return w(e) !== void 0;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function It(e) {
|
|
302
302
|
return e !== null;
|
|
303
303
|
}
|
|
304
304
|
const Nt = [
|
|
@@ -792,13 +792,13 @@ function $t(e) {
|
|
|
792
792
|
}
|
|
793
793
|
function xt(e, t) {
|
|
794
794
|
try {
|
|
795
|
-
const r =
|
|
795
|
+
const r = Ze(e);
|
|
796
796
|
return (t ? r.isPossible() : r.isValid()) ? void 0 : {
|
|
797
797
|
keyword: "format",
|
|
798
798
|
message: "Phone number for the country code provided is invalid"
|
|
799
799
|
};
|
|
800
800
|
} catch (r) {
|
|
801
|
-
return r instanceof
|
|
801
|
+
return r instanceof Ve ? Yt(r, e) : {
|
|
802
802
|
keyword: "format",
|
|
803
803
|
message: "Phone number could not be parsed"
|
|
804
804
|
};
|
|
@@ -899,7 +899,7 @@ function jt(e, t, r) {
|
|
|
899
899
|
allErrors: !0,
|
|
900
900
|
multipleOfPrecision: 8
|
|
901
901
|
});
|
|
902
|
-
return We(i), vt(i, t), Ut(i, t, r), ke(i),
|
|
902
|
+
return We(i), vt(i, t), Ut(i, t, r), ke(i), At(i), s.forEach((o) => {
|
|
903
903
|
if (!i.getSchema(h(o.id, o, "id"))) {
|
|
904
904
|
const u = e(o);
|
|
905
905
|
u && i.addSchema(u);
|
|
@@ -912,7 +912,7 @@ var y = /* @__PURE__ */ (function(e) {
|
|
|
912
912
|
})({});
|
|
913
913
|
function Xt(e, t) {
|
|
914
914
|
return function(c) {
|
|
915
|
-
const E = c.fields || [], d = c.deletedFields || [], m = E.filter(o), T = d.filter(o), O = r(m, T), N = t === g.UNRESTRICTED_UPDATE ? [] : m.filter((
|
|
915
|
+
const E = c.fields || [], d = c.deletedFields || [], m = E.filter(o), T = d.filter(o), O = r(m, T), N = t === g.UNRESTRICTED_UPDATE ? [] : m.filter((A) => !u(A)).filter(i).map((A) => h(A.target, A, "target"));
|
|
916
916
|
return {
|
|
917
917
|
$id: h(c.id, c, "id"),
|
|
918
918
|
type: y.OBJECT,
|
|
@@ -1047,10 +1047,10 @@ function Q(e, t) {
|
|
|
1047
1047
|
type: y.NUMBER,
|
|
1048
1048
|
maximum: Number.MAX_SAFE_INTEGER,
|
|
1049
1049
|
minimum: Number.MIN_SAFE_INTEGER,
|
|
1050
|
-
...
|
|
1050
|
+
...Zt(e, t)
|
|
1051
1051
|
};
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function Zt(e, t) {
|
|
1054
1054
|
return t !== g.UNRESTRICTED_UPDATE ? {
|
|
1055
1055
|
...G(qe, e, {
|
|
1056
1056
|
maximum: (r) => Math.min(r ?? Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER),
|
|
@@ -1059,7 +1059,7 @@ function Vt(e, t) {
|
|
|
1059
1059
|
})
|
|
1060
1060
|
} : {};
|
|
1061
1061
|
}
|
|
1062
|
-
const
|
|
1062
|
+
const Vt = [
|
|
1063
1063
|
"minItems",
|
|
1064
1064
|
"maxItems"
|
|
1065
1065
|
], ue = 100;
|
|
@@ -1080,7 +1080,7 @@ function Jt(e, t) {
|
|
|
1080
1080
|
} : {};
|
|
1081
1081
|
}
|
|
1082
1082
|
function xe(e) {
|
|
1083
|
-
return G(
|
|
1083
|
+
return G(Vt, e, {
|
|
1084
1084
|
maxItems: (t) => Math.min(t ?? ue, ue)
|
|
1085
1085
|
});
|
|
1086
1086
|
}
|
|
@@ -1296,13 +1296,13 @@ const ge = {
|
|
|
1296
1296
|
properties: {
|
|
1297
1297
|
startDate: {
|
|
1298
1298
|
string: {
|
|
1299
|
-
format:
|
|
1299
|
+
format: I.DATE_TIME
|
|
1300
1300
|
},
|
|
1301
1301
|
required: !0
|
|
1302
1302
|
},
|
|
1303
1303
|
endDate: {
|
|
1304
1304
|
string: {
|
|
1305
|
-
format:
|
|
1305
|
+
format: I.DATE_TIME
|
|
1306
1306
|
},
|
|
1307
1307
|
required: !0
|
|
1308
1308
|
},
|
|
@@ -1329,23 +1329,23 @@ function or() {
|
|
|
1329
1329
|
d === void 0 && (d = {});
|
|
1330
1330
|
var m = new Date(c), T = (function(O, N) {
|
|
1331
1331
|
N === void 0 && (N = {});
|
|
1332
|
-
var
|
|
1333
|
-
return D || (D = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: O, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName:
|
|
1332
|
+
var A = N.timeZoneName || "short", P = O + "|" + A, D = n[P];
|
|
1333
|
+
return D || (D = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: O, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: A }), n[P] = D), D;
|
|
1334
1334
|
})(E, d);
|
|
1335
1335
|
return T.formatToParts(m);
|
|
1336
1336
|
}, f = function(c, E) {
|
|
1337
1337
|
for (var d = u(c, E), m = [], T = 0; T < d.length; T += 1) {
|
|
1338
|
-
var O = d[T], N = O.type,
|
|
1339
|
-
P >= 0 && (m[P] = parseInt(
|
|
1338
|
+
var O = d[T], N = O.type, A = O.value, P = r[N];
|
|
1339
|
+
P >= 0 && (m[P] = parseInt(A, 10));
|
|
1340
1340
|
}
|
|
1341
1341
|
var D = m[3], F = D === 24 ? 0 : D, b = m[0] + "-" + m[1] + "-" + m[2] + " " + F + ":" + m[4] + ":" + m[5] + ":000", L = +c;
|
|
1342
1342
|
return (o.utc(b).valueOf() - (L -= L % 1e3)) / 6e4;
|
|
1343
1343
|
}, l = i.prototype;
|
|
1344
1344
|
l.tz = function(c, E) {
|
|
1345
1345
|
c === void 0 && (c = a);
|
|
1346
|
-
var d, m = this.utcOffset(), T = this.toDate(), O = T.toLocaleString("en-US", { timeZone: c }), N = Math.round((T - new Date(O)) / 1e3 / 60),
|
|
1347
|
-
if (!Number(
|
|
1348
|
-
else if (d = o(O, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(
|
|
1346
|
+
var d, m = this.utcOffset(), T = this.toDate(), O = T.toLocaleString("en-US", { timeZone: c }), N = Math.round((T - new Date(O)) / 1e3 / 60), A = 15 * -Math.round(T.getTimezoneOffset() / 15) - N;
|
|
1347
|
+
if (!Number(A)) d = this.utcOffset(0, E);
|
|
1348
|
+
else if (d = o(O, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(A, !0), E) {
|
|
1349
1349
|
var P = d.utcOffset();
|
|
1350
1350
|
d = d.add(m - P, "minute");
|
|
1351
1351
|
}
|
|
@@ -1369,7 +1369,7 @@ function or() {
|
|
|
1369
1369
|
if (b === $) return [C, b];
|
|
1370
1370
|
var se = f(C -= 60 * ($ - b) * 1e3, L);
|
|
1371
1371
|
return $ === se ? [C, $] : [F - 60 * Math.min($, se) * 1e3, Math.max($, se)];
|
|
1372
|
-
})(o.utc(c, m).valueOf(), O, T),
|
|
1372
|
+
})(o.utc(c, m).valueOf(), O, T), A = N[0], P = N[1], D = o(A).utcOffset(P);
|
|
1373
1373
|
return D.$x.$timezone = T, D;
|
|
1374
1374
|
}, o.tz.guess = function() {
|
|
1375
1375
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -1382,7 +1382,7 @@ function or() {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
var ur = or();
|
|
1384
1384
|
const ar = /* @__PURE__ */ de(ur);
|
|
1385
|
-
var
|
|
1385
|
+
var Z = { exports: {} }, cr = Z.exports, De;
|
|
1386
1386
|
function mr() {
|
|
1387
1387
|
return De || (De = 1, (function(e, t) {
|
|
1388
1388
|
(function(r, n) {
|
|
@@ -1424,10 +1424,10 @@ function mr() {
|
|
|
1424
1424
|
})(m), m === null)) return this;
|
|
1425
1425
|
var N = Math.abs(m) <= 16 ? 60 * m : m;
|
|
1426
1426
|
if (N === 0) return this.utc(T);
|
|
1427
|
-
var
|
|
1428
|
-
if (T) return
|
|
1427
|
+
var A = this.clone();
|
|
1428
|
+
if (T) return A.$offset = N, A.$u = !1, A;
|
|
1429
1429
|
var P = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1430
|
-
return (
|
|
1430
|
+
return (A = this.local().add(N + P, r)).$offset = N, A.$x.$localOffset = P, A;
|
|
1431
1431
|
};
|
|
1432
1432
|
var c = u.format;
|
|
1433
1433
|
u.format = function(m) {
|
|
@@ -1450,12 +1450,12 @@ function mr() {
|
|
|
1450
1450
|
var d = u.diff;
|
|
1451
1451
|
u.diff = function(m, T, O) {
|
|
1452
1452
|
if (m && this.$u === m.$u) return d.call(this, m, T, O);
|
|
1453
|
-
var N = this.local(),
|
|
1454
|
-
return d.call(N,
|
|
1453
|
+
var N = this.local(), A = a(m).local();
|
|
1454
|
+
return d.call(N, A, T, O);
|
|
1455
1455
|
};
|
|
1456
1456
|
};
|
|
1457
1457
|
}));
|
|
1458
|
-
})(
|
|
1458
|
+
})(Z)), Z.exports;
|
|
1459
1459
|
}
|
|
1460
1460
|
var fr = mr();
|
|
1461
1461
|
const dr = /* @__PURE__ */ de(fr);
|
|
@@ -1475,20 +1475,20 @@ function hr(e, t, r = () => /* @__PURE__ */ new Date(), n) {
|
|
|
1475
1475
|
} : s;
|
|
1476
1476
|
}
|
|
1477
1477
|
function ae(e, t, r, n) {
|
|
1478
|
-
if (!r ||
|
|
1478
|
+
if (!r || Ar(r))
|
|
1479
1479
|
return r;
|
|
1480
1480
|
if (Rr(r)) {
|
|
1481
|
-
const s = n ? re(t().toISOString()).tz(n) : pr(t().toISOString()), i =
|
|
1482
|
-
return i ? e ===
|
|
1481
|
+
const s = n ? re(t().toISOString()).tz(n) : pr(t().toISOString()), i = Ir(r, s);
|
|
1482
|
+
return i ? e === I.DATE_TIME || e === I.DATE_OPTIONAL_TIME || !n ? i.utc().format(Me(e)) : i.format(Me(e)) : void 0;
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
1485
1485
|
function Rr(e) {
|
|
1486
1486
|
return we.test(e);
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function Ar(e) {
|
|
1489
1489
|
return lr.test(e) || Er.test(e) || Tr.test(e);
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function Ir(e, t) {
|
|
1492
1492
|
if (e === "$now")
|
|
1493
1493
|
return t;
|
|
1494
1494
|
try {
|
|
@@ -1525,12 +1525,12 @@ function Or(e) {
|
|
|
1525
1525
|
}
|
|
1526
1526
|
function Me(e) {
|
|
1527
1527
|
switch (e) {
|
|
1528
|
-
case
|
|
1528
|
+
case I.DATE:
|
|
1529
1529
|
return "YYYY-MM-DD";
|
|
1530
|
-
case
|
|
1530
|
+
case I.TIME:
|
|
1531
1531
|
return "HH:mm:ss";
|
|
1532
|
-
case
|
|
1533
|
-
case
|
|
1532
|
+
case I.DATE_TIME:
|
|
1533
|
+
case I.DATE_OPTIONAL_TIME:
|
|
1534
1534
|
return "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
1535
1535
|
default:
|
|
1536
1536
|
return;
|
|
@@ -1573,43 +1573,43 @@ function Dr(e) {
|
|
|
1573
1573
|
} : {};
|
|
1574
1574
|
}
|
|
1575
1575
|
const Mr = {
|
|
1576
|
-
[
|
|
1576
|
+
[I.DATE]: [
|
|
1577
1577
|
"date"
|
|
1578
1578
|
],
|
|
1579
|
-
[
|
|
1579
|
+
[I.TIME]: [
|
|
1580
1580
|
"time"
|
|
1581
1581
|
],
|
|
1582
|
-
[
|
|
1582
|
+
[I.DATE_TIME]: [
|
|
1583
1583
|
"date-time"
|
|
1584
1584
|
],
|
|
1585
|
-
[
|
|
1585
|
+
[I.EMAIL]: [
|
|
1586
1586
|
"email"
|
|
1587
1587
|
],
|
|
1588
|
-
[
|
|
1588
|
+
[I.URL]: [
|
|
1589
1589
|
"url"
|
|
1590
1590
|
],
|
|
1591
|
-
[
|
|
1591
|
+
[I.UUID]: [
|
|
1592
1592
|
"uuid"
|
|
1593
1593
|
],
|
|
1594
|
-
[
|
|
1594
|
+
[I.PHONE]: [
|
|
1595
1595
|
"phone"
|
|
1596
1596
|
],
|
|
1597
|
-
[
|
|
1597
|
+
[I.URI]: [
|
|
1598
1598
|
"uri"
|
|
1599
1599
|
],
|
|
1600
|
-
[
|
|
1600
|
+
[I.HOSTNAME]: [
|
|
1601
1601
|
"hostname"
|
|
1602
1602
|
],
|
|
1603
|
-
[
|
|
1603
|
+
[I.COLOR_HEX]: [
|
|
1604
1604
|
"color-hex"
|
|
1605
1605
|
],
|
|
1606
|
-
[
|
|
1606
|
+
[I.CURRENCY]: [
|
|
1607
1607
|
"currency"
|
|
1608
1608
|
],
|
|
1609
|
-
[
|
|
1609
|
+
[I.LANGUAGE]: [
|
|
1610
1610
|
"language"
|
|
1611
1611
|
],
|
|
1612
|
-
[
|
|
1612
|
+
[I.DATE_OPTIONAL_TIME]: [
|
|
1613
1613
|
"date-time",
|
|
1614
1614
|
"date"
|
|
1615
1615
|
],
|
|
@@ -1710,11 +1710,11 @@ function Ur(e, t) {
|
|
|
1710
1710
|
function $r(e, t, r = []) {
|
|
1711
1711
|
switch ((t == null ? void 0 : t.itemType) ?? B.UNKNOWN_ITEM_TYPE) {
|
|
1712
1712
|
case B.STRING:
|
|
1713
|
-
return ee(
|
|
1713
|
+
return ee(V((t == null ? void 0 : t.stringOptions) ?? {}, r), e);
|
|
1714
1714
|
case B.NUMBER:
|
|
1715
|
-
return Q(
|
|
1715
|
+
return Q(V((t == null ? void 0 : t.numberOptions) ?? {}, r), e);
|
|
1716
1716
|
case B.BOOLEAN:
|
|
1717
|
-
return J(
|
|
1717
|
+
return J(V((t == null ? void 0 : t.booleanOptions) ?? {}, r), e);
|
|
1718
1718
|
case B.OBJECT:
|
|
1719
1719
|
return te((t == null ? void 0 : t.objectOptions) ?? {}, e);
|
|
1720
1720
|
default:
|
|
@@ -1725,7 +1725,7 @@ function me(e, t) {
|
|
|
1725
1725
|
if (!(e || !j(t)))
|
|
1726
1726
|
return t.map((r) => r.value).filter(j);
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function V(e, t) {
|
|
1729
1729
|
var r;
|
|
1730
1730
|
return (r = e.enum) != null && r.length ? e : {
|
|
1731
1731
|
...e,
|
|
@@ -1735,7 +1735,7 @@ function Z(e, t) {
|
|
|
1735
1735
|
function xr(e, t) {
|
|
1736
1736
|
var i, o, a, u;
|
|
1737
1737
|
const r = h(e.stringOptions, e, "stringOptions"), n = h(r.validation, r, "validation"), s = me(j((i = r.radioGroupOptions) == null ? void 0 : i.customOption), (o = r.radioGroupOptions) == null ? void 0 : o.options) || me(j((a = r.dropdownOptions) == null ? void 0 : a.customOption), (u = r.dropdownOptions) == null ? void 0 : u.options);
|
|
1738
|
-
return ee(
|
|
1738
|
+
return ee(V(n, s), t);
|
|
1739
1739
|
}
|
|
1740
1740
|
function wr(e, t) {
|
|
1741
1741
|
var r, n, s, i;
|
|
@@ -1974,7 +1974,7 @@ function Gr(e, t) {
|
|
|
1974
1974
|
...t.fields ?? [],
|
|
1975
1975
|
...t.deletedFields ?? []
|
|
1976
1976
|
].filter(Se).reduce((i, o) => (i[h(o.target, o, "target")] = o, i), {});
|
|
1977
|
-
return r.map((i) => Br(i, n[h(i.target, i, "target")])).filter(
|
|
1977
|
+
return r.map((i) => Br(i, n[h(i.target, i, "target")])).filter(It);
|
|
1978
1978
|
}
|
|
1979
1979
|
function Br(e, t) {
|
|
1980
1980
|
if (!t)
|
|
@@ -2015,7 +2015,7 @@ function pe(e, t) {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
2017
|
function qr(e, t) {
|
|
2018
|
-
const r = e.format ??
|
|
2018
|
+
const r = e.format ?? I.UNDEFINED, n = t.format ?? I.UNDEFINED;
|
|
2019
2019
|
return r !== n ? {
|
|
2020
2020
|
errorMessage: "Incompatible string format",
|
|
2021
2021
|
params: {
|
|
@@ -2069,8 +2069,8 @@ function On(e, t, r) {
|
|
|
2069
2069
|
zr({
|
|
2070
2070
|
limit: W((o = e.rulesLimit) == null ? void 0 : o.limit)
|
|
2071
2071
|
}),
|
|
2072
|
-
|
|
2073
|
-
featureRestricted:
|
|
2072
|
+
Zr({
|
|
2073
|
+
featureRestricted: Vr(on(e.features))
|
|
2074
2074
|
})
|
|
2075
2075
|
];
|
|
2076
2076
|
if (nn(r)) {
|
|
@@ -2093,7 +2093,7 @@ function On(e, t, r) {
|
|
|
2093
2093
|
function Ce(e, t, r) {
|
|
2094
2094
|
return e.map((n) => n(t, r)).filter(Boolean).map((n) => n);
|
|
2095
2095
|
}
|
|
2096
|
-
const kr = (e, t) => () => ne(e, t, t + 1) ? Jr(e) : null, Wr = ({ limit: e }) => (t, r) => ne(e, r.inputFieldsCount, t.inputFieldsCount) || le(e, r.inputFieldsCount, t.inputFieldIds, r.inputFieldIds) ? Qr(e) : null, Kr = ({ limit: e }) => (t, r) => ne(e, r.stepsCount, t.stepsCount) || le(e, r.stepsCount, t.stepsIds, r.stepsIds) ? en(e) : null, zr = ({ limit: e }) => (t, r) => ne(e, r.rulesCount, t.rulesCount) || le(e, r.rulesCount, t.rulesIds, r.rulesIds) ? tn(e) : null,
|
|
2096
|
+
const kr = (e, t) => () => ne(e, t, t + 1) ? Jr(e) : null, Wr = ({ limit: e }) => (t, r) => ne(e, r.inputFieldsCount, t.inputFieldsCount) || le(e, r.inputFieldsCount, t.inputFieldIds, r.inputFieldIds) ? Qr(e) : null, Kr = ({ limit: e }) => (t, r) => ne(e, r.stepsCount, t.stepsCount) || le(e, r.stepsCount, t.stepsIds, r.stepsIds) ? en(e) : null, zr = ({ limit: e }) => (t, r) => ne(e, r.rulesCount, t.rulesCount) || le(e, r.rulesCount, t.rulesIds, r.rulesIds) ? tn(e) : null, Zr = ({ featureRestricted: e }) => (t, r) => Ye(t.fileUploadFieldIds, r.fileUploadFieldIds).length && e(fe.FILE_UPLOAD_FIELD) ? rn() : null;
|
|
2097
2097
|
function Ye(e, t) {
|
|
2098
2098
|
const r = new Set(t);
|
|
2099
2099
|
return e.filter((n) => !r.has(n));
|
|
@@ -2104,7 +2104,7 @@ function ne(e, t, r) {
|
|
|
2104
2104
|
function le(e, t, r, n) {
|
|
2105
2105
|
return t > e && Ye(r, n).length && r.length > e;
|
|
2106
2106
|
}
|
|
2107
|
-
const
|
|
2107
|
+
const Vr = (e) => (t) => !e.some((r) => r === t);
|
|
2108
2108
|
function Jr(e) {
|
|
2109
2109
|
return {
|
|
2110
2110
|
errorPath: "form",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as S, a as p, C as N,
|
|
1
|
+
import { bm as n } from "./form-jK8ezTss.js";
|
|
2
|
+
import { A as S, a as p, C as N, aR as g, b6 as q, b7 as D, bo as L } from "./form-jK8ezTss.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a_ as c } from "./form-jK8ezTss.js";
|
|
2
2
|
var b, d;
|
|
3
3
|
function k() {
|
|
4
4
|
if (d) return b;
|
|
@@ -13,17 +13,17 @@ function I() {
|
|
|
13
13
|
var r = k(), e = typeof self == "object" && self && self.Object === Object && self, t = r || e || Function("return this")();
|
|
14
14
|
return f = t, f;
|
|
15
15
|
}
|
|
16
|
-
var s,
|
|
16
|
+
var s, _;
|
|
17
17
|
function R() {
|
|
18
|
-
if (
|
|
19
|
-
|
|
18
|
+
if (_) return s;
|
|
19
|
+
_ = 1;
|
|
20
20
|
var r = I(), e = r.Symbol;
|
|
21
21
|
return s = e, s;
|
|
22
22
|
}
|
|
23
|
-
var g,
|
|
23
|
+
var g, O;
|
|
24
24
|
function L() {
|
|
25
|
-
if (
|
|
26
|
-
|
|
25
|
+
if (O) return g;
|
|
26
|
+
O = 1;
|
|
27
27
|
var r = R(), e = Object.prototype, t = e.hasOwnProperty, i = e.toString, o = r ? r.toStringTag : void 0;
|
|
28
28
|
function u(n) {
|
|
29
29
|
var a = t.call(n, o), h = n[o];
|
|
@@ -68,7 +68,7 @@ function U() {
|
|
|
68
68
|
return v = r, v;
|
|
69
69
|
}
|
|
70
70
|
var T, p;
|
|
71
|
-
function
|
|
71
|
+
function z() {
|
|
72
72
|
if (p) return T;
|
|
73
73
|
p = 1;
|
|
74
74
|
function r(e) {
|
|
@@ -77,7 +77,7 @@ function V() {
|
|
|
77
77
|
return T = r, T;
|
|
78
78
|
}
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
z as a,
|
|
81
81
|
R as b,
|
|
82
82
|
N as c,
|
|
83
83
|
k as d,
|