@wix/form-elements 1.145.0 → 1.147.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.
Files changed (113) hide show
  1. package/dist/component/{appointment-rac-De-uH9rz.js → appointment-rac-BG5-bIZU.js} +98 -98
  2. package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-8e8PqKsp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CtlnU8ws.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-DWDAjfqq.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-qAthWem2.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-TOofMGl3.js} +1 -1
  14. package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-CHMHr8Ry.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-BksH9IoV.js} +1 -1
  18. package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-DDPEtMAm.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
  22. package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-BfybzySV.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
  25. package/dist/component/{date-availability-DmFFTX8p.js → date-availability-DZ3J3LLm.js} +1 -1
  26. package/dist/component/date-input-field-rac-DeL5vuE7.js +297 -0
  27. package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-Di6TQvFf.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
  29. package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-Brne65gr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
  31. package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-DM_HXiqV.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
  37. package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-D-C1gVTq.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-CFZlEH2a.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
  42. package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-Br48OQQ5.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
  46. package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-DNi4p-v5.js} +69 -69
  47. package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
  48. package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
  49. package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-qeugpHXY.js} +1 -1
  50. package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-D8b_L5md.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
  52. package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-CunXRyc5.js} +64 -62
  53. package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-DMjyIOkB.js} +17 -17
  54. package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
  55. package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-E8WjFr_n.js} +6 -6
  56. package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-BakLOu5E.js} +15 -15
  57. package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-Clu_c--0.js} +43 -43
  58. package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
  59. package/dist/component/{form-D3iU18lh.js → form-DHAKwnLt.js} +3850 -3872
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-CwmVpz3r.js} +4 -4
  63. package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-ahkGRjSy.js} +1 -1
  64. package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-BwxkkdUu.js} +17 -17
  65. package/dist/component/{index-DQW26cnX.js → index-BFi_n6B7.js} +2 -2
  66. package/dist/component/{index-W7GOFnq8.js → index-BQf23zZi.js} +91 -91
  67. package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-DHcMRYYH.js} +15 -15
  68. package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-C6xaqNOk.js} +68 -60
  69. package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DF4TFuDx.js} +1 -1
  70. package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
  71. package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-D6ERhrSM.js} +1 -1
  72. package/dist/component/{password-rac-Baslr6Ga.js → password-rac-CAiC0ZKl.js} +47 -46
  73. package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-Bu25xvby.js} +33 -32
  74. package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-32qUvCsC.js} +46 -45
  75. package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-mNrpj30q.js} +1 -1
  76. package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-zHdM9rHw.js} +53 -53
  77. package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
  79. package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
  80. package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-D2ESG8J4.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
  82. package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D-5CmVAX.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
  84. package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
  85. package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-CQZLjBQ0.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
  87. package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
  88. package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-CTCNclwL.js} +67 -67
  89. package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-kKGeVgsG.js} +25 -25
  90. package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-CVf7oQr_.js} +35 -35
  91. package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-DiX1_nTT.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-IhBNXiDl.js} +22 -22
  93. package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-DHevCtFF.js} +1 -1
  94. package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-Da3_wTdh.js} +5 -5
  95. package/dist/component/text-input-headless-DcZRRXCp.js +45 -0
  96. package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-564LIZ1_.js} +1 -1
  97. package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-p-Nnsxp_.js} +54 -54
  98. package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-DjrcpRtm.js} +27 -26
  99. package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-B3brpyop.js} +1 -1
  100. package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
  101. package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
  103. package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
  104. package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-hqO9Ev38.js} +6 -6
  105. package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
  106. package/dist/form.d.ts +5 -0
  107. package/package.json +2 -2
  108. package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
  109. package/dist/component/dext-radio-group-rac-Czr5yY3K.js +0 -18
  110. package/dist/component/text-input-headless-B0jcwDev.js +0 -44
  111. package/dist/component/use-dropdown-option-class-name-OD8brKoy.js +0 -115
  112. package/dist/component/use-dropdown-trigger-class-name-BrkmG0ad.js +0 -40
  113. package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
@@ -1,22 +1,23 @@
1
- import e, { useState as N, useRef as S } from "react";
2
- import { RicosViewer as x } from "@wix/ricos/viewer";
1
+ import e, { useState as N, useRef as x } from "react";
2
+ import { RicosViewer as O } from "@wix/ricos/viewer";
3
3
  import d from "classnames";
