@wix/form-elements 1.121.0 → 1.123.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-BmwzUTfZ.js → appointment-rac-CDI1Uxdc.js} +4 -4
- package/dist/component/{bookings-address-rac-CDpBaBGi.js → bookings-address-rac-nVBEkg-l.js} +1 -1
- package/dist/component/{bookings-email-rac-8AonBAEP.js → bookings-email-rac-NusPqaqf.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BAF3OLyL.js → bookings-first-name-rac-CYmrpEzR.js} +1 -1
- package/dist/component/{bookings-header-rac-DIXxOHe1.js → bookings-header-rac-TyM4Aoem.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Cm-58BWq.js → bookings-last-name-rac-D70Nn82q.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DvaiFVqg.js → bookings-login-bar-rac-BW-5tCEV.js} +1 -1
- package/dist/component/{bookings-phone-rac-znrjfRwm.js → bookings-phone-rac-CgMUDGs7.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DFPeWcrH.js → bookings-rich-text-rac-CWXyJPhn.js} +1 -1
- package/dist/component/{checkbox-field-rac-COvxqyF7.js → checkbox-field-rac-CsHe-LVL.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-DT1HX61N.js → checkbox-group-field-headless-B-mHaxSW.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Db1w6Vzm.js → checkbox-group-field-rac-BqZu8wit.js} +4 -4
- package/dist/component/{checkbox-group-rac-BCgFQJ4P.js → checkbox-group-rac-Blm4fyuE.js} +1 -1
- package/dist/component/{checkbox-rac-C1dKq2AT.js → checkbox-rac-tbwv1SXx.js} +1 -1
- package/dist/component/{contacts-address-rac-BoZ2LExb.js → contacts-address-rac-RHSnDiBQ.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CX-oJkwP.js → contacts-birthdate-rac-DKrGrNiq.js} +1 -1
- package/dist/component/{contacts-company-rac-ByY9oaOX.js → contacts-company-rac-DvOfTEo2.js} +1 -1
- package/dist/component/{contacts-email-rac-DBnTEm82.js → contacts-email-rac-a8JC9eRP.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Jn-ubMoS.js → contacts-first-name-rac-_AfphZiB.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Wea7_JU-.js → contacts-last-name-rac-BCmo1Jgg.js} +1 -1
- package/dist/component/{contacts-phone-rac-POYGTwBr.js → contacts-phone-rac-BXz4vG8P.js} +1 -1
- package/dist/component/{contacts-position-rac-DjDHNTfL.js → contacts-position-rac-DRaQJZaG.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C7vOLrLV.js → contacts-subscribe-rac-7U0svfJD.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C-CVis0b.js → contacts-tax-id-rac-CJqjUhmU.js} +1 -1
- package/dist/component/{date-availability-B3unFx4z.js → date-availability-CpS7yhir.js} +1 -1
- package/dist/component/date-input-field-rac-Dg2688SW.js +290 -0
- package/dist/component/{date-input-rac-BW_WuabB.js → date-input-rac-DzAp7gfu.js} +1 -1
- package/dist/component/{date-picker-field-rac-DgBfvDRc.js → date-picker-field-rac-FmAi7HRw.js} +117 -114
- package/dist/component/{date-picker-rac-B2v-E9tZ.js → date-picker-rac-BaI3r-CN.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DNxauQLv.js → date-time-input-field-rac-DeeDxW2B.js} +111 -111
- package/dist/component/{date-time-input-rac-DZMQuMlD.js → date-time-input-rac-DZ7QstRD.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B0u3i1v1.js → dext-checkbox-group-rac-BnAYHF94.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BngAFLbm.js → dext-checkbox-rac-BeZMCOBD.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CyPtZQQp.js → dext-date-picker-rac-BXUNloHW.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DBm_ZVMr.js → dext-date-time-input-rac-BKEQsTle.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DBDOigJS.js → dext-dropdown-rac-BSXZriDs.js} +1 -1
- package/dist/component/{dext-email-rac-Cj-eerfr.js → dext-email-rac-BGEEhLlh.js} +1 -1
- package/dist/component/{dext-number-input-rac-WdUIM6bV.js → dext-number-input-rac-D1S-fmne.js} +1 -1
- package/dist/component/{dext-phone-rac-CH-UDDKr.js → dext-phone-rac-DkPzLZJS.js} +1 -1
- package/dist/component/{dext-radio-group-rac-umexCSNY.js → dext-radio-group-rac-dje-ikGm.js} +2 -2
- package/dist/component/{dext-rating-input-rac-ukMPDLxU.js → dext-rating-input-rac-TMQudQVi.js} +1 -1
- package/dist/component/{dext-tags-rac-BE8aqyRm.js → dext-tags-rac-DxAn9OIc.js} +2 -2
- package/dist/component/{dext-text-area-rac-GtNDPetb.js → dext-text-area-rac-CqSmgEkA.js} +1 -1
- package/dist/component/{dext-text-input-rac-DQhaKaoe.js → dext-text-input-rac-Dufa7pEk.js} +1 -1
- package/dist/component/{dext-url-input-rac-DogsntOO.js → dext-url-input-rac-B-bq2rjx.js} +1 -1
- package/dist/component/{donation-rac-C1Se3wmU.js → donation-rac-RthojtHs.js} +5 -5
- package/dist/component/{dropdown-field-headless-5vi45azS.js → dropdown-field-headless-BjYVzoSD.js} +5 -5
- package/dist/component/{dropdown-field-rac-B0PeCuG6.js → dropdown-field-rac-BaVviXFZ.js} +18 -17
- package/dist/component/{dropdown-rac--ZgcFbpH.js → dropdown-rac-BG3WbzTb.js} +1 -1
- package/dist/component/{ecom-address-rac-C1p-fN1j.js → ecom-address-rac-DfmNtkCV.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-uplYmDWZ.js → ecom-subscription-checkbox-rac-CD8Dr0ne.js} +2 -2
- package/dist/component/{email-input-field-rac-C6nqydVv.js → email-input-field-rac-Cdu5shB9.js} +3 -3
- package/dist/component/{events-repeater-rac-CqKFo75H.js → events-repeater-rac-DAYVyB5v.js} +4 -4
- package/dist/component/{events-rsvp-rac-BBQwW-Jk.js → events-rsvp-rac-CahpGVaB.js} +3 -3
- package/dist/component/{field-error-headless-COObBNJG.js → field-error-headless-CiAAbUUq.js} +1 -1
- package/dist/component/{field-label-headless-DhXceghb.js → field-label-headless-__gDv8-J.js} +1 -1
- package/dist/component/{file-upload-rac-B5CnpgIo.js → file-upload-rac-D6CQpR7g.js} +4 -4
- package/dist/component/{fixed-payment-rac-B8yKRpQV.js → fixed-payment-rac-DG3yDYoQ.js} +3 -3
- package/dist/component/{form-CimhBiBc.js → form-DShmmziF.js} +691 -671
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BHgFF-LG.js → header-field-rac-hajh0rs_.js} +2 -2
- package/dist/component/{header-rac-DJttTbow.js → header-rac-BQ1xsvMj.js} +1 -1
- package/dist/component/{image-choice-rac-C-qj1WBS.js → image-choice-rac-CsfFQpHZ.js} +4 -4
- package/dist/component/{index-9nfSsqJo.js → index-BVG02INQ.js} +4 -4
- package/dist/component/{index-Qe91Dgi2.js → index-Cg67JISR.js} +2 -2
- package/dist/component/{isObjectLike-VICRth8V.js → isObjectLike-GeiErIiA.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DMg6V-0L.js → multiline-address-field-rac-ClphN9RJ.js} +369 -369
- package/dist/component/{multiline-address-rac-DpvB5bX9.js → multiline-address-rac-DuOAo8Sh.js} +1 -1
- package/dist/component/{number-input-field-rac-DQERdWaA.js → number-input-field-rac-DFZLQFdZ.js} +4 -4
- package/dist/component/{number-input-rac-DY9uyE-k.js → number-input-rac-BVQNQLNa.js} +1 -1
- package/dist/component/{password-rac-cSWH1LPy.js → password-rac-rIV1Uzdk.js} +4 -4
- package/dist/component/{payment-input-rac-BiUNnsQx.js → payment-input-rac-wi5HH2BY.js} +4 -4
- package/dist/component/phone-input-field-rac-DDiS4Bgs.js +507 -0
- package/dist/component/{phone-rac-CFeNcp2U.js → phone-rac-B-uILQ30.js} +1 -1
- package/dist/component/{product-list-rac-DzhnEmL_.js → product-list-rac-DCb9VDEs.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-BpsPgebu.js → quiz-radio-group-rac-kUUCW0-a.js} +1 -1
- package/dist/component/{radio-button-module-classes-NBKHsJH7.js → radio-button-module-classes-BXUuhtnh.js} +3 -3
- package/dist/component/{radio-group-field-rac-C2oTt1mT.js → radio-group-field-rac-UWL7EPPy.js} +4 -4
- package/dist/component/{radio-group-rac-oINHZ5yY.js → radio-group-rac-BFasnyaK.js} +1 -1
- package/dist/component/{rating-input-field-rac-fnv2RdUA.js → rating-input-field-rac-B4UUIk8Y.js} +4 -4
- package/dist/component/{rating-input-rac-BFofFzSX.js → rating-input-rac-wFswd01m.js} +1 -1
- package/dist/component/{rich-content-rac.module-BplXvCt6.js → rich-content-rac.module-BiksdLX3.js} +1 -1
- package/dist/component/{rich-text-field-rac-Csi4_gCV.js → rich-text-field-rac-Bfgj9VSa.js} +2 -2
- package/dist/component/{rich-text-rac-Btu1y3LR.js → rich-text-rac-DZLzNoGE.js} +1 -1
- package/dist/component/service-dropdown-rac-NouncKkn.js +146 -0
- package/dist/component/{services-multi-choice-rac-B2rAg7VN.js → services-multi-choice-rac-CokpcneC.js} +5 -5
- package/dist/component/{signature-rac-tznFgZ4j.js → signature-rac-BfnTVTGo.js} +3 -3
- package/dist/component/submit-button-rac-DzL9deH3.js +172 -0
- package/dist/component/{tags-field-rac-DFm9o85s.js → tags-field-rac-_nQTfOdL.js} +5 -5
- package/dist/component/{tags-rac-CJFccYp5.js → tags-rac-DBSE9BHd.js} +1 -1
- package/dist/component/{text-area-field-rac-C4UEZOjz.js → text-area-field-rac-qlOrVhaN.js} +4 -4
- package/dist/component/{text-area-rac-Dhsq1l8f.js → text-area-rac-WJklNHfd.js} +1 -1
- package/dist/component/{text-input-field-rac-DiW0Sqj_.js → text-input-field-rac-DdeVJ8WD.js} +3 -3
- package/dist/component/{text-input-headless-u1_aFnZ1.js → text-input-headless-BJk7hB4Y.js} +3 -3
- package/dist/component/{text-input-rac-COy-c4N_.js → text-input-rac-DfK9CdZa.js} +1 -1
- package/dist/component/{time-input-rac-DipZQTZN.js → time-input-rac-DmeLSDWa.js} +4 -4
- package/dist/component/{url-input-field-rac-DhBCGvKd.js → url-input-field-rac-CxBzFUZ6.js} +4 -4
- package/dist/component/{url-input-rac-kw4gCDbc.js → url-input-rac-Cn8ZUtiC.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-Bes6rpX4.js → use-dropdown-option-class-name-BbVXUebo.js} +2 -2
- package/dist/component/use-dropdown-trigger-class-name-CZrmTGE3.js +43 -0
- package/dist/component/{use-element-state-class-name-_GWfwpEf.js → use-element-state-class-name-B21H07XJ.js} +1 -1
- package/dist/component/use-hoverable-input-class-name-D_sATUQv.js +23 -0
- package/dist/component/{use-service-options-base-4yrjmSWU.js → use-service-options-base-DD6-_eVN.js} +1 -1
- package/dist/component/use-text-input-class-name-DNA3i28w.js +6 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-BW0c1-Kl.js +0 -290
- package/dist/component/phone-input-field-rac-CtPGbnw_.js +0 -504
- package/dist/component/service-dropdown-rac-CzZW7Bp1.js +0 -145
- package/dist/component/submit-button-rac-DnHWbtTC.js +0 -141
- package/dist/component/use-is-forced-open-dropdown-RE1Ml2A3.js +0 -41
- package/dist/component/use-text-input-class-name-uMLXv54u.js +0 -23
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import t, { useRef as y, useCallback as f } from "react";
|
|
2
|
-
import P from "@wix/editor-react-components/AnimatedIcon";
|
|
3
|
-
import S from "classnames";
|
|
4
|
-
import { b9 as B, b3 as h, a4 as A, a3 as I, a7 as O, a9 as w, b as F, a8 as R } from "./form-CimhBiBc.js";
|
|
5
|
-
import { ProgressBar as k, Button as N } from "react-aria-components";
|
|
6
|
-
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
function M(n) {
|
|
8
|
-
const s = "calc(50% - 2px)";
|
|
9
|
-
return /* @__PURE__ */ t.createElement(k, {
|
|
10
|
-
...n,
|
|
11
|
-
isIndeterminate: !0
|
|
12
|
-
}, ({ percentage: e, isIndeterminate: r }) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("svg", {
|
|
13
|
-
fill: "none",
|
|
14
|
-
width: "100%",
|
|
15
|
-
height: "100%",
|
|
16
|
-
viewBox: "0 0 32 32"
|
|
17
|
-
}, /* @__PURE__ */ t.createElement("circle", {
|
|
18
|
-
cx: "50%",
|
|
19
|
-
cy: "50%",
|
|
20
|
-
r: s
|
|
21
|
-
}), /* @__PURE__ */ t.createElement("circle", {
|
|
22
|
-
cx: "50%",
|
|
23
|
-
cy: "50%",
|
|
24
|
-
r: s,
|
|
25
|
-
// Normalize the path length to 100 so we can easily set stroke-dasharray/-offset to a percentage.
|
|
26
|
-
pathLength: "100",
|
|
27
|
-
strokeDasharray: r || e == null ? "25 100" : "100 100",
|
|
28
|
-
strokeDashoffset: r || e == null ? 0 : 100 - e,
|
|
29
|
-
strokeLinecap: "round"
|
|
30
|
-
}, r && /* @__PURE__ */ t.createElement("animateTransform", {
|
|
31
|
-
attributeName: "transform",
|
|
32
|
-
type: "rotate",
|
|
33
|
-
// Rotate around the circle's own center (viewBox is 32x32), not the SVG origin.
|
|
34
|
-
values: "0 16 16;360 16 16",
|
|
35
|
-
dur: "0.75s",
|
|
36
|
-
repeatCount: "indefinite"
|
|
37
|
-
})))));
|
|
38
|
-
}
|
|
39
|
-
const u = ({ children: n }) => {
|
|
40
|
-
const { id: o, FieldLayout: s } = B(), e = c(n, u.SubmitButton);
|
|
41
|
-
return /* @__PURE__ */ t.createElement(s, {
|
|
42
|
-
fieldId: o,
|
|
43
|
-
renderLabel: () => null,
|
|
44
|
-
renderInput: () => /* @__PURE__ */ t.createElement(t.Fragment, null, e),
|
|
45
|
-
renderDescription: () => null
|
|
46
|
-
});
|
|
47
|
-
}, _ = ({ className: n, children: o }) => {
|
|
48
|
-
const s = c(o, C), e = c(o, x), r = c(o, i);
|
|
49
|
-
return /* @__PURE__ */ t.createElement("div", {
|
|
50
|
-
className: n
|
|
51
|
-
}, s, e, r);
|
|
52
|
-
}, C = ({ className: n }) => {
|
|
53
|
-
const { showPreviousButton: o, onPreviousClick: s, previousText: e } = B();
|
|
54
|
-
return o ? /* @__PURE__ */ t.createElement(N, {
|
|
55
|
-
className: n,
|
|
56
|
-
onPress: s
|
|
57
|
-
}, e) : null;
|
|
58
|
-
}, x = ({ className: n }) => {
|
|
59
|
-
const { showNextButton: o, onNextClick: s, nextText: e } = B();
|
|
60
|
-
return o ? /* @__PURE__ */ t.createElement(N, {
|
|
61
|
-
className: n,
|
|
62
|
-
onPress: s
|
|
63
|
-
}, e) : null;
|
|
64
|
-
}, i = ({ className: n, onHoverStart: o, onHoverEnd: s, children: e }) => {
|
|
65
|
-
const { showSubmitButton: r, onSubmitClick: b, submitText: p, isDisabled: E, isInProgress: m, isSubmitting: v } = B();
|
|
66
|
-
if (!r)
|
|
67
|
-
return null;
|
|
68
|
-
const l = c(e, i.Label), L = c(e, i.Icon), g = c(e, i.Loader), d = v || m;
|
|
69
|
-
return /* @__PURE__ */ t.createElement(N, {
|
|
70
|
-
className: n,
|
|
71
|
-
"aria-label": p,
|
|
72
|
-
onPress: d ? void 0 : b,
|
|
73
|
-
onHoverStart: o,
|
|
74
|
-
onHoverEnd: s,
|
|
75
|
-
isDisabled: E && !d,
|
|
76
|
-
"aria-disabled": d || void 0,
|
|
77
|
-
"data-in-progress": m
|
|
78
|
-
}, m && g ? g : /* @__PURE__ */ t.createElement(t.Fragment, null, l ?? /* @__PURE__ */ t.createElement(T, null), L));
|
|
79
|
-
}, T = ({ className: n }) => {
|
|
80
|
-
const { submitText: o } = B();
|
|
81
|
-
return /* @__PURE__ */ t.createElement("span", {
|
|
82
|
-
className: n
|
|
83
|
-
}, o);
|
|
84
|
-
}, U = ({ children: n }) => /* @__PURE__ */ t.createElement(t.Fragment, null, n), D = ({ className: n }) => /* @__PURE__ */ t.createElement("span", {
|
|
85
|
-
className: n
|
|
86
|
-
}, /* @__PURE__ */ t.createElement(M, null));
|
|
87
|
-
i.Label = T;
|
|
88
|
-
i.Icon = U;
|
|
89
|
-
i.Loader = D;
|
|
90
|
-
_.PreviousButton = C;
|
|
91
|
-
_.NextButton = x;
|
|
92
|
-
_.SubmitButton = i;
|
|
93
|
-
u.SubmitButton = _;
|
|
94
|
-
const H = "_navigationContainer_nvvyn_1", W = "_rowSpacing_nvvyn_6", V = "_navigationButton_nvvyn_10", X = "_nextButton_nvvyn_24", $ = "_previousButton_nvvyn_47", j = "_button_nvvyn_90", q = "_buttonNoSteps_nvvyn_133", z = "_buttonWithSteps_nvvyn_137", G = "_progress_nvvyn_165", a = {
|
|
95
|
-
navigationContainer: H,
|
|
96
|
-
rowSpacing: W,
|
|
97
|
-
navigationButton: V,
|
|
98
|
-
nextButton: X,
|
|
99
|
-
previousButton: $,
|
|
100
|
-
button: j,
|
|
101
|
-
buttonNoSteps: q,
|
|
102
|
-
buttonWithSteps: z,
|
|
103
|
-
progress: G
|
|
104
|
-
}, J = () => {
|
|
105
|
-
var m, v;
|
|
106
|
-
const { hasSteps: n, showPreviousButton: o } = B(), { wix: s, className: e, ...r } = ((v = (m = h().submitButton) == null ? void 0 : m.elementProps) == null ? void 0 : v.icon) ?? {}, b = y(null), p = f(() => {
|
|
107
|
-
var l;
|
|
108
|
-
return (l = b.current) == null ? void 0 : l.runAnimationForward();
|
|
109
|
-
}, []), E = f(() => {
|
|
110
|
-
var l;
|
|
111
|
-
return (l = b.current) == null ? void 0 : l.runAnimationBackward();
|
|
112
|
-
}, []);
|
|
113
|
-
return /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement(u.SubmitButton, {
|
|
114
|
-
className: S({
|
|
115
|
-
[a.navigationContainer]: n,
|
|
116
|
-
[a.rowSpacing]: o
|
|
117
|
-
})
|
|
118
|
-
}, /* @__PURE__ */ t.createElement(u.SubmitButton.PreviousButton, {
|
|
119
|
-
className: S(A, a.navigationButton, a.previousButton)
|
|
120
|
-
}), /* @__PURE__ */ t.createElement(u.SubmitButton.NextButton, {
|
|
121
|
-
className: S(I, a.navigationButton, a.nextButton)
|
|
122
|
-
}), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton, {
|
|
123
|
-
className: S(O, a.button, {
|
|
124
|
-
[a.buttonNoSteps]: !n,
|
|
125
|
-
[a.buttonWithSteps]: n
|
|
126
|
-
}),
|
|
127
|
-
onHoverStart: p,
|
|
128
|
-
onHoverEnd: E
|
|
129
|
-
}, /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Label, {
|
|
130
|
-
className: w
|
|
131
|
-
}), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Icon, null, r.svg ? /* @__PURE__ */ t.createElement(P, {
|
|
132
|
-
...r,
|
|
133
|
-
ref: b,
|
|
134
|
-
className: S(F, R, e)
|
|
135
|
-
}) : null), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Loader, {
|
|
136
|
-
className: a.progress
|
|
137
|
-
}))));
|
|
138
|
-
}, et = () => /* @__PURE__ */ t.createElement(J, null);
|
|
139
|
-
export {
|
|
140
|
-
et as SubmitButtonRAC
|
|
141
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { useContext as T, useMemo as p } from "react";
|
|
2
|
-
import { b3 as u, ag as O, b1 as _, F as n } from "./form-CimhBiBc.js";
|
|
3
|
-
const a = [
|
|
4
|
-
n.DROPDOWN,
|
|
5
|
-
n.DEXT_DROPDOWN,
|
|
6
|
-
n.SERVICES_DROPDOWN,
|
|
7
|
-
n.DATE_INPUT,
|
|
8
|
-
n.CONTACTS_BIRTHDATE,
|
|
9
|
-
n.DATE_TIME_INPUT,
|
|
10
|
-
n.DEXT_DATE_TIME_INPUT,
|
|
11
|
-
n.DATE_PICKER,
|
|
12
|
-
n.DEXT_DATE_PICKER
|
|
13
|
-
], d = [
|
|
14
|
-
n.PHONE,
|
|
15
|
-
n.CONTACTS_PHONE,
|
|
16
|
-
n.BOOKINGS_PHONE,
|
|
17
|
-
n.DEXT_PHONE
|
|
18
|
-
], I = [
|
|
19
|
-
n.MULTILINE_ADDRESS,
|
|
20
|
-
n.BOOKINGS_ADDRESS,
|
|
21
|
-
n.ECOM_ADDRESS
|
|
22
|
-
], P = ({ properties: o }) => {
|
|
23
|
-
var t, e, s, r;
|
|
24
|
-
return ((r = (s = (e = (t = o.validation) == null ? void 0 : t.string) == null ? void 0 : e.phoneOptions) == null ? void 0 : s.allowedCountryCodes) == null ? void 0 : r.length) !== 1;
|
|
25
|
-
}, S = ({ properties: o }) => {
|
|
26
|
-
var t, e;
|
|
27
|
-
return ((e = (t = o.fieldSettings) == null ? void 0 : t.country) == null ? void 0 : e.show) !== !1;
|
|
28
|
-
}, c = (o, t) => d.includes(o.fieldType) ? !t && P(o) : I.includes(o.fieldType) ? S(o) : a.includes(o.fieldType), l = (o, t) => c(o, t) && !o.properties.hidden && !o.properties.disabled && !o.properties.readOnly, N = (o, t) => o.layout.row - t.layout.row || o.layout.column - t.layout.column, w = (o) => {
|
|
29
|
-
var E;
|
|
30
|
-
const t = ((E = u().dropdown) == null ? void 0 : E.open) === !0, e = T(O), { isMobile: s = !1 } = _(), r = p(() => {
|
|
31
|
-
var D;
|
|
32
|
-
return e && !e.parentId ? (D = e.fields.filter((i) => l(i, s)).sort(N)[0]) == null ? void 0 : D.id : void 0;
|
|
33
|
-
}, [
|
|
34
|
-
e,
|
|
35
|
-
s
|
|
36
|
-
]);
|
|
37
|
-
return t && r === o;
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
w as u
|
|
41
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { b9 as r, _ as i } from "./form-CimhBiBc.js";
|
|
2
|
-
import { s } from "./field-rac.module-B4l_0KRU.js";
|
|
3
|
-
import { u as m } from "./use-element-state-class-name-_GWfwpEf.js";
|
|
4
|
-
const d = (...e) => {
|
|
5
|
-
const { disabled: a, readOnly: t } = r(), o = m({
|
|
6
|
-
globalClasses: i,
|
|
7
|
-
moduleClasses: {
|
|
8
|
-
base: [
|
|
9
|
-
s.input,
|
|
10
|
-
...e
|
|
11
|
-
].join(" "),
|
|
12
|
-
hover: s.inputHover
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
return ({ isHovered: l }) => o({
|
|
16
|
-
isSelected: !1,
|
|
17
|
-
isHovered: l,
|
|
18
|
-
isInteractive: !a && !t
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
d as u
|
|
23
|
-
};
|