@wix/form-elements 1.197.0 → 1.199.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 (143) hide show
  1. package/dist/component/{appointment-rac-CfPuDfzm.js → appointment-rac-lHva6S92.js} +4 -4
  2. package/dist/component/{bookings-address-rac-Cr0ykN65.js → bookings-address-rac-BAgoI6-s.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BeyDjaay.js → bookings-email-rac-D_kKjrbN.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CkXurmWm.js → bookings-first-name-rac-DWpfLTl0.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BtsC8jZl.js → bookings-header-rac-URDx-ZyQ.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-ertZx_DF.js → bookings-last-name-rac-Bqv_1n_W.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-NjeMmlHa.js → bookings-login-bar-rac-CAsBFJB4.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-CKkVhbg8.js → bookings-phone-rac-CzXeObD1.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BKjPaXH_.js → bookings-rich-text-rac-Cyve3JyL.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BulxEeNv.js → checkbox-field-rac-B0Xd8GI9.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CCyikbEd.js → checkbox-group-field-headless-DHmt1C87.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-Dt77N5jQ.js → checkbox-group-field-rac-CqR_tUY-.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-Ebs85wS5.js → checkbox-group-rac-do59R8Bl.js} +1 -1
  14. package/dist/component/{checkbox-rac-C5-VW5zZ.js → checkbox-rac-MyZGXtbJ.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CgCCVGq0.js → contacts-address-rac-DFPGp3vr.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DilaGXgY.js → contacts-birthdate-rac-DJ_lNt1z.js} +1 -1
  17. package/dist/component/{contacts-company-rac-B3DBqj-d.js → contacts-company-rac-CG8HoSRi.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DRvDgVG8.js → contacts-email-rac-ahh1ODPI.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CvHYh-ht.js → contacts-first-name-rac-BWmzd3i-.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-Bgg6hAT4.js → contacts-last-name-rac-CnNyyI0n.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-ad_Q4mXM.js → contacts-phone-rac-BOYSczDw.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DCWhOVIY.js → contacts-position-rac-Be0Sefyk.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-IomlLkfu.js → contacts-subscribe-rac-1mN2xbc_.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-DXd7y3tE.js → contacts-tax-id-rac-Dw59QAs6.js} +1 -1
  25. package/dist/component/{date-availability-Bux4gDUM.js → date-availability-Dv8hibvK.js} +1 -1
  26. package/dist/component/{date-input-field-rac-LkRGaiF_.js → date-input-field-rac-DPF5zcz2.js} +6 -6
  27. package/dist/component/{date-input-rac-oiD0-YmD.js → date-input-rac-DksQ2mMN.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-DvSGPWtt.js → date-picker-field-rac-DLeTLq45.js} +6 -6
  29. package/dist/component/{date-picker-rac-C84sCAU4.js → date-picker-rac-zLaSnoP6.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-8g6bNJSO.js → date-time-input-field-rac-0n9Nzn-l.js} +6 -6
  31. package/dist/component/{date-time-input-rac-3GlJ8XI5.js → date-time-input-rac-CKU4APCa.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-so55mL0Z.js → dext-checkbox-group-rac-f06xmY3A.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DkAnA6gt.js → dext-checkbox-rac-3q26c124.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-ez55mQ9n.js → dext-date-picker-rac-C0ySjKFZ.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-Cpyr_d7y.js → dext-date-time-input-rac-BF0qZ-EC.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-DOYUko3q.js → dext-dropdown-rac-CnYA2R1o.js} +1 -1
  37. package/dist/component/{dext-email-rac-CvbUgVcg.js → dext-email-rac-DJLWUbi3.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DhV_5u36.js → dext-number-input-rac-CnN0nEAM.js} +1 -1
  39. package/dist/component/{dext-phone-rac-C6YLDxrI.js → dext-phone-rac-CJ-zKzXm.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BDD9Rjzh.js → dext-radio-group-rac-RNaSMbCg.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-lFceopFt.js → dext-rating-input-rac-CgIYRNWg.js} +1 -1
  42. package/dist/component/{dext-tags-rac-CdGMqBm5.js → dext-tags-rac-hm9TVURp.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BPgKypQC.js → dext-text-area-rac-BsvMaUGl.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-k2khQGHG.js → dext-text-input-rac-Bgrf0izR.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-FIlYdfC2.js → dext-url-input-rac-B7o0FO9z.js} +1 -1
  46. package/dist/component/{donation-rac-DPuf0bos.js → donation-rac-9N6uwSzZ.js} +5 -5
  47. package/dist/component/{dropdown-field-rac-BFaemSPl.js → dropdown-field-rac-BANtul0i.js} +3 -3
  48. package/dist/component/{dropdown-rac-Bq_J1hxJ.js → dropdown-rac-KitKM14T.js} +1 -1
  49. package/dist/component/{ecom-address-rac-BDmXNwAd.js → ecom-address-rac-Cg5-2v3L.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-90PxN5yY.js → ecom-subscription-checkbox-rac-Dsfa1f8M.js} +2 -2
  51. package/dist/component/{email-input-field-rac-B7BRz2Kj.js → email-input-field-rac-BzEgmNCe.js} +3 -3
  52. package/dist/component/{events-repeater-rac-BGBat8Nd.js → events-repeater-rac-DHlWKLKG.js} +4 -4
  53. package/dist/component/{events-rsvp-rac-BW8ZXdmr.js → events-rsvp-rac-GgcTA1NW.js} +3 -3
  54. package/dist/component/{field-error-headless-CaO_cB31.js → field-error-headless-CzmjLsPB.js} +1 -1
  55. package/dist/component/{field-label-headless-DUerAlvH.js → field-label-headless-B2WhAN8Z.js} +1 -1
  56. package/dist/component/{file-upload-rac-C9xiTJT_.js → file-upload-rac-BYxmNGJj.js} +4 -4
  57. package/dist/component/{fixed-payment-rac-BR6uKC6C.js → fixed-payment-rac-CAcfyvzc.js} +3 -3
  58. package/dist/component/{form-D7zqJS-_.js → form-D4aepRww.js} +112 -113
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-BhIr6Lui.js → header-field-rac-BBT1Om67.js} +2 -2
  61. package/dist/component/{header-rac-CxKMloES.js → header-rac-CWg1xW_L.js} +1 -1
  62. package/dist/component/{image-choice-rac-B1zmi5XK.js → image-choice-rac-CN6zh1lX.js} +4 -4
  63. package/dist/component/{index-CkKxsl0q.js → index-CGlSBpKh.js} +4 -4
  64. package/dist/component/{index-BweqDmjQ.js → index-CMUXXj7E.js} +2 -2
  65. package/dist/component/{isObjectLike-Ct-pgjcd.js → isObjectLike-DqUkPFnC.js} +1 -1
  66. package/dist/component/{messages_ar-Daz0YPJV.js → messages_ar-BRTfUDde.js} +1 -1
  67. package/dist/component/{messages_bg-FoncTr0o.js → messages_bg-DK5e1UEc.js} +1 -1
  68. package/dist/component/{messages_ca-C1i0CjAB.js → messages_ca-SXUjwJas.js} +1 -1
  69. package/dist/component/{messages_cs--i8Dihg_.js → messages_cs-DB-Q83b5.js} +1 -1
  70. package/dist/component/{messages_da-DJdV_jSn.js → messages_da-DHu76uAP.js} +1 -1
  71. package/dist/component/{messages_de-PeLPKnwr.js → messages_de-DSwiYTB6.js} +1 -1
  72. package/dist/component/{messages_el-CjO24C9d.js → messages_el-IDljszW8.js} +1 -1
  73. package/dist/component/{messages_es-EFcjUvWk.js → messages_es-CstY-zp_.js} +1 -1
  74. package/dist/component/{messages_fi-D8z7ptEC.js → messages_fi-B1CQUfTD.js} +1 -1
  75. package/dist/component/{messages_fr-BZjoJN0K.js → messages_fr-BUx7Qyk5.js} +1 -1
  76. package/dist/component/{messages_he-Ddk2qgkK.js → messages_he-Ch24O6-C.js} +1 -1
  77. package/dist/component/{messages_hi-BRfhkWF4.js → messages_hi-CEaVf3Yr.js} +1 -1
  78. package/dist/component/{messages_hr-CGvThyyE.js → messages_hr-DD6sQSzD.js} +1 -1
  79. package/dist/component/{messages_hu-CtZjb7wz.js → messages_hu-QTBg0ESv.js} +1 -1
  80. package/dist/component/{messages_id-B7p5yp9Q.js → messages_id-CLGyjY_h.js} +1 -1
  81. package/dist/component/{messages_it-CFJxz0H4.js → messages_it-yz4EAmyT.js} +1 -1
  82. package/dist/component/{messages_ja-Cx-VGihP.js → messages_ja-ClPX51Vz.js} +1 -1
  83. package/dist/component/{messages_ko-G46zJAxE.js → messages_ko-CS0pE2jo.js} +1 -1
  84. package/dist/component/{messages_lt-CARJylHE.js → messages_lt-48bgXB5a.js} +1 -1
  85. package/dist/component/{messages_lv-BwCp8yTs.js → messages_lv-BNycw2aJ.js} +1 -1
  86. package/dist/component/{messages_ms-DYmfjHGp.js → messages_ms-D6KoWcew.js} +3 -3
  87. package/dist/component/{messages_nl-Fxjcso0J.js → messages_nl-CJdEj3Hi.js} +1 -1
  88. package/dist/component/{messages_no-C41z8sJQ.js → messages_no-Ctz2EbAF.js} +1 -1
  89. package/dist/component/{messages_pl-CWVxazDh.js → messages_pl-C7Sf1wx-.js} +1 -1
  90. package/dist/component/{messages_pt-CZDcS_St.js → messages_pt-Daw2nWfD.js} +1 -1
  91. package/dist/component/{messages_ro-BnZINp63.js → messages_ro-CClF5-tt.js} +1 -1
  92. package/dist/component/{messages_ru-BEMFTFm8.js → messages_ru-CbA--m57.js} +1 -1
  93. package/dist/component/{messages_sk-D3VBZRA2.js → messages_sk-CacQcM5M.js} +1 -1
  94. package/dist/component/{messages_sl-IQSKqoSG.js → messages_sl-DIMYLoPQ.js} +1 -1
  95. package/dist/component/{messages_sv-vLLWnflN.js → messages_sv-dxeEf_Mz.js} +1 -1
  96. package/dist/component/{messages_th-qnN59Uar.js → messages_th-hLYkP3Na.js} +1 -1
  97. package/dist/component/{messages_tl-DjVpFpTS.js → messages_tl-ChqBEDTs.js} +1 -1
  98. package/dist/component/{messages_tr-B2W0JFA5.js → messages_tr-CyyvnLIf.js} +1 -1
  99. package/dist/component/{messages_uk-eJoBLGbe.js → messages_uk-Cd6ZD7jx.js} +1 -1
  100. package/dist/component/{messages_vi-CkMQrQiM.js → messages_vi-yd6_3tEL.js} +1 -1
  101. package/dist/component/{messages_zh-Bjk7pIfj.js → messages_zh-B-IL56F9.js} +1 -1
  102. package/dist/component/{multiline-address-field-rac-ChRdNcav.js → multiline-address-field-rac-v4baLVN-.js} +7 -7
  103. package/dist/component/{multiline-address-rac-BTYmsl7J.js → multiline-address-rac-DSEFYaK9.js} +1 -1
  104. package/dist/component/number-input-field-rac-BtS1ZELw.js +100 -0
  105. package/dist/component/{number-input-rac-4haw393w.js → number-input-rac-Dcp5G9O6.js} +1 -1
  106. package/dist/component/{password-rac-475OoB0j.js → password-rac-CbwBnPQN.js} +4 -4
  107. package/dist/component/{payment-input-rac-DU4g8Q_7.js → payment-input-rac-BycU7kC0.js} +4 -4
  108. package/dist/component/{phone-input-field-rac-DM6N0P6_.js → phone-input-field-rac-CRudJd3K.js} +173 -165
  109. package/dist/component/{phone-rac-BpHhrYGL.js → phone-rac-CR_y-8L0.js} +1 -1
  110. package/dist/component/{product-list-rac-CAHr_eYH.js → product-list-rac-BGX_Ao_U.js} +4 -4
  111. package/dist/component/{quiz-radio-group-rac-DtFS9WdU.js → quiz-radio-group-rac-Y64Ydx4g.js} +1 -1
  112. package/dist/component/{radio-button-module-classes-Da3agIGS.js → radio-button-module-classes-mm1llaN1.js} +3 -3
  113. package/dist/component/{radio-group-field-rac-CIjHty31.js → radio-group-field-rac-DZ1Zunqs.js} +4 -4
  114. package/dist/component/{radio-group-rac-BG12H8tb.js → radio-group-rac-DJoXPTkY.js} +1 -1
  115. package/dist/component/{rating-input-field-rac-gUx_7bt1.js → rating-input-field-rac-LK4MgWg1.js} +4 -4
  116. package/dist/component/{rating-input-rac-BJSI8ZbG.js → rating-input-rac-azwl4hDP.js} +1 -1
  117. package/dist/component/{rich-content-rac.module-B-GDjJv-.js → rich-content-rac.module-CpwZ_Fdw.js} +1 -1
  118. package/dist/component/{rich-text-field-rac-BduAd7Y3.js → rich-text-field-rac-Bj9T8ePv.js} +2 -2
  119. package/dist/component/{rich-text-rac-C4Vdiv4x.js → rich-text-rac-DnpQO9nK.js} +1 -1
  120. package/dist/component/{service-dropdown-rac-BuPoWPau.js → service-dropdown-rac-DjO5TXrU.js} +4 -4
  121. package/dist/component/{services-multi-choice-rac-DsLG0EQG.js → services-multi-choice-rac-DZtKfJ7-.js} +5 -5
  122. package/dist/component/{signature-rac-Cr9dd1VA.js → signature-rac-C1ToYEaW.js} +4 -4
  123. package/dist/component/{submit-button-rac-DkIrS3o4.js → submit-button-rac-X9P9grBV.js} +2 -2
  124. package/dist/component/{tags-field-rac-kwEl556U.js → tags-field-rac-DS6LWXMo.js} +5 -5
  125. package/dist/component/{tags-rac-Dtq8QoDK.js → tags-rac-BWaRmLro.js} +1 -1
  126. package/dist/component/{text-area-field-rac-CN6dvSZK.js → text-area-field-rac-BO4d-PuE.js} +4 -4
  127. package/dist/component/{text-area-rac-DLTWWGc2.js → text-area-rac-lb3tVc6p.js} +1 -1
  128. package/dist/component/{text-input-field-rac-C8pRxl1y.js → text-input-field-rac-pYHjbgOv.js} +3 -3
  129. package/dist/component/{text-input-headless-DzYQ5At3.js → text-input-headless-DU0U9RT6.js} +3 -3
  130. package/dist/component/{text-input-rac-BLDSDZFI.js → text-input-rac-CJET7wBJ.js} +1 -1
  131. package/dist/component/{time-input-rac-BEM7IGXR.js → time-input-rac-gkYnGBwV.js} +4 -4
  132. package/dist/component/{url-input-field-rac-CAAmxqXc.js → url-input-field-rac-BdLE-izU.js} +4 -4
  133. package/dist/component/{url-input-rac-BnKrD_oR.js → url-input-rac-Ru1vvDyS.js} +1 -1
  134. package/dist/component/{use-dropdown-option-class-name-DMh7xGVx.js → use-dropdown-option-class-name-BsR8isPn.js} +2 -2
  135. package/dist/component/{use-dropdown-trigger-class-name-BbQmaZ3X.js → use-dropdown-trigger-class-name-D79wgJJp.js} +6 -6
  136. package/dist/component/{use-element-state-class-name-BLoDv76u.js → use-element-state-class-name-KbdBayN5.js} +1 -1
  137. package/dist/component/{use-hoverable-input-class-name-DpNSWXbm.js → use-hoverable-input-class-name-BzbFs0Su.js} +2 -2
  138. package/dist/component/{use-is-forced-open-dropdown-HEOoOFoH.js → use-is-forced-open-dropdown-B6hI9O7C.js} +1 -1
  139. package/dist/component/{use-service-options-base-DoYaHTF5.js → use-service-options-base-CzewsGgf.js} +1 -1
  140. package/dist/component/use-text-input-class-name-EB5J024I.js +6 -0
  141. package/package.json +2 -2
  142. package/dist/component/number-input-field-rac-BVtKs_5q.js +0 -94
  143. package/dist/component/use-text-input-class-name-N9UaVdow.js +0 -6