4
- import { bn as E, bk as I, bp as O, bx as A, R as B, $ as V, G as v, u as P } from "./form-D3iU18lh.js";
5
- import { TextField as M, Group as k, Input as q, Button as U } from "react-aria-components";
4
+ import { bo as E, bl as I, bq as A, by as B, S as v, a0 as V, H as P, v as M } from "./form-DHAKwnLt.js";
5
+ import { TextField as k, Group as q, Input as H, Button as U } from "react-aria-components";
6
6
  import { f as u, a as b } from "./find-child-C60k4CxG.js";
7
- import { D as j, E as G } from "./field-error-headless-ClPQ03Jc.js";
8
- import { L as H } from "./field-label-headless-DhN8Lkuq.js";
9
- import { E as W } from "./error-icon-hZxQ6DEy.js";
10
- import { H as Z } from "./custom-focus-class-_483Pkwp.js";
7
+ import { D as j, E as W } from "./field-error-headless-E8WjFr_n.js";
8
+ import { L as Z } from "./field-label-headless-BakLOu5E.js";
9
+ import { E as G } from "./error-icon-hZxQ6DEy.js";
10
+ import { H as Q } from "./custom-focus-class-_483Pkwp.js";
11
11
  import { s as p } from "./field-rac.module-DfEb7pBp.js";
