@wix/form-elements 1.142.0 → 1.144.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-BAwonF75.js → appointment-rac-BxrHjvGM.js} +93 -93
- package/dist/component/{bookings-address-rac-xhj2n7jK.js → bookings-address-rac-CLWQa4ND.js} +1 -1
- package/dist/component/{bookings-email-rac-BGjeAwgm.js → bookings-email-rac-DZemUnFy.js} +1 -1
- package/dist/component/{bookings-first-name-rac-l392yYAU.js → bookings-first-name-rac-DyGMqRWi.js} +1 -1
- package/dist/component/{bookings-header-rac-JwIo7hsJ.js → bookings-header-rac-DmUeRhWl.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CJp81BPl.js → bookings-last-name-rac-DOuCYe0Q.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BiPklGE_.js → bookings-login-bar-rac-BnmS1sak.js} +1 -1
- package/dist/component/{bookings-phone-rac-mQfDJGkK.js → bookings-phone-rac-F5YJaXHy.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BOfHn2EU.js → bookings-rich-text-rac-DAuqLM8j.js} +1 -1
- package/dist/component/{checkbox-field-rac-CA6SeM0c.js → checkbox-field-rac-DsQrwgzd.js} +83 -83
- package/dist/component/{checkbox-group-field-headless-ChLT0zKA.js → checkbox-group-field-headless-oPw2miey.js} +61 -61
- package/dist/component/{checkbox-group-field-rac-_Fkre79S.js → checkbox-group-field-rac-hPscGPkW.js} +4 -4
- package/dist/component/{checkbox-group-rac-esBLJZ6Y.js → checkbox-group-rac-DuIn-RKl.js} +1 -1
- package/dist/component/{checkbox-rac-C3vXtbJh.js → checkbox-rac-C_-b9_8s.js} +1 -1
- package/dist/component/{contacts-address-rac-BuBBBt19.js → contacts-address-rac-CbIN1ubI.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BMBJeVOK.js → contacts-birthdate-rac-B-ek4Puf.js} +1 -1
- package/dist/component/{contacts-company-rac-CZl168-E.js → contacts-company-rac-D2xGgOC0.js} +1 -1
- package/dist/component/{contacts-email-rac-CJgVzCns.js → contacts-email-rac-CpbAyHUl.js} +1 -1
- package/dist/component/{contacts-first-name-rac-9ZNYKQeb.js → contacts-first-name-rac-DM0Uki6x.js} +1 -1
- package/dist/component/{contacts-last-name-rac-KgylQwHW.js → contacts-last-name-rac-DV9wrigX.js} +1 -1
- package/dist/component/{contacts-phone-rac-DYr30FLP.js → contacts-phone-rac-mIYYC0y2.js} +1 -1
- package/dist/component/{contacts-position-rac-B9BZZ3K9.js → contacts-position-rac-fYTx4IXC.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DOQb2GLm.js → contacts-subscribe-rac-nm5CFJHt.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-cYE1ehXN.js → contacts-tax-id-rac-D4RFJf-S.js} +1 -1
- package/dist/component/{date-availability-BOKvA8w-.js → date-availability-DKQ4Swlg.js} +1 -1
- package/dist/component/{date-input-field-rac-BwY53gNr.js → date-input-field-rac-DKZ-7UN1.js} +45 -45
- package/dist/component/{date-input-rac-Cgg4QJbB.js → date-input-rac-BbpWo9w0.js} +1 -1
- package/dist/component/{date-picker-field-rac-0Ue6uiCM.js → date-picker-field-rac-Bza70SYg.js} +11 -11
- package/dist/component/{date-picker-rac-CgICj33f.js → date-picker-rac-Ck7bd17y.js} +1 -1
- package/dist/component/{date-time-input-field-rac-ChRCMk7_.js → date-time-input-field-rac-DpAx183s.js} +21 -21
- package/dist/component/{date-time-input-rac-B8tRZrri.js → date-time-input-rac-CAL-qDqR.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B_qjx1QD.js → dext-checkbox-group-rac-DLk1zE8Z.js} +4 -4
- package/dist/component/{dext-checkbox-rac-Bw9SyhHA.js → dext-checkbox-rac-K0JY8ypt.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Bzn28zNq.js → dext-date-picker-rac-BIkqhNQ0.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-7Cuk3PoA.js → dext-date-time-input-rac-heYLj9qT.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Md1VI5pc.js → dext-dropdown-rac-CE-hsE0g.js} +1 -1
- package/dist/component/{dext-email-rac-DbHwHGKz.js → dext-email-rac-Djui3aGr.js} +1 -1
- package/dist/component/{dext-number-input-rac-DIVk3zXL.js → dext-number-input-rac-Up-zsZwY.js} +1 -1
- package/dist/component/{dext-phone-rac-ZIya63UJ.js → dext-phone-rac-BnBq1KKf.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DV1xHkOD.js → dext-radio-group-rac-D8EsvhLV.js} +4 -4
- package/dist/component/{dext-rating-input-rac-YRIYgeT4.js → dext-rating-input-rac-BW6NPU1S.js} +1 -1
- package/dist/component/{dext-tags-rac-DTJ6Pz_x.js → dext-tags-rac--c_tiq-o.js} +4 -4
- package/dist/component/{dext-text-area-rac-V-d9i95A.js → dext-text-area-rac-CKFhfgDq.js} +1 -1
- package/dist/component/{dext-text-input-rac-ccrundX-.js → dext-text-input-rac-CEcBfKSe.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bd5SZ2U4.js → dext-url-input-rac-C4tT1NeS.js} +1 -1
- package/dist/component/{donation-rac-BFmpW-3b.js → donation-rac-Bqo7AUci.js} +52 -52
- package/dist/component/{dropdown-field-headless-C2qgeReH.js → dropdown-field-headless-DMQSalL1.js} +22 -22
- package/dist/component/{dropdown-field-rac-Bj1YSgpT.js → dropdown-field-rac-C31YjVhV.js} +4 -4
- package/dist/component/{dropdown-rac-DfdvX5I5.js → dropdown-rac-B6AZlzZ8.js} +1 -1
- package/dist/component/{ecom-address-rac-DOWNQhhX.js → ecom-address-rac-3pW-jse0.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-2ELdC1ql.js → ecom-subscription-checkbox-rac-Ms4JDivZ.js} +5 -5
- package/dist/component/{email-input-field-rac-CY0U6vEM.js → email-input-field-rac-UJOSd8si.js} +46 -46
- package/dist/component/{events-repeater-rac-C2oo_RZt.js → events-repeater-rac-fs9cQREp.js} +4 -4
- package/dist/component/{events-rsvp-rac-BrimIo0r.js → events-rsvp-rac-DRLspNfK.js} +3 -3
- package/dist/component/{field-error-headless-r0fX50xw.js → field-error-headless-CyoNrDMA.js} +9 -9
- package/dist/component/field-label-headless-vs578Vt6.js +52 -0
- package/dist/component/{file-upload-rac-Beb2BcFK.js → file-upload-rac-DDAMgm1b.js} +53 -53
- package/dist/component/{fixed-payment-rac-DGFWYMZG.js → fixed-payment-rac-DRs5yPZ8.js} +12 -12
- package/dist/component/{form-DtzwuBIo.js → form-D-pcluMZ.js} +373 -341
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-CVmGSa0E.js → header-field-rac-BtLFBccj.js} +4 -4
- package/dist/component/{header-rac-C3AEJmYN.js → header-rac-CNx4qpAR.js} +1 -1
- package/dist/component/{image-choice-rac-Ch-mxLgP.js → image-choice-rac-D-PsWyfU.js} +10 -10
- package/dist/component/{index-CmqLlW8X.js → index-B7rRv0cm.js} +43 -43
- package/dist/component/{index-CTn6AQ3A.js → index-D4Jdw7jg.js} +2 -2
- package/dist/component/{isObjectLike-iyypwAQL.js → isObjectLike-DyNk-Hsj.js} +7 -7
- package/dist/component/{multiline-address-field-rac-DJXcb6NG.js → multiline-address-field-rac-CowUg4Dk.js} +94 -94
- package/dist/component/{multiline-address-rac-DcZgTx1c.js → multiline-address-rac-CHLN9iqR.js} +1 -1
- package/dist/component/{number-input-field-rac-W3TqQGhC.js → number-input-field-rac-Clow9sWB.js} +21 -21
- package/dist/component/{number-input-rac-CdXigsba.js → number-input-rac-CeUW4WGL.js} +1 -1
- package/dist/component/{password-rac-Dph6984u.js → password-rac-_FBw3XON.js} +7 -7
- package/dist/component/{payment-input-rac-D5ARk1lF.js → payment-input-rac-CmeiCGKm.js} +17 -17
- package/dist/component/{phone-input-field-rac-BUfe-B2i.js → phone-input-field-rac-PIpEcS6h.js} +24 -24
- package/dist/component/{phone-rac-DTiWT1uy.js → phone-rac-D-RF_Dc1.js} +1 -1
- package/dist/component/{product-list-rac-1_Q2JYwH.js → product-list-rac-CveI0FCQ.js} +31 -31
- package/dist/component/{quiz-radio-group-rac-iyBhi0wJ.js → quiz-radio-group-rac-DmL5sv4m.js} +1 -1
- package/dist/component/{radio-button-module-classes-DwfobXBe.js → radio-button-module-classes-D6eJdPov.js} +11 -11
- package/dist/component/{radio-group-field-rac-BkKNVwMi.js → radio-group-field-rac-CuTxslBP.js} +4 -4
- package/dist/component/{radio-group-rac-CH0nkJ8V.js → radio-group-rac-D1N9mKdI.js} +1 -1
- package/dist/component/{rating-input-field-rac-CUUUlgZi.js → rating-input-field-rac-tPHYwerw.js} +12 -12
- package/dist/component/{rating-input-rac-8yEiqBR5.js → rating-input-rac-BoYlGaYG.js} +1 -1
- package/dist/component/{rich-content-rac.module-DeKU0pwh.js → rich-content-rac.module-BEpM1wGw.js} +3 -3
- package/dist/component/{rich-text-field-rac-Cwd-RWTi.js → rich-text-field-rac-DIBDp9fN.js} +4 -4
- package/dist/component/{rich-text-rac-C5-jPNYP.js → rich-text-rac-QNvqlXOl.js} +1 -1
- package/dist/component/{service-dropdown-rac-DBGAnsut.js → service-dropdown-rac-BUka_sF2.js} +30 -30
- package/dist/component/{services-multi-choice-rac-CqEoGsuw.js → services-multi-choice-rac-Dsy5tWby.js} +5 -5
- package/dist/component/{signature-rac-Cq3y66Cr.js → signature-rac-K1d_jHlU.js} +37 -37
- package/dist/component/submit-button-rac-BRJtuej2.js +228 -0
- package/dist/component/{tags-field-rac-CpJ0O9f_.js → tags-field-rac-BaBbtHcw.js} +16 -16
- package/dist/component/{tags-rac-BPjw67Po.js → tags-rac-DDg6W18e.js} +1 -1
- package/dist/component/{text-area-field-rac-BG6MJuIW.js → text-area-field-rac-CB97Y6o1.js} +9 -9
- package/dist/component/{text-area-rac-BAS4F4VC.js → text-area-rac-E091fvmB.js} +1 -1
- package/dist/component/{text-input-field-rac-BhMktcEd.js → text-input-field-rac-BiSQ4pDp.js} +3 -3
- package/dist/component/{text-input-headless-Bpjd70nh.js → text-input-headless-BKxooAsH.js} +7 -7
- package/dist/component/{text-input-rac-Bj21XKGA.js → text-input-rac-N2D8bqU4.js} +1 -1
- package/dist/component/{time-input-rac-DBpRHdnX.js → time-input-rac-CMVYeoxi.js} +33 -33
- package/dist/component/{url-input-field-rac-B_EMXVWh.js → url-input-field-rac-BWpn4TfK.js} +24 -24
- package/dist/component/{url-input-rac-D0Ck-9KV.js → url-input-rac-U19lGKwd.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CkpHwC6t.js → use-dropdown-option-class-name-DK1HCEOC.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-DmDwpAVn.js → use-dropdown-trigger-class-name-XS469pt3.js} +4 -4
- package/dist/component/{use-element-state-class-name-BrgdwHYP.js → use-element-state-class-name-BdjEjAk1.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-qVo45l-t.js → use-hoverable-input-class-name-7nSuBlNd.js} +6 -6
- package/dist/component/{use-service-options-base-Dlqs4p0Z.js → use-service-options-base-Bxw3_pyC.js} +1 -1
- package/dist/component/use-text-input-class-name-BB5fT5S6.js +6 -0
- package/dist/form.d.ts +36 -0
- package/package.json +2 -2
- package/dist/component/field-label-headless-D-kCfg8j.js +0 -52
- package/dist/component/submit-button-rac-CKM7yUL4.js +0 -172
- package/dist/component/use-text-input-class-name-CP2VJOso.js +0 -6
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
2
2
|
import L from "classnames";
|
|
3
|
-
import r, { useMemo as q, createContext as We, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as
|
|
4
|
-
import { UNSAFE_PortalProvider as
|
|
5
|
-
import {
|
|
3
|
+
import r, { useMemo as q, createContext as We, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as _e } from "react";
|
|
4
|
+
import { UNSAFE_PortalProvider as _t } from "react-aria";
|
|
5
|
+
import { bi as ft, d as yt, bd as Pt, bf as Ct, aS as Tt, aT as wt, aL as Mt, aR as U, F as K, bx as Pe, b6 as lt, bn as P, bk as T, bp as ae, bj as It, aX as qt, C as Oe, b4 as xt, b8 as Bt, bu as kt, bo as $t, bt as Vt, bb as Wt, b0 as Ut, ba as Kt, bq as Yt, ar as Ht, R as z, $ as Q, x as ge, G as Z, u as ee } from "./form-D-pcluMZ.js";
|
|
6
6
|
import { f as E, a as F } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { F as jt, V as Jt } from "./headless-styles-CmcyA_pi.js";
|
|
8
|
-
import { a as
|
|
8
|
+
import { a as Xt, u as Gt } from "./use-dropdown-trigger-class-name-XS469pt3.js";
|
|
9
9
|
import { TextField as fe, Input as le, ComboBoxStateContext as Ue, ComboBox as he, Popover as De, ListBox as Te, ListBoxItem as Se, Group as Lt, Button as Nt } from "react-aria-components";
|
|
10
|
-
import { D as ie, E as ce } from "./field-error-headless-
|
|
11
|
-
import { L as de } from "./field-label-headless-
|
|
12
|
-
import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-
|
|
13
|
-
import { V as en, u as tn } from "./use-dropdown-option-class-name-
|
|
10
|
+
import { D as ie, E as ce } from "./field-error-headless-CyoNrDMA.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-vs578Vt6.js";
|
|
12
|
+
import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-DyNk-Hsj.js";
|
|
13
|
+
import { V as en, u as tn } from "./use-dropdown-option-class-name-DK1HCEOC.js";
|
|
14
14
|
import { u as nn } from "./use-invoke-callback-UH73A_J3.js";
|
|
15
15
|
import { C as it } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as we } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as I } from "./field-rac.module-DfEb7pBp.js";
|
|
19
|
-
import { u as rn } from "./use-text-input-class-name-
|
|
19
|
+
import { u as rn } from "./use-text-input-class-name-BB5fT5S6.js";
|
|
20
20
|
const on = (e, t, o) => {
|
|
21
21
|
var a, l, i, s;
|
|
22
22
|
const n = (a = e.steps) == null ? void 0 : a.map((d) => {
|
|
@@ -177,7 +177,7 @@ const dn = (e, t) => e.map((o) => ({
|
|
|
177
177
|
street_number: U(),
|
|
178
178
|
apartment: U()
|
|
179
179
|
}), Cn = ({ id: e, target: t, fieldType: o, form: n, country: a, fieldSettings: l, validation: i, required: s }) => {
|
|
180
|
-
const [d] = be(yn), { isExperimentEnabled: m } = ft(), u = m(yt.USE_FIELDS_V2), { getCountryAddressForm: y } =
|
|
180
|
+
const [d] = be(yn), { isExperimentEnabled: m } = ft(), u = m(yt.USE_FIELDS_V2), { getCountryAddressForm: y } = Pt(), { isMobile: C, breakpoint: b } = Ct(), p = y(a), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N = q(() => {
|
|
181
181
|
var O;
|
|
182
182
|
return Tt(s, (O = i == null ? void 0 : i.predefined) == null ? void 0 : O.multilineAddressOptions);
|
|
183
183
|
}, [
|
|
@@ -186,7 +186,7 @@ const dn = (e, t) => e.map((o) => ({
|
|
|
186
186
|
]), S = q(() => wt(), []);
|
|
187
187
|
return {
|
|
188
188
|
form: q(() => {
|
|
189
|
-
var
|
|
189
|
+
var _, g;
|
|
190
190
|
if (!f || !p)
|
|
191
191
|
return n && {
|
|
192
192
|
...n,
|
|
@@ -199,7 +199,7 @@ const dn = (e, t) => e.map((o) => ({
|
|
|
199
199
|
includeHiddenFields: !0,
|
|
200
200
|
isMobile: C,
|
|
201
201
|
breakpoint: b,
|
|
202
|
-
form: cn(on(p, N, S), l, (g = (
|
|
202
|
+
form: cn(on(p, N, S), l, (g = (_ = i == null ? void 0 : i.predefined) == null ? void 0 : _.multilineAddressOptions) == null ? void 0 : g.fields)
|
|
203
203
|
});
|
|
204
204
|
if (!O.fields.some((v) => v.properties.hidden))
|
|
205
205
|
return O;
|
|
@@ -242,11 +242,11 @@ function ue(e) {
|
|
|
242
242
|
return t.fields[e];
|
|
243
243
|
}
|
|
244
244
|
function pe(e) {
|
|
245
|
-
const { t } =
|
|
245
|
+
const { t } = Pe(), o = Le(), n = o && lt.getCountryByShortKey(o), l = (n ? n.addressPartDisplayNames : lt.getDefaultAddressDisplayNames())[e];
|
|
246
246
|
return l ? t(l) : "";
|
|
247
247
|
}
|
|
248
248
|
const ne = ({ children: e }) => {
|
|
249
|
-
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } =
|
|
249
|
+
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), C = pe("addressLine2"), b = E(e, ne.Label), p = E(e, ne.Input), f = E(e, ne.Description), N = E(e, ne.Error);
|
|
250
250
|
return /* @__PURE__ */ r.createElement(u, {
|
|
251
251
|
fieldId: t,
|
|
252
252
|
renderLabel: () => F(b, {
|
|
@@ -266,7 +266,7 @@ const ne = ({ children: e }) => {
|
|
|
266
266
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, N, f)
|
|
267
267
|
});
|
|
268
268
|
}, Ln = ({ className: e }) => {
|
|
269
|
-
const { id: t, placeholder: o } =
|
|
269
|
+
const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
|
|
270
270
|
return ae(() => {
|
|
271
271
|
var i;
|
|
272
272
|
(i = l.current) == null || i.focus();
|
|
@@ -389,7 +389,7 @@ function hn() {
|
|
|
389
389
|
function w(D) {
|
|
390
390
|
return N = D, p = setTimeout(v, d), S ? A(D) : b;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function _(D) {
|
|
393
393
|
var J = D - f, Ee = D - N, Ne = d - J;
|
|
394
394
|
return h ? l(Ne, C - Ee) : Ne;
|
|
395
395
|
}
|
|
@@ -401,7 +401,7 @@ function hn() {
|
|
|
401
401
|
var D = t();
|
|
402
402
|
if (g(D))
|
|
403
403
|
return me(D);
|
|
404
|
-
p = setTimeout(v,
|
|
404
|
+
p = setTimeout(v, _(D));
|
|
405
405
|
}
|
|
406
406
|
function me(D) {
|
|
407
407
|
return p = void 0, O && u ? A(D) : (u = y = void 0, b);
|
|
@@ -433,7 +433,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
|
433
433
|
}, o), [
|
|
434
434
|
o
|
|
435
435
|
]);
|
|
436
|
-
return
|
|
436
|
+
return _e(() => {
|
|
437
437
|
n.current = e;
|
|
438
438
|
}, [
|
|
439
439
|
e,
|
|
@@ -441,7 +441,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
|
441
441
|
]), a;
|
|
442
442
|
}, An = () => {
|
|
443
443
|
const e = x(!0);
|
|
444
|
-
return
|
|
444
|
+
return _e(() => () => {
|
|
445
445
|
e.current = !1;
|
|
446
446
|
}, []), () => e.current;
|
|
447
447
|
}, bt = {
|
|
@@ -492,7 +492,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
|
492
492
|
const t = Ce(Ue), o = x(t);
|
|
493
493
|
o.current = t;
|
|
494
494
|
const n = x(e);
|
|
495
|
-
return
|
|
495
|
+
return _e(() => {
|
|
496
496
|
const a = e > 0 && n.current === 0;
|
|
497
497
|
n.current = e;
|
|
498
498
|
const l = o.current;
|
|
@@ -501,13 +501,13 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
|
501
501
|
e
|
|
502
502
|
]), null;
|
|
503
503
|
}, k = ({ children: e }) => {
|
|
504
|
-
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } =
|
|
504
|
+
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("addressLine1"), N = E(e, k.Label), S = E(e, k.Input), h = E(e, k.Options), O = E(e, k.Description), A = E(e, k.Error);
|
|
505
505
|
return p ? /* @__PURE__ */ r.createElement(u, {
|
|
506
506
|
fieldId: t,
|
|
507
507
|
renderLabel: () => F(N, {
|
|
508
508
|
label: f
|
|
509
509
|
}),
|
|
510
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
510
|
+
renderInput: () => /* @__PURE__ */ r.createElement(_n, {
|
|
511
511
|
value: o,
|
|
512
512
|
onChange: n,
|
|
513
513
|
disabled: a,
|
|
@@ -536,7 +536,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
|
536
536
|
}, S),
|
|
537
537
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
|
|
538
538
|
});
|
|
539
|
-
},
|
|
539
|
+
}, _n = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
|
|
540
540
|
const { labelId: m } = T(), { onAddressSelect: u } = Ie(), y = Le(), C = Ke({
|
|
541
541
|
enabled: !0
|
|
542
542
|
}), { predictions: b, updatePredictions: p, clearPredictions: f } = Dt({
|
|
@@ -578,7 +578,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
|
578
578
|
d == null || d();
|
|
579
579
|
}, [
|
|
580
580
|
d
|
|
581
|
-
]), w = E(e, k.Input),
|
|
581
|
+
]), w = E(e, k.Input), _ = E(e, k.Options);
|
|
582
582
|
return /* @__PURE__ */ r.createElement(he, {
|
|
583
583
|
"aria-labelledby": m,
|
|
584
584
|
inputValue: t ?? "",
|
|
@@ -596,13 +596,13 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
|
596
596
|
items: N
|
|
597
597
|
}, F(w, {
|
|
598
598
|
onFocus: A
|
|
599
|
-
}), F(
|
|
599
|
+
}), F(_, {
|
|
600
600
|
options: N
|
|
601
601
|
}), /* @__PURE__ */ r.createElement(Ye, {
|
|
602
602
|
optionCount: N.length
|
|
603
603
|
}));
|
|
604
|
-
},
|
|
605
|
-
const { id: o, placeholder: n } =
|
|
604
|
+
}, Pn = ({ className: e, ...t }) => {
|
|
605
|
+
const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
|
|
606
606
|
return ae(() => {
|
|
607
607
|
var d;
|
|
608
608
|
(d = s.current) == null || d.focus();
|
|
@@ -636,12 +636,12 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
|
636
636
|
};
|
|
637
637
|
He.Option = Tn;
|
|
638
638
|
k.Label = de;
|
|
639
|
-
k.Input =
|
|
639
|
+
k.Input = Pn;
|
|
640
640
|
k.Options = He;
|
|
641
641
|
k.Description = ie;
|
|
642
642
|
k.Error = ce;
|
|
643
643
|
const re = ({ children: e }) => {
|
|
644
|
-
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } =
|
|
644
|
+
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: C } = Pe(), b = C("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), S = E(e, re.Error);
|
|
645
645
|
return /* @__PURE__ */ r.createElement(u, {
|
|
646
646
|
fieldId: t,
|
|
647
647
|
renderLabel: () => F(p, {
|
|
@@ -661,7 +661,7 @@ const re = ({ children: e }) => {
|
|
|
661
661
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, S, N)
|
|
662
662
|
});
|
|
663
663
|
}, wn = ({ className: e }) => {
|
|
664
|
-
const { id: t, placeholder: o } =
|
|
664
|
+
const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
|
|
665
665
|
return ae(() => {
|
|
666
666
|
var i;
|
|
667
667
|
(i = l.current) == null || i.focus();
|
|
@@ -678,7 +678,7 @@ re.Input = wn;
|
|
|
678
678
|
re.Description = ie;
|
|
679
679
|
re.Error = ce;
|
|
680
680
|
const oe = ({ children: e }) => {
|
|
681
|
-
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } =
|
|
681
|
+
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), C = pe("city"), b = E(e, oe.Label), p = E(e, oe.Input), f = E(e, oe.Description), N = E(e, oe.Error);
|
|
682
682
|
return /* @__PURE__ */ r.createElement(u, {
|
|
683
683
|
fieldId: t,
|
|
684
684
|
renderLabel: () => F(b, {
|
|
@@ -698,7 +698,7 @@ const oe = ({ children: e }) => {
|
|
|
698
698
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, N, f)
|
|
699
699
|
});
|
|
700
700
|
}, Mn = ({ className: e }) => {
|
|
701
|
-
const { id: t, placeholder: o } =
|
|
701
|
+
const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
|
|
702
702
|
return ae(() => {
|
|
703
703
|
var i;
|
|
704
704
|
(i = l.current) == null || i.focus();
|
|
@@ -716,7 +716,7 @@ oe.Description = ie;
|
|
|
716
716
|
oe.Error = ce;
|
|
717
717
|
const qn = ({ isOpen: e }) => {
|
|
718
718
|
const t = Ce(Ue), o = x(!1);
|
|
719
|
-
return
|
|
719
|
+
return _e(() => {
|
|
720
720
|
e && t && !t.isOpen && t.open(null, "manual"), e && (t == null ? void 0 : t.selectionManager.focusedKey) != null && t.selectionManager.setFocusedKey(null), !e && o.current && (t == null || t.close()), o.current = e;
|
|
721
721
|
}, [
|
|
722
722
|
e,
|
|
@@ -775,7 +775,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
775
775
|
onInputKeyDown: y
|
|
776
776
|
};
|
|
777
777
|
}, Y = ({ children: e, ...t }) => {
|
|
778
|
-
const { isForcedOpen: o = !1 } = t, { id: n, value: a, onChange: l, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: C, options: b } =
|
|
778
|
+
const { isForcedOpen: o = !1 } = t, { id: n, value: a, onChange: l, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: C, options: b } = P(), { labelId: p } = T(), { t: f } = Pe(), { language: N } = Ct(), S = q(() => (b || []).reduce((M, D) => (D.value && Oe.hasOwnProperty(D.value) && M.push({
|
|
779
779
|
value: D.value,
|
|
780
780
|
label: f(`locale-dataset.countries.${Oe[D.value].toUpperCase()}`)
|
|
781
781
|
}), M), []).sort((M, D) => M.label.localeCompare(D.label, N)), [
|
|
@@ -792,11 +792,11 @@ const qn = ({ isOpen: e }) => {
|
|
|
792
792
|
commit: h,
|
|
793
793
|
clear: O,
|
|
794
794
|
onBlur: u
|
|
795
|
-
}),
|
|
795
|
+
}), _ = pe("country"), g = E(e, Y.Label), v = E(e, Y.Control), me = E(e, Y.Options), j = E(e, Y.Description), B = E(e, Y.Error);
|
|
796
796
|
return /* @__PURE__ */ r.createElement(C, {
|
|
797
797
|
fieldId: n,
|
|
798
798
|
renderLabel: () => F(g, {
|
|
799
|
-
label:
|
|
799
|
+
label: _
|
|
800
800
|
}),
|
|
801
801
|
renderInput: () => /* @__PURE__ */ r.createElement(he, {
|
|
802
802
|
"aria-labelledby": p,
|
|
@@ -818,7 +818,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
818
818
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, B, j)
|
|
819
819
|
});
|
|
820
820
|
}, ve = ({ children: e, className: t, ...o }) => {
|
|
821
|
-
const { disabled: n, hasError: a } =
|
|
821
|
+
const { disabled: n, hasError: a } = P(), { onKeyDown: l } = o, i = E(e, ve.Input), s = E(e, ve.Trigger);
|
|
822
822
|
return /* @__PURE__ */ r.createElement(Lt, {
|
|
823
823
|
className: t,
|
|
824
824
|
isDisabled: n,
|
|
@@ -827,7 +827,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
827
827
|
onKeyDown: l
|
|
828
828
|
}), s);
|
|
829
829
|
}, Bn = ({ className: e, ...t }) => {
|
|
830
|
-
const { id: o, placeholder: n, readOnly: a, disabled: l } =
|
|
830
|
+
const { id: o, placeholder: n, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = St({
|
|
831
831
|
readOnly: a,
|
|
832
832
|
disabled: l
|
|
833
833
|
});
|
|
@@ -913,7 +913,7 @@ function Un({ isAutocompleteEnabled: e }) {
|
|
|
913
913
|
};
|
|
914
914
|
}
|
|
915
915
|
const $ = ({ children: e }) => {
|
|
916
|
-
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } =
|
|
916
|
+
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && Oe[b] === Oe.JP), N = (y || p) && f, S = pe("zipCode"), h = E(e, $.Label), O = E(e, $.Control), A = E(e, $.Options), w = E(e, $.Description), _ = E(e, $.Error);
|
|
917
917
|
return N ? /* @__PURE__ */ r.createElement(u, {
|
|
918
918
|
fieldId: t,
|
|
919
919
|
renderLabel: () => F(h, {
|
|
@@ -929,7 +929,7 @@ const $ = ({ children: e }) => {
|
|
|
929
929
|
onBlur: d,
|
|
930
930
|
onFocus: m
|
|
931
931
|
}, O, A),
|
|
932
|
-
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null,
|
|
932
|
+
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, w)
|
|
933
933
|
}) : /* @__PURE__ */ r.createElement(u, {
|
|
934
934
|
fieldId: t,
|
|
935
935
|
renderLabel: () => F(h, {
|
|
@@ -946,7 +946,7 @@ const $ = ({ children: e }) => {
|
|
|
946
946
|
onBlur: d,
|
|
947
947
|
onFocus: m
|
|
948
948
|
}, O),
|
|
949
|
-
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null,
|
|
949
|
+
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, w)
|
|
950
950
|
});
|
|
951
951
|
}, Kn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
|
|
952
952
|
const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [y, C] = be(!1), { searchByPostalCode: b } = Un({
|
|
@@ -978,7 +978,7 @@ const $ = ({ children: e }) => {
|
|
|
978
978
|
C(!0), d == null || d();
|
|
979
979
|
}, [
|
|
980
980
|
d
|
|
981
|
-
]), w = E(e, $.Control),
|
|
981
|
+
]), w = E(e, $.Control), _ = E(e, $.Options);
|
|
982
982
|
return /* @__PURE__ */ r.createElement(he, {
|
|
983
983
|
"aria-labelledby": m,
|
|
984
984
|
inputValue: t ?? "",
|
|
@@ -996,13 +996,13 @@ const $ = ({ children: e }) => {
|
|
|
996
996
|
items: N
|
|
997
997
|
}, F(w, {
|
|
998
998
|
onFocus: A
|
|
999
|
-
}), F(
|
|
999
|
+
}), F(_, {
|
|
1000
1000
|
options: N
|
|
1001
1001
|
}), /* @__PURE__ */ r.createElement(Ye, {
|
|
1002
1002
|
optionCount: N.length
|
|
1003
1003
|
}));
|
|
1004
1004
|
}, Je = ({ children: e, className: t, ...o }) => {
|
|
1005
|
-
const { disabled: n, hasError: a } =
|
|
1005
|
+
const { disabled: n, hasError: a } = P(), { onFocus: l } = o, i = Le(), s = E(e, Je.Input);
|
|
1006
1006
|
return /* @__PURE__ */ r.createElement("div", {
|
|
1007
1007
|
className: t,
|
|
1008
1008
|
"data-country": i || void 0,
|
|
@@ -1012,7 +1012,7 @@ const $ = ({ children: e }) => {
|
|
|
1012
1012
|
onFocus: l
|
|
1013
1013
|
}));
|
|
1014
1014
|
}, Yn = ({ className: e, ...t }) => {
|
|
1015
|
-
const { id: o, placeholder: n } =
|
|
1015
|
+
const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
|
|
1016
1016
|
return ae(() => {
|
|
1017
1017
|
var d;
|
|
1018
1018
|
(d = s.current) == null || d.focus();
|
|
@@ -1024,8 +1024,8 @@ const $ = ({ children: e }) => {
|
|
|
1024
1024
|
placeholder: n,
|
|
1025
1025
|
onFocus: i
|
|
1026
1026
|
});
|
|
1027
|
-
},
|
|
1028
|
-
const o = E(e,
|
|
1027
|
+
}, Xe = ({ children: e, className: t }) => {
|
|
1028
|
+
const o = E(e, Xe.Option);
|
|
1029
1029
|
return /* @__PURE__ */ r.createElement(De, {
|
|
1030
1030
|
className: t,
|
|
1031
1031
|
containerPadding: 0,
|
|
@@ -1044,15 +1044,15 @@ const $ = ({ children: e }) => {
|
|
|
1044
1044
|
textValue: n
|
|
1045
1045
|
}, n);
|
|
1046
1046
|
};
|
|
1047
|
-
|
|
1047
|
+
Xe.Option = Hn;
|
|
1048
1048
|
Je.Input = Yn;
|
|
1049
1049
|
$.Label = de;
|
|
1050
1050
|
$.Control = Je;
|
|
1051
|
-
$.Options =
|
|
1051
|
+
$.Options = Xe;
|
|
1052
1052
|
$.Description = ie;
|
|
1053
1053
|
$.Error = ce;
|
|
1054
1054
|
const V = ({ children: e }) => {
|
|
1055
|
-
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } =
|
|
1055
|
+
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e, V.Label), S = E(e, V.Input), h = E(e, V.Options), O = E(e, V.Description), A = E(e, V.Error);
|
|
1056
1056
|
return p ? /* @__PURE__ */ r.createElement(u, {
|
|
1057
1057
|
fieldId: t,
|
|
1058
1058
|
renderLabel: () => F(N, {
|
|
@@ -1124,7 +1124,7 @@ const V = ({ children: e }) => {
|
|
|
1124
1124
|
}, [
|
|
1125
1125
|
s,
|
|
1126
1126
|
f
|
|
1127
|
-
]),
|
|
1127
|
+
]), _ = R(() => {
|
|
1128
1128
|
d == null || d();
|
|
1129
1129
|
}, [
|
|
1130
1130
|
d
|
|
@@ -1140,19 +1140,19 @@ const V = ({ children: e }) => {
|
|
|
1140
1140
|
isRequired: l,
|
|
1141
1141
|
isInvalid: i,
|
|
1142
1142
|
onBlur: w,
|
|
1143
|
-
onFocus:
|
|
1143
|
+
onFocus: _,
|
|
1144
1144
|
allowsCustomValue: !0,
|
|
1145
1145
|
menuTrigger: "input",
|
|
1146
1146
|
items: h
|
|
1147
1147
|
}, F(N, {
|
|
1148
|
-
onFocus:
|
|
1148
|
+
onFocus: _
|
|
1149
1149
|
}), F(S, {
|
|
1150
1150
|
options: h
|
|
1151
1151
|
}), /* @__PURE__ */ r.createElement(Ye, {
|
|
1152
1152
|
optionCount: h.length
|
|
1153
1153
|
}));
|
|
1154
1154
|
}, Jn = ({ className: e, ...t }) => {
|
|
1155
|
-
const { id: o, placeholder: n } =
|
|
1155
|
+
const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
|
|
1156
1156
|
return ae(() => {
|
|
1157
1157
|
var d;
|
|
1158
1158
|
(d = s.current) == null || d.focus();
|
|
@@ -1164,8 +1164,8 @@ const V = ({ children: e }) => {
|
|
|
1164
1164
|
placeholder: n,
|
|
1165
1165
|
onFocus: i
|
|
1166
1166
|
});
|
|
1167
|
-
},
|
|
1168
|
-
const o = E(e,
|
|
1167
|
+
}, Ge = ({ children: e, className: t }) => {
|
|
1168
|
+
const o = E(e, Ge.Option);
|
|
1169
1169
|
return /* @__PURE__ */ r.createElement(De, {
|
|
1170
1170
|
className: t,
|
|
1171
1171
|
containerPadding: 0,
|
|
@@ -1176,7 +1176,7 @@ const V = ({ children: e }) => {
|
|
|
1176
1176
|
id: n.id,
|
|
1177
1177
|
label: n.label
|
|
1178
1178
|
})));
|
|
1179
|
-
},
|
|
1179
|
+
}, Xn = ({ className: e, ...t }) => {
|
|
1180
1180
|
const { id: o, label: n } = t;
|
|
1181
1181
|
return /* @__PURE__ */ r.createElement(Se, {
|
|
1182
1182
|
className: e,
|
|
@@ -1184,14 +1184,14 @@ const V = ({ children: e }) => {
|
|
|
1184
1184
|
textValue: n
|
|
1185
1185
|
}, n);
|
|
1186
1186
|
};
|
|
1187
|
-
|
|
1187
|
+
Ge.Option = Xn;
|
|
1188
1188
|
V.Label = de;
|
|
1189
1189
|
V.Input = Jn;
|
|
1190
|
-
V.Options =
|
|
1190
|
+
V.Options = Ge;
|
|
1191
1191
|
V.Description = ie;
|
|
1192
1192
|
V.Error = ce;
|
|
1193
1193
|
const se = ({ children: e }) => {
|
|
1194
|
-
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } =
|
|
1194
|
+
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), C = pe("streetNumber"), b = E(e, se.Label), p = E(e, se.Input), f = E(e, se.Description), N = E(e, se.Error);
|
|
1195
1195
|
return /* @__PURE__ */ r.createElement(u, {
|
|
1196
1196
|
fieldId: t,
|
|
1197
1197
|
renderLabel: () => F(b, {
|
|
@@ -1210,8 +1210,8 @@ const se = ({ children: e }) => {
|
|
|
1210
1210
|
}, p),
|
|
1211
1211
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, N, f)
|
|
1212
1212
|
});
|
|
1213
|
-
},
|
|
1214
|
-
const { id: t, placeholder: o } =
|
|
1213
|
+
}, Gn = ({ className: e }) => {
|
|
1214
|
+
const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
|
|
1215
1215
|
return ae(() => {
|
|
1216
1216
|
var i;
|
|
1217
1217
|
(i = l.current) == null || i.focus();
|
|
@@ -1224,11 +1224,11 @@ const se = ({ children: e }) => {
|
|
|
1224
1224
|
});
|
|
1225
1225
|
};
|
|
1226
1226
|
se.Label = de;
|
|
1227
|
-
se.Input =
|
|
1227
|
+
se.Input = Gn;
|
|
1228
1228
|
se.Description = ie;
|
|
1229
1229
|
se.Error = ce;
|
|
1230
1230
|
const H = ({ children: e }) => {
|
|
1231
|
-
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } =
|
|
1231
|
+
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: C } = Pe(), b = Le(), p = b ? Oe[b] : void 0, f = b && xt.getCountryByShortKey(b), N = q(() => {
|
|
1232
1232
|
var B;
|
|
1233
1233
|
return (Bt(((B = f == null ? void 0 : f.subdivisions) == null ? void 0 : B.list) || [], p) || []).map((M) => ({
|
|
1234
1234
|
value: M.key,
|
|
@@ -1246,7 +1246,7 @@ const H = ({ children: e }) => {
|
|
|
1246
1246
|
commit: n,
|
|
1247
1247
|
clear: S,
|
|
1248
1248
|
onBlur: d
|
|
1249
|
-
}), A = pe("subdivision"), w = E(e, H.Label),
|
|
1249
|
+
}), A = pe("subdivision"), w = E(e, H.Label), _ = E(e, H.Control), g = E(e, H.Options), v = E(e, H.Description), me = E(e, H.Error);
|
|
1250
1250
|
return /* @__PURE__ */ r.createElement(u, {
|
|
1251
1251
|
fieldId: t,
|
|
1252
1252
|
renderLabel: () => F(w, {
|
|
@@ -1261,7 +1261,7 @@ const H = ({ children: e }) => {
|
|
|
1261
1261
|
isInvalid: s,
|
|
1262
1262
|
onFocus: m,
|
|
1263
1263
|
menuTrigger: "input"
|
|
1264
|
-
}, F(
|
|
1264
|
+
}, F(_, {
|
|
1265
1265
|
onKeyDown: h
|
|
1266
1266
|
}), F(g, {
|
|
1267
1267
|
options: N
|
|
@@ -1269,7 +1269,7 @@ const H = ({ children: e }) => {
|
|
|
1269
1269
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, me, v)
|
|
1270
1270
|
});
|
|
1271
1271
|
}, Fe = ({ children: e, className: t, ...o }) => {
|
|
1272
|
-
const { disabled: n, hasError: a } =
|
|
1272
|
+
const { disabled: n, hasError: a } = P(), { onKeyDown: l } = o, i = E(e, Fe.Input), s = E(e, Fe.Trigger);
|
|
1273
1273
|
return /* @__PURE__ */ r.createElement(Lt, {
|
|
1274
1274
|
className: t,
|
|
1275
1275
|
isDisabled: n,
|
|
@@ -1278,7 +1278,7 @@ const H = ({ children: e }) => {
|
|
|
1278
1278
|
onKeyDown: l
|
|
1279
1279
|
}), s);
|
|
1280
1280
|
}, zn = ({ className: e, ...t }) => {
|
|
1281
|
-
const { id: o, placeholder: n, readOnly: a, disabled: l } =
|
|
1281
|
+
const { id: o, placeholder: n, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = St({
|
|
1282
1282
|
readOnly: a,
|
|
1283
1283
|
disabled: l
|
|
1284
1284
|
});
|
|
@@ -1335,12 +1335,12 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
|
|
|
1335
1335
|
[K.MLA_STREET_NUMBER]: lr,
|
|
1336
1336
|
[K.MLA_APARTMENT]: ir
|
|
1337
1337
|
}, dr = {}, ur = [], c = ({ children: e }) => {
|
|
1338
|
-
const { id: t, form: o, value: n, onChange: a, onFieldBlur: l, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: C, autocompleteEnabled: b, required: p, fieldType: f } =
|
|
1338
|
+
const { id: t, form: o, value: n, onChange: a, onFieldBlur: l, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: C, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N, S] = be(null), h = kt(), O = q(() => ({
|
|
1339
1339
|
...h,
|
|
1340
1340
|
...cr
|
|
1341
1341
|
}), [
|
|
1342
1342
|
h
|
|
1343
|
-
]), { isExperimentEnabled: A } = ft(), w = A(yt.STREETLESS_LOCALITY_FALLBACK), { validateFields:
|
|
1343
|
+
]), { isExperimentEnabled: A } = ft(), w = A(yt.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = $t(), g = Vt(), v = It(), me = q(() => ({
|
|
1344
1344
|
...v,
|
|
1345
1345
|
actions: {
|
|
1346
1346
|
predict: Kt,
|
|
@@ -1362,9 +1362,9 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
|
|
|
1362
1362
|
}), M = R((W) => {
|
|
1363
1363
|
if (!n)
|
|
1364
1364
|
return;
|
|
1365
|
-
const
|
|
1366
|
-
...
|
|
1367
|
-
[ye.COUNTRY]:
|
|
1365
|
+
const X = sn(W, B, w), Re = {
|
|
1366
|
+
...X,
|
|
1367
|
+
[ye.COUNTRY]: X[ye.COUNTRY] ?? n[ye.COUNTRY]
|
|
1368
1368
|
};
|
|
1369
1369
|
a == null || a(Re);
|
|
1370
1370
|
}, [
|
|
@@ -1372,22 +1372,22 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
|
|
|
1372
1372
|
n,
|
|
1373
1373
|
B,
|
|
1374
1374
|
w
|
|
1375
|
-
]), D = R((W,
|
|
1376
|
-
if (B && W === ye.COUNTRY && (n == null ? void 0 : n[W]) !==
|
|
1375
|
+
]), D = R((W, X) => {
|
|
1376
|
+
if (B && W === ye.COUNTRY && (n == null ? void 0 : n[W]) !== X) {
|
|
1377
1377
|
a == null || a({
|
|
1378
|
-
[ye.COUNTRY]:
|
|
1378
|
+
[ye.COUNTRY]: X
|
|
1379
1379
|
});
|
|
1380
1380
|
return;
|
|
1381
1381
|
}
|
|
1382
1382
|
a == null || a({
|
|
1383
1383
|
...n,
|
|
1384
|
-
[W]:
|
|
1384
|
+
[W]: X
|
|
1385
1385
|
});
|
|
1386
1386
|
}, [
|
|
1387
1387
|
a,
|
|
1388
1388
|
n,
|
|
1389
1389
|
B
|
|
1390
|
-
]), J = R(async (W) =>
|
|
1390
|
+
]), J = R(async (W) => _(B ? [
|
|
1391
1391
|
...W,
|
|
1392
1392
|
{
|
|
1393
1393
|
path: `${C}/${ye.COUNTRY}`,
|
|
@@ -1396,15 +1396,15 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
|
|
|
1396
1396
|
] : W), [
|
|
1397
1397
|
n,
|
|
1398
1398
|
C,
|
|
1399
|
-
|
|
1399
|
+
_,
|
|
1400
1400
|
B
|
|
1401
1401
|
]);
|
|
1402
1402
|
Yt(t, () => {
|
|
1403
1403
|
var Re;
|
|
1404
|
-
const W = s == null ? void 0 : s[0],
|
|
1405
|
-
return
|
|
1404
|
+
const W = s == null ? void 0 : s[0], X = (Re = j == null ? void 0 : j.fields) == null ? void 0 : Re.find((at) => "target" in at && at.target === (W == null ? void 0 : W.errorPath));
|
|
1405
|
+
return X == null ? void 0 : X.id;
|
|
1406
1406
|
});
|
|
1407
|
-
const Ee =
|
|
1407
|
+
const Ee = Xt(t), Ne = F(E(e, c.Country), {
|
|
1408
1408
|
isForcedOpen: Ee
|
|
1409
1409
|
}), Qe = E(e, c.Subdivision), Ze = E(e, c.City), et = E(e, c.AddressLine), tt = E(e, c.AddressLine2), nt = E(e, c.PostalCode), rt = E(e, c.StreetName), ot = E(e, c.StreetNumber), st = E(e, c.Apartment), At = q(() => ({
|
|
1410
1410
|
country: Ne,
|
|
@@ -1441,7 +1441,7 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
|
|
|
1441
1441
|
style: {
|
|
1442
1442
|
display: "contents"
|
|
1443
1443
|
}
|
|
1444
|
-
}), /* @__PURE__ */ r.createElement(
|
|
1444
|
+
}), /* @__PURE__ */ r.createElement(_t, {
|
|
1445
1445
|
getContainer: () => N
|
|
1446
1446
|
}, /* @__PURE__ */ r.createElement("fieldset", {
|
|
1447
1447
|
style: jt
|
|
@@ -1474,7 +1474,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1474
1474
|
comboControl: pr,
|
|
1475
1475
|
comboTrigger: Er
|
|
1476
1476
|
}, wr = () => {
|
|
1477
|
-
const e =
|
|
1477
|
+
const e = Gt(Ae.comboControl), t = rn(), o = tn(we);
|
|
1478
1478
|
return /* @__PURE__ */ r.createElement(c, null, /* @__PURE__ */ r.createElement(c.Country, null, /* @__PURE__ */ r.createElement(c.Country.Label, {
|
|
1479
1479
|
className: L(z, I.label)
|
|
1480
1480
|
}, /* @__PURE__ */ r.createElement(c.Country.Label.Required, {
|
|
@@ -1495,7 +1495,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1495
1495
|
className: L(Z, I.error)
|
|
1496
1496
|
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.Country.Error.Text, null)), /* @__PURE__ */ r.createElement(c.Country.Description, {
|
|
1497
1497
|
className: L(ee, I.description)
|
|
1498
|
-
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(
|
|
1498
|
+
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
|
|
1499
1499
|
content: n,
|
|
1500
1500
|
locale: a
|
|
1501
1501
|
}))), /* @__PURE__ */ r.createElement(c.AddressLine, null, /* @__PURE__ */ r.createElement(c.AddressLine.Label, {
|
|
@@ -1512,7 +1512,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1512
1512
|
className: L(Z, I.error)
|
|
1513
1513
|
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.AddressLine.Error.Text, null)), /* @__PURE__ */ r.createElement(c.AddressLine.Description, {
|
|
1514
1514
|
className: L(ee, I.description)
|
|
1515
|
-
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(
|
|
1515
|
+
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
|
|
1516
1516
|
content: n,
|
|
1517
1517
|
locale: a
|
|
1518
1518
|
}))), /* @__PURE__ */ r.createElement(c.AddressLine2, null, /* @__PURE__ */ r.createElement(c.AddressLine2.Label, {
|
|
@@ -1525,7 +1525,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1525
1525
|
className: L(Z, I.error)
|
|
1526
1526
|
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.AddressLine2.Error.Text, null)), /* @__PURE__ */ r.createElement(c.AddressLine2.Description, {
|
|
1527
1527
|
className: L(ee, I.description)
|
|
1528
|
-
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(
|
|
1528
|
+
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
|
|
1529
1529
|
content: n,
|
|
1530
1530
|
locale: a
|
|
1531
1531
|
}))), /* @__PURE__ */ r.createElement(c.City, null, /* @__PURE__ */ r.createElement(c.City.Label, {
|
|
@@ -1538,7 +1538,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1538
1538
|
className: L(Z, I.error)
|
|
1539
1539
|
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.City.Error.Text, null)), /* @__PURE__ */ r.createElement(c.City.Description, {
|
|
1540
1540
|
className: L(ee, I.description)
|
|
1541
|
-
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(
|
|
1541
|
+
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
|
|
1542
1542
|
content: n,
|
|
1543
1543
|
locale: a
|
|
1544
1544
|
}))), /* @__PURE__ */ r.createElement(c.PostalCode, null, /* @__PURE__ */ r.createElement(c.PostalCode.Label, {
|
|
@@ -1557,7 +1557,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1557
1557
|
className: L(Z, I.error)
|
|
1558
1558
|
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.PostalCode.Error.Text, null)), /* @__PURE__ */ r.createElement(c.PostalCode.Description, {
|
|
1559
1559
|
className: L(ee, I.description)
|
|
1560
|
-
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(
|
|
1560
|
+
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
|
|
1561
1561
|
content: n,
|
|
1562
1562
|
locale: a
|
|
1563
1563
|
}))), /* @__PURE__ */ r.createElement(c.Subdivision, null, /* @__PURE__ */ r.createElement(c.Subdivision.Label, {
|
|
@@ -1580,7 +1580,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1580
1580
|
className: L(Z, I.error)
|
|
1581
1581
|
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.Subdivision.Error.Text, null)), /* @__PURE__ */ r.createElement(c.Subdivision.Description, {
|
|
1582
1582
|
className: L(ee, I.description)
|
|
1583
|
-
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(
|
|
1583
|
+
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
|
|
1584
1584
|
content: n,
|
|
1585
1585
|
locale: a
|
|
1586
1586
|
}))), /* @__PURE__ */ r.createElement(c.StreetName, null, /* @__PURE__ */ r.createElement(c.StreetName.Label, {
|
|
@@ -1597,7 +1597,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1597
1597
|
className: L(Z, I.error)
|
|
1598
1598
|
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.StreetName.Error.Text, null)), /* @__PURE__ */ r.createElement(c.StreetName.Description, {
|
|
1599
1599
|
className: L(ee, I.description)
|
|
1600
|
-
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(
|
|
1600
|
+
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
|
|
1601
1601
|
content: n,
|
|
1602
1602
|
locale: a
|
|
1603
1603
|
}))), /* @__PURE__ */ r.createElement(c.StreetNumber, null, /* @__PURE__ */ r.createElement(c.StreetNumber.Label, {
|
|
@@ -1610,7 +1610,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1610
1610
|
className: L(Z, I.error)
|
|
1611
1611
|
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.StreetNumber.Error.Text, null)), /* @__PURE__ */ r.createElement(c.StreetNumber.Description, {
|
|
1612
1612
|
className: L(ee, I.description)
|
|
1613
|
-
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(
|
|
1613
|
+
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
|
|
1614
1614
|
content: n,
|
|
1615
1615
|
locale: a
|
|
1616
1616
|
}))), /* @__PURE__ */ r.createElement(c.Apartment, null, /* @__PURE__ */ r.createElement(c.Apartment.Label, {
|
|
@@ -1623,7 +1623,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1623
1623
|
className: L(Z, I.error)
|
|
1624
1624
|
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.Apartment.Error.Text, null)), /* @__PURE__ */ r.createElement(c.Apartment.Description, {
|
|
1625
1625
|
className: L(ee, I.description)
|
|
1626
|
-
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(
|
|
1626
|
+
}, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
|
|
1627
1627
|
content: n,
|
|
1628
1628
|
locale: a
|
|
1629
1629
|
}))));
|