@@ -1,53 +1,61 @@
1
1
  import { RicosViewer as ye } from "@wix/ricos/viewer";
2
2
  import O from "classnames";
3
- import t, { useMemo as $, useState as A, useRef as F, useEffect as k, useCallback as W, createContext as ne, useContext as q, useId as Ee } from "react";
4
- import { bv as fe, bX as D, bE as oe, bW as he, bM as w, bJ as re, bO as ge, X as Oe, am as be, a3 as X, M as _e, I as Ne, a5 as Le, a4 as Se, a2 as Ie } from "./form-D7zqJS-_.js";
5
- import { UNSAFE_PortalProvider as Pe } from "react-aria";
6
- import { Dialog as ae, OverlayTriggerStateContext as ve, ModalOverlay as Fe, Modal as De, SearchField as we, Group as U, ListBoxItem as Be, DialogTrigger as Re, Select as xe, Input as se, Autocomplete as Me } from "react-aria-components";
7
- import { f as h, a as I } from "./find-child-C60k4CxG.js";
8
- import { D as je, E as $e } from "./field-error-headless-CaO_cB31.js";
9
- import { L as Ae } from "./field-label-headless-DUerAlvH.js";
10
- import { N as Te, S as ke } from "./non-modal-popover-D-u13tmp.js";
11
- import { u as Ve } from "./use-invoke-callback-UH73A_J3.js";
12
- import { d as He } from "./use-is-forced-open-dropdown-HEOoOFoH.js";
13
- import { V as Ue, a as qe } from "./use-dropdown-option-class-name-DMh7xGVx.js";
14
- import ce, { AsYouType as Ge, isValidPhoneNumber as Ye, isSupportedCountry as ze } from "libphonenumber-js";
3
+ import t, { useMemo as A, useState as T, useRef as F, useEffect as k, useCallback as Z, createContext as ne, useContext as K, useId as Ee } from "react";
4
+ import { bv as fe, bX as D, bE as oe, bW as he, bM as w, bJ as re, bO as ge, bV as Oe, X as be, am as _e, a3 as J, M as Ne, I as Le, a5 as Se, a4 as Pe, a2 as Ie } from "./form-D4aepRww.js";
5
+ import { UNSAFE_PortalProvider as ve } from "react-aria";
6
+ import { Dialog as ae, OverlayTriggerStateContext as Fe, ModalOverlay as De, Modal as we, SearchField as Be, Group as U, ListBoxItem as Re, DialogTrigger as xe, Select as Me, Input as se, Autocomplete as je } from "react-aria-components";
7
+ import ce, { AsYouType as $e, isValidPhoneNumber as Ae, isSupportedCountry as Te } from "libphonenumber-js";
15
8
  import "libphonenumber-js/metadata.min.json";