12
- import { u as $ } from "./use-text-input-class-name-BXuk3TK7.js";
12
+ import { u as $ } from "./use-text-input-class-name-wp9dzpEy.js";
13
13
  const t = ({ children: o, className: r }) => {
14
- const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, FieldLayout: _ } = E(), { labelId: y } = I(), [R, D] = N(!1), F = u(o, t.Label), L = u(o, t.Control), T = u(o, t.Description), w = u(o, t.Error);
14
+ const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete: y, FieldLayout: _ } = E(), { labelId: R } = I(), [D, F] = N(!1), L = u(o, t.Label), T = u(o, t.Control), w = u(o, t.Description), S = u(o, t.Error);
15
15
  return /* @__PURE__ */ e.createElement(_, {
16
16
  fieldId: l,
17
- renderLabel: () => F,
18
- renderInput: () => /* @__PURE__ */ e.createElement(M, {
19
- "aria-labelledby": y,
17
+ renderLabel: () => L,
18
+ renderInput: () => /* @__PURE__ */ e.createElement(k, {
19
+ autoComplete: y,
20
+ "aria-labelledby": R,
20
21
  value: s ?? "",
21
22
  onChange: c,
22
23
  isDisabled: n,
@@ -26,15 +27,15 @@ const t = ({ children: o, className: r }) => {
26
27
  onBlur: f,
27
28
  onFocus: C,
28
29
  className: r
29
- }, b(L, {
30
- isVisible: R,
31
- onToggleVisibility: () => D((h) => !h)
30
+ }, b(T, {
31
+ isVisible: D,
32
+ onToggleVisibility: () => F((h) => !h)
32
33
  })),
33
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, T, w)
34
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, w, S)
34
35
  });
35
- }, Q = ({ children: o, className: r, ...l }) => {
36
+ }, z = ({ children: o, className: r, ...l }) => {
36
37
  const { isVisible: s, onToggleVisibility: c } = l, { disabled: n, hasError: m } = E(), a = u(o, t.Input), i = u(o, t.Toggle);
37
- return /* @__PURE__ */ e.createElement(k, {
38
+ return /* @__PURE__ */ e.createElement(q, {
38
39
  className: r,
39
40
  isDisabled: n,
40
41
  isInvalid: m
@@ -44,12 +45,12 @@ const t = ({ children: o, className: r }) => {
44
45
  isVisible: s,
45
46
  onToggleVisibility: c
46
47
  }));
47
- }, z = ({ className: o, ...r }) => {
48
- const { isVisible: l } = r, { id: s, placeholder: c } = E(), { inputId: n, ariaDescribedBy: m } = I(), a = S(null);
49
- return O(() => {
48
+ }, J = ({ className: o, ...r }) => {
49
+ const { isVisible: l } = r, { id: s, placeholder: c } = E(), { inputId: n, ariaDescribedBy: m } = I(), a = x(null);
50
+ return A(() => {
50
51
  var i;
51
52
  (i = a.current) == null || i.focus();
52
- }, s), /* @__PURE__ */ e.createElement(q, {
53
+ }, s), /* @__PURE__ */ e.createElement(H, {
53
54
  ref: a,
54
55
  id: n,
55
56
  type: l ? "text" : "password",
@@ -57,7 +58,7 @@ const t = ({ children: o, className: r }) => {
57
58
  className: o,
58
59
  placeholder: c
59
60
  });
60
- }, J = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
61
+ }, K = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
61
62
  const { isVisible: n, onToggleVisibility: m } = c, { disabled: a } = E(), i = n ? l : r;
62
63
  return /* @__PURE__ */ e.createElement(U, {
63
64
  type: "button",
@@ -70,13 +71,13 @@ const t = ({ children: o, className: r }) => {
70
71
  isVisible: n
71
72
  }));
72
73
  };
73
- t.Label = H;
74
- t.Control = Q;
75
- t.Input = z;
76
- t.Toggle = J;
74
+ t.Label = Z;
75
+ t.Control = z;
76
+ t.Input = J;
77
+ t.Toggle = K;
77
78
  t.Description = j;
78
- t.Error = G;
79
- const K = (o) => /* @__PURE__ */ e.createElement("svg", {
79
+ t.Error = W;
80
+ const X = (o) => /* @__PURE__ */ e.createElement("svg", {
80
81
  viewBox: "0 0 24 24",
81
82
  width: "20",
82
83
  height: "20",
@@ -91,7 +92,7 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
91
92
  cx: "12",
92
93
  cy: "12",
93
94
  r: "3"
94
- })), X = (o) => /* @__PURE__ */ e.createElement("svg", {
95
+ })), Y = (o) => /* @__PURE__ */ e.createElement("svg", {
95
96
  viewBox: "0 0 24 24",
96
97
  width: "20",
97
98
  height: "20",
@@ -111,32 +112,32 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
111
112
  y1: "21",
112
113
  x2: "21",
113
114
  y2: "3"
114
- })), Y = "_control_1malj_1", ee = "_toggleButton_1malj_15", g = {
115
- control: Y,
116
- toggleButton: ee
117
- }, te = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(x, {
115
+ })), ee = "_control_1malj_1", te = "_toggleButton_1malj_15", g = {
116
+ control: ee,
117
+ toggleButton: te
118
+ }, oe = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(O, {
118
119
  content: o,
119
120
  locale: r
120
- }), oe = () => {
121
- const { t: o } = A(), r = $(g.control);
121
+ }), re = () => {
122
+ const { t: o } = B(), r = $(g.control);
122
123
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
123
- className: d(B, p.label)
124
+ className: d(v, p.label)
124
125
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
125
126
  className: d(V, p.requiredMark)
126
127
  })), /* @__PURE__ */ e.createElement(t.Control, {
127
128
  className: r
128
129
  }, /* @__PURE__ */ e.createElement(t.Input, {
129
- className: d(p.innerInput, Z)
130
+ className: d(p.innerInput, Q)
130
131
  }), /* @__PURE__ */ e.createElement(t.Toggle, {
131
132
  className: g.toggleButton,
132
133
  showPasswordTooltipText: o("forms.widget.modals.show-password-tooltip"),
133
134
  hidePasswordTooltipText: o("forms.widget.modals.hide-password-tooltip")
134
- }, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(X, null) : /* @__PURE__ */ e.createElement(K, null))), /* @__PURE__ */ e.createElement(t.Error, {
135
- className: d(v, p.error)
136
- }, /* @__PURE__ */ e.createElement(W, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
137
- className: d(P, p.description)
138
- }, te));
139
- }, be = () => /* @__PURE__ */ e.createElement(oe, null);
135
+ }, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(Y, null) : /* @__PURE__ */ e.createElement(X, null))), /* @__PURE__ */ e.createElement(t.Error, {
136
+ className: d(P, p.error)
137
+ }, /* @__PURE__ */ e.createElement(G, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
138
+ className: d(M, p.description)
139
+ }, oe));
140
+ }, ge = () => /* @__PURE__ */ e.createElement(re, null);
140
141
  export {
141
- be as PasswordRAC
142
+ ge as PasswordRAC
142
143
  };
@@ -2,24 +2,24 @@ import r, { useCallback as P, useRef as j } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import p from "classnames";
4
4
  import { TextField as z, Group as J, Input as K } from "react-aria-components";
5
- import { bn as N, bk as D, bf as T, bx as W, bp as X, R as Y, $ as Z, G as ee, u as re } from "./form-D3iU18lh.js";
6
- import { f as u } from "./find-child-C60k4CxG.js";
7
- import { D as te, E as ne } from "./field-error-headless-ClPQ03Jc.js";
8
- import { L as ae } from "./field-label-headless-DhN8Lkuq.js";
9
- import { f as L, g as se } from "./payment-field-utils-DobiK5Xh.js";
5
+ import { bo as R, bl as D, bg as T, by as W, bq as X, S as Y, a0 as Z, H as ee, v as re } from "./form-DHAKwnLt.js";
6
+ import { f as i } from "./find-child-C60k4CxG.js";
7
+ import { D as te, E as ne } from "./field-error-headless-E8WjFr_n.js";
8
+ import { L as ae } from "./field-label-headless-BakLOu5E.js";
9
+ import { f as N, g as se } from "./payment-field-utils-DobiK5Xh.js";
10
10
  import { u as oe } from "./use-synced-display-value-DcAxdn3M.js";