16
- import { C as Z } from "./calling-country-codes-PyWuOTmF.js";
17
- import { C as Ke } from "./chevron-down-icon-CcpVm6B-.js";
18
- import { E as We } from "./error-icon-hZxQ6DEy.js";
19
- import { H as J } from "./custom-focus-class-_483Pkwp.js";
9
+ import { f as h, a as P } from "./find-child-C60k4CxG.js";
10
+ import { D as Ve, E as ke } from "./field-error-headless-CzmjLsPB.js";
11
+ import { L as He } from "./field-label-headless-B2WhAN8Z.js";
12
+ import { N as Ue, S as qe } from "./non-modal-popover-D-u13tmp.js";
13
+ import { u as Ge } from "./use-invoke-callback-UH73A_J3.js";
14
+ import { d as Ke } from "./use-is-forced-open-dropdown-B6hI9O7C.js";
15
+ import { V as Ye, a as ze } from "./use-dropdown-option-class-name-BsR8isPn.js";
16
+ import { C as Q } from "./calling-country-codes-PyWuOTmF.js";
17
+ import { C as We } from "./chevron-down-icon-CcpVm6B-.js";
18
+ import { E as Xe } from "./error-icon-hZxQ6DEy.js";
19
+ import { H as ee } from "./custom-focus-class-_483Pkwp.js";
20
20
  import { s as b } from "./field-rac.module-DcyJyi2B.js";