11
11
  import { E as le } from "./error-icon-hZxQ6DEy.js";
12
12
  import { H as ce } from "./custom-focus-class-_483Pkwp.js";
13
13
  import { s as d } from "./field-rac.module-DfEb7pBp.js";
14
- import { u as ue } from "./use-text-input-class-name-BXuk3TK7.js";
15
- function ie(e, t) {
14
+ import { u as ie } from "./use-text-input-class-name-wp9dzpEy.js";
15
+ function ue(e, t) {
16
16
  return {
17
17
  productId: e.id,
18
18
  price: t,
19
19
  quantity: 1
20
20
  };
21
21
  }
22
- function x(e) {
22
+ function h(e) {
23
23
  if (e == null || e === "")
24
24
  return;
25
25
  const t = Number(String(e).replace(/,/g, "."));
@@ -27,28 +27,28 @@ function x(e) {
27
27
  }
28
28
  const n = ({ children: e }) => {
29
29
  var O, g, A, V;
30
- const { id: t, value: a, onChange: s, disabled: i, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: G, validation: C } = N(), { labelId: M, prefixId: $ } = D(), { regionalFormat: c } = T(), S = (A = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], _ = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [F, b] = oe({
30
+ const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = R(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = T(), S = (A = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], _ = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [F, b] = oe({
31
31
  sourceValue: _,
32
- format: (l) => L(String(l ?? ""), c),
32
+ format: (l) => N(String(l ?? ""), c),
33
33
  regionalFormat: c
34
- }), q = P(() => {
35
- const l = L(F, c);
34
+ }), $ = P(() => {
35
+ const l = N(F, c);
36
36
  b(l || ""), o == null || o();
37
37
  }, [
38
38
  F,
39
39
  c,
40
40
  o,
41
41
  b
42
- ]), k = P((l) => {
42
+ ]), v = P((l) => {
43
43
  b(l);
44
- const R = x(L(l, c)), Q = x(_);
45
- if (R !== Q) {
46
- if (R === void 0) {
44
+ const L = h(N(l, c)), Q = h(_);
45
+ if (L !== Q) {
46
+ if (L === void 0) {
47
47
  s(null);
48
48
  return;
49
49
  }
50
50
  s([
51
- ie(S, R)
51
+ ue(S, L)
52
52
  ]);
53
53
  }
54
54
  }, [
@@ -57,30 +57,30 @@ const n = ({ children: e }) => {
57
57
  c,
58
58
  _,
59
59
  b
60
- ]), B = u(e, n.Label), U = u(e, n.Input), v = u(e, n.Description), H = u(e, n.Error);
61
- return /* @__PURE__ */ r.createElement(G, {
60
+ ]), B = i(e, n.Label), H = i(e, n.Input), U = i(e, n.Description), k = i(e, n.Error);
61
+ return /* @__PURE__ */ r.createElement(M, {
62
62
  fieldId: t,
63
63
  renderLabel: () => B,
64
64
  renderInput: () => /* @__PURE__ */ r.createElement(z, {
65
- "aria-labelledby": `${M} ${$}`,
65
+ "aria-labelledby": `${q} ${G}`,
66
66
  value: a ? F : "",
67
- onChange: k,
68
- isDisabled: i,
67
+ onChange: v,
68
+ isDisabled: u,
69
69
  isReadOnly: m,
70
70
  isRequired: I,
71
71
  isInvalid: y,
72
- onBlur: q,
72
+ onBlur: $,
73
73
  onFocus: E
74
- }, U),
75
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, H, v)
74
+ }, H),
75
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, U)
76
76
  });
77
77
  }, f = ({ children: e, className: t }) => {
78
- const { disabled: a, hasError: s } = N(), i = u(e, f.Currency), m = u(e, f.Value);
78
+ const { disabled: a, hasError: s } = R(), u = i(e, f.Currency), m = i(e, f.Value);
79
79
  return /* @__PURE__ */ r.createElement(J, {
80
80
  className: t,
81
81
  isDisabled: a,
82
82
  isInvalid: s
83
- }, i, m);
83
+ }, u, m);
84
84
  }, me = ({ className: e }) => {
85
85
  const { currency: t } = T(), { t: a } = W(), { prefixId: s } = D();
86
86
  return t ? /* @__PURE__ */ r.createElement("span", {
@@ -90,18 +90,19 @@ const n = ({ children: e }) => {
90
90
  className: e
91
91
  }, t.sign || t.code) : null;
92
92
  }, pe = ({ className: e }) => {
93
- const { id: t, placeholder: a, label: s } = N(), { inputId: i, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = j(null);
93
+ const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = j(null);
94
94
  return X(() => {
95
95
  var E;
96
96
  (E = o.current) == null || E.focus();
97
97
  }, t), /* @__PURE__ */ r.createElement(K, {
98
98
  ref: o,
99
- id: i,
99
+ id: u,
100
100
  className: e,
101
101
  placeholder: a,
102
102
  "aria-label": s,
103
103
  "aria-labelledby": `${m} ${I}`,
104
104
  "aria-describedby": y,
105
+ inputMode: "decimal",
105
106
  autoComplete: "off"
106
107
  });
107
108
  };
@@ -111,14 +112,14 @@ n.Label = ae;
111
112
  n.Input = f;
112
113
  n.Description = te;
113
114
  n.Error = ne;
114
- const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", h = {
115
+ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
115
116
  inputGroup: de,
116
117
  currency: fe
117
118
  }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(w, {
118
119
  content: e,
119
120
  locale: t
120
121
  }), be = () => {
121
- const e = ue(h.inputGroup);
122
+ const e = ie(x.inputGroup);
122
123
  return /* @__PURE__ */ r.createElement(n, null, /* @__PURE__ */ r.createElement(n.Label, {
123
124
  className: p(Y, d.label)
124
125
  }, /* @__PURE__ */ r.createElement(n.Label.Required, {
@@ -126,7 +127,7 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", h = {
126
127
  })), /* @__PURE__ */ r.createElement(n.Input, {
127
128
  className: e
128
129
  }, /* @__PURE__ */ r.createElement(n.Input.Currency, {
129
- className: h.currency
130
+ className: x.currency
130
131
  }), /* @__PURE__ */ r.createElement(n.Input.Value, {
131
132
  className: p(d.innerInput, ce)
132
133
  })), /* @__PURE__ */ r.createElement(n.Error, {
@@ -1,24 +1,24 @@
1
1
  import { RicosViewer as Ce } from "@wix/ricos/viewer";
2
2
  import h from "classnames";
3
- import t, { useMemo as $, useState as j, useRef as F, useEffect as k, useCallback as Q, createContext as ee, useContext as G, useId as de } from "react";
4
- import { b6 as ye, bx as w, bf as te, bw as Ee, bn as D, bk as ne, bp as fe, R as ge, $ as he, Q as be, x as Oe, G as _e, u as Ne } from "./form-D3iU18lh.js";
3
+ import t, { useMemo as j, useState as $, useRef as F, useEffect as k, useCallback as W, createContext as ee, useContext as H, useId as de } from "react";
4
+ import { b7 as ye, by as D, bg as te, bx as Ee, bo as w, bl as ne, bq as fe, S as ge, a0 as he, R as be, y as Oe, H as _e, v as Ne } from "./form-DHAKwnLt.js";
5
5
  import { UNSAFE_PortalProvider as Se } from "react-aria";
6
- import { Dialog as oe, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as q, ListBoxItem as Fe, DialogTrigger as we, Select as De, Input as re, Autocomplete as Be } from "react-aria-components";
6
+ import { Dialog as oe, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as q, ListBoxItem as Fe, DialogTrigger as De, Select as we, Input as re, Autocomplete as Be } from "react-aria-components";
7
7
  import { f as g, a as I } from "./find-child-C60k4CxG.js";
8
- import { D as Re, E as xe } from "./field-error-headless-ClPQ03Jc.js";
9
- import { L as Me } from "./field-label-headless-DhN8Lkuq.js";
10
- import { N as Te, S as $e } from "./non-modal-popover-D-u13tmp.js";
11
- import { u as je } from "./use-invoke-callback-UH73A_J3.js";
12
- import { a as Ae, u as ke } from "./use-dropdown-trigger-class-name-BrkmG0ad.js";
13
- import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-OD8brKoy.js";
14
- import ae, { AsYouType as qe, isValidPhoneNumber as Ge, isSupportedCountry as He } from "libphonenumber-js";
8
+ import { D as Re, E as xe } from "./field-error-headless-E8WjFr_n.js";
9
+ import { L as Me } from "./field-label-headless-BakLOu5E.js";
10
+ import { N as Te, S as je } from "./non-modal-popover-D-u13tmp.js";
11
+ import { u as $e } from "./use-invoke-callback-UH73A_J3.js";
12
+ import { a as Ae } from "./use-is-forced-open-dropdown-DUZMvWpk.js";
13
+ import { V as ke, u as Ue, a as Ve } from "./use-dropdown-trigger-class-name-BWTT7ltv.js";
14
+ import ae, { AsYouType as qe, isValidPhoneNumber as He, isSupportedCountry as Ge } from "libphonenumber-js";
15
15
  import "libphonenumber-js/metadata.min.json";
16
- import { C as W } from "./calling-country-codes-PyWuOTmF.js";
16
+ import { C as Z } from "./calling-country-codes-PyWuOTmF.js";
17
17
  import { C as Ye } from "./chevron-down-icon-CcpVm6B-.js";
18
18
  import { E as ze } from "./error-icon-hZxQ6DEy.js";
19
- import { H as Z } from "./custom-focus-class-_483Pkwp.js";
19
+ import { H as Q } from "./custom-focus-class-_483Pkwp.js";
20
20
  import { s as O } from "./field-rac.module-DfEb7pBp.js";
21
- import { u as Ke } from "./use-text-input-class-name-BXuk3TK7.js";
21
+ import { u as Ke } from "./use-text-input-class-name-wp9dzpEy.js";
22
22
  function J(e) {
23
23
  const n = e ? ae(e) : void 0, r = n == null ? void 0 : n.country;
24
24
  if (r)
@@ -26,7 +26,7 @@ function J(e) {
26
26
  const o = new qe();
27
27
  return e && o.input(e), o.getCountry();
28
28
  }
29
- function H(e) {
29
+ function G(e) {
30
30
  var n;
31
31
  return e && ((n = ye.getCountryByKey(e)) == null ? void 0 : n.dialCode);
32
32
  }
@@ -37,17 +37,17 @@ function X(e, n) {
37
37
  if (e && n)
38
38
  try {
39
39
  const r = ae(e, n), o = r == null ? void 0 : r.formatInternational();
40
- if (o && Ge(o))
40
+ if (o && He(o))
41
41
  return o.replace(/\s+/g, "");
42
42
  } catch {
43
43
  }
44
44
  return e;
45
45
  }
46
- function Qe() {
47
- const { t: e } = w(), { language: n } = te();
48
- return $(() => Object.keys(W).reduce((o, a) => {
49
- const c = W[a], l = H(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
50
- return l && He(a) && o.push({
46
+ function We() {
47
+ const { t: e } = D(), { language: n } = te();
48
+ return j(() => Object.keys(Z).reduce((o, a) => {
49
+ const c = Z[a], l = G(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
50
+ return l && Ge(a) && o.push({
51
51
  countryName: i,
52
52
  longCountryCode: c,
53
53
  shortCountryCode: a,
@@ -58,10 +58,10 @@ function Qe() {
58
58
  n
59
59
  ]);
60
60
  }
61
- function We(e, n) {
61
+ function Ze(e, n) {
62
62
  return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
63
63
  }
64
- function Ze(e, n) {
64
+ function Qe(e, n) {
65
65
  const { countryName: r, callingCode: o, shortCountryCode: a } = e;
66
66
  return !!(V(r, n) || V(o, n) || V(a, n));
67
67
  }
@@ -69,11 +69,11 @@ function V(e, n) {
69
69
  return e.toLowerCase().includes(n.toLowerCase());
70
70
  }
71
71
  function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
72
- const [a, c] = j(e || ""), l = F(U(e ?? null) ?? ""), [i, u] = j(n);
72
+ const [a, c] = $(e || ""), l = F(U(e ?? null) ?? ""), [i, u] = $(n);
73
73
  Ee(() => {
74
74
  c(""), l.current = "", u(n), o("");
75
75
  });
76
- const m = $(() => J(a), [
76
+ const m = j(() => J(a), [
77
77
  a
78
78
  ]);
79
79
  k(() => {
@@ -92,7 +92,7 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
92
92
  m,
93
93
  n
94
94
  ]);
95
- const C = Q((p) => {
95
+ const C = W((p) => {
96
96
  if (c(p), !p) {
97
97
  l.current = "", o(null);
98
98
  return;
@@ -105,7 +105,7 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
105
105
  }, [
106
106
  r,
107
107
  o
108
- ]), d = Q((p) => {
108
+ ]), d = W((p) => {
109
109
  u(p), c((f) => {
110
110
  const y = U(X(f, p));
111
111
  return l.current = y ?? "", o(y), f;
@@ -121,12 +121,12 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
121
121
  };
122
122
  }
123
123
  const se = /* @__PURE__ */ ee(null), _ = () => {
124
- const e = G(se);
124
+ const e = H(se);
125
125
  if (!e)
126
126
  throw new Error("Phone input components must be used within PhoneInput component");
127
127
  return e;
128
128
  }, ce = /* @__PURE__ */ ee(null), Y = () => {
129
- const e = G(ce);
129
+ const e = H(ce);
130
130
  if (!e)
131
131
  throw new Error("Option sub-components must be used within Option component");
132
132
  return e;
@@ -146,10 +146,10 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
146
146
  });
147
147
  }, s = ({ children: e }) => {
148
148
  var S, P;
149
- const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = D(), [i, u] = j(null), m = (P = (S = l == null ? void 0 : l.string) == null ? void 0 : S.phoneOptions) == null ? void 0 : P.allowedCountryCodes, C = Qe(), d = $(() => We(C, m), [
149
+ const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = w(), [i, u] = $(null), m = (P = (S = l == null ? void 0 : l.string) == null ? void 0 : S.phoneOptions) == null ? void 0 : P.allowedCountryCodes, C = We(), d = j(() => Ze(C, m), [
150
150
  C,
151
151
  m
152
- ]), p = $(() => d.map((T) => T.shortCountryCode), [
152
+ ]), p = j(() => d.map((T) => T.shortCountryCode), [
153
153
  d
154
154
  ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: L, handleCountryCodeChange: N } = Je({
155
155
  value: r,
@@ -179,8 +179,8 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
179
179
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M, x)
180
180
  }));
181
181
  }, K = ({ children: e, className: n }) => {
182
- const { labelId: r } = ne(), { hasError: o, disabled: a, readOnly: c } = D(), { t: l } = w(), { selectedCountryCode: i, countries: u } = _(), m = de(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && H(C.longCountryCode) || "", p = l("field.phone.country-code.aria-label"), f = C ? `${p}, ${C.countryName}, ${d}` : p;
183
- return /* @__PURE__ */ t.createElement($e, {
182
+ const { labelId: r } = ne(), { hasError: o, disabled: a, readOnly: c } = w(), { t: l } = D(), { selectedCountryCode: i, countries: u } = _(), m = de(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && G(C.longCountryCode) || "", p = l("field.phone.country-code.aria-label"), f = C ? `${p}, ${C.countryName}, ${d}` : p;
183
+ return /* @__PURE__ */ t.createElement(je, {
184
184
  isDisabled: a || c,
185
185
  id: m,
186
186
  "aria-label": f,
@@ -222,7 +222,7 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
222
222
  "aria-label": r
223
223
  }, p) : p));
224
224
  }, tt = ({ children: e, className: n, overlayClassName: r, "aria-label": o, portalContainer: a = t.Fragment, ...c }) => {
225
- const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), m = G(Le);
225
+ const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), m = H(Le);
226
226
  return /* @__PURE__ */ t.createElement(Ie, {
227
227
  className: r,
228
228
  isDismissable: !0
@@ -245,12 +245,12 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
245
245
  }
246
246
  }, e)))));
247
247
  }, le = ({ children: e, listBoxProps: n, isForcedOpen: r }) => {
248
- const { countries: o } = _(), a = g(e, b.Option), c = g(e, b.Search), l = g(e, b.EmptyState), i = /* @__PURE__ */ t.createElement(Ue, {
248
+ const { countries: o } = _(), a = g(e, b.Option), c = g(e, b.Search), l = g(e, b.EmptyState), i = /* @__PURE__ */ t.createElement(ke, {
249
249
  isForcedOpen: r === !0,
250
250
  ...n,
251
251
  renderEmptyState: l ? () => l : void 0
252
252
  }, o.map((u) => {
253
- const m = H(u.longCountryCode) || "";
253
+ const m = G(u.longCountryCode) || "";
254
254
  return I(a, {
255
255
  key: u.shortCountryCode,
256
256
  countryCode: u.shortCountryCode,
@@ -262,7 +262,7 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
262
262
  return c ? /* @__PURE__ */ t.createElement(Be, {
263
263
  filter: (u, m, C) => {
264
264
  const d = o.find((p) => p.shortCountryCode === C.key);
265
- return !!d && Ze(d, m);
265
+ return !!d && Qe(d, m);
266
266
  }
267
267
  }, r ? I(c, {
268
268
  autoFocus: !1
@@ -324,7 +324,7 @@ A.Name = me;
324
324
  A.Code = pe;
325
325
  b.Option = A;
326
326
  const rt = ({ className: e }) => {
327
- const { t: n } = w(), { inputId: r, ariaDescribedBy: o } = ne(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: m, hasError: C } = D(), { currentValue: d, handlePhoneChange: p } = _(), f = F(null);
327
+ const { t: n } = D(), { inputId: r, ariaDescribedBy: o } = ne(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: m, hasError: C } = w(), { currentValue: d, handlePhoneChange: p } = _(), f = F(null);
328
328
  return fe(() => {
329
329
  var y;
330
330
  (y = f.current) == null || y.focus({
@@ -334,6 +334,7 @@ const rt = ({ className: e }) => {
334
334
  ref: f,
335
335
  id: r,
336
336
  type: "tel",
337
+ autoComplete: "tel",
337
338
  value: d,
338
339
  onChange: (y) => p(y.target.value),
339
340
  disabled: l,
@@ -346,8 +347,8 @@ const rt = ({ className: e }) => {
346
347
  className: e
347
348
  });
348
349
  }, at = ({ children: e, ...n }) => {
349
- const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = D(), [u, m] = j(!1), { t: C } = w(), { selectedCountryCode: d, handleCountryCodeChange: p } = _(), f = o || u && !a && !c;
350
- return /* @__PURE__ */ t.createElement(De, {
350
+ const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = w(), [u, m] = $(!1), { t: C } = D(), { selectedCountryCode: d, handleCountryCodeChange: p } = _(), f = o || u && !a && !c;
351
+ return /* @__PURE__ */ t.createElement(we, {
351
352
  "aria-label": C("field.phone.country-code.aria-label"),
352
353
  value: d ?? null,
353
354
  onChange: (y) => p(y),
@@ -364,9 +365,9 @@ const rt = ({ className: e }) => {
364
365
  }));
365
366
  }, st = ({ children: e, ...n }) => {
366
367
  const r = n;
367
- return /* @__PURE__ */ t.createElement(we, null, g(e, s.CountryButton), I(g(e, s.CountryOptions.Modal), r));
368
+ return /* @__PURE__ */ t.createElement(De, null, g(e, s.CountryButton), I(g(e, s.CountryOptions.Modal), r));
368
369
  }, ct = ({ children: e, className: n }) => {
369
- const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = D(), d = je(C), { countries: p } = _(), f = g(e, s.CountryDrawer), y = g(e, s.CountryPopover), L = g(e, s.PhoneNumber), N = p.length > 1, B = Ae(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: v, isFocusWithin: S }) => n({
370
+ const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = w(), d = $e(C), { countries: p } = _(), f = g(e, s.CountryDrawer), y = g(e, s.CountryPopover), L = g(e, s.PhoneNumber), N = p.length > 1, B = Ae(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: v, isFocusWithin: S }) => n({
370
371
  hasCountryOptions: N,
371
372
  isHovered: v,
372
373
  isFocusWithin: S
@@ -452,14 +453,14 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
452
453
  }), vt = () => /* @__PURE__ */ t.createElement("span", {
453
454
  className: E.chevron,
454
455
  "aria-hidden": "true"
455
- }, /* @__PURE__ */ t.createElement(Ye, null)), Qt = () => {
456
- const e = Ve(O.selectOptionWithoutFocusRing, E.option, Z), n = ke(E.control), r = Ke(E.countrySearch), { t: o } = w(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
456
+ }, /* @__PURE__ */ t.createElement(Ye, null)), Wt = () => {
457
+ const e = Ue(O.selectOptionWithoutFocusRing, E.option, Q), n = Ve(E.control), r = Ke(E.countrySearch), { t: o } = D(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
457
458
  className: r,
458
459
  "aria-label": o("field.phone.country-search-input.aria-label")
459
460
  }, /* @__PURE__ */ t.createElement(ut, {
460
461
  className: E.searchIcon
461
462
  }), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
462
- className: h(O.innerInput, Z),
463
+ className: h(O.innerInput, Q),
463
464
  placeholder: o("field.phone.country-search-input.placeholder")
464
465
  })), l = /* @__PURE__ */ t.createElement(s.CountryOptions.EmptyState, null, o("field.phone.country-selector-dropdown.no-result")), i = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(s.CountryButton.Flag, {
465
466
  className: E.flag
@@ -503,5 +504,5 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
503
504
  }, It));
504
505
  };
505
506
  export {
506
- Qt as P
507
+ Wt as P
507
508
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-Dqh4CXdC.js";
2
+ import { P as o } from "./phone-input-field-rac-32qUvCsC.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  r as PhoneRAC