21
- import { u as Q } from "./use-hoverable-input-class-name-DpNSWXbm.js";
22
- function ee(e) {
21
+ import { u as te } from "./use-hoverable-input-class-name-BzbFs0Su.js";
22
+ function q(e) {
23
23
  const n = e ? ce(e) : void 0, r = n == null ? void 0 : n.country;
24
24
  if (r)
25
25
  return r;
26
- const o = new Ge();
26
+ const o = new $e();
27
27
  return e && o.input(e), o.getCountry();
28
28
  }
29
- function G(e) {
29
+ function Y(e) {
30
30
  var n;
31
31
  return e && ((n = fe.getCountryByKey(e)) == null ? void 0 : n.dialCode);
32
32
  }
33
- function V(e) {
33
+ function $(e) {
34
34
  return e === null ? null : e.replace(/[^0-9+]/g, "") || e;
35
35
  }
36
- function te(e, n) {
36
+ function G(e, n) {
37
37
  if (e && n)
38
38
  try {
39
39
  const r = ce(e, n), o = r == null ? void 0 : r.formatInternational();
40
- if (o && Ye(o))
40
+ if (o && Ae(o))
41
41
  return o.replace(/\s+/g, "");
42
42
  } catch {
43
43
  }
44
44
  return e;
45
45
  }
46
- function Xe() {
46
+ const Ze = (e, n) => {
47
+ var i, u;
48
+ const r = e.value;
49
+ if (!r)
50
+ return;
51
+ const { defaultCountry: o, validation: a } = n, c = (u = (i = a == null ? void 0 : a.string) == null ? void 0 : i.phoneOptions) == null ? void 0 : u.allowedCountryCodes, l = q(r) || o || ((c == null ? void 0 : c.length) === 1 ? c[0] : void 0);
52
+ return $(G(r, l)) ?? void 0;
53
+ };
54
+ function Je() {
47
55
  const { t: e } = D(), { language: n } = oe();
48
- return $(() => Object.keys(Z).reduce((o, a) => {
49
- const c = Z[a], l = G(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
50
- return l && ze(a) && o.push({
56
+ return A(() => Object.keys(Q).reduce((o, a) => {
57
+ const c = Q[a], l = Y(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
58
+ return l && Te(a) && o.push({
51
59
  countryName: i,
52
60
  longCountryCode: c,
53
61
  shortCountryCode: a,
@@ -58,22 +66,22 @@ function Xe() {
58
66
  n
59
67
  ]);
60
68
  }
61
- function Ze(e, n) {
69
+ function Qe(e, n) {
62
70
  return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
63
71
  }
64
- function Je(e, n) {
72
+ function et(e, n) {
65
73
  const { countryName: r, callingCode: o, shortCountryCode: a } = e;
66
74
  return !!(H(r, n) || H(o, n) || H(a, n));
67
75
  }
68
76
  function H(e, n) {
69
77
  return e.toLowerCase().includes(n.toLowerCase());
70
78
  }
71
- function Qe({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
72
- const [a, c] = A(e || ""), l = F(V(e ?? null) ?? ""), [i, u] = A(n);
79
+ function tt({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
80
+ const [a, c] = T(e || ""), l = F($(e ?? null) ?? ""), [i, u] = T(n);
73
81
  he(() => {
74
82
  c(""), l.current = "", u(n), o("");
75
83
  });
76
- const p = $(() => ee(a), [
84
+ const p = A(() => q(a), [
77
85
  a
78
86
  ]);
79
87
  k(() => {
@@ -92,23 +100,23 @@ function Qe({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
92
100
  p,
93
101
  n
94
102
  ]);
95
- const C = W((m) => {
103
+ const C = Z((m) => {
96
104
  if (c(m), !m) {
97
105
  l.current = "", o(null);
98
106
  return;
99
107
  }
100
- const f = ee(m);
108
+ const E = q(m);
101
109
  u((y) => {
102
- const S = f || y || ((r == null ? void 0 : r.length) === 1 ? r[0] : void 0), N = V(te(m, S));
103
- return l.current = N ?? "", o(N), f || y;
110
+ const S = E || y || ((r == null ? void 0 : r.length) === 1 ? r[0] : void 0), N = $(G(m, S));
111
+ return l.current = N ?? "", o(N), E || y;
104
112
  });
105
113
  }, [
106
114
  r,
107
115
  o
108
- ]), d = W((m) => {
109
- u(m), c((f) => {
110
- const y = V(te(f, m));
111
- return l.current = y ?? "", o(y), f;
116
+ ]), d = Z((m) => {
117
+ u(m), c((E) => {
118
+ const y = $(G(E, m));
119
+ return l.current = y ?? "", o(y), E;
112
120
  });
113
121
  }, [
114
122
  o
@@ -121,16 +129,16 @@ function Qe({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
121
129
  };
122
130
  }
123
131
  const le = /* @__PURE__ */ ne(null), _ = () => {
124
- const e = q(le);
132
+ const e = K(le);
125
133
  if (!e)
126
134
  throw new Error("Phone input components must be used within PhoneInput component");
127
135
  return e;
128
- }, ue = /* @__PURE__ */ ne(null), Y = () => {
129
- const e = q(ue);
136
+ }, ue = /* @__PURE__ */ ne(null), z = () => {
137
+ const e = K(ue);
130
138
  if (!e)
131
139
  throw new Error("Option sub-components must be used within Option component");
132
140
  return e;
133
- }, z = ({ longCountryCode: e, className: n }) => {
141
+ }, W = ({ longCountryCode: e, className: n }) => {
134
142
  function r(c, l) {
135
143
  const i = "https://static.parastorage.com/services/linguist-flags/1.1005.0/assets/flags/square/", p = `${c}${l === "2x" ? "_2x" : ""}.png`;
136
144
  return `${i}${p}`;
@@ -146,18 +154,18 @@ const le = /* @__PURE__ */ ne(null), _ = () => {
146
154
  });
147
155
  }, s = ({ children: e }) => {
148
156
  var L, v;
149
- const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = w(), [i, u] = A(null), p = (v = (L = l == null ? void 0 : l.string) == null ? void 0 : L.phoneOptions) == null ? void 0 : v.allowedCountryCodes, C = Xe(), d = $(() => Ze(C, p), [
157
+ const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = w(), [i, u] = T(null), p = (v = (L = l == null ? void 0 : l.string) == null ? void 0 : L.phoneOptions) == null ? void 0 : v.allowedCountryCodes, C = Je(), d = A(() => Qe(C, p), [
150
158
  C,
151
159
  p
152
- ]), m = $(() => d.map((j) => j.shortCountryCode), [
160
+ ]), m = A(() => d.map((j) => j.shortCountryCode), [
153
161
  d
154
- ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: S, handleCountryCodeChange: N } = Qe({
162
+ ]), { currentValue: E, selectedCountryCode: y, handlePhoneChange: S, handleCountryCodeChange: N } = tt({
155
163
  value: r,
156
164
  defaultCountryCode: c,
157
165
  allowedCountryCodes: m,
158
166
  onChange: o
159
- }), B = h(e, s.Label), R = h(e, s.Control), x = h(e, s.Description), M = h(e, s.Error), P = {
160
- currentValue: f,
167
+ }), B = h(e, s.Label), R = h(e, s.Control), x = h(e, s.Description), M = h(e, s.Error), I = {
168
+ currentValue: E,
161
169
  selectedCountryCode: y,
162
170
  handlePhoneChange: S,
163
171
  handleCountryCodeChange: N,
@@ -166,7 +174,7 @@ const le = /* @__PURE__ */ ne(null), _ = () => {
166
174
  popoverContainer: i
167
175
  };
168
176
  return /* @__PURE__ */ t.createElement(le.Provider, {
169
- value: P
177
+ value: I
170
178
  }, /* @__PURE__ */ t.createElement(a, {
171
179
  fieldId: n,
172
180
  renderLabel: () => B,
@@ -178,30 +186,30 @@ const le = /* @__PURE__ */ ne(null), _ = () => {
178
186
  }), R),
179
187
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M, x)
180
188
  }));
181
- }, K = ({ children: e, className: n }) => {
182
- const { labelId: r } = re(), { hasError: o, disabled: a, readOnly: c } = w(), { t: l } = D(), { selectedCountryCode: i, countries: u } = _(), p = Ee(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && G(C.longCountryCode) || "", m = l("field.phone.country-code.aria-label"), f = C ? `${m}, ${C.countryName}, ${d}` : m;
183
- return /* @__PURE__ */ t.createElement(ke, {
189
+ }, X = ({ children: e, className: n }) => {
190
+ const { labelId: r } = re(), { hasError: o, disabled: a, readOnly: c } = w(), { t: l } = D(), { selectedCountryCode: i, countries: u } = _(), p = Ee(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && Y(C.longCountryCode) || "", m = l("field.phone.country-code.aria-label"), E = C ? `${m}, ${C.countryName}, ${d}` : m;
191
+ return /* @__PURE__ */ t.createElement(qe, {
184
192
  isDisabled: a || c,
185
193
  id: p,
186
- "aria-label": f,
194
+ "aria-label": E,
187
195
  "aria-labelledby": r ? `${r} ${p}` : void 0,
188
196
  className: n,
189
197
  "data-invalid": o || void 0
190
198
  }, e);
191
- }, et = ({ className: e }) => {
199
+ }, nt = ({ className: e }) => {
192
200
  const { selectedCountryCode: n, countries: r } = _(), o = r.find((a) => a.shortCountryCode === n);
193
- return o ? /* @__PURE__ */ t.createElement(z, {
201
+ return o ? /* @__PURE__ */ t.createElement(W, {
194
202
  className: e,
195
203
  longCountryCode: o.longCountryCode
196
204
  }) : null;
197
- }, tt = ({ children: e, className: n }) => {
205
+ }, ot = ({ children: e, className: n }) => {
198
206
  const { selectedCountryCode: r, countries: o } = _();
199
207
  return o.some((c) => c.shortCountryCode === r) ? null : /* @__PURE__ */ t.createElement("span", {
200
208
  className: n
201
209
  }, e);
202
210
  };
203
- K.Flag = et;
204
- K.EmptyState = tt;
211
+ X.Flag = nt;
212
+ X.EmptyState = ot;
205
213
  const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a, ...c }) => {
206
214
  const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: p } = c, { popoverContainer: C } = _(), d = h(e, g.Search);
207
215
  if (!p)
@@ -209,9 +217,9 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
209
217
  const m = /* @__PURE__ */ t.createElement(ie, {
210
218
  isForcedOpen: u
211
219
  }, e);
212
- return /* @__PURE__ */ t.createElement(Pe, {
220
+ return /* @__PURE__ */ t.createElement(ve, {
213
221
  getContainer: () => C
214
- }, /* @__PURE__ */ t.createElement(Te, {
222
+ }, /* @__PURE__ */ t.createElement(Ue, {
215
223
  ref: i,
216
224
  triggerRef: l,
217
225
  className: n,
@@ -221,12 +229,12 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
221
229
  }, d && !u ? /* @__PURE__ */ t.createElement(ae, {
222
230
  "aria-label": r
223
231
  }, m) : m));
224
- }, nt = ({ children: e, className: n, overlayClassName: r, "aria-label": o, portalContainer: a = t.Fragment, ...c }) => {
225
- const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), p = q(ve);
226
- return /* @__PURE__ */ t.createElement(Fe, {
232
+ }, rt = ({ children: e, className: n, overlayClassName: r, "aria-label": o, portalContainer: a = t.Fragment, ...c }) => {
233
+ const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), p = K(Fe);
234
+ return /* @__PURE__ */ t.createElement(De, {
227
235
  className: r,
228
236
  isDismissable: !0
229
- }, /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(De, {
237
+ }, /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(we, {
230
238
  ref: l,
231
239
  className: n
232
240
  }, /* @__PURE__ */ t.createElement(ae, {
@@ -245,13 +253,13 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
245
253
  }
246
254
  }, e)))));
247
255
  }, ie = ({ children: e, listBoxProps: n, isForcedOpen: r }) => {
248
- const { countries: o } = _(), a = h(e, g.Option), c = h(e, g.Search), l = h(e, g.EmptyState), i = /* @__PURE__ */ t.createElement(Ue, {
256
+ const { countries: o } = _(), a = h(e, g.Option), c = h(e, g.Search), l = h(e, g.EmptyState), i = /* @__PURE__ */ t.createElement(Ye, {
249
257
  isForcedOpen: r === !0,
250
258
  ...n,
251
259
  renderEmptyState: l ? () => l : void 0
252
260
  }, o.map((u) => {
253
- const p = G(u.longCountryCode) || "";
254
- return I(a, {
261
+ const p = Y(u.longCountryCode) || "";
262
+ return P(a, {
255
263
  key: u.shortCountryCode,
256
264
  countryCode: u.shortCountryCode,
257
265
  dialingCode: p,
@@ -259,43 +267,43 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
259
267
  longCountryCode: u.longCountryCode
260
268
  });
261
269
  }));
262
- return c ? /* @__PURE__ */ t.createElement(Me, {
270
+ return c ? /* @__PURE__ */ t.createElement(je, {
263
271
  filter: (u, p, C) => {
264
272
  const d = o.find((m) => m.shortCountryCode === C.key);
265
- return !!d && Je(d, p);
273
+ return !!d && et(d, p);
266
274
  }
267
- }, r ? I(c, {
275
+ }, r ? P(c, {
268
276
  autoFocus: !1
269
277
  }) : c, i) : i;
270
278
  };
271
279
  g.Popover = g;
272
- g.Modal = nt;
280
+ g.Modal = rt;
273
281
  const me = ({ className: e, children: n, "aria-label": r, ...o }) => {
274
282
  const { autoFocus: a = !0 } = o;
275
- return /* @__PURE__ */ t.createElement(we, {
283
+ return /* @__PURE__ */ t.createElement(Be, {
276
284
  "aria-label": r,
277
285
  autoFocus: a
278
286
  }, /* @__PURE__ */ t.createElement(U, {
279
287
  className: e
280
288
  }, n));
281
- }, ot = ({ className: e, placeholder: n }) => /* @__PURE__ */ t.createElement(se, {
289
+ }, at = ({ className: e, placeholder: n }) => /* @__PURE__ */ t.createElement(se, {
282
290
  className: e,
283
291
  placeholder: n
284
292
  });
285
- me.Input = ot;
293
+ me.Input = at;
286
294
  g.Search = me;
287
- const rt = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement("div", {
295
+ const st = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement("div", {
288
296
  className: n
289
297
  }, e);
290
- g.EmptyState = rt;
291
- const T = ({ children: e, className: n, ...r }) => {
298
+ g.EmptyState = st;
299
+ const V = ({ children: e, className: n, ...r }) => {
292
300
  const { countryCode: o, dialingCode: a, countryName: c, longCountryCode: l } = r, i = {
293
301
  countryCode: o,
294
302
  dialingCode: a,
295
303
  countryName: c,
296
304
  longCountryCode: l
297
305
  }, u = e || /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(pe, null), /* @__PURE__ */ t.createElement(Ce, null), /* @__PURE__ */ t.createElement(de, null));
298
- return /* @__PURE__ */ t.createElement(Be, {
306
+ return /* @__PURE__ */ t.createElement(Re, {
299
307
  className: n,
300
308
  id: o,
301
309
  textValue: `${c} ${a}`
@@ -303,35 +311,35 @@ const T = ({ children: e, className: n, ...r }) => {
303
311
  value: i
304
312
  }, u));
305
313
  }, pe = ({ className: e }) => {
306
- const { longCountryCode: n } = Y();
307
- return /* @__PURE__ */ t.createElement(z, {
314
+ const { longCountryCode: n } = z();
315
+ return /* @__PURE__ */ t.createElement(W, {
308
316
  className: e,
309
317
  longCountryCode: n
310
318
  });
311
319
  }, Ce = ({ className: e }) => {
312
- const { countryName: n } = Y();
320
+ const { countryName: n } = z();
313
321
  return /* @__PURE__ */ t.createElement("span", {
314
322
  className: e
315
323
  }, n);
316
324
  }, de = ({ className: e }) => {
317
- const { dialingCode: n } = Y();
325
+ const { dialingCode: n } = z();
318
326
  return /* @__PURE__ */ t.createElement("span", {
319
327
  className: e
320
328
  }, n);
321
329
  };
322
- T.Flag = pe;
323
- T.Name = Ce;
324
- T.Code = de;
325
- g.Option = T;
326
- const at = ({ className: e }) => {
327
- const { t: n } = D(), { inputId: r, ariaDescribedBy: o } = re(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: p, hasError: C } = w(), { currentValue: d, handlePhoneChange: m } = _(), f = F(null);
330
+ V.Flag = pe;
331
+ V.Name = Ce;
332
+ V.Code = de;
333
+ g.Option = V;
334
+ const ct = ({ className: e }) => {
335
+ const { t: n } = D(), { inputId: r, ariaDescribedBy: o } = re(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: p, hasError: C } = w(), { currentValue: d, handlePhoneChange: m } = _(), E = F(null);
328
336
  return ge(() => {
329
337
  var y;
330
- (y = f.current) == null || y.focus({
338
+ (y = E.current) == null || y.focus({
331
339
  preventScroll: !0
332
340
  });
333
- }, a), /* @__PURE__ */ t.createElement(se, {
334
- ref: f,
341
+ }, a), Oe(E, Ze), /* @__PURE__ */ t.createElement(se, {
342
+ ref: E,
335
343
  id: r,
336
344
  type: "tel",
337
345
  autoComplete: "tel",
@@ -346,9 +354,9 @@ const at = ({ className: e }) => {
346
354
  placeholder: c,
347
355
  className: e
348
356
  });
349
- }, st = ({ children: e, ...n }) => {
350
- const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = w(), [u, p] = A(!1), { t: C } = D(), { selectedCountryCode: d, handleCountryCodeChange: m } = _(), f = o || u && !a && !c;
351
- return /* @__PURE__ */ t.createElement(xe, {
357
+ }, lt = ({ children: e, ...n }) => {
358
+ const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = w(), [u, p] = T(!1), { t: C } = D(), { selectedCountryCode: d, handleCountryCodeChange: m } = _(), E = o || u && !a && !c;
359
+ return /* @__PURE__ */ t.createElement(Me, {
352
360
  "aria-label": C("field.phone.country-code.aria-label"),
353
361
  value: d ?? null,
354
362
  onChange: (y) => m(y),
@@ -356,20 +364,20 @@ const at = ({ className: e }) => {
356
364
  isInvalid: i,
357
365
  isRequired: l,
358
366
  placeholder: "",
359
- isOpen: f,
367
+ isOpen: E,
360
368
  allowsEmptyCollection: !0,
361
369
  onOpenChange: o ? void 0 : p
362
- }, h(e, s.CountryButton), I(h(e, s.CountryOptions.Popover), {
370
+ }, h(e, s.CountryButton), P(h(e, s.CountryOptions.Popover), {
363
371
  ...r,
364
- isOpen: f
372
+ isOpen: E
365
373
  }));
366
- }, ct = ({ children: e, ...n }) => {
374
+ }, ut = ({ children: e, ...n }) => {
367
375
  const r = n;
368
- return /* @__PURE__ */ t.createElement(Re, null, h(e, s.CountryButton), I(h(e, s.CountryOptions.Modal), r));
369
- }, lt = ({ children: e, className: n }) => {
370
- const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: p, onBlur: C } = w(), d = Ve(C), { countries: m } = _(), f = h(e, s.CountryDrawer), y = h(e, s.CountryPopover), S = h(e, s.PhoneNumber), N = m.length > 1, B = He(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: P, isFocusWithin: L }) => n({
376
+ return /* @__PURE__ */ t.createElement(xe, null, h(e, s.CountryButton), P(h(e, s.CountryOptions.Modal), r));
377
+ }, it = ({ children: e, className: n }) => {
378
+ const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: p, onBlur: C } = w(), d = Ge(C), { countries: m } = _(), E = h(e, s.CountryDrawer), y = h(e, s.CountryPopover), S = h(e, s.PhoneNumber), N = m.length > 1, B = Ke(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: I, isFocusWithin: L }) => n({
371
379
  hasCountryOptions: N,
372
- isHovered: P,
380
+ isHovered: I,
373
381
  isFocusWithin: L
374
382
  }) : n, x = {
375
383
  triggerRef: r,
@@ -379,9 +387,9 @@ const at = ({ className: e }) => {
379
387
  onFocus: () => {
380
388
  a.current || (a.current = !0, p == null || p());
381
389
  },
382
- onBlur: (P) => {
390
+ onBlur: (I) => {
383
391
  var v, j;
384
- const L = P.relatedTarget;
392
+ const L = I.relatedTarget;
385
393
  !((v = r.current) != null && v.contains(L)) && !((j = o.current) != null && j.contains(L)) && (a.current = !1, d());
386
394
  }
387
395
  };
@@ -391,7 +399,7 @@ const at = ({ className: e }) => {
391
399
  isDisabled: l,
392
400
  isInvalid: i,
393
401
  ...M
394
- }, u && /* @__PURE__ */ t.createElement(z, {
402
+ }, u && /* @__PURE__ */ t.createElement(W, {
395
403
  longCountryCode: m[0].longCountryCode
396
404
  }), S) : /* @__PURE__ */ t.createElement(U, {
397
405
  ref: r,
@@ -399,18 +407,18 @@ const at = ({ className: e }) => {
399
407
  isDisabled: l,
400
408
  isInvalid: i,
401
409
  ...M
402
- }, !B && I(f, x), I(y, x), S);
410
+ }, !B && P(E, x), P(y, x), S);
403
411
  };
404
- s.Label = Ae;
405
- s.Control = lt;
406
- s.CountryButton = K;
407
- s.CountryDrawer = ct;
408
- s.CountryPopover = st;
412
+ s.Label = He;
413
+ s.Control = it;
414
+ s.CountryButton = X;
415
+ s.CountryDrawer = ut;
416
+ s.CountryPopover = lt;
409
417
  s.CountryOptions = g;
410
- s.PhoneNumber = at;
411
- s.Description = je;
412
- s.Error = $e;
413
- const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
418
+ s.PhoneNumber = ct;
419
+ s.Description = Ve;
420
+ s.Error = ke;
421
+ const mt = (e) => /* @__PURE__ */ t.createElement("svg", {
414
422
  width: 24,
415
423
  height: 24,
416
424
  viewBox: "0 0 24 24",
@@ -420,7 +428,7 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
420
428
  }, /* @__PURE__ */ t.createElement("path", {
421
429
  fillRule: "evenodd",
422
430
  d: "M11.5,19 C11.331,19 11.166,18.985 11,18.975 L11,16.5 C11,16.224 10.776,16 10.5,16 L9.5,16 C9.224,16 9,15.775 9,15.5 L9,12.5 C9,12.366 8.947,12.238 8.852,12.145 L4.804,8.14 C6.04,5.688 8.573,4 11.5,4 C12.76,4 13.946,4.315 14.989,4.866 L15,6.497 C15.001,6.631 14.949,6.757 14.855,6.853 C14.76,6.947 14.634,7 14.5,7 L12.339,7 C12.207,7 12.08,7.053 11.986,7.146 L10.146,8.983 C10.053,9.077 10,9.204 10,9.337 L10,10.5 C10,11.325 10.672,11.999 11.499,12 L15.293,12 L17,13.707 L17,16.582 C15.629,18.064 13.674,19 11.5,19 M4,11.5 C4,10.673 4.14,9.879 4.388,9.135 L8,12.709 L8,15.5 C8,16.327 8.673,17 9.5,17 L10,17 L10,18.849 C6.581,18.152 4,15.122 4,11.5 M19,11.5 C19,12.856 18.632,14.127 18,15.226 L18,13.5 C18,13.367 17.947,13.24 17.854,13.146 L15.854,11.146 C15.76,11.053 15.633,11 15.5,11 L11.5,11 C11.224,11 11,10.775 11,10.5 L11,9.544 L12.546,8 L14.5,8 C14.902,8 15.281,7.843 15.564,7.557 C15.848,7.271 16.003,6.892 16,6.49 L15.993,5.51 C17.814,6.879 19,9.051 19,11.5 M11.5,3 C6.813,3 3,6.813 3,11.5 C3,16.187 6.813,20 11.5,20 C16.187,20 20,16.187 20,11.5 C20,6.813 16.187,3 11.5,3"
423
- })), it = (e) => /* @__PURE__ */ t.createElement("svg", {
431
+ })), pt = (e) => /* @__PURE__ */ t.createElement("svg", {
424
432
  width: 24,
425
433
  height: 24,
426
434
  viewBox: "0 0 24 24",
@@ -430,83 +438,83 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
430
438
  }, /* @__PURE__ */ t.createElement("path", {
431
439
  fillRule: "evenodd",
432
440
  d: "M6.6108,14.3887 C5.5718,13.3497 4.9998,11.9687 4.9998,10.4997 C4.9998,9.0317 5.5718,7.6507 6.6108,6.6117 C7.6498,5.5727 9.0308,4.9997 10.4998,4.9997 C11.9688,4.9997 13.3498,5.5727 14.3888,6.6117 C15.4278,7.6507 15.9998,9.0317 15.9998,10.4997 C15.9998,11.9687 15.4278,13.3497 14.3888,14.3887 C13.3498,15.4277 11.9688,15.9997 10.4998,15.9997 C9.0308,15.9997 7.6498,15.4277 6.6108,14.3887 L6.6108,14.3887 Z M20.0028,19.2957 L15.4328,14.7247 C16.4438,13.5477 16.9998,12.0687 16.9998,10.4997 C16.9998,8.7637 16.3238,7.1317 15.0958,5.9047 C13.8688,4.6767 12.2358,3.9997 10.4998,3.9997 C8.7638,3.9997 7.1318,4.6767 5.9038,5.9047 C4.6758,7.1317 3.9998,8.7637 3.9998,10.4997 C3.9998,12.2367 4.6758,13.8677 5.9038,15.0957 C7.1318,16.3237 8.7638,16.9997 10.4998,16.9997 C12.0688,16.9997 13.5478,16.4437 14.7258,15.4317 L19.2958,20.0027 L20.0028,19.2957 Z"
433
- })), mt = "_control_o9wij_1", pt = "_countryButton_o9wij_9", Ct = "_drawerButton_o9wij_25", dt = "_popoverButton_o9wij_34", yt = "_chevron_o9wij_39", Et = "_globeIcon_o9wij_48", ft = "_searchIcon_o9wij_56", ht = "_flag_o9wij_61", gt = "_option_o9wij_67", Ot = "_phoneNumber_o9wij_80", bt = "_countryOptions_o9wij_106", _t = "_countrySearch_o9wij_123", Nt = "_mobileDrawer_o9wij_131", Lt = "_name_o9wij_140", St = "_code_o9wij_144", It = "_mobileOverlay_o9wij_161", E = {
434
- control: mt,
435
- countryButton: pt,
436
- drawerButton: Ct,
437
- popoverButton: dt,
438
- chevron: yt,
439
- globeIcon: Et,
440
- searchIcon: ft,
441
- flag: ht,
442
- option: gt,
443
- phoneNumber: Ot,
444
- countryOptions: bt,
445
- countrySearch: _t,
446
- mobileDrawer: Nt,
447
- name: Lt,
448
- code: St,
449
- mobileOverlay: It
450
- }, Pt = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(ye, {
441
+ })), Ct = "_control_o9wij_1", dt = "_countryButton_o9wij_9", yt = "_drawerButton_o9wij_25", Et = "_popoverButton_o9wij_34", ft = "_chevron_o9wij_39", ht = "_globeIcon_o9wij_48", gt = "_searchIcon_o9wij_56", Ot = "_flag_o9wij_61", bt = "_option_o9wij_67", _t = "_phoneNumber_o9wij_80", Nt = "_countryOptions_o9wij_106", Lt = "_countrySearch_o9wij_123", St = "_mobileDrawer_o9wij_131", Pt = "_name_o9wij_140", It = "_code_o9wij_144", vt = "_mobileOverlay_o9wij_161", f = {
442
+ control: Ct,
443
+ countryButton: dt,
444
+ drawerButton: yt,
445
+ popoverButton: Et,
446
+ chevron: ft,
447
+ globeIcon: ht,
448
+ searchIcon: gt,
449
+ flag: Ot,
450
+ option: bt,
451
+ phoneNumber: _t,
452
+ countryOptions: Nt,
453
+ countrySearch: Lt,
454
+ mobileDrawer: St,
455
+ name: Pt,
456
+ code: It,
457
+ mobileOverlay: vt
458
+ }, Ft = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(ye, {
451
459
  content: e,
452
460
  locale: n
453
- }), vt = () => /* @__PURE__ */ t.createElement("span", {
454
- className: E.chevron,
461
+ }), Dt = () => /* @__PURE__ */ t.createElement("span", {
462
+ className: f.chevron,
455
463
  "aria-hidden": "true"
456
- }, /* @__PURE__ */ t.createElement(Ke, null)), Xt = () => {
457
- const e = qe(Se, b.selectOptionWithoutFocusRing, E.option, J), n = Q(Ie, [
458
- E.control
459
- ]), r = Q(Le, [
460
- E.countrySearch
464
+ }, /* @__PURE__ */ t.createElement(We, null)), Jt = () => {
465
+ const e = ze(Pe, b.selectOptionWithoutFocusRing, f.option, ee), n = te(Ie, [
466
+ f.control
467
+ ]), r = te(Se, [
468
+ f.countrySearch
461
469
  ]), { t: o } = D(), { PortalContainer: a } = oe(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
462
470
  className: r,
463
471
  "aria-label": o("field.phone.country-search-input.aria-label")
464
- }, /* @__PURE__ */ t.createElement(it, {
465
- className: E.searchIcon
472
+ }, /* @__PURE__ */ t.createElement(pt, {
473
+ className: f.searchIcon
466
474
  }), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
467
- className: O(b.innerInput, J),
475
+ className: O(b.innerInput, ee),
468
476
  placeholder: o("field.phone.country-search-input.placeholder")
469
477
  })), 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, {
470
- className: E.flag
471
- }), /* @__PURE__ */ t.createElement(s.CountryButton.EmptyState, null, /* @__PURE__ */ t.createElement(ut, {
472
- className: E.globeIcon
473
- })), /* @__PURE__ */ t.createElement(vt, null)), u = /* @__PURE__ */ t.createElement(s.CountryOptions.Option, {
478
+ className: f.flag
479
+ }), /* @__PURE__ */ t.createElement(s.CountryButton.EmptyState, null, /* @__PURE__ */ t.createElement(mt, {
480
+ className: f.globeIcon
481
+ })), /* @__PURE__ */ t.createElement(Dt, null)), u = /* @__PURE__ */ t.createElement(s.CountryOptions.Option, {
474
482
  className: e
475
483
  }, /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Flag, {
476
- className: E.flag
484
+ className: f.flag
477
485
  }), /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Name, {
478
- className: E.name
486
+ className: f.name
479
487
  }), /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Code, {
480
- className: E.code
488
+ className: f.code
481
489
  }));
482
490
  return /* @__PURE__ */ t.createElement(s, null, /* @__PURE__ */ t.createElement(s.Label, {
483
- className: O(Oe, b.label)
491
+ className: O(be, b.label)
484
492
  }, /* @__PURE__ */ t.createElement(s.Label.Required, {
485
- className: O(be, b.requiredMark)
493
+ className: O(_e, b.requiredMark)
486
494
  })), /* @__PURE__ */ t.createElement(s.Control, {
487
495
  className: ({ hasCountryOptions: p, ...C }) => n(C)
488
496
  }, /* @__PURE__ */ t.createElement(s.CountryDrawer, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
489
- className: O(E.countryButton, E.drawerButton)
497
+ className: O(f.countryButton, f.drawerButton)
490
498
  }, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Modal, {
491
- className: O(X, b.selectPopover, E.mobileDrawer),
492
- overlayClassName: E.mobileOverlay,
499
+ className: O(J, b.selectPopover, f.mobileDrawer),
500
+ overlayClassName: f.mobileOverlay,
493
501
  portalContainer: a,
494
502
  "aria-label": o("field.phone.country-code.aria-label")
495
503
  }, c, l, u)), /* @__PURE__ */ t.createElement(s.CountryPopover, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
496
- className: O(E.countryButton, E.popoverButton)
504
+ className: O(f.countryButton, f.popoverButton)
497
505
  }, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Popover, {
498
- className: O(X, b.selectPopover, E.countryOptions),
506
+ className: O(J, b.selectPopover, f.countryOptions),
499
507
  placement: "bottom start",
500
508
  offset: 0,
501
509
  "aria-label": o("field.phone.country-code.aria-label")
502
510
  }, c, l, u)), /* @__PURE__ */ t.createElement(s.PhoneNumber, {
503
- className: O(b.innerInput, E.phoneNumber)
511
+ className: O(b.innerInput, f.phoneNumber)
504
512
  })), /* @__PURE__ */ t.createElement(s.Error, {
505
- className: O(_e, b.error)
506
- }, /* @__PURE__ */ t.createElement(We, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
507
- className: O(Ne, b.description)
508
- }, Pt));
513
+ className: O(Ne, b.error)
514
+ }, /* @__PURE__ */ t.createElement(Xe, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
515
+ className: O(Le, b.description)
516
+ }, Ft));
509
517
  };
510
518
  export {
511
- Xt as P
519
+ Jt as P
512
520
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-DM6N0P6_.js";
2
+ import { P as o } from "./phone-input-field-rac-CRudJd3K.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  r as PhoneRAC