@feathery/react 2.12.2 → 2.12.3-pr-1522.4bcc507.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 (206) hide show
  1. package/dist/Form/index.d.ts.map +1 -1
  2. package/dist/Form/tests/testMocks.d.ts.map +1 -1
  3. package/dist/cjs/Form/index.d.ts.map +1 -1
  4. package/dist/cjs/Form/tests/testMocks.d.ts.map +1 -1
  5. package/dist/cjs/elements/fields/AddressLine1Field/tests/test-utils.d.ts +1 -0
  6. package/dist/cjs/elements/fields/AddressLine1Field/tests/test-utils.d.ts.map +1 -1
  7. package/dist/cjs/elements/fields/ButtonGroupField/tests/test-utils.d.ts +1 -0
  8. package/dist/cjs/elements/fields/ButtonGroupField/tests/test-utils.d.ts.map +1 -1
  9. package/dist/cjs/elements/fields/CheckboxField/tests/test-utils.d.ts +1 -0
  10. package/dist/cjs/elements/fields/CheckboxField/tests/test-utils.d.ts.map +1 -1
  11. package/dist/cjs/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +1 -0
  12. package/dist/cjs/elements/fields/CheckboxGroupField/tests/test-utils.d.ts.map +1 -1
  13. package/dist/cjs/elements/fields/ColorPickerField/tests/test-utils.d.ts +1 -0
  14. package/dist/cjs/elements/fields/ColorPickerField/tests/test-utils.d.ts.map +1 -1
  15. package/dist/cjs/elements/fields/DateSelectorField/tests/test-utils.d.ts +1 -0
  16. package/dist/cjs/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
  17. package/dist/cjs/elements/fields/DropdownField/tests/test-utils.d.ts +2 -0
  18. package/dist/cjs/elements/fields/DropdownField/tests/test-utils.d.ts.map +1 -1
  19. package/dist/cjs/elements/fields/DropdownMultiField/tests/test-utils.d.ts +1 -0
  20. package/dist/cjs/elements/fields/DropdownMultiField/tests/test-utils.d.ts.map +1 -1
  21. package/dist/cjs/elements/fields/MatrixField/tests/test-utils.d.ts +1 -0
  22. package/dist/cjs/elements/fields/MatrixField/tests/test-utils.d.ts.map +1 -1
  23. package/dist/cjs/elements/fields/PasswordField/tests/test-utils.d.ts +1 -0
  24. package/dist/cjs/elements/fields/PasswordField/tests/test-utils.d.ts.map +1 -1
  25. package/dist/cjs/elements/fields/PhoneField/tests/test-utils.d.ts +1 -0
  26. package/dist/cjs/elements/fields/PhoneField/tests/test-utils.d.ts.map +1 -1
  27. package/dist/cjs/elements/fields/PinInputField/tests/test-utils.d.ts +1 -0
  28. package/dist/cjs/elements/fields/PinInputField/tests/test-utils.d.ts.map +1 -1
  29. package/dist/cjs/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts +1 -0
  30. package/dist/cjs/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts.map +1 -1
  31. package/dist/cjs/elements/fields/RatingField/tests/test-utils.d.ts +1 -0
  32. package/dist/cjs/elements/fields/RatingField/tests/test-utils.d.ts.map +1 -1
  33. package/dist/cjs/elements/fields/SliderField/tests/test-utils.d.ts +1 -0
  34. package/dist/cjs/elements/fields/SliderField/tests/test-utils.d.ts.map +1 -1
  35. package/dist/cjs/elements/fields/shared/tests/field-test-utils.d.ts +1 -0
  36. package/dist/cjs/elements/fields/shared/tests/field-test-utils.d.ts.map +1 -1
  37. package/dist/cjs/{fthry_FormControl.C6Rjgaho.js → fthry_FormControl.BkRkEOPV.js} +1 -1
  38. package/dist/cjs/{fthry_InlineTooltip.7d1XAj6X.js → fthry_InlineTooltip.CbVeAbj-.js} +2 -2
  39. package/dist/cjs/{fthry_Overlay.Bw-JWkvN.js → fthry_Overlay.zp3MDZez.js} +1 -1
  40. package/dist/cjs/{fthry_PaymentMethodField.DFPieFTd.js → fthry_PaymentMethodField.CJ8dq0fW.js} +4 -4
  41. package/dist/cjs/{fthry_Placeholder.DExePn4A.js → fthry_Placeholder.BmZn9eqe.js} +1 -1
  42. package/dist/cjs/{fthry_ShowEyeIcon.UMZgA8E5.js → fthry_ShowEyeIcon.Bm2XEOxd.js} +1 -1
  43. package/dist/cjs/{fthry_index.wQoLwNSA.js → fthry_index.B4YjC-C6.js} +3 -3
  44. package/dist/cjs/{fthry_index.C1oeAVTE.js → fthry_index.B9-9P9JF.js} +5 -5
  45. package/dist/cjs/{fthry_index.S5WoB9-i.js → fthry_index.BGZ09_Df.js} +4 -4
  46. package/dist/cjs/{fthry_index.DMvOdp_W.js → fthry_index.BHZiDOJy.js} +4 -4
  47. package/dist/cjs/{fthry_index.B6Z5Lnk8.js → fthry_index.BMG2-fL2.js} +1 -1
  48. package/dist/cjs/{fthry_index.BsqXL16P.js → fthry_index.BRcdDEP7.js} +5 -5
  49. package/dist/cjs/{fthry_index.CioaVxCu.js → fthry_index.BYMaOURT.js} +1 -1
  50. package/dist/cjs/{fthry_index.Bz0SR10h.js → fthry_index.Bc1WOCpN.js} +2 -2
  51. package/dist/cjs/{fthry_index.RgU7Oxrf.js → fthry_index.Bwkf_lk3.js} +953 -266
  52. package/dist/cjs/{fthry_index.KdnS_mBc.js → fthry_index.CAuvgDuG.js} +2 -2
  53. package/dist/cjs/{fthry_index.DZF8XXGF.js → fthry_index.CohzVLkQ.js} +4 -4
  54. package/dist/cjs/{fthry_index.Di_2sd1H.js → fthry_index.CtdngFQd.js} +81 -55
  55. package/dist/cjs/{fthry_index.YNi32Ez7.js → fthry_index.CzI9aLcM.js} +6 -6
  56. package/dist/cjs/{fthry_index.Cd5vLcwa.js → fthry_index.D6MKhV5W.js} +1 -1
  57. package/dist/cjs/{fthry_index.BnwtRb9Y.js → fthry_index.DHlxQYOY.js} +90 -63
  58. package/dist/cjs/{fthry_index.xtJFp2c_.js → fthry_index.DI7QOcRZ.js} +3 -3
  59. package/dist/cjs/{fthry_index.D1qaLv6Z.js → fthry_index.DNAP_k72.js} +8 -8
  60. package/dist/cjs/{fthry_index.DE7MeZLB.js → fthry_index.DRGdkWyD.js} +5 -5
  61. package/dist/cjs/{fthry_index.vmA_xfxy.js → fthry_index.DvJ038DD.js} +205 -71
  62. package/dist/cjs/{fthry_index.C_3RykNd.js → fthry_index.E_PMR0Yl.js} +1 -1
  63. package/dist/cjs/{fthry_index.CJZrrJii.js → fthry_index.fleNYFAW.js} +1 -1
  64. package/dist/cjs/{fthry_index.DX-1RJ2S.js → fthry_index.hn3nWnc7.js} +6 -6
  65. package/dist/cjs/{fthry_index.NNL4lQSw.js → fthry_index.sQV37Gt2.js} +1 -1
  66. package/dist/cjs/{fthry_input.DWFkBuAl.js → fthry_input.BhfAe7t1.js} +1 -1
  67. package/dist/cjs/{fthry_script.BVLKs7Gs.js → fthry_script.iSzGaCwW.js} +1 -1
  68. package/dist/cjs/{fthry_styles.B-tC_Abq.js → fthry_styles.CKZy9WDb.js} +1 -1
  69. package/dist/cjs/{fthry_useElementSize.BepGSP1Z.js → fthry_useElementSize.CUMmUgEh.js} +1 -1
  70. package/dist/cjs/{fthry_useSalesforceSync.DuaHbK7s.js → fthry_useSalesforceSync.DURMJ7-O.js} +1 -1
  71. package/dist/cjs/{fthry_webfontloader.D1tv1rM2.js → fthry_webfontloader.C04VodQo.js} +1 -1
  72. package/dist/cjs/index.d.ts +7 -0
  73. package/dist/cjs/index.d.ts.map +1 -1
  74. package/dist/cjs/index.js +1 -1
  75. package/dist/cjs/utils/featheryClient/index.d.ts +6 -0
  76. package/dist/cjs/utils/featheryClient/index.d.ts.map +1 -1
  77. package/dist/cjs/utils/formContext.d.ts +7 -0
  78. package/dist/cjs/utils/formContext.d.ts.map +1 -1
  79. package/dist/cjs/utils/internalState.d.ts +7 -0
  80. package/dist/cjs/utils/internalState.d.ts.map +1 -1
  81. package/dist/esm/Form/index.d.ts.map +1 -1
  82. package/dist/esm/Form/tests/testMocks.d.ts.map +1 -1
  83. package/dist/esm/elements/fields/AddressLine1Field/tests/test-utils.d.ts +1 -0
  84. package/dist/esm/elements/fields/AddressLine1Field/tests/test-utils.d.ts.map +1 -1
  85. package/dist/esm/elements/fields/ButtonGroupField/tests/test-utils.d.ts +1 -0
  86. package/dist/esm/elements/fields/ButtonGroupField/tests/test-utils.d.ts.map +1 -1
  87. package/dist/esm/elements/fields/CheckboxField/tests/test-utils.d.ts +1 -0
  88. package/dist/esm/elements/fields/CheckboxField/tests/test-utils.d.ts.map +1 -1
  89. package/dist/esm/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +1 -0
  90. package/dist/esm/elements/fields/CheckboxGroupField/tests/test-utils.d.ts.map +1 -1
  91. package/dist/esm/elements/fields/ColorPickerField/tests/test-utils.d.ts +1 -0
  92. package/dist/esm/elements/fields/ColorPickerField/tests/test-utils.d.ts.map +1 -1
  93. package/dist/esm/elements/fields/DateSelectorField/tests/test-utils.d.ts +1 -0
  94. package/dist/esm/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
  95. package/dist/esm/elements/fields/DropdownField/tests/test-utils.d.ts +2 -0
  96. package/dist/esm/elements/fields/DropdownField/tests/test-utils.d.ts.map +1 -1
  97. package/dist/esm/elements/fields/DropdownMultiField/tests/test-utils.d.ts +1 -0
  98. package/dist/esm/elements/fields/DropdownMultiField/tests/test-utils.d.ts.map +1 -1
  99. package/dist/esm/elements/fields/MatrixField/tests/test-utils.d.ts +1 -0
  100. package/dist/esm/elements/fields/MatrixField/tests/test-utils.d.ts.map +1 -1
  101. package/dist/esm/elements/fields/PasswordField/tests/test-utils.d.ts +1 -0
  102. package/dist/esm/elements/fields/PasswordField/tests/test-utils.d.ts.map +1 -1
  103. package/dist/esm/elements/fields/PhoneField/tests/test-utils.d.ts +1 -0
  104. package/dist/esm/elements/fields/PhoneField/tests/test-utils.d.ts.map +1 -1
  105. package/dist/esm/elements/fields/PinInputField/tests/test-utils.d.ts +1 -0
  106. package/dist/esm/elements/fields/PinInputField/tests/test-utils.d.ts.map +1 -1
  107. package/dist/esm/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts +1 -0
  108. package/dist/esm/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts.map +1 -1
  109. package/dist/esm/elements/fields/RatingField/tests/test-utils.d.ts +1 -0
  110. package/dist/esm/elements/fields/RatingField/tests/test-utils.d.ts.map +1 -1
  111. package/dist/esm/elements/fields/SliderField/tests/test-utils.d.ts +1 -0
  112. package/dist/esm/elements/fields/SliderField/tests/test-utils.d.ts.map +1 -1
  113. package/dist/esm/elements/fields/shared/tests/field-test-utils.d.ts +1 -0
  114. package/dist/esm/elements/fields/shared/tests/field-test-utils.d.ts.map +1 -1
  115. package/dist/esm/{fthry_FormControl.D8Kuyg4Y.js → fthry_FormControl.DDAZFoSo.js} +1 -1
  116. package/dist/esm/{fthry_InlineTooltip.DLMOu2tO.js → fthry_InlineTooltip.DwsGjmPQ.js} +2 -2
  117. package/dist/esm/{fthry_Overlay.BaulbPVG.js → fthry_Overlay.DkCTSVzA.js} +1 -1
  118. package/dist/esm/{fthry_PaymentMethodField.E2VJPyju.js → fthry_PaymentMethodField.BgCHxykS.js} +4 -4
  119. package/dist/esm/{fthry_Placeholder.CY1XAzRf.js → fthry_Placeholder.BZZOH4gv.js} +1 -1
  120. package/dist/esm/{fthry_ShowEyeIcon.CCRFpPxr.js → fthry_ShowEyeIcon.FVKM_CUd.js} +1 -1
  121. package/dist/esm/{fthry_index.BeT6gsM_.js → fthry_index.3ZKChQii.js} +6 -6
  122. package/dist/esm/{fthry_index.DjW847uR.js → fthry_index.3bbiVByG.js} +1 -1
  123. package/dist/esm/{fthry_index.BgIsKSTD.js → fthry_index.BvXP5j-k.js} +3 -3
  124. package/dist/esm/{fthry_index.BU4BxoWO.js → fthry_index.Bzcb4acF.js} +2 -2
  125. package/dist/esm/{fthry_index.xfj1t0cY.js → fthry_index.C2vvoqul.js} +5 -5
  126. package/dist/esm/{fthry_index.B5ePXkSN.js → fthry_index.C5QJmvNS.js} +6 -6
  127. package/dist/esm/{fthry_index.Ds7JOYLz.js → fthry_index.C7bZ41Dr.js} +4 -4
  128. package/dist/esm/{fthry_index.Ca-06RMU.js → fthry_index.CLVY8zB_.js} +1 -1
  129. package/dist/esm/{fthry_index.DeT3UyJj.js → fthry_index.CRMp7Yug.js} +1 -1
  130. package/dist/esm/{fthry_index.7vZjIPEz.js → fthry_index.Cfs1JnS1.js} +4 -4
  131. package/dist/esm/{fthry_index.DsroTnQH.js → fthry_index.CgxfpBL9.js} +5 -5
  132. package/dist/esm/{fthry_index.2Gc_lB8n.js → fthry_index.ChZdNtIX.js} +81 -54
  133. package/dist/esm/{fthry_index.T_eziOjU.js → fthry_index.Cvc2tCaE.js} +1 -1
  134. package/dist/esm/{fthry_index.Dy33g5mc.js → fthry_index.DE7Dh4ea.js} +8 -8
  135. package/dist/esm/{fthry_index.wAyXRBo5.js → fthry_index.DbQ9ZgfN.js} +161 -27
  136. package/dist/esm/{fthry_index.6qFATni4.js → fthry_index.DnA1YwIh.js} +901 -214
  137. package/dist/esm/{fthry_index.nmBpjSD2.js → fthry_index.DtApOSy5.js} +1 -1
  138. package/dist/esm/{fthry_index.DIZWok9O.js → fthry_index.IEBDVXp5.js} +5 -5
  139. package/dist/esm/{fthry_index.Citw-wko.js → fthry_index.JlaR97bs.js} +1 -1
  140. package/dist/esm/{fthry_index.C90mmtNU.js → fthry_index.TccqLkT8.js} +4 -4
  141. package/dist/esm/{fthry_index.BBB2dAwJ.js → fthry_index.nBx09C9l.js} +3 -3
  142. package/dist/esm/{fthry_index.DbMs4N3L.js → fthry_index.pBPbV9ty.js} +2 -2
  143. package/dist/esm/{fthry_index.CugnxSkX.js → fthry_index.pN448hs2.js} +29 -2
  144. package/dist/esm/{fthry_input.Csm0akqb.js → fthry_input.DgpAkI4d.js} +1 -1
  145. package/dist/esm/{fthry_script.CTK4wksM.js → fthry_script.DNqAP9Nj.js} +1 -1
  146. package/dist/esm/{fthry_styles.BsiM2KXa.js → fthry_styles.BhmDd9Lo.js} +1 -1
  147. package/dist/esm/{fthry_useElementSize.BVooPdxW.js → fthry_useElementSize.CuzKKLqH.js} +1 -1
  148. package/dist/esm/{fthry_useSalesforceSync.DwvbAGUy.js → fthry_useSalesforceSync.D3lKBSsD.js} +1 -1
  149. package/dist/esm/{fthry_webfontloader.oZvuZxan.js → fthry_webfontloader.Bo43XEHO.js} +1 -1
  150. package/dist/esm/index.d.ts +7 -0
  151. package/dist/esm/index.d.ts.map +1 -1
  152. package/dist/esm/index.js +1 -1
  153. package/dist/esm/utils/featheryClient/index.d.ts +6 -0
  154. package/dist/esm/utils/featheryClient/index.d.ts.map +1 -1
  155. package/dist/esm/utils/formContext.d.ts +7 -0
  156. package/dist/esm/utils/formContext.d.ts.map +1 -1
  157. package/dist/esm/utils/internalState.d.ts +7 -0
  158. package/dist/esm/utils/internalState.d.ts.map +1 -1
  159. package/dist/index.d.ts +7 -0
  160. package/dist/index.d.ts.map +1 -1
  161. package/dist/utils/featheryClient/index.d.ts +6 -0
  162. package/dist/utils/featheryClient/index.d.ts.map +1 -1
  163. package/dist/utils/formContext.d.ts +7 -0
  164. package/dist/utils/formContext.d.ts.map +1 -1
  165. package/dist/utils/internalState.d.ts +7 -0
  166. package/dist/utils/internalState.d.ts.map +1 -1
  167. package/package.json +2 -2
  168. package/umd/{277.eceeb3ccb6328228b829.js → 277.94ae8bf6190836d1dceb.js} +1 -1
  169. package/umd/{466.2b6f52440bf8a6ee4f4d.js → 466.e3456c8b3407ad04ba56.js} +1 -1
  170. package/umd/509.4236d4d76d2fa2ccd971.js +2 -0
  171. package/umd/{509.f3c5235d7877c09fa946.js.LICENSE.txt → 509.4236d4d76d2fa2ccd971.js.LICENSE.txt} +5 -0
  172. package/umd/529.2bfdaee9e2bdc6d6c340.js +1 -0
  173. package/umd/{598.5c0785560cad57f12159.js → 598.ca92da6595afad37b511.js} +2 -2
  174. package/umd/{664.cce2aa2291d3323521b2.js → 664.42541009d1fcb121cc49.js} +1 -1
  175. package/umd/{94.3c0a220601820412e21e.js → 94.825cd88111c75098af1f.js} +1 -1
  176. package/umd/{AddressField.a7ec587f13a326e233de.js → AddressField.3523efd23175117d47a5.js} +1 -1
  177. package/umd/{ButtonGroupField.8a9cf493f8fb36ce3e85.js → ButtonGroupField.33cf9c939c8e82cc6c83.js} +1 -1
  178. package/umd/{CheckboxField.c4971d72024558868b02.js → CheckboxField.76c36941e86a62ec518d.js} +1 -1
  179. package/umd/{CheckboxGroupField.e5319cd7f814f9b626d7.js → CheckboxGroupField.b15705b46268e1142782.js} +1 -1
  180. package/umd/ColorPickerField.f6740bb7c4c20a520db5.js +1 -0
  181. package/umd/{CustomField.bf00bb9bdcd732c13171.js → CustomField.a5b2965922f2d170b9b5.js} +1 -1
  182. package/umd/{DateSelectorField.c193445e11fe4694b07a.js → DateSelectorField.00f321e0b1972feb9d69.js} +1 -1
  183. package/umd/{DropdownField.7081f67b0a39c49f1f3f.js → DropdownField.856b041871278f98e687.js} +1 -1
  184. package/umd/{DropdownMultiField.d2dc345e7bd0e32e76a7.js → DropdownMultiField.898572b300ad673a38c9.js} +1 -1
  185. package/umd/{FileUploadField.f51a675776b2947e79fa.js → FileUploadField.ea0067dd62b0454b7c2e.js} +1 -1
  186. package/umd/{MatrixField.007d30b45d438c773db7.js → MatrixField.f8624f3e59b21e04f368.js} +1 -1
  187. package/umd/{PasswordField.2147c784135a9369040c.js → PasswordField.1358356d6fbc6880f12a.js} +1 -1
  188. package/umd/{PaymentMethodField.a84c467c428712681821.js → PaymentMethodField.9a8e934f7450eb141217.js} +1 -1
  189. package/umd/{PhoneField.d43a22b1a4d92c618614.js → PhoneField.f52b5de44614b445feeb.js} +1 -1
  190. package/umd/{PinInputField.0f9ca456b79a9cdf2506.js → PinInputField.b1aee0ef9d3c9f9a1933.js} +1 -1
  191. package/umd/{QRScanner.5865f88b4a09f5e78c5b.js → QRScanner.3c22391de30dba001f13.js} +1 -1
  192. package/umd/{RadioButtonGroupField.7d81efb2ddc169916443.js → RadioButtonGroupField.38d62523106149c48f2e.js} +1 -1
  193. package/umd/{RatingField.104fa779291cd91ca8bc.js → RatingField.eeeb0ac499c308c120ba.js} +1 -1
  194. package/umd/{SignatureField.2cd57db4b52690a9650b.js → SignatureField.1b502b1edb19e4af3b64.js} +1 -1
  195. package/umd/{SliderField.b99f5928f7c1eaa08c3d.js → SliderField.a5ab58e4b89fa67d6ac6.js} +1 -1
  196. package/umd/{TextArea.0b440106b5f5a341ed74.js → TextArea.f566845d458d4c00e0e7.js} +1 -1
  197. package/umd/{TextField.9238b4371b974d4defd4.js → TextField.5a5296fe3ea60c4459f2.js} +1 -1
  198. package/umd/index.js +1 -1
  199. package/dist/cjs/fthry_floating-ui.utils.D2KLOgYj.js +0 -155
  200. package/dist/cjs/fthry_objectWithoutPropertiesLoose.BeCY0BVl.js +0 -32
  201. package/dist/esm/fthry_floating-ui.utils.tNaL8PGX.js +0 -136
  202. package/dist/esm/fthry_objectWithoutPropertiesLoose.BBpbdDOs.js +0 -29
  203. package/umd/509.f3c5235d7877c09fa946.js +0 -2
  204. package/umd/529.be48502b696e9179c151.js +0 -1
  205. package/umd/ColorPickerField.38edc699a89e4266e489.js +0 -1
  206. /package/umd/{598.5c0785560cad57f12159.js.LICENSE.txt → 598.ca92da6595afad37b511.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[423],{1587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(5944),o=r(5430),i=r(8776),l=r(5467),a=r(2988),c=r(4665),u=r(7449),s=r(9479),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function d(e){var t=e.id,r=e.text,d=e.responsiveStyles,p=e.absolute,h=void 0===p||p,v=e.containerRef,g=e.repeat,m=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}((0,o.useState)(!1),2),y=m[0],b=m[1],w=(0,o.useRef)(null);if(!(r=(0,c.xf)(r,g)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",f({ref:w,onMouseEnter:x?void 0:function(){return b(!0)},onMouseLeave:x?void 0:function(){return b(!1)},onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onClick:function(){return b((function(e){return!e}))},css:h?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:a.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(l.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(u.Z,f({show:y,targetRef:w,containerRef:v,placement:"left",onHide:function(){return b(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:a.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(5944),o=r(5430),i=r(3935),l=r(9479),a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};const c=function(e){var t=e.show,r=e.targetRef,c=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,h=e.offset,v=void 0===h?0:h,g=e.zIndex,m=void 0===g?1e3:g,y=e.containerRef,b=(0,o.useRef)(null),w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}((0,o.useState)(null),2),x=w[0],O=w[1],E=(0,o.useCallback)((function(){return(null==y?void 0:y.current)||(0,l.me)().body}),[y]),S=(0,o.useCallback)((function(){var e;if(t&&r.current&&b.current){var n=(0,l.Kv)(),o=E();if(o){var i=r.current.getBoundingClientRect(),a=b.current.getBoundingClientRect(),c=o.getBoundingClientRect(),f=s(p,i,a,v),d=f.top,h=f.left,g=d+a.height,m=h+a.width,y=d>=0&&g<=n.innerHeight,w=h>=0&&m<=n.innerWidth;if(!y||!w){var x=u(p,!y,!w);x!==p&&(d=(e=s(x,i,a,v)).top,h=e.left)}var S=o===(0,l.me)().body,Z=S?d+n.scrollY:d-c.top,k=S?h+n.scrollX:h-c.left;O((function(e){return e&&e.top===Z&&e.left===k?e:{top:Z,left:k}}))}}}),[t,p,v,E,r]),Z=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){S(),e=!1})))}}),[S])();if((0,o.useLayoutEffect)((function(){t&&S()}),[t,S]),(0,o.useEffect)((function(){if(t){var e=(0,l.Kv)(),n=E();if(n){e.addEventListener("resize",Z),e.addEventListener("scroll",Z,!0),n!==(0,l.me)().body&&n.addEventListener("scroll",Z);var o=new ResizeObserver((function(){return Z()}));return r.current&&o.observe(r.current),n!==(0,l.me)().body&&o.observe(n),function(){e.removeEventListener("resize",Z),e.removeEventListener("scroll",Z,!0),n!==(0,l.me)().body&&n.removeEventListener("scroll",Z),o.disconnect()}}}}),[t,Z,E,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(O(null),null==f||f())},n=function(e){var t=e.target;b.current&&!b.current.contains(t)&&r.current&&!r.current.contains(t)&&(O(null),null==f||f())},o=(0,l.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,f,r]),!t)return null;var k=E();return k?(0,i.createPortal)((0,n.tZ)("div",a({ref:b,style:a(a({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:m})},{children:c})),k):(0,n.tZ)(n.HY,{children:c})};var u=function(e,t,r){if(t){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,t,r,n){switch(void 0===n&&(n=0),e){case"top":return{top:t.top-r.height-n,left:t.left+(t.width-r.width)/2};case"top-start":return{top:t.top-r.height-n,left:t.left};case"top-end":return{top:t.top-r.height-n,left:t.right-r.width};case"left":return{top:t.top+(t.height-r.height)/2,left:t.left-r.width-n};case"left-start":return{top:t.top,left:t.left-r.width-n};case"left-end":return{top:t.bottom-r.height,left:t.left-r.width-n};case"bottom":default:return{top:t.bottom+n,left:t.left+(t.width-r.width)/2};case"bottom-start":return{top:t.bottom+n,left:t.left};case"bottom-end":return{top:t.bottom+n,left:t.right-r.width};case"right":return{top:t.top+(t.height-r.height)/2,left:t.right+n};case"right-start":return{top:t.top,left:t.right+n};case"right-end":return{top:t.bottom-r.height,left:t.right+n}}}},9069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5944),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i,l=e.value,a=e.element,c=e.responsiveStyles,u=e.type,s=void 0===u?"input":u,f=e.inputFocused,d=void 0!==f&&f,p=e.repeatIndex,h=void 0===p?null:p,v=a.properties,g=null!==(i=(null!==(r=v.repeat_placeholder)&&void 0!==r?r:[])[null!=h?h:0])&&void 0!==i?i:v.placeholder||"",m=o(o({},c.getTarget("placeholderFocus")),c.getTarget("placeholderActive"));return(0,n.tZ)("span",o({css:o(o(o(o({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},c.getTarget("placeholder")),l?c.getTarget("placeholderFocus"):{}),d?m:{}),(t={},t["".concat(s,":focus ~ &")]=m,t))},{children:g}))}},8776:(e,t,r)=>{r.d(t,{u:()=>l});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},l=function(e){var t=e.children,r=e.css,l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},l,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},6820:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var n=r(5944),o=r(5430),i=r(9069),l=r(1587),a=r(1211),c=r(6867),u=r(2988),s=r(9479),f=r(5467),d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)};const p=(0,o.memo)((function(e){var t,r=e.element,p=e.responsiveStyles,h=e.fieldLabel,v=e.elementProps,g=void 0===v?{}:v,m=e.required,y=void 0!==m&&m,b=e.disabled,w=void 0!==b&&b,x=e.repeatIndex,O=void 0===x?null:x,E=e.editMode,S=e.onChange,Z=void 0===S?function(){}:S,k=e.onEnter,I=void 0===k?function(){}:k,L=e.setRef,C=void 0===L?function(){}:L,R=e.rawValue,j=void 0===R?"":R,T=e.inlineError,z=e.children,P=(0,c.Z)({element:r,error:T,breakpoint:p.getMobileBreakpoint()}),B=P.borderStyles,F=P.customBorder,M=P.borderId,X=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}((0,o.useState)(!1),2),_=X[0],H=X[1],q=(0,o.useRef)(null),A=r.servar,W=r.properties.tooltipText?30:8;return(0,n.BX)("div",d({ref:q,css:d({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:E?"none":"auto"},p.getTarget("fc"))},g,{children:[z,h,(0,n.BX)("div",d({css:d(d(d({position:"relative",width:"100%",whiteSpace:"nowrap",overflowX:"clip"},p.getTarget("sub-fc")),w?p.getTarget("disabled"):{}),{"&:hover":(0,s.wL)(w?{}:d(d({},p.getTarget("hover")),B.hover))})},{children:[(0,n.tZ)("input",{id:A.key,name:A.key,css:{".feathery &":d(d(d({position:"relative",zIndex:u.rM,height:"100%",width:"100%",border:"none",margin:0,backgroundColor:"transparent"},a.ET),p.getTarget("field")),(t={},t["&:focus ~ #".concat(M)]=Object.values(B.active)[0],t["&:not(:focus)"]=j||!r.properties.placeholder?{}:{color:"transparent !important"},t))},"aria-label":r.properties.aria_label,maxLength:A.max_length,minLength:A.min_length,required:y,onChange:function(e){A.max_length&&e.target.value.length>A.max_length||Z(e)},onKeyDown:function(e){"Enter"===e.key&&I(e)},placeholder:"",disabled:w,value:j,ref:C,autoComplete:"off",type:_?"text":"password",onFocus:s.ms}),j&&(0,n.tZ)("div",d({css:{position:"absolute",cursor:"pointer",insetInlineEnd:"".concat(W,"px"),top:"calc(50% - 12px)",zIndex:u.rM},onClick:function(){return H((function(e){return!e}))},"aria-label":"Toggle password visibility"},{children:_?(0,n.tZ)(f.uL,{}):(0,n.tZ)(f.FX,{})})),F,(0,n.tZ)(i.Z,{value:j,element:r,responsiveStyles:p,repeatIndex:O}),(0,n.tZ)(l.Z,{containerRef:q,id:r.id,text:r.properties.tooltipText,responsiveStyles:p,repeat:r.repeat})]}))]}))}))}}]);
1
+ "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[423],{1587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(5944),o=r(7294),i=r(8776),l=r(5467),a=r(2988),c=r(4665),u=r(7449),s=r(9479),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function d(e){var t=e.id,r=e.text,d=e.responsiveStyles,p=e.absolute,h=void 0===p||p,v=e.containerRef,g=e.repeat,m=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}((0,o.useState)(!1),2),y=m[0],b=m[1],w=(0,o.useRef)(null);if(!(r=(0,c.xf)(r,g)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",f({ref:w,onMouseEnter:x?void 0:function(){return b(!0)},onMouseLeave:x?void 0:function(){return b(!1)},onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onClick:function(){return b((function(e){return!e}))},css:h?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:a.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(l.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(u.Z,f({show:y,targetRef:w,containerRef:v,placement:"left",onHide:function(){return b(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:a.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(5944),o=r(7294),i=r(3935),l=r(9479),a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};const c=function(e){var t=e.show,r=e.targetRef,c=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,h=e.offset,v=void 0===h?0:h,g=e.zIndex,m=void 0===g?1e3:g,y=e.containerRef,b=(0,o.useRef)(null),w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}((0,o.useState)(null),2),x=w[0],O=w[1],E=(0,o.useCallback)((function(){return(null==y?void 0:y.current)||(0,l.me)().body}),[y]),S=(0,o.useCallback)((function(){var e;if(t&&r.current&&b.current){var n=(0,l.Kv)(),o=E();if(o){var i=r.current.getBoundingClientRect(),a=b.current.getBoundingClientRect(),c=o.getBoundingClientRect(),f=s(p,i,a,v),d=f.top,h=f.left,g=d+a.height,m=h+a.width,y=d>=0&&g<=n.innerHeight,w=h>=0&&m<=n.innerWidth;if(!y||!w){var x=u(p,!y,!w);x!==p&&(d=(e=s(x,i,a,v)).top,h=e.left)}var S=o===(0,l.me)().body,Z=S?d+n.scrollY:d-c.top,k=S?h+n.scrollX:h-c.left;O((function(e){return e&&e.top===Z&&e.left===k?e:{top:Z,left:k}}))}}}),[t,p,v,E,r]),Z=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){S(),e=!1})))}}),[S])();if((0,o.useLayoutEffect)((function(){t&&S()}),[t,S]),(0,o.useEffect)((function(){if(t){var e=(0,l.Kv)(),n=E();if(n){e.addEventListener("resize",Z),e.addEventListener("scroll",Z,!0),n!==(0,l.me)().body&&n.addEventListener("scroll",Z);var o=new ResizeObserver((function(){return Z()}));return r.current&&o.observe(r.current),n!==(0,l.me)().body&&o.observe(n),function(){e.removeEventListener("resize",Z),e.removeEventListener("scroll",Z,!0),n!==(0,l.me)().body&&n.removeEventListener("scroll",Z),o.disconnect()}}}}),[t,Z,E,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(O(null),null==f||f())},n=function(e){var t=e.target;b.current&&!b.current.contains(t)&&r.current&&!r.current.contains(t)&&(O(null),null==f||f())},o=(0,l.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,f,r]),!t)return null;var k=E();return k?(0,i.createPortal)((0,n.tZ)("div",a({ref:b,style:a(a({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:m})},{children:c})),k):(0,n.tZ)(n.HY,{children:c})};var u=function(e,t,r){if(t){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,t,r,n){switch(void 0===n&&(n=0),e){case"top":return{top:t.top-r.height-n,left:t.left+(t.width-r.width)/2};case"top-start":return{top:t.top-r.height-n,left:t.left};case"top-end":return{top:t.top-r.height-n,left:t.right-r.width};case"left":return{top:t.top+(t.height-r.height)/2,left:t.left-r.width-n};case"left-start":return{top:t.top,left:t.left-r.width-n};case"left-end":return{top:t.bottom-r.height,left:t.left-r.width-n};case"bottom":default:return{top:t.bottom+n,left:t.left+(t.width-r.width)/2};case"bottom-start":return{top:t.bottom+n,left:t.left};case"bottom-end":return{top:t.bottom+n,left:t.right-r.width};case"right":return{top:t.top+(t.height-r.height)/2,left:t.right+n};case"right-start":return{top:t.top,left:t.right+n};case"right-end":return{top:t.bottom-r.height,left:t.right+n}}}},9069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5944),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i,l=e.value,a=e.element,c=e.responsiveStyles,u=e.type,s=void 0===u?"input":u,f=e.inputFocused,d=void 0!==f&&f,p=e.repeatIndex,h=void 0===p?null:p,v=a.properties,g=null!==(i=(null!==(r=v.repeat_placeholder)&&void 0!==r?r:[])[null!=h?h:0])&&void 0!==i?i:v.placeholder||"",m=o(o({},c.getTarget("placeholderFocus")),c.getTarget("placeholderActive"));return(0,n.tZ)("span",o({css:o(o(o(o({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},c.getTarget("placeholder")),l?c.getTarget("placeholderFocus"):{}),d?m:{}),(t={},t["".concat(s,":focus ~ &")]=m,t))},{children:g}))}},8776:(e,t,r)=>{r.d(t,{u:()=>l});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},l=function(e){var t=e.children,r=e.css,l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},l,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},6820:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var n=r(5944),o=r(7294),i=r(9069),l=r(1587),a=r(1211),c=r(6867),u=r(2988),s=r(9479),f=r(5467),d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)};const p=(0,o.memo)((function(e){var t,r=e.element,p=e.responsiveStyles,h=e.fieldLabel,v=e.elementProps,g=void 0===v?{}:v,m=e.required,y=void 0!==m&&m,b=e.disabled,w=void 0!==b&&b,x=e.repeatIndex,O=void 0===x?null:x,E=e.editMode,S=e.onChange,Z=void 0===S?function(){}:S,k=e.onEnter,I=void 0===k?function(){}:k,L=e.setRef,C=void 0===L?function(){}:L,R=e.rawValue,j=void 0===R?"":R,T=e.inlineError,z=e.children,P=(0,c.Z)({element:r,error:T,breakpoint:p.getMobileBreakpoint()}),B=P.borderStyles,F=P.customBorder,M=P.borderId,X=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}((0,o.useState)(!1),2),_=X[0],H=X[1],q=(0,o.useRef)(null),A=r.servar,W=r.properties.tooltipText?30:8;return(0,n.BX)("div",d({ref:q,css:d({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:E?"none":"auto"},p.getTarget("fc"))},g,{children:[z,h,(0,n.BX)("div",d({css:d(d(d({position:"relative",width:"100%",whiteSpace:"nowrap",overflowX:"clip"},p.getTarget("sub-fc")),w?p.getTarget("disabled"):{}),{"&:hover":(0,s.wL)(w?{}:d(d({},p.getTarget("hover")),B.hover))})},{children:[(0,n.tZ)("input",{id:A.key,name:A.key,css:{".feathery &":d(d(d({position:"relative",zIndex:u.rM,height:"100%",width:"100%",border:"none",margin:0,backgroundColor:"transparent"},a.ET),p.getTarget("field")),(t={},t["&:focus ~ #".concat(M)]=Object.values(B.active)[0],t["&:not(:focus)"]=j||!r.properties.placeholder?{}:{color:"transparent !important"},t))},"aria-label":r.properties.aria_label,maxLength:A.max_length,minLength:A.min_length,required:y,onChange:function(e){A.max_length&&e.target.value.length>A.max_length||Z(e)},onKeyDown:function(e){"Enter"===e.key&&I(e)},placeholder:"",disabled:w,value:j,ref:C,autoComplete:"off",type:_?"text":"password",onFocus:s.ms}),j&&(0,n.tZ)("div",d({css:{position:"absolute",cursor:"pointer",insetInlineEnd:"".concat(W,"px"),top:"calc(50% - 12px)",zIndex:u.rM},onClick:function(){return H((function(e){return!e}))},"aria-label":"Toggle password visibility"},{children:_?(0,n.tZ)(f.uL,{}):(0,n.tZ)(f.FX,{})})),F,(0,n.tZ)(i.Z,{value:j,element:r,responsiveStyles:p,repeatIndex:O}),(0,n.tZ)(l.Z,{containerRef:q,id:r.id,text:r.properties.tooltipText,responsiveStyles:p,repeat:r.repeat})]}))]}))}))}}]);
@@ -1 +1 @@
1
- "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[985],{1587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(5944),o=r(5430),i=r(8776),l=r(5467),a=r(2988),c=r(4665),u=r(7449),s=r(9479),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function d(e){var t=e.id,r=e.text,d=e.responsiveStyles,p=e.absolute,h=void 0===p||p,v=e.containerRef,g=e.repeat,y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}((0,o.useState)(!1),2),m=y[0],b=y[1],w=(0,o.useRef)(null);if(!(r=(0,c.xf)(r,g)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",f({ref:w,onMouseEnter:x?void 0:function(){return b(!0)},onMouseLeave:x?void 0:function(){return b(!1)},onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onClick:function(){return b((function(e){return!e}))},css:h?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:a.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(l.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(u.Z,f({show:m,targetRef:w,containerRef:v,placement:"left",onHide:function(){return b(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:a.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(5944),o=r(5430),i=r(3935),l=r(9479),a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};const c=function(e){var t=e.show,r=e.targetRef,c=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,h=e.offset,v=void 0===h?0:h,g=e.zIndex,y=void 0===g?1e3:g,m=e.containerRef,b=(0,o.useRef)(null),w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}((0,o.useState)(null),2),x=w[0],E=w[1],O=(0,o.useCallback)((function(){return(null==m?void 0:m.current)||(0,l.me)().body}),[m]),S=(0,o.useCallback)((function(){var e;if(t&&r.current&&b.current){var n=(0,l.Kv)(),o=O();if(o){var i=r.current.getBoundingClientRect(),a=b.current.getBoundingClientRect(),c=o.getBoundingClientRect(),f=s(p,i,a,v),d=f.top,h=f.left,g=d+a.height,y=h+a.width,m=d>=0&&g<=n.innerHeight,w=h>=0&&y<=n.innerWidth;if(!m||!w){var x=u(p,!m,!w);x!==p&&(d=(e=s(x,i,a,v)).top,h=e.left)}var S=o===(0,l.me)().body,k=S?d+n.scrollY:d-c.top,C=S?h+n.scrollX:h-c.left;E((function(e){return e&&e.top===k&&e.left===C?e:{top:k,left:C}}))}}}),[t,p,v,O,r]),k=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){S(),e=!1})))}}),[S])();if((0,o.useLayoutEffect)((function(){t&&S()}),[t,S]),(0,o.useEffect)((function(){if(t){var e=(0,l.Kv)(),n=O();if(n){e.addEventListener("resize",k),e.addEventListener("scroll",k,!0),n!==(0,l.me)().body&&n.addEventListener("scroll",k);var o=new ResizeObserver((function(){return k()}));return r.current&&o.observe(r.current),n!==(0,l.me)().body&&o.observe(n),function(){e.removeEventListener("resize",k),e.removeEventListener("scroll",k,!0),n!==(0,l.me)().body&&n.removeEventListener("scroll",k),o.disconnect()}}}}),[t,k,O,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(E(null),null==f||f())},n=function(e){var t=e.target;b.current&&!b.current.contains(t)&&r.current&&!r.current.contains(t)&&(E(null),null==f||f())},o=(0,l.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,f,r]),!t)return null;var C=O();return C?(0,i.createPortal)((0,n.tZ)("div",a({ref:b,style:a(a({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:y})},{children:c})),C):(0,n.tZ)(n.HY,{children:c})};var u=function(e,t,r){if(t){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,t,r,n){switch(void 0===n&&(n=0),e){case"top":return{top:t.top-r.height-n,left:t.left+(t.width-r.width)/2};case"top-start":return{top:t.top-r.height-n,left:t.left};case"top-end":return{top:t.top-r.height-n,left:t.right-r.width};case"left":return{top:t.top+(t.height-r.height)/2,left:t.left-r.width-n};case"left-start":return{top:t.top,left:t.left-r.width-n};case"left-end":return{top:t.bottom-r.height,left:t.left-r.width-n};case"bottom":default:return{top:t.bottom+n,left:t.left+(t.width-r.width)/2};case"bottom-start":return{top:t.bottom+n,left:t.left};case"bottom-end":return{top:t.bottom+n,left:t.right-r.width};case"right":return{top:t.top+(t.height-r.height)/2,left:t.right+n};case"right-start":return{top:t.top,left:t.right+n};case"right-end":return{top:t.bottom-r.height,left:t.right+n}}}},8776:(e,t,r)=>{r.d(t,{u:()=>l});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},l=function(e){var t=e.children,r=e.css,l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},l,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},4023:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var n=r(5944),o=r(5430),i=r(6664),l=r(8678),a=r(426),c=r(1587),u=r(1211),s=r(6867),f=r(9479),d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)},p=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l},h=["backgroundColor","color","fontFamily","fontSize","fontSmoothing","fontStyle","fontVariant","fontWeight","iconColor","lineHeight","letterSpacing","textAlign","padding","textDecoration","textShadow","textTransform"],v=function(e){return d(d({},e),{fontFamily:"sans-serif"})},g=function(e){var t=e.element,r=e.responsiveStyles,l=e.fieldLabel,f=e.elementProps,g=void 0===f?{}:f,y=e.setCardElement,m=void 0===y?function(){}:y,b=e.setFieldError,w=void 0===b?function(){}:b,x=e.onChange,E=void 0===x?function(){}:x,O=e.autoFocus,S=void 0!==O&&O,k=e.editMode,C=e.inlineError,Z=e.children,j=p((0,o.useState)(!1),2),R=j[0],I=j[1],L=(0,s.Z)({element:t,error:C,breakpoint:r.getMobileBreakpoint()}),B=L.borderStyles,F=L.customBorder,P=(0,o.useRef)(null),T=(0,i.useStripe)(),z=(0,i.useElements)(),M=p((0,o.useState)(""),2),Y=M[0],H=M[1];(0,o.useEffect)((function(){if(T&&z){var e=z.getElement(i.CardElement);S&&(null==e||e.on("ready",(function(){return e.focus()}))),m(t.servar.key,e)}}),[T,t.servar.key,z]);var X={style:{base:d(d({textDecoration:"none"},(0,a.Yp)(v(r.getTarget("field")),h)),{"::placeholder":d({textDecoration:"none"},(0,a.Yp)(v(r.getTarget("placeholder")),h)),":hover":(0,a.Yp)(v(r.getTarget("hoverFont")),h),":focus":(0,a.Yp)(v(r.getTarget("activeFont")),h)}),complete:v(r.getTarget("completedFont")),invalid:{color:u.xb,iconColor:u.xb}},classes:{base:t.servar.key}};return(0,n.BX)("div",d({ref:P,css:d({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:k?"none":"auto"},r.getTarget("fc"))},g,{children:[Z,l,(0,n.BX)("div",d({css:d(d({position:"relative",width:"100%",whiteSpace:"nowrap",padding:"0 2px",display:"flex",alignItems:"center"},r.getTarget("sub-fc")),{"&:hover":d(d({},r.getTarget("hover")),B.hover),"&&":R?d(d({},r.getTarget("active")),B.active):{}})},{children:[F,(0,n.BX)("div",d({css:{width:"100%",position:"relative"}},{children:[(0,n.tZ)("input",{id:t.servar.key,name:t.servar.key,css:{width:"100%",height:0,border:"none",opacity:0,"&:focus":{outline:"none"}},tabIndex:"-1"}),(0,n.tZ)(i.CardElement,{css:{position:"absolute",top:0,left:5,right:5,width:"100%"},options:X,onChange:function(e){var t,r,n=null!==(r=null===(t=e.error)||void 0===t?void 0:t.message)&&void 0!==r?r:"";Y!==n&&(H(n),w(n)),E(e.complete?{complete:!0,card_data:{brand:e.brand}}:"")},onFocus:function(){return I(!0)},onBlur:function(){return I(!1)}})]})),(0,n.tZ)(c.Z,{containerRef:P,id:t.id,text:t.properties.tooltipText,responsiveStyles:r,repeat:t.repeat})]}))]}))};const y=(0,o.memo)((function(e){var t=e.editMode,r=e.children,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["editMode","children"]),c=(0,l.d2)();return(0,o.useEffect)((function(){t&&(0,f.me)().dispatchEvent(new CustomEvent("stripe_key_loaded",{detail:{key:"any-key-does-not-matter-what"}}))}),[t]),(0,n.BX)(i.Elements,d({stripe:c},{children:[r,(0,n.tZ)(g,d({editMode:t},a))]}))}))}}]);
1
+ "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[985],{1587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(5944),o=r(7294),i=r(8776),l=r(5467),a=r(2988),c=r(4665),u=r(7449),s=r(9479),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function d(e){var t=e.id,r=e.text,d=e.responsiveStyles,p=e.absolute,h=void 0===p||p,v=e.containerRef,g=e.repeat,y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}((0,o.useState)(!1),2),m=y[0],b=y[1],w=(0,o.useRef)(null);if(!(r=(0,c.xf)(r,g)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",f({ref:w,onMouseEnter:x?void 0:function(){return b(!0)},onMouseLeave:x?void 0:function(){return b(!1)},onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onClick:function(){return b((function(e){return!e}))},css:h?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:a.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(l.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(u.Z,f({show:m,targetRef:w,containerRef:v,placement:"left",onHide:function(){return b(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:a.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(5944),o=r(7294),i=r(3935),l=r(9479),a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};const c=function(e){var t=e.show,r=e.targetRef,c=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,h=e.offset,v=void 0===h?0:h,g=e.zIndex,y=void 0===g?1e3:g,m=e.containerRef,b=(0,o.useRef)(null),w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}((0,o.useState)(null),2),x=w[0],E=w[1],O=(0,o.useCallback)((function(){return(null==m?void 0:m.current)||(0,l.me)().body}),[m]),S=(0,o.useCallback)((function(){var e;if(t&&r.current&&b.current){var n=(0,l.Kv)(),o=O();if(o){var i=r.current.getBoundingClientRect(),a=b.current.getBoundingClientRect(),c=o.getBoundingClientRect(),f=s(p,i,a,v),d=f.top,h=f.left,g=d+a.height,y=h+a.width,m=d>=0&&g<=n.innerHeight,w=h>=0&&y<=n.innerWidth;if(!m||!w){var x=u(p,!m,!w);x!==p&&(d=(e=s(x,i,a,v)).top,h=e.left)}var S=o===(0,l.me)().body,k=S?d+n.scrollY:d-c.top,C=S?h+n.scrollX:h-c.left;E((function(e){return e&&e.top===k&&e.left===C?e:{top:k,left:C}}))}}}),[t,p,v,O,r]),k=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){S(),e=!1})))}}),[S])();if((0,o.useLayoutEffect)((function(){t&&S()}),[t,S]),(0,o.useEffect)((function(){if(t){var e=(0,l.Kv)(),n=O();if(n){e.addEventListener("resize",k),e.addEventListener("scroll",k,!0),n!==(0,l.me)().body&&n.addEventListener("scroll",k);var o=new ResizeObserver((function(){return k()}));return r.current&&o.observe(r.current),n!==(0,l.me)().body&&o.observe(n),function(){e.removeEventListener("resize",k),e.removeEventListener("scroll",k,!0),n!==(0,l.me)().body&&n.removeEventListener("scroll",k),o.disconnect()}}}}),[t,k,O,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(E(null),null==f||f())},n=function(e){var t=e.target;b.current&&!b.current.contains(t)&&r.current&&!r.current.contains(t)&&(E(null),null==f||f())},o=(0,l.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,f,r]),!t)return null;var C=O();return C?(0,i.createPortal)((0,n.tZ)("div",a({ref:b,style:a(a({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:y})},{children:c})),C):(0,n.tZ)(n.HY,{children:c})};var u=function(e,t,r){if(t){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,t,r,n){switch(void 0===n&&(n=0),e){case"top":return{top:t.top-r.height-n,left:t.left+(t.width-r.width)/2};case"top-start":return{top:t.top-r.height-n,left:t.left};case"top-end":return{top:t.top-r.height-n,left:t.right-r.width};case"left":return{top:t.top+(t.height-r.height)/2,left:t.left-r.width-n};case"left-start":return{top:t.top,left:t.left-r.width-n};case"left-end":return{top:t.bottom-r.height,left:t.left-r.width-n};case"bottom":default:return{top:t.bottom+n,left:t.left+(t.width-r.width)/2};case"bottom-start":return{top:t.bottom+n,left:t.left};case"bottom-end":return{top:t.bottom+n,left:t.right-r.width};case"right":return{top:t.top+(t.height-r.height)/2,left:t.right+n};case"right-start":return{top:t.top,left:t.right+n};case"right-end":return{top:t.bottom-r.height,left:t.right+n}}}},8776:(e,t,r)=>{r.d(t,{u:()=>l});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},l=function(e){var t=e.children,r=e.css,l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},l,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},4023:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var n=r(5944),o=r(7294),i=r(6664),l=r(8678),a=r(426),c=r(1587),u=r(1211),s=r(6867),f=r(9479),d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)},p=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l},h=["backgroundColor","color","fontFamily","fontSize","fontSmoothing","fontStyle","fontVariant","fontWeight","iconColor","lineHeight","letterSpacing","textAlign","padding","textDecoration","textShadow","textTransform"],v=function(e){return d(d({},e),{fontFamily:"sans-serif"})},g=function(e){var t=e.element,r=e.responsiveStyles,l=e.fieldLabel,f=e.elementProps,g=void 0===f?{}:f,y=e.setCardElement,m=void 0===y?function(){}:y,b=e.setFieldError,w=void 0===b?function(){}:b,x=e.onChange,E=void 0===x?function(){}:x,O=e.autoFocus,S=void 0!==O&&O,k=e.editMode,C=e.inlineError,Z=e.children,j=p((0,o.useState)(!1),2),R=j[0],I=j[1],L=(0,s.Z)({element:t,error:C,breakpoint:r.getMobileBreakpoint()}),B=L.borderStyles,F=L.customBorder,P=(0,o.useRef)(null),T=(0,i.useStripe)(),z=(0,i.useElements)(),M=p((0,o.useState)(""),2),Y=M[0],H=M[1];(0,o.useEffect)((function(){if(T&&z){var e=z.getElement(i.CardElement);S&&(null==e||e.on("ready",(function(){return e.focus()}))),m(t.servar.key,e)}}),[T,t.servar.key,z]);var X={style:{base:d(d({textDecoration:"none"},(0,a.Yp)(v(r.getTarget("field")),h)),{"::placeholder":d({textDecoration:"none"},(0,a.Yp)(v(r.getTarget("placeholder")),h)),":hover":(0,a.Yp)(v(r.getTarget("hoverFont")),h),":focus":(0,a.Yp)(v(r.getTarget("activeFont")),h)}),complete:v(r.getTarget("completedFont")),invalid:{color:u.xb,iconColor:u.xb}},classes:{base:t.servar.key}};return(0,n.BX)("div",d({ref:P,css:d({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:k?"none":"auto"},r.getTarget("fc"))},g,{children:[Z,l,(0,n.BX)("div",d({css:d(d({position:"relative",width:"100%",whiteSpace:"nowrap",padding:"0 2px",display:"flex",alignItems:"center"},r.getTarget("sub-fc")),{"&:hover":d(d({},r.getTarget("hover")),B.hover),"&&":R?d(d({},r.getTarget("active")),B.active):{}})},{children:[F,(0,n.BX)("div",d({css:{width:"100%",position:"relative"}},{children:[(0,n.tZ)("input",{id:t.servar.key,name:t.servar.key,css:{width:"100%",height:0,border:"none",opacity:0,"&:focus":{outline:"none"}},tabIndex:"-1"}),(0,n.tZ)(i.CardElement,{css:{position:"absolute",top:0,left:5,right:5,width:"100%"},options:X,onChange:function(e){var t,r,n=null!==(r=null===(t=e.error)||void 0===t?void 0:t.message)&&void 0!==r?r:"";Y!==n&&(H(n),w(n)),E(e.complete?{complete:!0,card_data:{brand:e.brand}}:"")},onFocus:function(){return I(!0)},onBlur:function(){return I(!1)}})]})),(0,n.tZ)(c.Z,{containerRef:P,id:t.id,text:t.properties.tooltipText,responsiveStyles:r,repeat:t.repeat})]}))]}))};const y=(0,o.memo)((function(e){var t=e.editMode,r=e.children,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["editMode","children"]),c=(0,l.d2)();return(0,o.useEffect)((function(){t&&(0,f.me)().dispatchEvent(new CustomEvent("stripe_key_loaded",{detail:{key:"any-key-does-not-matter-what"}}))}),[t]),(0,n.BX)(i.Elements,d({stripe:c},{children:[r,(0,n.tZ)(g,d({editMode:t},a))]}))}))}}]);
@@ -1 +1 @@
1
- "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[213],{1587:(e,a,r)=>{r.d(a,{Z:()=>f});var i=r(5944),c=r(5430),t=r(8776),n=r(5467),o=r(2988),u=r(4665),l=r(7449),s=r(9479),A=function(){return A=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},A.apply(this,arguments)};function f(e){var a=e.id,r=e.text,f=e.responsiveStyles,d=e.absolute,p=void 0===d||d,m=e.containerRef,h=e.repeat,g=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(!1),2),v=g[0],S=g[1],y=(0,c.useRef)(null);if(!(r=(0,u.xf)(r,h)))return null;var C=(0,s.tq)();return(0,i.BX)(i.HY,{children:[(0,i.tZ)("div",A({ref:y,onMouseEnter:C?void 0:function(){return S(!0)},onMouseLeave:C?void 0:function(){return S(!1)},onFocus:function(){return S(!0)},onBlur:function(){return S(!1)},onClick:function(){return S((function(e){return!e}))},css:p?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:o.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,i.tZ)(n.by,{cssStyles:f.getTarget("tooltipIcon")})})),(0,i.tZ)(l.Z,A({show:v,targetRef:y,containerRef:m,placement:"left",onHide:function(){return S(!1)},offset:8},{children:(0,i.tZ)(t.u,A({id:"tooltip-".concat(a),css:{zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,a,r)=>{r.d(a,{Z:()=>u});var i=r(5944),c=r(5430),t=r(3935),n=r(9479),o=function(){return o=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},o.apply(this,arguments)};const u=function(e){var a=e.show,r=e.targetRef,u=e.children,A=e.onHide,f=e.placement,d=void 0===f?"bottom-start":f,p=e.offset,m=void 0===p?0:p,h=e.zIndex,g=void 0===h?1e3:h,v=e.containerRef,S=(0,c.useRef)(null),y=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(null),2),C=y[0],M=y[1],b=(0,c.useCallback)((function(){return(null==v?void 0:v.current)||(0,n.me)().body}),[v]),E=(0,c.useCallback)((function(){var e;if(a&&r.current&&S.current){var i=(0,n.Kv)(),c=b();if(c){var t=r.current.getBoundingClientRect(),o=S.current.getBoundingClientRect(),u=c.getBoundingClientRect(),A=s(d,t,o,m),f=A.top,p=A.left,h=f+o.height,g=p+o.width,v=f>=0&&h<=i.innerHeight,y=p>=0&&g<=i.innerWidth;if(!v||!y){var C=l(d,!v,!y);C!==d&&(f=(e=s(C,t,o,m)).top,p=e.left)}var E=c===(0,n.me)().body,R=E?f+i.scrollY:f-u.top,B=E?p+i.scrollX:p-u.left;M((function(e){return e&&e.top===R&&e.left===B?e:{top:R,left:B}}))}}}),[a,d,m,b,r]),R=(0,c.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){E(),e=!1})))}}),[E])();if((0,c.useLayoutEffect)((function(){a&&E()}),[a,E]),(0,c.useEffect)((function(){if(a){var e=(0,n.Kv)(),i=b();if(i){e.addEventListener("resize",R),e.addEventListener("scroll",R,!0),i!==(0,n.me)().body&&i.addEventListener("scroll",R);var c=new ResizeObserver((function(){return R()}));return r.current&&c.observe(r.current),i!==(0,n.me)().body&&c.observe(i),function(){e.removeEventListener("resize",R),e.removeEventListener("scroll",R,!0),i!==(0,n.me)().body&&i.removeEventListener("scroll",R),c.disconnect()}}}}),[a,R,b,r]),(0,c.useEffect)((function(){if(a){var e=function(e){"Escape"===e.key&&(M(null),null==A||A())},i=function(e){var a=e.target;S.current&&!S.current.contains(a)&&r.current&&!r.current.contains(a)&&(M(null),null==A||A())},c=(0,n.me)();return c.addEventListener("mousedown",i),c.addEventListener("keydown",e),function(){c.removeEventListener("mousedown",i),c.removeEventListener("keydown",e)}}}),[a,A,r]),!a)return null;var B=b();return B?(0,t.createPortal)((0,i.tZ)("div",o({ref:S,style:o(o({position:"absolute"},C||{top:-9999,left:-9999}),{zIndex:g})},{children:u})),B):(0,i.tZ)(i.HY,{children:u})};var l=function(e,a,r){if(a){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,a,r,i){switch(void 0===i&&(i=0),e){case"top":return{top:a.top-r.height-i,left:a.left+(a.width-r.width)/2};case"top-start":return{top:a.top-r.height-i,left:a.left};case"top-end":return{top:a.top-r.height-i,left:a.right-r.width};case"left":return{top:a.top+(a.height-r.height)/2,left:a.left-r.width-i};case"left-start":return{top:a.top,left:a.left-r.width-i};case"left-end":return{top:a.bottom-r.height,left:a.left-r.width-i};case"bottom":default:return{top:a.bottom+i,left:a.left+(a.width-r.width)/2};case"bottom-start":return{top:a.bottom+i,left:a.left};case"bottom-end":return{top:a.bottom+i,left:a.right-r.width};case"right":return{top:a.top+(a.height-r.height)/2,left:a.right+i};case"right-start":return{top:a.top,left:a.right+i};case"right-end":return{top:a.bottom-r.height,left:a.right+i}}}},9069:(e,a,r)=>{r.d(a,{Z:()=>t});var i=r(5944),c=function(){return c=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},c.apply(this,arguments)};function t(e){var a,r,t,n=e.value,o=e.element,u=e.responsiveStyles,l=e.type,s=void 0===l?"input":l,A=e.inputFocused,f=void 0!==A&&A,d=e.repeatIndex,p=void 0===d?null:d,m=o.properties,h=null!==(t=(null!==(r=m.repeat_placeholder)&&void 0!==r?r:[])[null!=p?p:0])&&void 0!==t?t:m.placeholder||"",g=c(c({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,i.tZ)("span",c({css:c(c(c(c({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),n?u.getTarget("placeholderFocus"):{}),f?g:{}),(a={},a["".concat(s,":focus ~ &")]=g,a))},{children:h}))}},8776:(e,a,r)=>{r.d(a,{u:()=>n});var i=r(5944),c=r(2988),t=function(){return t=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},t.apply(this,arguments)},n=function(e){var a=e.children,r=e.css,n=function(e,a){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var c=0;for(i=Object.getOwnPropertySymbols(e);c<i.length;c++)a.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]])}return r}(e,["children","css"]);return(0,i.tZ)("div",t({css:t({zIndex:c.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},n,{children:(0,i.tZ)("div",t({className:"tooltip-inner"},{children:a}))}))}},1055:(e,a,r)=>{r.r(a),r.d(a,{default:()=>B});var i=r(5944),c=r(5430);const t={"Africa/Abidjan":{c:["CI","BF","GH","GM","GN","ML","MR","SH","SL","SN","TG"]},"Africa/Accra":{c:["GH"]},"Africa/Addis_Ababa":{c:["ET"]},"Africa/Algiers":{c:["DZ"]},"Africa/Asmara":{c:["ER"]},"Africa/Asmera":{c:["ER"]},"Africa/Bamako":{c:["ML"]},"Africa/Bangui":{c:["CF"]},"Africa/Banjul":{c:["GM"]},"Africa/Bissau":{c:["GW"]},"Africa/Blantyre":{c:["MW"]},"Africa/Brazzaville":{c:["CG"]},"Africa/Bujumbura":{c:["BI"]},"Africa/Cairo":{c:["EG"]},"Africa/Casablanca":{c:["MA"]},"Africa/Ceuta":{c:["ES"]},"Africa/Conakry":{c:["GN"]},"Africa/Dakar":{c:["SN"]},"Africa/Dar_es_Salaam":{c:["TZ"]},"Africa/Djibouti":{c:["DJ"]},"Africa/Douala":{c:["CM"]},"Africa/El_Aaiun":{c:["EH"]},"Africa/Freetown":{c:["SL"]},"Africa/Gaborone":{c:["BW"]},"Africa/Harare":{c:["ZW"]},"Africa/Johannesburg":{c:["ZA","LS","SZ"]},"Africa/Juba":{c:["SS"]},"Africa/Kampala":{c:["UG"]},"Africa/Khartoum":{c:["SD"]},"Africa/Kigali":{c:["RW"]},"Africa/Kinshasa":{c:["CD"]},"Africa/Lagos":{c:["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},"Africa/Libreville":{c:["GA"]},"Africa/Lome":{c:["TG"]},"Africa/Luanda":{c:["AO"]},"Africa/Lubumbashi":{c:["CD"]},"Africa/Lusaka":{c:["ZM"]},"Africa/Malabo":{c:["GQ"]},"Africa/Maputo":{c:["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},"Africa/Maseru":{c:["LS"]},"Africa/Mbabane":{c:["SZ"]},"Africa/Mogadishu":{c:["SO"]},"Africa/Monrovia":{c:["LR"]},"Africa/Nairobi":{c:["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},"Africa/Ndjamena":{c:["TD"]},"Africa/Niamey":{c:["NE"]},"Africa/Nouakchott":{c:["MR"]},"Africa/Ouagadougou":{c:["BF"]},"Africa/Porto-Novo":{c:["BJ"]},"Africa/Sao_Tome":{c:["ST"]},"Africa/Timbuktu":{c:["ML"]},"Africa/Tripoli":{c:["LY"]},"Africa/Tunis":{c:["TN"]},"Africa/Windhoek":{c:["NA"]},"America/Adak":{c:["US"]},"America/Anchorage":{c:["US"]},"America/Anguilla":{c:["AI"]},"America/Antigua":{c:["AG"]},"America/Araguaina":{c:["BR"]},"America/Argentina/Buenos_Aires":{c:["AR"]},"America/Argentina/Catamarca":{c:["AR"]},"America/Argentina/Cordoba":{c:["AR"]},"America/Argentina/Jujuy":{c:["AR"]},"America/Argentina/La_Rioja":{c:["AR"]},"America/Argentina/Mendoza":{c:["AR"]},"America/Argentina/Rio_Gallegos":{c:["AR"]},"America/Argentina/Salta":{c:["AR"]},"America/Argentina/San_Juan":{c:["AR"]},"America/Argentina/San_Luis":{c:["AR"]},"America/Argentina/Tucuman":{c:["AR"]},"America/Argentina/Ushuaia":{c:["AR"]},"America/Aruba":{c:["AW"]},"America/Asuncion":{c:["PY"]},"America/Atikokan":{c:["CA"]},"America/Bahia":{c:["BR"]},"America/Bahia_Banderas":{c:["MX"]},"America/Barbados":{c:["BB"]},"America/Belem":{c:["BR"]},"America/Belize":{c:["BZ"]},"America/Blanc-Sablon":{c:["CA"]},"America/Boa_Vista":{c:["BR"]},"America/Bogota":{c:["CO"]},"America/Boise":{c:["US"]},"America/Cambridge_Bay":{c:["CA"]},"America/Campo_Grande":{c:["BR"]},"America/Cancun":{c:["MX"]},"America/Caracas":{c:["VE"]},"America/Cayenne":{c:["GF"]},"America/Cayman":{c:["KY"]},"America/Chicago":{c:["US"]},"America/Chihuahua":{c:["MX"]},"America/Coral_Harbour":{c:["CA"]},"America/Costa_Rica":{c:["CR"]},"America/Creston":{c:["CA"]},"America/Cuiaba":{c:["BR"]},"America/Curacao":{c:["CW"]},"America/Danmarkshavn":{c:["GL"]},"America/Dawson":{c:["CA"]},"America/Dawson_Creek":{c:["CA"]},"America/Denver":{c:["US"]},"America/Detroit":{c:["US"]},"America/Dominica":{c:["DM"]},"America/Edmonton":{c:["CA"]},"America/Eirunepe":{c:["BR"]},"America/El_Salvador":{c:["SV"]},"America/Fort_Nelson":{c:["CA"]},"America/Fortaleza":{c:["BR"]},"America/Glace_Bay":{c:["CA"]},"America/Goose_Bay":{c:["CA"]},"America/Grand_Turk":{c:["TC"]},"America/Grenada":{c:["GD"]},"America/Guadeloupe":{c:["GP"]},"America/Guatemala":{c:["GT"]},"America/Guayaquil":{c:["EC"]},"America/Guyana":{c:["GY"]},"America/Halifax":{c:["CA"]},"America/Havana":{c:["CU"]},"America/Hermosillo":{c:["MX"]},"America/Indiana/Indianapolis":{c:["US"]},"America/Indiana/Knox":{c:["US"]},"America/Indiana/Marengo":{c:["US"]},"America/Indiana/Petersburg":{c:["US"]},"America/Indiana/Tell_City":{c:["US"]},"America/Indiana/Vevay":{c:["US"]},"America/Indiana/Vincennes":{c:["US"]},"America/Indiana/Winamac":{c:["US"]},"America/Inuvik":{c:["CA"]},"America/Iqaluit":{c:["CA"]},"America/Jamaica":{c:["JM"]},"America/Juneau":{c:["US"]},"America/Kentucky/Louisville":{c:["US"]},"America/Kentucky/Monticello":{c:["US"]},"America/Kralendijk":{c:["BQ"]},"America/La_Paz":{c:["BO"]},"America/Lima":{c:["PE"]},"America/Los_Angeles":{c:["US"]},"America/Lower_Princes":{c:["SX"]},"America/Maceio":{c:["BR"]},"America/Managua":{c:["NI"]},"America/Manaus":{c:["BR"]},"America/Marigot":{c:["MF"]},"America/Martinique":{c:["MQ"]},"America/Matamoros":{c:["MX"]},"America/Mazatlan":{c:["MX"]},"America/Menominee":{c:["US"]},"America/Merida":{c:["MX"]},"America/Metlakatla":{c:["US"]},"America/Mexico_City":{c:["MX"]},"America/Miquelon":{c:["PM"]},"America/Moncton":{c:["CA"]},"America/Monterrey":{c:["MX"]},"America/Montevideo":{c:["UY"]},"America/Montreal":{c:["CA"]},"America/Montserrat":{c:["MS"]},"America/Nassau":{c:["BS"]},"America/New_York":{c:["US"]},"America/Nipigon":{c:["CA"]},"America/Nome":{c:["US"]},"America/Noronha":{c:["BR"]},"America/North_Dakota/Beulah":{c:["US"]},"America/North_Dakota/Center":{c:["US"]},"America/North_Dakota/New_Salem":{c:["US"]},"America/Nuuk":{c:["GL"]},"America/Ojinaga":{c:["MX"]},"America/Panama":{c:["PA","CA","KY"]},"America/Pangnirtung":{c:["CA"]},"America/Paramaribo":{c:["SR"]},"America/Phoenix":{c:["US","CA"]},"America/Port-au-Prince":{c:["HT"]},"America/Port_of_Spain":{c:["TT"]},"America/Porto_Velho":{c:["BR"]},"America/Puerto_Rico":{c:["PR","AG","CA","AI","AW","BL","BQ","CW","DM","GD","GP","KN","LC","MF","MS","SX","TT","VC","VG","VI"]},"America/Punta_Arenas":{c:["CL"]},"America/Rainy_River":{c:["CA"]},"America/Rankin_Inlet":{c:["CA"]},"America/Recife":{c:["BR"]},"America/Regina":{c:["CA"]},"America/Resolute":{c:["CA"]},"America/Rio_Branco":{c:["BR"]},"America/Santarem":{c:["BR"]},"America/Santiago":{c:["CL"]},"America/Santo_Domingo":{c:["DO"]},"America/Sao_Paulo":{c:["BR"]},"America/Scoresbysund":{c:["GL"]},"America/Sitka":{c:["US"]},"America/St_Barthelemy":{c:["BL"]},"America/St_Johns":{c:["CA"]},"America/St_Kitts":{c:["KN"]},"America/St_Lucia":{c:["LC"]},"America/St_Thomas":{c:["VI"]},"America/St_Vincent":{c:["VC"]},"America/Swift_Current":{c:["CA"]},"America/Tegucigalpa":{c:["HN"]},"America/Thule":{c:["GL"]},"America/Thunder_Bay":{c:["CA"]},"America/Tijuana":{c:["MX"]},"America/Toronto":{c:["CA","BS"]},"America/Tortola":{c:["VG"]},"America/Vancouver":{c:["CA"]},"America/Virgin":{c:["VI"]},"America/Whitehorse":{c:["CA"]},"America/Winnipeg":{c:["CA"]},"America/Yakutat":{c:["US"]},"America/Yellowknife":{c:["CA"]},"Antarctica/Casey":{c:["AQ"]},"Antarctica/Davis":{c:["AQ"]},"Antarctica/DumontDUrville":{c:["AQ"]},"Antarctica/Macquarie":{c:["AU"]},"Antarctica/Mawson":{c:["AQ"]},"Antarctica/McMurdo":{c:["AQ"]},"Antarctica/Palmer":{c:["AQ"]},"Antarctica/Rothera":{c:["AQ"]},"Antarctica/South_Pole":{c:["AQ"]},"Antarctica/Syowa":{c:["AQ"]},"Antarctica/Troll":{c:["AQ"]},"Antarctica/Vostok":{c:["AQ"]},"Arctic/Longyearbyen":{c:["SJ"]},"Asia/Aden":{c:["YE"]},"Asia/Almaty":{c:["KZ"]},"Asia/Amman":{c:["JO"]},"Asia/Anadyr":{c:["RU"]},"Asia/Aqtau":{c:["KZ"]},"Asia/Aqtobe":{c:["KZ"]},"Asia/Ashgabat":{c:["TM"]},"Asia/Atyrau":{c:["KZ"]},"Asia/Baghdad":{c:["IQ"]},"Asia/Bahrain":{c:["BH"]},"Asia/Baku":{c:["AZ"]},"Asia/Bangkok":{c:["TH","KH","LA","VN"]},"Asia/Barnaul":{c:["RU"]},"Asia/Beirut":{c:["LB"]},"Asia/Bishkek":{c:["KG"]},"Asia/Brunei":{c:["BN"]},"Asia/Calcutta":{c:["IN"]},"Asia/Chita":{c:["RU"]},"Asia/Choibalsan":{c:["MN"]},"Asia/Colombo":{c:["LK"]},"Asia/Damascus":{c:["SY"]},"Asia/Dhaka":{c:["BD"]},"Asia/Dili":{c:["TL"]},"Asia/Dubai":{c:["AE","OM"]},"Asia/Dushanbe":{c:["TJ"]},"Asia/Famagusta":{c:["CY"]},"Asia/Gaza":{c:["PS"]},"Asia/Hebron":{c:["PS"]},"Asia/Ho_Chi_Minh":{c:["VN"]},"Asia/Hong_Kong":{c:["HK"]},"Asia/Hovd":{c:["MN"]},"Asia/Irkutsk":{c:["RU"]},"Asia/Jakarta":{c:["ID"]},"Asia/Jayapura":{c:["ID"]},"Asia/Jerusalem":{c:["IL"]},"Asia/Kabul":{c:["AF"]},"Asia/Kamchatka":{c:["RU"]},"Asia/Karachi":{c:["PK"]},"Asia/Kathmandu":{c:["NP"]},"Asia/Khandyga":{c:["RU"]},"Asia/Kolkata":{c:["IN"]},"Asia/Krasnoyarsk":{c:["RU"]},"Asia/Kuala_Lumpur":{c:["MY"]},"Asia/Kuching":{c:["MY"]},"Asia/Kuwait":{c:["KW"]},"Asia/Macau":{c:["MO"]},"Asia/Magadan":{c:["RU"]},"Asia/Makassar":{c:["ID"]},"Asia/Manila":{c:["PH"]},"Asia/Muscat":{c:["OM"]},"Asia/Nicosia":{c:["CY"]},"Asia/Novokuznetsk":{c:["RU"]},"Asia/Novosibirsk":{c:["RU"]},"Asia/Omsk":{c:["RU"]},"Asia/Oral":{c:["KZ"]},"Asia/Phnom_Penh":{c:["KH"]},"Asia/Pontianak":{c:["ID"]},"Asia/Pyongyang":{c:["KP"]},"Asia/Qatar":{c:["QA","BH"]},"Asia/Qostanay":{c:["KZ"]},"Asia/Qyzylorda":{c:["KZ"]},"Asia/Riyadh":{c:["SA","AQ","KW","YE"]},"Asia/Sakhalin":{c:["RU"]},"Asia/Samarkand":{c:["UZ"]},"Asia/Seoul":{c:["KR"]},"Asia/Shanghai":{c:["CN"]},"Asia/Singapore":{c:["SG","MY"]},"Asia/Srednekolymsk":{c:["RU"]},"Asia/Taipei":{c:["TW"]},"Asia/Tashkent":{c:["UZ"]},"Asia/Tbilisi":{c:["GE"]},"Asia/Tehran":{c:["IR"]},"Asia/Thimphu":{c:["BT"]},"Asia/Tokyo":{c:["JP"]},"Asia/Tomsk":{c:["RU"]},"Asia/Ulaanbaatar":{c:["MN"]},"Asia/Urumqi":{c:["CN"]},"Asia/Ust-Nera":{c:["RU"]},"Asia/Vientiane":{c:["LA"]},"Asia/Vladivostok":{c:["RU"]},"Asia/Yakutsk":{c:["RU"]},"Asia/Yangon":{c:["MM"]},"Asia/Yekaterinburg":{c:["RU"]},"Asia/Yerevan":{c:["AM"]},"Atlantic/Azores":{c:["PT"]},"Atlantic/Bermuda":{c:["BM"]},"Atlantic/Canary":{c:["ES"]},"Atlantic/Cape_Verde":{c:["CV"]},"Atlantic/Faroe":{c:["FO"]},"Atlantic/Jan_Mayen":{c:["SJ"]},"Atlantic/Madeira":{c:["PT"]},"Atlantic/Reykjavik":{c:["IS"]},"Atlantic/South_Georgia":{c:["GS"]},"Atlantic/St_Helena":{c:["SH"]},"Atlantic/Stanley":{c:["FK"]},"Australia/Adelaide":{c:["AU"]},"Australia/Brisbane":{c:["AU"]},"Australia/Broken_Hill":{c:["AU"]},"Australia/Darwin":{c:["AU"]},"Australia/Eucla":{c:["AU"]},"Australia/Hobart":{c:["AU"]},"Australia/Lindeman":{c:["AU"]},"Australia/Lord_Howe":{c:["AU"]},"Australia/Melbourne":{c:["AU"]},"Australia/Perth":{c:["AU"]},"Australia/Sydney":{c:["AU"]},"Canada/Eastern":{c:["CA"]},"Europe/Amsterdam":{c:["NL"]},"Europe/Andorra":{c:["AD"]},"Europe/Astrakhan":{c:["RU"]},"Europe/Athens":{c:["GR"]},"Europe/Belfast":{c:["GB"]},"Europe/Belgrade":{c:["RS","BA","HR","ME","MK","SI"]},"Europe/Berlin":{c:["DE"]},"Europe/Bratislava":{c:["SK"]},"Europe/Brussels":{c:["BE"]},"Europe/Bucharest":{c:["RO"]},"Europe/Budapest":{c:["HU"]},"Europe/Busingen":{c:["DE"]},"Europe/Chisinau":{c:["MD"]},"Europe/Copenhagen":{c:["DK"]},"Europe/Dublin":{c:["IE"]},"Europe/Gibraltar":{c:["GI"]},"Europe/Guernsey":{c:["GG"]},"Europe/Helsinki":{c:["FI","AX"]},"Europe/Isle_of_Man":{c:["IM"]},"Europe/Istanbul":{c:["TR"]},"Europe/Jersey":{c:["JE"]},"Europe/Kaliningrad":{c:["RU"]},"Europe/Kiev":{c:["UA"]},"Europe/Kirov":{c:["RU"]},"Europe/Lisbon":{c:["PT"]},"Europe/Ljubljana":{c:["SI"]},"Europe/London":{c:["GB","GG","IM","JE"]},"Europe/Luxembourg":{c:["LU"]},"Europe/Madrid":{c:["ES"]},"Europe/Malta":{c:["MT"]},"Europe/Mariehamn":{c:["AX"]},"Europe/Minsk":{c:["BY"]},"Europe/Monaco":{c:["MC"]},"Europe/Moscow":{c:["RU"]},"Europe/Oslo":{c:["NO","SJ","BV"]},"Europe/Paris":{c:["FR"]},"Europe/Podgorica":{c:["ME"]},"Europe/Prague":{c:["CZ","SK"]},"Europe/Riga":{c:["LV"]},"Europe/Rome":{c:["IT","SM","VA"]},"Europe/Samara":{c:["RU"]},"Europe/San_Marino":{c:["SM"]},"Europe/Sarajevo":{c:["BA"]},"Europe/Saratov":{c:["RU"]},"Europe/Simferopol":{c:["RU","UA"]},"Europe/Skopje":{c:["MK"]},"Europe/Sofia":{c:["BG"]},"Europe/Stockholm":{c:["SE"]},"Europe/Tallinn":{c:["EE"]},"Europe/Tirane":{c:["AL"]},"Europe/Ulyanovsk":{c:["RU"]},"Europe/Uzhgorod":{c:["UA"]},"Europe/Vaduz":{c:["LI"]},"Europe/Vatican":{c:["VA"]},"Europe/Vienna":{c:["AT"]},"Europe/Vilnius":{c:["LT"]},"Europe/Volgograd":{c:["RU"]},"Europe/Warsaw":{c:["PL"]},"Europe/Zagreb":{c:["HR"]},"Europe/Zaporozhye":{c:["UA"]},"Europe/Zurich":{c:["CH","DE","LI"]},GB:{c:["GB"]},"GB-Eire":{c:["GB"]},"Indian/Antananarivo":{c:["MG"]},"Indian/Chagos":{c:["IO"]},"Indian/Christmas":{c:["CX"]},"Indian/Cocos":{c:["CC"]},"Indian/Comoro":{c:["KM"]},"Indian/Kerguelen":{c:["TF","HM"]},"Indian/Mahe":{c:["SC"]},"Indian/Maldives":{c:["MV"]},"Indian/Mauritius":{c:["MU"]},"Indian/Mayotte":{c:["YT"]},"Indian/Reunion":{c:["RE","TF"]},NZ:{c:["NZ"]},"Pacific/Apia":{c:["WS"]},"Pacific/Auckland":{c:["NZ","AQ"]},"Pacific/Bougainville":{c:["PG"]},"Pacific/Chatham":{c:["NZ"]},"Pacific/Chuuk":{c:["FM"]},"Pacific/Easter":{c:["CL"]},"Pacific/Efate":{c:["VU"]},"Pacific/Fakaofo":{c:["TK"]},"Pacific/Fiji":{c:["FJ"]},"Pacific/Funafuti":{c:["TV"]},"Pacific/Galapagos":{c:["EC"]},"Pacific/Gambier":{c:["PF"]},"Pacific/Guadalcanal":{c:["SB"]},"Pacific/Guam":{c:["GU","MP"]},"Pacific/Honolulu":{c:["US","UM"]},"Pacific/Johnston":{c:["UM"]},"Pacific/Kanton":{c:["KI"]},"Pacific/Kiritimati":{c:["KI"]},"Pacific/Kosrae":{c:["FM"]},"Pacific/Kwajalein":{c:["MH"]},"Pacific/Majuro":{c:["MH"]},"Pacific/Marquesas":{c:["PF"]},"Pacific/Midway":{c:["UM"]},"Pacific/Nauru":{c:["NR"]},"Pacific/Niue":{c:["NU"]},"Pacific/Norfolk":{c:["NF"]},"Pacific/Noumea":{c:["NC"]},"Pacific/Pago_Pago":{c:["AS","UM"]},"Pacific/Palau":{c:["PW"]},"Pacific/Pitcairn":{c:["PN"]},"Pacific/Pohnpei":{c:["FM"]},"Pacific/Port_Moresby":{c:["PG","AQ"]},"Pacific/Rarotonga":{c:["CK"]},"Pacific/Saipan":{c:["MP"]},"Pacific/Samoa":{c:["WS"]},"Pacific/Tahiti":{c:["PF"]},"Pacific/Tarawa":{c:["KI"]},"Pacific/Tongatapu":{c:["TO"]},"Pacific/Wake":{c:["UM"]},"Pacific/Wallis":{c:["WF"]},Singapore:{c:["SG"]},"US/Alaska":{c:["US"]},"US/Aleutian":{c:["US"]},"US/Arizona":{c:["US"]},"US/Central":{c:["US"]},"US/East-Indiana":{c:["US"]},"US/Eastern":{c:["US"]},"US/Hawaii":{c:["US"]},"US/Indiana-Starke":{c:["US"]},"US/Michigan":{c:["US"]},"US/Mountain":{c:["US"]},"US/Pacific":{c:["US"]},"US/Samoa":{c:["WS"]}};var n=r(9069),o=r(1587),u=r(1211),l=r(5198);const s={AC:"40123",AD:"312345",AE:"501234567",AF:"701234567",AG:"2684641234",AI:"2642351234",AL:"672123456",AM:"77123456",AO:"923123456",AR:"91123456789",AS:"6847331234",AT:"664123456",AU:"412345678",AW:"5601234",AX:"412345678",AZ:"401234567",BA:"61123456",BB:"2462501234",BD:"1812345678",BE:"470123456",BF:"70123456",BG:"43012345",BH:"36001234",BI:"79561234",BJ:"90011234",BL:"690001234",BM:"4413701234",BN:"7123456",BO:"71234567",BQ:"3181234",BR:"11961234567",BS:"2423591234",BT:"17123456",BW:"71123456",BY:"294911911",BZ:"6221234",CA:"5062345678",CC:"412345678",CD:"991234567",CF:"70012345",CG:"061234567",CH:"781234567",CI:"0123456789",CK:"71234",CL:"221234567",CM:"671234567",CN:"13123456789",CO:"3211234567",CR:"83123456",CU:"51234567",CV:"9911234",CW:"95181234",CX:"412345678",CY:"96123456",CZ:"601123456",DE:"15123456789",DJ:"77831001",DK:"32123456",DM:"7672251234",DO:"8092345678",DZ:"551234567",EC:"991234567",EE:"51234567",EG:"1001234567",EH:"650123456",ER:"7123456",ES:"612345678",ET:"911234567",FI:"412345678",FJ:"7012345",FK:"51234",FM:"3501234",FO:"211234",FR:"612345678",GA:"06031234",GB:"7400123456",GD:"4734031234",GE:"555123456",GF:"694201234",GG:"7781123456",GH:"231234567",GI:"57123456",GL:"221234",GM:"3012345",GN:"601123456",GP:"690001234",GQ:"222123456",GR:"6912345678",GT:"51234567",GU:"6713001234",GW:"955012345",GY:"6091234",HK:"51234567",HN:"91234567",HR:"921234567",HT:"34101234",HU:"201234567",ID:"812345678",IE:"850123456",IL:"502345678",IM:"7924123456",IN:"8123456789",IO:"3801234",IQ:"7912345678",IR:"9123456789",IS:"6111234",IT:"3123456789",JE:"7797712345",JM:"8762101234",JO:"790123456",JP:"9012345678",KE:"712123456",KG:"700123456",KH:"91234567",KI:"72001234",KM:"3212345",KN:"8697652917",KP:"1921234567",KR:"1020000000",KW:"50012345",KY:"3453231234",KZ:"7710009998",LA:"2023123456",LB:"71123456",LC:"7582845678",LI:"660234567",LK:"712345678",LR:"770123456",LS:"50123456",LT:"61234567",LU:"628123456",LV:"21234567",LY:"912345678",MA:"650123456",MC:"612345678",MD:"62112345",ME:"67622901",MF:"690001234",MG:"321234567",MH:"2351234",MK:"72345678",ML:"65012345",MM:"92123456",MN:"88123456",MO:"66123456",MP:"6702345678",MQ:"696201234",MR:"22123456",MS:"6644923456",MT:"96961234",MU:"52512345",MV:"7712345",MW:"991234567",MX:"12221234567",MY:"123456789",MZ:"821234567",NA:"811234567",NC:"751234",NE:"93123456",NF:"381234",NG:"8021234567",NI:"81234567",NL:"612345678",NO:"40612345",NP:"9841234567",NR:"5551234",NU:"8884012",NZ:"211234567",OM:"92123456",PA:"61234567",PE:"912345678",PF:"87123456",PG:"70123456",PH:"9051234567",PK:"3012345678",PL:"512345678",PM:"551234",PR:"7872345678",PS:"599123456",PT:"912345678",PW:"6201234",PY:"961456789",QA:"33123456",RE:"692123456",RO:"712034567",RS:"601234567",RU:"9123456789",RW:"720123456",SA:"512345678",SB:"7421234",SC:"2510123",SD:"911231234",SE:"701234567",SG:"81234567",SH:"51234",SI:"31234567",SJ:"41234567",SK:"912123456",SL:"25123456",SM:"66661212",SN:"701234567",SO:"71123456",SR:"7412345",SS:"977123456",ST:"9812345",SV:"70123456",SX:"7215205678",SY:"944567890",SZ:"76123456",TA:"8999",TC:"6492311234",TD:"63012345",TG:"90112345",TH:"812345678",TJ:"917123456",TK:"7290",TL:"77212345",TM:"66123456",TN:"20123456",TO:"7715123",TR:"5012345678",TT:"8682911234",TV:"901234",TW:"912345678",TZ:"621234567",UA:"501234567",UG:"712345678",US:"2015550123",UY:"94231234",UZ:"912345678",VA:"3123456789",VC:"7844301234",VE:"4121234567",VG:"2843001234",VI:"3406421234",VN:"912345678",VU:"5912345",WF:"821234",WS:"7212345",XK:"43201234",YE:"712345678",YT:"639012345",ZA:"711234567",ZM:"955123456",ZW:"712345678"};var A=r(426),f=r(9234),d=r(5200),p=r(1275),m=function(){return m=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},m.apply(this,arguments)};const h=(0,c.forwardRef)((function(e,a){var t=e.show,n=e.itemOnClick,o=e.responsiveStyles,u=e.dropdownWidth,s=function(e,a){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var c=0;for(i=Object.getOwnPropertySymbols(e);c<i.length;c++)a.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]])}return r}(e,["show","itemOnClick","responsiveStyles","dropdownWidth"]),A=(0,c.useRef)({}),f=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(""),2),h=f[0],g=f[1],v=(0,c.useRef)(null);(0,c.useEffect)((function(){t?v.current&&setTimeout((function(){var e;null===(e=v.current)||void 0===e||e.focus()}),50):g("")}),[t]);var S=(0,c.useMemo)((function(){var e=l.ZP.filter((function(e){var a,i=e.countryCode,c=e.countryName,t=e.phoneCode;return!(!(null===(a=r.g.libphonenumber)||void 0===a?void 0:a.isSupportedCountry(i))||d.fD.client&&!l.lC.has(i))&&(!h||i.toLowerCase().includes(h)||c.toLowerCase().includes(h)||"+".concat(t).includes(h))}));return(0,i.BX)(i.HY,{children:[(0,i.tZ)("input",{ref:v,placeholder:"Search",css:{width:"100%",height:"30px",outline:"none",border:"none",borderBottom:"1px solid grey",padding:"5px 10px",fontSize:"14px"},onKeyDown:function(a){var r=function(){a.preventDefault(),a.stopPropagation()};if("ArrowDown"===a.key){r();var i=e[0];i&&A.current[i.countryCode].focus()}else"Enter"===a.key&&r()},onChange:function(e){return g(e.target.value.toLowerCase())},tabIndex:0}),e.map((function(e){var a=e.flag,r=e.countryCode,c=e.countryName,t=e.phoneCode;return(0,i.BX)("li",m({ref:function(e){A.current[r]=e},css:{padding:"2px 10px",display:"flex",alignItems:"center",transition:"0.1s ease all",fontSize:"14px","&:hover":{backgroundColor:"#e6e6e644"},"&:focus-visible":{outline:"none",backgroundColor:"#e6e6e644"}},tabIndex:0,onKeyDown:function(e){var a,i,c=function(){e.preventDefault(),e.stopPropagation()};"Enter"===e.key?(c(),n(r,t)):["ArrowDown","ArrowRight"].includes(e.key)?(c(),null===(a=A.current[r].nextSibling)||void 0===a||a.focus()):["ArrowUp","ArrowLeft"].includes(e.key)&&(c(),null===(i=A.current[r].previousSibling)||void 0===i||i.focus())},onClick:function(){return n(r,t)}},{children:[(0,i.tZ)("span",m({css:{fontSize:"24px",marginRight:"7px",lineHeight:"33px"}},{children:a})),c,(0,i.BX)("span",m({css:{marginLeft:"7px",color:"grey"}},{children:["+",t]}))]}),r)}))]})}),[h]),y=void 0!==u?"".concat(u,"px"):"100%";return(0,i.tZ)("ul",m({css:m({zIndex:p.m,listStyleType:"none",padding:0,margin:0,backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)",maxHeight:"210px",overflowY:"scroll",overflowX:"hidden",boxSizing:"border-box",width:y},o.getTarget("dropdown")),ref:a},s,{children:S}))}));var g=r(6867),v=r(9479),S={IN:12,SG:10},y=r(7449),C=r(5398),M=function(){return M=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},M.apply(this,arguments)},b=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n},E="US",R=l.ZP.reduce((function(e,a){var r=a.flag,i=a.countryCode,c=a.phoneCode;return e[i]={flag:r,phoneCode:c},e}),{});const B=(0,c.memo)((function(e){var a=e.element,l=e.responsiveStyles,d=e.fieldLabel,p=e.fullNumber,m=e.elementProps,B=void 0===m?{}:m,P=e.required,U=void 0!==P&&P,T=e.disabled,G=void 0!==T&&T,k=e.repeatIndex,L=void 0===k?null:k,I=e.autoComplete,w=e.editMode,N=e.onComplete,K=void 0===N?function(){}:N,O=e.setRef,D=void 0===O?function(){}:O,_=e.inlineError,Z=e.rightToLeft,x=e.onEnter,H=e.children,F=(0,c.useRef)(null),W=(0,c.useRef)(null),V=(0,c.useRef)(null),Y=(0,c.useRef)(null),j=(0,c.useRef)(null),J=b((0,c.useState)(null),2),z=J[0],X=J[1],Q=b((0,c.useState)(!1),2),q=Q[0],$=Q[1],ee=b((0,c.useState)(!1),2),ae=ee[0],re=ee[1],ie=b((0,c.useState)(""),2),ce=ie[0],te=ie[1],ne=a.servar,oe=(0,c.useMemo)((function(){if("auto"===ne.metadata.default_country){var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(!e)return E;var a=t[e];if(!a)return E;var r=a.c[0];return r in R?r:E}return ne.metadata.default_country||E}),[ne.metadata.default_country]),ue=b((0,c.useState)(oe),2),le=ue[0],se=ue[1];(0,c.useEffect)((function(){return se(oe)}),[oe]);var Ae=R[le].phoneCode,fe=b((0,c.useState)(""),2),de=fe[0],pe=fe[1],me=b((0,c.useState)(a.properties.placeholder),2),he=me[0],ge=me[1],ve=b((0,c.useState)(!1),2),Se=ve[0],ye=ve[1],Ce=(0,C.Z)(V).width,Me=(0,g.Z)({element:a,error:_,breakpoint:l.getMobileBreakpoint()}),be=Me.borderStyles,Ee=Me.customBorder,Re=function(e){var a=e.length>3?2:1;X(e.length+a)};(0,c.useEffect)((function(){var e=j.current;e&&null!==z&&e.setSelectionRange(z,z)}),[q]),(0,c.useEffect)((function(){p===ce||w||f.hV.then((function(){var e,a;if(r.g.libphonenumber){var i=new r.g.libphonenumber.AsYouType;i.input("+".concat(p));var c=null!==(e=i.getNumber())&&void 0!==e?e:"";te(p),pe(p),c&&se(null!==(a=c.country)&&void 0!==a?a:le)}}))}),[p]);var Be=(0,c.useMemo)((function(){var e=r.g.libphonenumber;if(!e)return"+".concat(de);if(""===de)return"";var a=new e.AsYouType(le),i=e.parseDigits(de,le);return a.input("+".concat(i))}),[le,de]);(0,c.useEffect)((function(){var e,i=null!==(e=a.properties.placeholder)&&void 0!==e?e:"";if(w||i)ge(i);else{var c=s[le];f.hV.then((function(){r.g.libphonenumber&&ge(r.g.libphonenumber.parsePhoneNumber(c,le).formatInternational())}))}}),[le,a]);var Pe=function(e){(p||e)&&e!==p&&(te(e),K(e))},Ue=!ne.metadata.disable_other_countries,Te=Ue?{cursor:"pointer","&:hover":(0,v.wL)({backgroundColor:"#e6e6e633"})}:{};return(0,i.BX)("div",M({ref:W,css:M({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:w?"none":"auto"},l.getTarget("fc"))},B,{children:[H,d,(0,i.BX)("div",M({ref:V,css:M(M(M({display:"flex",position:"relative"},l.getTarget("sub-fc")),G?l.getTarget("disabled"):{}),{"&:hover":(0,v.wL)(G?{}:M(M({},l.getTarget("hover")),be.hover)),"&&":Se?M(M({},l.getTarget("active")),be.active):{}})},{children:[Ee,(0,i.tZ)("div",M({"data-testid":"country-trigger",css:M(M({transition:"0.2s ease all",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 6px",position:"relative",cursor:"default"},l.getTarget("fieldToggle")),Te),ref:F,onClick:function(){Ue&&!G&&re(!ae)}},{children:R[le].flag})),(0,i.tZ)(y.Z,M({show:ae,onHide:function(){return re(!1)},targetRef:F,containerRef:W,placement:"bottom-start",offset:0},{children:(0,i.tZ)(h,{itemOnClick:function(e,a){se(e),pe(a),Re(a),re(!1),Pe(a),j.current.focus()},responsiveStyles:l,dropdownWidth:Ce,ref:function(e){Y.current=e},show:ae})}),"overlay-".concat(le)),(0,i.BX)("div",M({css:{position:"relative",width:"100%",whiteSpace:"nowrap",overflowX:"clip"}},{children:[(0,i.tZ)("input",{id:ne.key,name:ne.key,css:M(M(M(M({backgroundColor:"transparent",height:"100%",width:"100%",border:"none",margin:0},Z?{textAlign:"right"}:{}),u.ET),l.getTarget("field")),Se||Be||!he?{}:{color:"transparent !important"}),required:U,disabled:G,placeholder:"","aria-label":a.properties.aria_label,value:Be,ref:function(e){j.current=e,D(e)},type:"tel",autoComplete:"on"===I?"tel":"new-password",dir:"ltr",onFocus:function(e){(0,v.ms)(e),pe((function(e){return""===e?(Re(Ae),Ae):e})),ye(!0)},onBlur:function(){var e=de;Ae.startsWith(de)&&(X(null),pe(e="")),Pe(e),ye(!1)},onKeyDown:function(e){"Enter"===e.key?(Pe(de),x(e)):"+"===e.key&&re(!0)},onChange:function(e){var a,i=e.target.selectionStart,c=e.target.value;if(c){var t=r.g.libphonenumber;if(!t)return;if((c.match(/\+/g)||[]).length>1){var n=c.lastIndexOf("+");c=c.slice(n)}if((c=c.replace(/\s/g,"")).includes("+")||(c=t.validatePhoneNumberLength(c,le)&&c.startsWith(Ae)?"+".concat(c):"+".concat(Ae).concat(c)),!c.startsWith("+".concat(Ae)))return;if(c.startsWith("+11"))return;var o=t.parseDigits(c,le);if("TOO_LONG"===t.validatePhoneNumberLength(o,le)||(a=le)in S&&o.length>S[a])return;var u=new t.AsYouType(le).input("+".concat(o)),l=t.parseDigits(Be.slice(0,null!=z?z:0)).length;pe(o);var s=t.parseDigits(u,le).length-t.parseDigits(Be,le).length;if(i&&s>0)for(;i<=u.length&&!(0,A.e9)(u[i])||t.parseDigits(u.slice(0,i)).length<=l;)i++}else{pe(Ae);var f=Ae.length>3?2:1;i=Ae.length+f}X(i),$(!q)}}),(0,i.tZ)(n.Z,{value:Be,element:{properties:{placeholder:he}},responsiveStyles:l,repeatIndex:L}),(0,i.tZ)(o.Z,{containerRef:W,id:a.id,text:a.properties.tooltipText,responsiveStyles:l,repeat:a.repeat})]}))]}))]}))}))},5398:(e,a,r)=>{r.d(a,{Z:()=>t});var i=r(5430),c=r(9479);function t(e){var a=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,i.useState)({width:void 0,height:void 0}),2),r=a[0],t=a[1];return(0,i.useLayoutEffect)((function(){var a=function(){var a=e.current;if(a){var r=a.getBoundingClientRect(),i=r.width,c=r.height;t({width:i>0?i:void 0,height:c>0?c:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var i=(0,c.Kv)();return i&&"function"==typeof i.addEventListener&&"function"==typeof i.removeEventListener?(i.addEventListener("resize",a),a(),function(){return i.removeEventListener("resize",a)}):void a()}var n=new ResizeObserver((function(){return a()}));try{n.observe(r,{box:"border-box"})}catch(e){n.observe(r)}return a(),function(){return n.disconnect()}}}),[e]),r}}}]);
1
+ "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[213],{1587:(e,a,r)=>{r.d(a,{Z:()=>f});var i=r(5944),c=r(7294),t=r(8776),n=r(5467),o=r(2988),u=r(4665),l=r(7449),s=r(9479),A=function(){return A=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},A.apply(this,arguments)};function f(e){var a=e.id,r=e.text,f=e.responsiveStyles,d=e.absolute,p=void 0===d||d,m=e.containerRef,h=e.repeat,g=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(!1),2),v=g[0],S=g[1],y=(0,c.useRef)(null);if(!(r=(0,u.xf)(r,h)))return null;var C=(0,s.tq)();return(0,i.BX)(i.HY,{children:[(0,i.tZ)("div",A({ref:y,onMouseEnter:C?void 0:function(){return S(!0)},onMouseLeave:C?void 0:function(){return S(!1)},onFocus:function(){return S(!0)},onBlur:function(){return S(!1)},onClick:function(){return S((function(e){return!e}))},css:p?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:o.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,i.tZ)(n.by,{cssStyles:f.getTarget("tooltipIcon")})})),(0,i.tZ)(l.Z,A({show:v,targetRef:y,containerRef:m,placement:"left",onHide:function(){return S(!1)},offset:8},{children:(0,i.tZ)(t.u,A({id:"tooltip-".concat(a),css:{zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,a,r)=>{r.d(a,{Z:()=>u});var i=r(5944),c=r(7294),t=r(3935),n=r(9479),o=function(){return o=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},o.apply(this,arguments)};const u=function(e){var a=e.show,r=e.targetRef,u=e.children,A=e.onHide,f=e.placement,d=void 0===f?"bottom-start":f,p=e.offset,m=void 0===p?0:p,h=e.zIndex,g=void 0===h?1e3:h,v=e.containerRef,S=(0,c.useRef)(null),y=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(null),2),C=y[0],M=y[1],b=(0,c.useCallback)((function(){return(null==v?void 0:v.current)||(0,n.me)().body}),[v]),E=(0,c.useCallback)((function(){var e;if(a&&r.current&&S.current){var i=(0,n.Kv)(),c=b();if(c){var t=r.current.getBoundingClientRect(),o=S.current.getBoundingClientRect(),u=c.getBoundingClientRect(),A=s(d,t,o,m),f=A.top,p=A.left,h=f+o.height,g=p+o.width,v=f>=0&&h<=i.innerHeight,y=p>=0&&g<=i.innerWidth;if(!v||!y){var C=l(d,!v,!y);C!==d&&(f=(e=s(C,t,o,m)).top,p=e.left)}var E=c===(0,n.me)().body,R=E?f+i.scrollY:f-u.top,B=E?p+i.scrollX:p-u.left;M((function(e){return e&&e.top===R&&e.left===B?e:{top:R,left:B}}))}}}),[a,d,m,b,r]),R=(0,c.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){E(),e=!1})))}}),[E])();if((0,c.useLayoutEffect)((function(){a&&E()}),[a,E]),(0,c.useEffect)((function(){if(a){var e=(0,n.Kv)(),i=b();if(i){e.addEventListener("resize",R),e.addEventListener("scroll",R,!0),i!==(0,n.me)().body&&i.addEventListener("scroll",R);var c=new ResizeObserver((function(){return R()}));return r.current&&c.observe(r.current),i!==(0,n.me)().body&&c.observe(i),function(){e.removeEventListener("resize",R),e.removeEventListener("scroll",R,!0),i!==(0,n.me)().body&&i.removeEventListener("scroll",R),c.disconnect()}}}}),[a,R,b,r]),(0,c.useEffect)((function(){if(a){var e=function(e){"Escape"===e.key&&(M(null),null==A||A())},i=function(e){var a=e.target;S.current&&!S.current.contains(a)&&r.current&&!r.current.contains(a)&&(M(null),null==A||A())},c=(0,n.me)();return c.addEventListener("mousedown",i),c.addEventListener("keydown",e),function(){c.removeEventListener("mousedown",i),c.removeEventListener("keydown",e)}}}),[a,A,r]),!a)return null;var B=b();return B?(0,t.createPortal)((0,i.tZ)("div",o({ref:S,style:o(o({position:"absolute"},C||{top:-9999,left:-9999}),{zIndex:g})},{children:u})),B):(0,i.tZ)(i.HY,{children:u})};var l=function(e,a,r){if(a){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,a,r,i){switch(void 0===i&&(i=0),e){case"top":return{top:a.top-r.height-i,left:a.left+(a.width-r.width)/2};case"top-start":return{top:a.top-r.height-i,left:a.left};case"top-end":return{top:a.top-r.height-i,left:a.right-r.width};case"left":return{top:a.top+(a.height-r.height)/2,left:a.left-r.width-i};case"left-start":return{top:a.top,left:a.left-r.width-i};case"left-end":return{top:a.bottom-r.height,left:a.left-r.width-i};case"bottom":default:return{top:a.bottom+i,left:a.left+(a.width-r.width)/2};case"bottom-start":return{top:a.bottom+i,left:a.left};case"bottom-end":return{top:a.bottom+i,left:a.right-r.width};case"right":return{top:a.top+(a.height-r.height)/2,left:a.right+i};case"right-start":return{top:a.top,left:a.right+i};case"right-end":return{top:a.bottom-r.height,left:a.right+i}}}},9069:(e,a,r)=>{r.d(a,{Z:()=>t});var i=r(5944),c=function(){return c=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},c.apply(this,arguments)};function t(e){var a,r,t,n=e.value,o=e.element,u=e.responsiveStyles,l=e.type,s=void 0===l?"input":l,A=e.inputFocused,f=void 0!==A&&A,d=e.repeatIndex,p=void 0===d?null:d,m=o.properties,h=null!==(t=(null!==(r=m.repeat_placeholder)&&void 0!==r?r:[])[null!=p?p:0])&&void 0!==t?t:m.placeholder||"",g=c(c({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,i.tZ)("span",c({css:c(c(c(c({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),n?u.getTarget("placeholderFocus"):{}),f?g:{}),(a={},a["".concat(s,":focus ~ &")]=g,a))},{children:h}))}},8776:(e,a,r)=>{r.d(a,{u:()=>n});var i=r(5944),c=r(2988),t=function(){return t=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},t.apply(this,arguments)},n=function(e){var a=e.children,r=e.css,n=function(e,a){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var c=0;for(i=Object.getOwnPropertySymbols(e);c<i.length;c++)a.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]])}return r}(e,["children","css"]);return(0,i.tZ)("div",t({css:t({zIndex:c.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},n,{children:(0,i.tZ)("div",t({className:"tooltip-inner"},{children:a}))}))}},1055:(e,a,r)=>{r.r(a),r.d(a,{default:()=>B});var i=r(5944),c=r(7294);const t={"Africa/Abidjan":{c:["CI","BF","GH","GM","GN","ML","MR","SH","SL","SN","TG"]},"Africa/Accra":{c:["GH"]},"Africa/Addis_Ababa":{c:["ET"]},"Africa/Algiers":{c:["DZ"]},"Africa/Asmara":{c:["ER"]},"Africa/Asmera":{c:["ER"]},"Africa/Bamako":{c:["ML"]},"Africa/Bangui":{c:["CF"]},"Africa/Banjul":{c:["GM"]},"Africa/Bissau":{c:["GW"]},"Africa/Blantyre":{c:["MW"]},"Africa/Brazzaville":{c:["CG"]},"Africa/Bujumbura":{c:["BI"]},"Africa/Cairo":{c:["EG"]},"Africa/Casablanca":{c:["MA"]},"Africa/Ceuta":{c:["ES"]},"Africa/Conakry":{c:["GN"]},"Africa/Dakar":{c:["SN"]},"Africa/Dar_es_Salaam":{c:["TZ"]},"Africa/Djibouti":{c:["DJ"]},"Africa/Douala":{c:["CM"]},"Africa/El_Aaiun":{c:["EH"]},"Africa/Freetown":{c:["SL"]},"Africa/Gaborone":{c:["BW"]},"Africa/Harare":{c:["ZW"]},"Africa/Johannesburg":{c:["ZA","LS","SZ"]},"Africa/Juba":{c:["SS"]},"Africa/Kampala":{c:["UG"]},"Africa/Khartoum":{c:["SD"]},"Africa/Kigali":{c:["RW"]},"Africa/Kinshasa":{c:["CD"]},"Africa/Lagos":{c:["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},"Africa/Libreville":{c:["GA"]},"Africa/Lome":{c:["TG"]},"Africa/Luanda":{c:["AO"]},"Africa/Lubumbashi":{c:["CD"]},"Africa/Lusaka":{c:["ZM"]},"Africa/Malabo":{c:["GQ"]},"Africa/Maputo":{c:["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},"Africa/Maseru":{c:["LS"]},"Africa/Mbabane":{c:["SZ"]},"Africa/Mogadishu":{c:["SO"]},"Africa/Monrovia":{c:["LR"]},"Africa/Nairobi":{c:["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},"Africa/Ndjamena":{c:["TD"]},"Africa/Niamey":{c:["NE"]},"Africa/Nouakchott":{c:["MR"]},"Africa/Ouagadougou":{c:["BF"]},"Africa/Porto-Novo":{c:["BJ"]},"Africa/Sao_Tome":{c:["ST"]},"Africa/Timbuktu":{c:["ML"]},"Africa/Tripoli":{c:["LY"]},"Africa/Tunis":{c:["TN"]},"Africa/Windhoek":{c:["NA"]},"America/Adak":{c:["US"]},"America/Anchorage":{c:["US"]},"America/Anguilla":{c:["AI"]},"America/Antigua":{c:["AG"]},"America/Araguaina":{c:["BR"]},"America/Argentina/Buenos_Aires":{c:["AR"]},"America/Argentina/Catamarca":{c:["AR"]},"America/Argentina/Cordoba":{c:["AR"]},"America/Argentina/Jujuy":{c:["AR"]},"America/Argentina/La_Rioja":{c:["AR"]},"America/Argentina/Mendoza":{c:["AR"]},"America/Argentina/Rio_Gallegos":{c:["AR"]},"America/Argentina/Salta":{c:["AR"]},"America/Argentina/San_Juan":{c:["AR"]},"America/Argentina/San_Luis":{c:["AR"]},"America/Argentina/Tucuman":{c:["AR"]},"America/Argentina/Ushuaia":{c:["AR"]},"America/Aruba":{c:["AW"]},"America/Asuncion":{c:["PY"]},"America/Atikokan":{c:["CA"]},"America/Bahia":{c:["BR"]},"America/Bahia_Banderas":{c:["MX"]},"America/Barbados":{c:["BB"]},"America/Belem":{c:["BR"]},"America/Belize":{c:["BZ"]},"America/Blanc-Sablon":{c:["CA"]},"America/Boa_Vista":{c:["BR"]},"America/Bogota":{c:["CO"]},"America/Boise":{c:["US"]},"America/Cambridge_Bay":{c:["CA"]},"America/Campo_Grande":{c:["BR"]},"America/Cancun":{c:["MX"]},"America/Caracas":{c:["VE"]},"America/Cayenne":{c:["GF"]},"America/Cayman":{c:["KY"]},"America/Chicago":{c:["US"]},"America/Chihuahua":{c:["MX"]},"America/Coral_Harbour":{c:["CA"]},"America/Costa_Rica":{c:["CR"]},"America/Creston":{c:["CA"]},"America/Cuiaba":{c:["BR"]},"America/Curacao":{c:["CW"]},"America/Danmarkshavn":{c:["GL"]},"America/Dawson":{c:["CA"]},"America/Dawson_Creek":{c:["CA"]},"America/Denver":{c:["US"]},"America/Detroit":{c:["US"]},"America/Dominica":{c:["DM"]},"America/Edmonton":{c:["CA"]},"America/Eirunepe":{c:["BR"]},"America/El_Salvador":{c:["SV"]},"America/Fort_Nelson":{c:["CA"]},"America/Fortaleza":{c:["BR"]},"America/Glace_Bay":{c:["CA"]},"America/Goose_Bay":{c:["CA"]},"America/Grand_Turk":{c:["TC"]},"America/Grenada":{c:["GD"]},"America/Guadeloupe":{c:["GP"]},"America/Guatemala":{c:["GT"]},"America/Guayaquil":{c:["EC"]},"America/Guyana":{c:["GY"]},"America/Halifax":{c:["CA"]},"America/Havana":{c:["CU"]},"America/Hermosillo":{c:["MX"]},"America/Indiana/Indianapolis":{c:["US"]},"America/Indiana/Knox":{c:["US"]},"America/Indiana/Marengo":{c:["US"]},"America/Indiana/Petersburg":{c:["US"]},"America/Indiana/Tell_City":{c:["US"]},"America/Indiana/Vevay":{c:["US"]},"America/Indiana/Vincennes":{c:["US"]},"America/Indiana/Winamac":{c:["US"]},"America/Inuvik":{c:["CA"]},"America/Iqaluit":{c:["CA"]},"America/Jamaica":{c:["JM"]},"America/Juneau":{c:["US"]},"America/Kentucky/Louisville":{c:["US"]},"America/Kentucky/Monticello":{c:["US"]},"America/Kralendijk":{c:["BQ"]},"America/La_Paz":{c:["BO"]},"America/Lima":{c:["PE"]},"America/Los_Angeles":{c:["US"]},"America/Lower_Princes":{c:["SX"]},"America/Maceio":{c:["BR"]},"America/Managua":{c:["NI"]},"America/Manaus":{c:["BR"]},"America/Marigot":{c:["MF"]},"America/Martinique":{c:["MQ"]},"America/Matamoros":{c:["MX"]},"America/Mazatlan":{c:["MX"]},"America/Menominee":{c:["US"]},"America/Merida":{c:["MX"]},"America/Metlakatla":{c:["US"]},"America/Mexico_City":{c:["MX"]},"America/Miquelon":{c:["PM"]},"America/Moncton":{c:["CA"]},"America/Monterrey":{c:["MX"]},"America/Montevideo":{c:["UY"]},"America/Montreal":{c:["CA"]},"America/Montserrat":{c:["MS"]},"America/Nassau":{c:["BS"]},"America/New_York":{c:["US"]},"America/Nipigon":{c:["CA"]},"America/Nome":{c:["US"]},"America/Noronha":{c:["BR"]},"America/North_Dakota/Beulah":{c:["US"]},"America/North_Dakota/Center":{c:["US"]},"America/North_Dakota/New_Salem":{c:["US"]},"America/Nuuk":{c:["GL"]},"America/Ojinaga":{c:["MX"]},"America/Panama":{c:["PA","CA","KY"]},"America/Pangnirtung":{c:["CA"]},"America/Paramaribo":{c:["SR"]},"America/Phoenix":{c:["US","CA"]},"America/Port-au-Prince":{c:["HT"]},"America/Port_of_Spain":{c:["TT"]},"America/Porto_Velho":{c:["BR"]},"America/Puerto_Rico":{c:["PR","AG","CA","AI","AW","BL","BQ","CW","DM","GD","GP","KN","LC","MF","MS","SX","TT","VC","VG","VI"]},"America/Punta_Arenas":{c:["CL"]},"America/Rainy_River":{c:["CA"]},"America/Rankin_Inlet":{c:["CA"]},"America/Recife":{c:["BR"]},"America/Regina":{c:["CA"]},"America/Resolute":{c:["CA"]},"America/Rio_Branco":{c:["BR"]},"America/Santarem":{c:["BR"]},"America/Santiago":{c:["CL"]},"America/Santo_Domingo":{c:["DO"]},"America/Sao_Paulo":{c:["BR"]},"America/Scoresbysund":{c:["GL"]},"America/Sitka":{c:["US"]},"America/St_Barthelemy":{c:["BL"]},"America/St_Johns":{c:["CA"]},"America/St_Kitts":{c:["KN"]},"America/St_Lucia":{c:["LC"]},"America/St_Thomas":{c:["VI"]},"America/St_Vincent":{c:["VC"]},"America/Swift_Current":{c:["CA"]},"America/Tegucigalpa":{c:["HN"]},"America/Thule":{c:["GL"]},"America/Thunder_Bay":{c:["CA"]},"America/Tijuana":{c:["MX"]},"America/Toronto":{c:["CA","BS"]},"America/Tortola":{c:["VG"]},"America/Vancouver":{c:["CA"]},"America/Virgin":{c:["VI"]},"America/Whitehorse":{c:["CA"]},"America/Winnipeg":{c:["CA"]},"America/Yakutat":{c:["US"]},"America/Yellowknife":{c:["CA"]},"Antarctica/Casey":{c:["AQ"]},"Antarctica/Davis":{c:["AQ"]},"Antarctica/DumontDUrville":{c:["AQ"]},"Antarctica/Macquarie":{c:["AU"]},"Antarctica/Mawson":{c:["AQ"]},"Antarctica/McMurdo":{c:["AQ"]},"Antarctica/Palmer":{c:["AQ"]},"Antarctica/Rothera":{c:["AQ"]},"Antarctica/South_Pole":{c:["AQ"]},"Antarctica/Syowa":{c:["AQ"]},"Antarctica/Troll":{c:["AQ"]},"Antarctica/Vostok":{c:["AQ"]},"Arctic/Longyearbyen":{c:["SJ"]},"Asia/Aden":{c:["YE"]},"Asia/Almaty":{c:["KZ"]},"Asia/Amman":{c:["JO"]},"Asia/Anadyr":{c:["RU"]},"Asia/Aqtau":{c:["KZ"]},"Asia/Aqtobe":{c:["KZ"]},"Asia/Ashgabat":{c:["TM"]},"Asia/Atyrau":{c:["KZ"]},"Asia/Baghdad":{c:["IQ"]},"Asia/Bahrain":{c:["BH"]},"Asia/Baku":{c:["AZ"]},"Asia/Bangkok":{c:["TH","KH","LA","VN"]},"Asia/Barnaul":{c:["RU"]},"Asia/Beirut":{c:["LB"]},"Asia/Bishkek":{c:["KG"]},"Asia/Brunei":{c:["BN"]},"Asia/Calcutta":{c:["IN"]},"Asia/Chita":{c:["RU"]},"Asia/Choibalsan":{c:["MN"]},"Asia/Colombo":{c:["LK"]},"Asia/Damascus":{c:["SY"]},"Asia/Dhaka":{c:["BD"]},"Asia/Dili":{c:["TL"]},"Asia/Dubai":{c:["AE","OM"]},"Asia/Dushanbe":{c:["TJ"]},"Asia/Famagusta":{c:["CY"]},"Asia/Gaza":{c:["PS"]},"Asia/Hebron":{c:["PS"]},"Asia/Ho_Chi_Minh":{c:["VN"]},"Asia/Hong_Kong":{c:["HK"]},"Asia/Hovd":{c:["MN"]},"Asia/Irkutsk":{c:["RU"]},"Asia/Jakarta":{c:["ID"]},"Asia/Jayapura":{c:["ID"]},"Asia/Jerusalem":{c:["IL"]},"Asia/Kabul":{c:["AF"]},"Asia/Kamchatka":{c:["RU"]},"Asia/Karachi":{c:["PK"]},"Asia/Kathmandu":{c:["NP"]},"Asia/Khandyga":{c:["RU"]},"Asia/Kolkata":{c:["IN"]},"Asia/Krasnoyarsk":{c:["RU"]},"Asia/Kuala_Lumpur":{c:["MY"]},"Asia/Kuching":{c:["MY"]},"Asia/Kuwait":{c:["KW"]},"Asia/Macau":{c:["MO"]},"Asia/Magadan":{c:["RU"]},"Asia/Makassar":{c:["ID"]},"Asia/Manila":{c:["PH"]},"Asia/Muscat":{c:["OM"]},"Asia/Nicosia":{c:["CY"]},"Asia/Novokuznetsk":{c:["RU"]},"Asia/Novosibirsk":{c:["RU"]},"Asia/Omsk":{c:["RU"]},"Asia/Oral":{c:["KZ"]},"Asia/Phnom_Penh":{c:["KH"]},"Asia/Pontianak":{c:["ID"]},"Asia/Pyongyang":{c:["KP"]},"Asia/Qatar":{c:["QA","BH"]},"Asia/Qostanay":{c:["KZ"]},"Asia/Qyzylorda":{c:["KZ"]},"Asia/Riyadh":{c:["SA","AQ","KW","YE"]},"Asia/Sakhalin":{c:["RU"]},"Asia/Samarkand":{c:["UZ"]},"Asia/Seoul":{c:["KR"]},"Asia/Shanghai":{c:["CN"]},"Asia/Singapore":{c:["SG","MY"]},"Asia/Srednekolymsk":{c:["RU"]},"Asia/Taipei":{c:["TW"]},"Asia/Tashkent":{c:["UZ"]},"Asia/Tbilisi":{c:["GE"]},"Asia/Tehran":{c:["IR"]},"Asia/Thimphu":{c:["BT"]},"Asia/Tokyo":{c:["JP"]},"Asia/Tomsk":{c:["RU"]},"Asia/Ulaanbaatar":{c:["MN"]},"Asia/Urumqi":{c:["CN"]},"Asia/Ust-Nera":{c:["RU"]},"Asia/Vientiane":{c:["LA"]},"Asia/Vladivostok":{c:["RU"]},"Asia/Yakutsk":{c:["RU"]},"Asia/Yangon":{c:["MM"]},"Asia/Yekaterinburg":{c:["RU"]},"Asia/Yerevan":{c:["AM"]},"Atlantic/Azores":{c:["PT"]},"Atlantic/Bermuda":{c:["BM"]},"Atlantic/Canary":{c:["ES"]},"Atlantic/Cape_Verde":{c:["CV"]},"Atlantic/Faroe":{c:["FO"]},"Atlantic/Jan_Mayen":{c:["SJ"]},"Atlantic/Madeira":{c:["PT"]},"Atlantic/Reykjavik":{c:["IS"]},"Atlantic/South_Georgia":{c:["GS"]},"Atlantic/St_Helena":{c:["SH"]},"Atlantic/Stanley":{c:["FK"]},"Australia/Adelaide":{c:["AU"]},"Australia/Brisbane":{c:["AU"]},"Australia/Broken_Hill":{c:["AU"]},"Australia/Darwin":{c:["AU"]},"Australia/Eucla":{c:["AU"]},"Australia/Hobart":{c:["AU"]},"Australia/Lindeman":{c:["AU"]},"Australia/Lord_Howe":{c:["AU"]},"Australia/Melbourne":{c:["AU"]},"Australia/Perth":{c:["AU"]},"Australia/Sydney":{c:["AU"]},"Canada/Eastern":{c:["CA"]},"Europe/Amsterdam":{c:["NL"]},"Europe/Andorra":{c:["AD"]},"Europe/Astrakhan":{c:["RU"]},"Europe/Athens":{c:["GR"]},"Europe/Belfast":{c:["GB"]},"Europe/Belgrade":{c:["RS","BA","HR","ME","MK","SI"]},"Europe/Berlin":{c:["DE"]},"Europe/Bratislava":{c:["SK"]},"Europe/Brussels":{c:["BE"]},"Europe/Bucharest":{c:["RO"]},"Europe/Budapest":{c:["HU"]},"Europe/Busingen":{c:["DE"]},"Europe/Chisinau":{c:["MD"]},"Europe/Copenhagen":{c:["DK"]},"Europe/Dublin":{c:["IE"]},"Europe/Gibraltar":{c:["GI"]},"Europe/Guernsey":{c:["GG"]},"Europe/Helsinki":{c:["FI","AX"]},"Europe/Isle_of_Man":{c:["IM"]},"Europe/Istanbul":{c:["TR"]},"Europe/Jersey":{c:["JE"]},"Europe/Kaliningrad":{c:["RU"]},"Europe/Kiev":{c:["UA"]},"Europe/Kirov":{c:["RU"]},"Europe/Lisbon":{c:["PT"]},"Europe/Ljubljana":{c:["SI"]},"Europe/London":{c:["GB","GG","IM","JE"]},"Europe/Luxembourg":{c:["LU"]},"Europe/Madrid":{c:["ES"]},"Europe/Malta":{c:["MT"]},"Europe/Mariehamn":{c:["AX"]},"Europe/Minsk":{c:["BY"]},"Europe/Monaco":{c:["MC"]},"Europe/Moscow":{c:["RU"]},"Europe/Oslo":{c:["NO","SJ","BV"]},"Europe/Paris":{c:["FR"]},"Europe/Podgorica":{c:["ME"]},"Europe/Prague":{c:["CZ","SK"]},"Europe/Riga":{c:["LV"]},"Europe/Rome":{c:["IT","SM","VA"]},"Europe/Samara":{c:["RU"]},"Europe/San_Marino":{c:["SM"]},"Europe/Sarajevo":{c:["BA"]},"Europe/Saratov":{c:["RU"]},"Europe/Simferopol":{c:["RU","UA"]},"Europe/Skopje":{c:["MK"]},"Europe/Sofia":{c:["BG"]},"Europe/Stockholm":{c:["SE"]},"Europe/Tallinn":{c:["EE"]},"Europe/Tirane":{c:["AL"]},"Europe/Ulyanovsk":{c:["RU"]},"Europe/Uzhgorod":{c:["UA"]},"Europe/Vaduz":{c:["LI"]},"Europe/Vatican":{c:["VA"]},"Europe/Vienna":{c:["AT"]},"Europe/Vilnius":{c:["LT"]},"Europe/Volgograd":{c:["RU"]},"Europe/Warsaw":{c:["PL"]},"Europe/Zagreb":{c:["HR"]},"Europe/Zaporozhye":{c:["UA"]},"Europe/Zurich":{c:["CH","DE","LI"]},GB:{c:["GB"]},"GB-Eire":{c:["GB"]},"Indian/Antananarivo":{c:["MG"]},"Indian/Chagos":{c:["IO"]},"Indian/Christmas":{c:["CX"]},"Indian/Cocos":{c:["CC"]},"Indian/Comoro":{c:["KM"]},"Indian/Kerguelen":{c:["TF","HM"]},"Indian/Mahe":{c:["SC"]},"Indian/Maldives":{c:["MV"]},"Indian/Mauritius":{c:["MU"]},"Indian/Mayotte":{c:["YT"]},"Indian/Reunion":{c:["RE","TF"]},NZ:{c:["NZ"]},"Pacific/Apia":{c:["WS"]},"Pacific/Auckland":{c:["NZ","AQ"]},"Pacific/Bougainville":{c:["PG"]},"Pacific/Chatham":{c:["NZ"]},"Pacific/Chuuk":{c:["FM"]},"Pacific/Easter":{c:["CL"]},"Pacific/Efate":{c:["VU"]},"Pacific/Fakaofo":{c:["TK"]},"Pacific/Fiji":{c:["FJ"]},"Pacific/Funafuti":{c:["TV"]},"Pacific/Galapagos":{c:["EC"]},"Pacific/Gambier":{c:["PF"]},"Pacific/Guadalcanal":{c:["SB"]},"Pacific/Guam":{c:["GU","MP"]},"Pacific/Honolulu":{c:["US","UM"]},"Pacific/Johnston":{c:["UM"]},"Pacific/Kanton":{c:["KI"]},"Pacific/Kiritimati":{c:["KI"]},"Pacific/Kosrae":{c:["FM"]},"Pacific/Kwajalein":{c:["MH"]},"Pacific/Majuro":{c:["MH"]},"Pacific/Marquesas":{c:["PF"]},"Pacific/Midway":{c:["UM"]},"Pacific/Nauru":{c:["NR"]},"Pacific/Niue":{c:["NU"]},"Pacific/Norfolk":{c:["NF"]},"Pacific/Noumea":{c:["NC"]},"Pacific/Pago_Pago":{c:["AS","UM"]},"Pacific/Palau":{c:["PW"]},"Pacific/Pitcairn":{c:["PN"]},"Pacific/Pohnpei":{c:["FM"]},"Pacific/Port_Moresby":{c:["PG","AQ"]},"Pacific/Rarotonga":{c:["CK"]},"Pacific/Saipan":{c:["MP"]},"Pacific/Samoa":{c:["WS"]},"Pacific/Tahiti":{c:["PF"]},"Pacific/Tarawa":{c:["KI"]},"Pacific/Tongatapu":{c:["TO"]},"Pacific/Wake":{c:["UM"]},"Pacific/Wallis":{c:["WF"]},Singapore:{c:["SG"]},"US/Alaska":{c:["US"]},"US/Aleutian":{c:["US"]},"US/Arizona":{c:["US"]},"US/Central":{c:["US"]},"US/East-Indiana":{c:["US"]},"US/Eastern":{c:["US"]},"US/Hawaii":{c:["US"]},"US/Indiana-Starke":{c:["US"]},"US/Michigan":{c:["US"]},"US/Mountain":{c:["US"]},"US/Pacific":{c:["US"]},"US/Samoa":{c:["WS"]}};var n=r(9069),o=r(1587),u=r(1211),l=r(5198);const s={AC:"40123",AD:"312345",AE:"501234567",AF:"701234567",AG:"2684641234",AI:"2642351234",AL:"672123456",AM:"77123456",AO:"923123456",AR:"91123456789",AS:"6847331234",AT:"664123456",AU:"412345678",AW:"5601234",AX:"412345678",AZ:"401234567",BA:"61123456",BB:"2462501234",BD:"1812345678",BE:"470123456",BF:"70123456",BG:"43012345",BH:"36001234",BI:"79561234",BJ:"90011234",BL:"690001234",BM:"4413701234",BN:"7123456",BO:"71234567",BQ:"3181234",BR:"11961234567",BS:"2423591234",BT:"17123456",BW:"71123456",BY:"294911911",BZ:"6221234",CA:"5062345678",CC:"412345678",CD:"991234567",CF:"70012345",CG:"061234567",CH:"781234567",CI:"0123456789",CK:"71234",CL:"221234567",CM:"671234567",CN:"13123456789",CO:"3211234567",CR:"83123456",CU:"51234567",CV:"9911234",CW:"95181234",CX:"412345678",CY:"96123456",CZ:"601123456",DE:"15123456789",DJ:"77831001",DK:"32123456",DM:"7672251234",DO:"8092345678",DZ:"551234567",EC:"991234567",EE:"51234567",EG:"1001234567",EH:"650123456",ER:"7123456",ES:"612345678",ET:"911234567",FI:"412345678",FJ:"7012345",FK:"51234",FM:"3501234",FO:"211234",FR:"612345678",GA:"06031234",GB:"7400123456",GD:"4734031234",GE:"555123456",GF:"694201234",GG:"7781123456",GH:"231234567",GI:"57123456",GL:"221234",GM:"3012345",GN:"601123456",GP:"690001234",GQ:"222123456",GR:"6912345678",GT:"51234567",GU:"6713001234",GW:"955012345",GY:"6091234",HK:"51234567",HN:"91234567",HR:"921234567",HT:"34101234",HU:"201234567",ID:"812345678",IE:"850123456",IL:"502345678",IM:"7924123456",IN:"8123456789",IO:"3801234",IQ:"7912345678",IR:"9123456789",IS:"6111234",IT:"3123456789",JE:"7797712345",JM:"8762101234",JO:"790123456",JP:"9012345678",KE:"712123456",KG:"700123456",KH:"91234567",KI:"72001234",KM:"3212345",KN:"8697652917",KP:"1921234567",KR:"1020000000",KW:"50012345",KY:"3453231234",KZ:"7710009998",LA:"2023123456",LB:"71123456",LC:"7582845678",LI:"660234567",LK:"712345678",LR:"770123456",LS:"50123456",LT:"61234567",LU:"628123456",LV:"21234567",LY:"912345678",MA:"650123456",MC:"612345678",MD:"62112345",ME:"67622901",MF:"690001234",MG:"321234567",MH:"2351234",MK:"72345678",ML:"65012345",MM:"92123456",MN:"88123456",MO:"66123456",MP:"6702345678",MQ:"696201234",MR:"22123456",MS:"6644923456",MT:"96961234",MU:"52512345",MV:"7712345",MW:"991234567",MX:"12221234567",MY:"123456789",MZ:"821234567",NA:"811234567",NC:"751234",NE:"93123456",NF:"381234",NG:"8021234567",NI:"81234567",NL:"612345678",NO:"40612345",NP:"9841234567",NR:"5551234",NU:"8884012",NZ:"211234567",OM:"92123456",PA:"61234567",PE:"912345678",PF:"87123456",PG:"70123456",PH:"9051234567",PK:"3012345678",PL:"512345678",PM:"551234",PR:"7872345678",PS:"599123456",PT:"912345678",PW:"6201234",PY:"961456789",QA:"33123456",RE:"692123456",RO:"712034567",RS:"601234567",RU:"9123456789",RW:"720123456",SA:"512345678",SB:"7421234",SC:"2510123",SD:"911231234",SE:"701234567",SG:"81234567",SH:"51234",SI:"31234567",SJ:"41234567",SK:"912123456",SL:"25123456",SM:"66661212",SN:"701234567",SO:"71123456",SR:"7412345",SS:"977123456",ST:"9812345",SV:"70123456",SX:"7215205678",SY:"944567890",SZ:"76123456",TA:"8999",TC:"6492311234",TD:"63012345",TG:"90112345",TH:"812345678",TJ:"917123456",TK:"7290",TL:"77212345",TM:"66123456",TN:"20123456",TO:"7715123",TR:"5012345678",TT:"8682911234",TV:"901234",TW:"912345678",TZ:"621234567",UA:"501234567",UG:"712345678",US:"2015550123",UY:"94231234",UZ:"912345678",VA:"3123456789",VC:"7844301234",VE:"4121234567",VG:"2843001234",VI:"3406421234",VN:"912345678",VU:"5912345",WF:"821234",WS:"7212345",XK:"43201234",YE:"712345678",YT:"639012345",ZA:"711234567",ZM:"955123456",ZW:"712345678"};var A=r(426),f=r(9234),d=r(5200),p=r(1275),m=function(){return m=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},m.apply(this,arguments)};const h=(0,c.forwardRef)((function(e,a){var t=e.show,n=e.itemOnClick,o=e.responsiveStyles,u=e.dropdownWidth,s=function(e,a){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var c=0;for(i=Object.getOwnPropertySymbols(e);c<i.length;c++)a.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]])}return r}(e,["show","itemOnClick","responsiveStyles","dropdownWidth"]),A=(0,c.useRef)({}),f=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,c.useState)(""),2),h=f[0],g=f[1],v=(0,c.useRef)(null);(0,c.useEffect)((function(){t?v.current&&setTimeout((function(){var e;null===(e=v.current)||void 0===e||e.focus()}),50):g("")}),[t]);var S=(0,c.useMemo)((function(){var e=l.ZP.filter((function(e){var a,i=e.countryCode,c=e.countryName,t=e.phoneCode;return!(!(null===(a=r.g.libphonenumber)||void 0===a?void 0:a.isSupportedCountry(i))||d.fD.client&&!l.lC.has(i))&&(!h||i.toLowerCase().includes(h)||c.toLowerCase().includes(h)||"+".concat(t).includes(h))}));return(0,i.BX)(i.HY,{children:[(0,i.tZ)("input",{ref:v,placeholder:"Search",css:{width:"100%",height:"30px",outline:"none",border:"none",borderBottom:"1px solid grey",padding:"5px 10px",fontSize:"14px"},onKeyDown:function(a){var r=function(){a.preventDefault(),a.stopPropagation()};if("ArrowDown"===a.key){r();var i=e[0];i&&A.current[i.countryCode].focus()}else"Enter"===a.key&&r()},onChange:function(e){return g(e.target.value.toLowerCase())},tabIndex:0}),e.map((function(e){var a=e.flag,r=e.countryCode,c=e.countryName,t=e.phoneCode;return(0,i.BX)("li",m({ref:function(e){A.current[r]=e},css:{padding:"2px 10px",display:"flex",alignItems:"center",transition:"0.1s ease all",fontSize:"14px","&:hover":{backgroundColor:"#e6e6e644"},"&:focus-visible":{outline:"none",backgroundColor:"#e6e6e644"}},tabIndex:0,onKeyDown:function(e){var a,i,c=function(){e.preventDefault(),e.stopPropagation()};"Enter"===e.key?(c(),n(r,t)):["ArrowDown","ArrowRight"].includes(e.key)?(c(),null===(a=A.current[r].nextSibling)||void 0===a||a.focus()):["ArrowUp","ArrowLeft"].includes(e.key)&&(c(),null===(i=A.current[r].previousSibling)||void 0===i||i.focus())},onClick:function(){return n(r,t)}},{children:[(0,i.tZ)("span",m({css:{fontSize:"24px",marginRight:"7px",lineHeight:"33px"}},{children:a})),c,(0,i.BX)("span",m({css:{marginLeft:"7px",color:"grey"}},{children:["+",t]}))]}),r)}))]})}),[h]),y=void 0!==u?"".concat(u,"px"):"100%";return(0,i.tZ)("ul",m({css:m({zIndex:p.m,listStyleType:"none",padding:0,margin:0,backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)",maxHeight:"210px",overflowY:"scroll",overflowX:"hidden",boxSizing:"border-box",width:y},o.getTarget("dropdown")),ref:a},s,{children:S}))}));var g=r(6867),v=r(9479),S={IN:12,SG:10},y=r(7449),C=r(5398),M=function(){return M=Object.assign||function(e){for(var a,r=1,i=arguments.length;r<i;r++)for(var c in a=arguments[r])Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);return e},M.apply(this,arguments)},b=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n},E="US",R=l.ZP.reduce((function(e,a){var r=a.flag,i=a.countryCode,c=a.phoneCode;return e[i]={flag:r,phoneCode:c},e}),{});const B=(0,c.memo)((function(e){var a=e.element,l=e.responsiveStyles,d=e.fieldLabel,p=e.fullNumber,m=e.elementProps,B=void 0===m?{}:m,P=e.required,U=void 0!==P&&P,T=e.disabled,G=void 0!==T&&T,k=e.repeatIndex,L=void 0===k?null:k,I=e.autoComplete,w=e.editMode,N=e.onComplete,K=void 0===N?function(){}:N,O=e.setRef,D=void 0===O?function(){}:O,_=e.inlineError,Z=e.rightToLeft,x=e.onEnter,H=e.children,F=(0,c.useRef)(null),W=(0,c.useRef)(null),V=(0,c.useRef)(null),Y=(0,c.useRef)(null),j=(0,c.useRef)(null),J=b((0,c.useState)(null),2),z=J[0],X=J[1],Q=b((0,c.useState)(!1),2),q=Q[0],$=Q[1],ee=b((0,c.useState)(!1),2),ae=ee[0],re=ee[1],ie=b((0,c.useState)(""),2),ce=ie[0],te=ie[1],ne=a.servar,oe=(0,c.useMemo)((function(){if("auto"===ne.metadata.default_country){var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(!e)return E;var a=t[e];if(!a)return E;var r=a.c[0];return r in R?r:E}return ne.metadata.default_country||E}),[ne.metadata.default_country]),ue=b((0,c.useState)(oe),2),le=ue[0],se=ue[1];(0,c.useEffect)((function(){return se(oe)}),[oe]);var Ae=R[le].phoneCode,fe=b((0,c.useState)(""),2),de=fe[0],pe=fe[1],me=b((0,c.useState)(a.properties.placeholder),2),he=me[0],ge=me[1],ve=b((0,c.useState)(!1),2),Se=ve[0],ye=ve[1],Ce=(0,C.Z)(V).width,Me=(0,g.Z)({element:a,error:_,breakpoint:l.getMobileBreakpoint()}),be=Me.borderStyles,Ee=Me.customBorder,Re=function(e){var a=e.length>3?2:1;X(e.length+a)};(0,c.useEffect)((function(){var e=j.current;e&&null!==z&&e.setSelectionRange(z,z)}),[q]),(0,c.useEffect)((function(){p===ce||w||f.hV.then((function(){var e,a;if(r.g.libphonenumber){var i=new r.g.libphonenumber.AsYouType;i.input("+".concat(p));var c=null!==(e=i.getNumber())&&void 0!==e?e:"";te(p),pe(p),c&&se(null!==(a=c.country)&&void 0!==a?a:le)}}))}),[p]);var Be=(0,c.useMemo)((function(){var e=r.g.libphonenumber;if(!e)return"+".concat(de);if(""===de)return"";var a=new e.AsYouType(le),i=e.parseDigits(de,le);return a.input("+".concat(i))}),[le,de]);(0,c.useEffect)((function(){var e,i=null!==(e=a.properties.placeholder)&&void 0!==e?e:"";if(w||i)ge(i);else{var c=s[le];f.hV.then((function(){r.g.libphonenumber&&ge(r.g.libphonenumber.parsePhoneNumber(c,le).formatInternational())}))}}),[le,a]);var Pe=function(e){(p||e)&&e!==p&&(te(e),K(e))},Ue=!ne.metadata.disable_other_countries,Te=Ue?{cursor:"pointer","&:hover":(0,v.wL)({backgroundColor:"#e6e6e633"})}:{};return(0,i.BX)("div",M({ref:W,css:M({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:w?"none":"auto"},l.getTarget("fc"))},B,{children:[H,d,(0,i.BX)("div",M({ref:V,css:M(M(M({display:"flex",position:"relative"},l.getTarget("sub-fc")),G?l.getTarget("disabled"):{}),{"&:hover":(0,v.wL)(G?{}:M(M({},l.getTarget("hover")),be.hover)),"&&":Se?M(M({},l.getTarget("active")),be.active):{}})},{children:[Ee,(0,i.tZ)("div",M({"data-testid":"country-trigger",css:M(M({transition:"0.2s ease all",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 6px",position:"relative",cursor:"default"},l.getTarget("fieldToggle")),Te),ref:F,onClick:function(){Ue&&!G&&re(!ae)}},{children:R[le].flag})),(0,i.tZ)(y.Z,M({show:ae,onHide:function(){return re(!1)},targetRef:F,containerRef:W,placement:"bottom-start",offset:0},{children:(0,i.tZ)(h,{itemOnClick:function(e,a){se(e),pe(a),Re(a),re(!1),Pe(a),j.current.focus()},responsiveStyles:l,dropdownWidth:Ce,ref:function(e){Y.current=e},show:ae})}),"overlay-".concat(le)),(0,i.BX)("div",M({css:{position:"relative",width:"100%",whiteSpace:"nowrap",overflowX:"clip"}},{children:[(0,i.tZ)("input",{id:ne.key,name:ne.key,css:M(M(M(M({backgroundColor:"transparent",height:"100%",width:"100%",border:"none",margin:0},Z?{textAlign:"right"}:{}),u.ET),l.getTarget("field")),Se||Be||!he?{}:{color:"transparent !important"}),required:U,disabled:G,placeholder:"","aria-label":a.properties.aria_label,value:Be,ref:function(e){j.current=e,D(e)},type:"tel",autoComplete:"on"===I?"tel":"new-password",dir:"ltr",onFocus:function(e){(0,v.ms)(e),pe((function(e){return""===e?(Re(Ae),Ae):e})),ye(!0)},onBlur:function(){var e=de;Ae.startsWith(de)&&(X(null),pe(e="")),Pe(e),ye(!1)},onKeyDown:function(e){"Enter"===e.key?(Pe(de),x(e)):"+"===e.key&&re(!0)},onChange:function(e){var a,i=e.target.selectionStart,c=e.target.value;if(c){var t=r.g.libphonenumber;if(!t)return;if((c.match(/\+/g)||[]).length>1){var n=c.lastIndexOf("+");c=c.slice(n)}if((c=c.replace(/\s/g,"")).includes("+")||(c=t.validatePhoneNumberLength(c,le)&&c.startsWith(Ae)?"+".concat(c):"+".concat(Ae).concat(c)),!c.startsWith("+".concat(Ae)))return;if(c.startsWith("+11"))return;var o=t.parseDigits(c,le);if("TOO_LONG"===t.validatePhoneNumberLength(o,le)||(a=le)in S&&o.length>S[a])return;var u=new t.AsYouType(le).input("+".concat(o)),l=t.parseDigits(Be.slice(0,null!=z?z:0)).length;pe(o);var s=t.parseDigits(u,le).length-t.parseDigits(Be,le).length;if(i&&s>0)for(;i<=u.length&&!(0,A.e9)(u[i])||t.parseDigits(u.slice(0,i)).length<=l;)i++}else{pe(Ae);var f=Ae.length>3?2:1;i=Ae.length+f}X(i),$(!q)}}),(0,i.tZ)(n.Z,{value:Be,element:{properties:{placeholder:he}},responsiveStyles:l,repeatIndex:L}),(0,i.tZ)(o.Z,{containerRef:W,id:a.id,text:a.properties.tooltipText,responsiveStyles:l,repeat:a.repeat})]}))]}))]}))}))},5398:(e,a,r)=>{r.d(a,{Z:()=>t});var i=r(7294),c=r(9479);function t(e){var a=function(e,a){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,c,t=r.call(e),n=[];try{for(;(void 0===a||a-- >0)&&!(i=t.next()).done;)n.push(i.value)}catch(e){c={error:e}}finally{try{i&&!i.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return n}((0,i.useState)({width:void 0,height:void 0}),2),r=a[0],t=a[1];return(0,i.useLayoutEffect)((function(){var a=function(){var a=e.current;if(a){var r=a.getBoundingClientRect(),i=r.width,c=r.height;t({width:i>0?i:void 0,height:c>0?c:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var i=(0,c.Kv)();return i&&"function"==typeof i.addEventListener&&"function"==typeof i.removeEventListener?(i.addEventListener("resize",a),a(),function(){return i.removeEventListener("resize",a)}):void a()}var n=new ResizeObserver((function(){return a()}));try{n.observe(r,{box:"border-box"})}catch(e){n.observe(r)}return a(),function(){return n.disconnect()}}}),[e]),r}}}]);
@@ -1 +1 @@
1
- "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[861],{6705:(e,t,n)=>{n.r(t),n.d(t,{default:()=>B});var o=n(5944),r=n(5430),i=n(426),a="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function c(e,t,n,o){e.addEventListener?e.addEventListener(t,n,o):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function l(e,t){for(var n=t.slice(0,t.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function u(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":a?173:189,"=":a?61:187,";":a?59:186,"'":222,"[":219,"]":221,"\\":220},f={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},d={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},p={16:!1,18:!1,17:!1,91:!1},v={},y=1;y<20;y++)s["f".concat(y)]=111+y;var h=[],g=!1,m="all",b=[],k=function(e){return s[e.toLowerCase()]||f[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function w(e){m=e||"all"}function O(){return m||"all"}var E=function(e){var t=e.key,n=e.scope,o=e.method,r=e.splitKey,i=void 0===r?"+":r;u(t).forEach((function(e){var t=e.split(i),r=t.length,a=t[r-1],c="*"===a?"*":k(a);if(v[c]){n||(n=O());var u=r>1?l(f,t):[];v[c]=v[c].filter((function(e){return!((!o||e.method===o)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,o=e.length>=t.length?t:e,r=!0,i=0;i<n.length;i++)-1===o.indexOf(n[i])&&(r=!1);return r}(e.mods,u))}))}}))};function C(e,t,n,o){var r;if(t.element===o&&(t.scope===n||"all"===t.scope)){for(var i in r=t.mods.length>0,p)Object.prototype.hasOwnProperty.call(p,i)&&(!p[i]&&t.mods.indexOf(+i)>-1||p[i]&&-1===t.mods.indexOf(+i))&&(r=!1);(0!==t.mods.length||p[16]||p[18]||p[17]||p[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function x(e,t){var n=v["*"],o=e.keyCode||e.which||e.charCode;if(K.filter.call(this,e)){if(93!==o&&224!==o||(o=91),-1===h.indexOf(o)&&229!==o&&h.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=d[t];e[t]&&-1===h.indexOf(n)?h.push(n):!e[t]&&h.indexOf(n)>-1?h.splice(h.indexOf(n),1):"metaKey"===t&&e[t]&&3===h.length&&(e.ctrlKey||e.shiftKey||e.altKey||(h=h.slice(h.indexOf(n))))})),o in p){for(var r in p[o]=!0,f)f[r]===o&&(K[r]=!0);if(!n)return}for(var i in p)Object.prototype.hasOwnProperty.call(p,i)&&(p[i]=e[d[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===h.indexOf(17)&&h.push(17),-1===h.indexOf(18)&&h.push(18),p[17]=!0,p[18]=!0);var a=O();if(n)for(var c=0;c<n.length;c++)n[c].scope===a&&("keydown"===e.type&&n[c].keydown||"keyup"===e.type&&n[c].keyup)&&C(e,n[c],a,t);if(o in v)for(var l=0;l<v[o].length;l++)if(("keydown"===e.type&&v[o][l].keydown||"keyup"===e.type&&v[o][l].keyup)&&v[o][l].key){for(var u=v[o][l],s=u.splitKey,y=u.key.split(s),g=[],m=0;m<y.length;m++)g.push(k(y[m]));g.sort().join("")===h.sort().join("")&&C(e,u,a,t)}}}function K(e,t,n){h=[];var o=u(e),r=[],i="all",a=document,s=0,d=!1,y=!0,m="+",w=!1;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(d=t.keyup),void 0!==t.keydown&&(y=t.keydown),void 0!==t.capture&&(w=t.capture),"string"==typeof t.splitKey&&(m=t.splitKey)),"string"==typeof t&&(i=t);s<o.length;s++)r=[],(e=o[s].split(m)).length>1&&(r=l(f,e)),(e="*"===(e=e[e.length-1])?"*":k(e))in v||(v[e]=[]),v[e].push({keyup:d,keydown:y,scope:i,mods:r,shortcut:o[s],method:n,key:o[s],splitKey:m,element:a});void 0!==a&&!function(e){return b.indexOf(e)>-1}(a)&&window&&(b.push(a),c(a,"keydown",(function(e){x(e,a)}),w),g||(g=!0,c(window,"focus",(function(){h=[]}),w)),c(a,"keyup",(function(e){x(e,a),function(e){var t=e.keyCode||e.which||e.charCode,n=h.indexOf(t);if(n>=0&&h.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&h.splice(0,h.length),93!==t&&224!==t||(t=91),t in p)for(var o in p[t]=!1,f)f[o]===t&&(K[o]=!1)}(e)}),w))}var S={setScope:w,getScope:O,deleteScope:function(e,t){var n,o;for(var r in e||(e=O()),v)if(Object.prototype.hasOwnProperty.call(v,r))for(n=v[r],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;O()===e&&w(t||"all")},getPressedKeyCodes:function(){return h.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=k(e)),-1!==h.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,o=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(o=!1),o},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(v).forEach((function(n){var o=v[n].find((function(n){return n.scope===t&&n.shortcut===e}));o&&o.method&&o.method()}))},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&E(e)}));else if("object"==typeof e)e.key&&E(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=n[0],i=n[1];"function"==typeof r&&(i=r,r=""),E({key:e,scope:r,method:i,splitKey:"+"})}}else Object.keys(v).forEach((function(e){return delete v[e]}))},keyMap:s,modifier:f,modifierMap:d};for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(K[P]=S[P]);if("undefined"!=typeof window){var T=window.hotkeys;K.noConflict=function(e){return e&&window.hotkeys===K&&(window.hotkeys=T),K},window.hotkeys=K}K.filter=function(){return!0};var _=function(e,t){var n=e.target,o=n&&n.tagName;return Boolean(o&&t&&t.includes(o))};K.isPressed;var A=n(6867),j=n(9479),D=function(){return D=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},D.apply(this,arguments)},I=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a};function N(e){var t=e.index,n=e.focus,i=e.value,a=e.onChange,c=e.onEnter,l=e.onInput,u=e.paste,s=e.onPaste,f=e.onFocus,d=e.onBlur,p=e.element,v=e.responsiveStyles,y=e.inlineError,h=e.changeCodeAtFocus,g=e.focusPrevInput,m=e.focusNextInput,b=e.isFocused,k=e.disabled,w=e.autoComplete,O=(0,r.useRef)(null);(0,r.useEffect)((function(){var e=O.current;e&&n&&(e.focus(),e.select(),u&&(e.selectionStart=e.selectionEnd))}),[n,O]);var E=(0,A.Z)({element:p,error:y,breakpoint:v.getMobileBreakpoint()}),C=E.borderStyles,x=E.customBorder;return function(e,t,n,o){n instanceof Array&&(o=n,n=void 0);var i=n||{},a=i.enableOnTags,c=i.filter,l=i.keyup,u=i.keydown,s=i.filterPreventDefault,f=void 0===s||s,d=i.enabled,p=void 0===d||d,v=i.enableOnContentEditable,y=void 0!==v&&v,h=(0,r.useRef)(null),g=(0,r.useCallback)((function(e,n){var o;return c&&!c(e)?!f:!!(_(e,["INPUT","TEXTAREA","SELECT"])&&!_(e,a)||null!=(o=e.target)&&o.isContentEditable&&!y)||(null===h.current||document.activeElement===h.current)&&(t(e,n),!0)}),o?[h,a,c].concat(o):[h,a,c]);(0,r.useEffect)((function(){if(p)return l&&!0!==u&&(n.keydown=!1),K(e,n||{},g),function(){return K.unbind(e,g)};K.unbind(e,g)}),[g,e,p])}("enter, backspace, delete, left, right, space",(function(e,t){if(b)switch(t.key){case"enter":e.preventDefault(),n&&c(e);break;case"backspace":e.preventDefault(),h(""),g();break;case"delete":e.preventDefault(),h("");break;case"left":e.preventDefault(),g();break;case"right":e.preventDefault(),m();break;case"space":e.preventDefault()}}),{enableOnTags:["INPUT"]}),(0,o.BX)("div",D({css:D(D(D({position:"relative",display:"flex",alignItems:"center",marginLeft:0===t?0:"8px"},v.getTarget("sub-fc")),k?v.getTarget("disabled"):{}),{"&:hover":(0,j.wL)(k?{}:D(D({},v.getTarget("hover")),C.hover)),"&&":n?D(D({},v.getTarget("active")),C.active):{}})},{children:[x,(0,o.tZ)("input",{id:"".concat(p.servar.key,"-").concat(t),name:p.servar.key,"aria-label":"".concat(0===t?"Please enter verification code. ":"","Digit ").concat(t+1),css:D({position:"relative",textAlign:"center",outline:"none",border:"none",background:"none",height:"100%",width:"100%"},v.getTarget("field")),autoComplete:"on"===w?"one-time-code":"new-password",inputMode:"numeric",disabled:k,ref:O,value:i||"",onChange:a,onInput:l,onPaste:s,onFocus:f,onBlur:d})]}))}var F=function(e){return e.toString().split("")};function L(e){var t=e.element,n=e.responsiveStyles,a=e.autoFocus,c=e.onChange,l=e.onEnter,u=e.value,s=e.disabled,f=e.autoComplete,d=e.inlineError,p=I((0,r.useState)(a?0:-1),2),v=p[0],y=p[1],h=I((0,r.useState)(!1),2),g=h[0],m=h[1],b=I((0,r.useState)(F(u)),2),k=b[0],w=b[1];(0,r.useEffect)((function(){u!==k&&w(F(u))}),[u]);var O,E,C=function(e){w(e),c(e.filter(Boolean).join(""))},x=t.servar.max_length,K=function(e){y(Math.max(Math.min(x-1,e),0))},S=function(){K(v+1)},P=function(){K(v-1)},T=function(e){var t=JSON.parse(JSON.stringify(k));t[v]=e[0],C(t)},_=function(e){if(!e.some((function(e){return isNaN(parseInt(e,10))}))){for(var t=JSON.parse(JSON.stringify(k)),n=v,o=0;o<x;++o)o>=v&&e.length>0&&(t[o]=e.shift(),n++);y(n),K(n),C(t)}};O=function(e){var t=e.slice(0,x-v).split("");_(t),v+t.length>=x&&m(!0)},E=(0,r.useRef)(O),(0,r.useEffect)((function(){E.current=O}),[O]),(0,r.useEffect)((function(){if("OTPCredential"in(0,j.Kv)()){var e=new AbortController;return navigator.credentials.get({otp:{transport:["sms"]},signal:e.signal}).then((function(e){E.current(e.code)})).catch((function(e){console.log(e)})),function(){e.abort()}}console.log("WebOTP API not supported")}),[]);var A=function(e){e.preventDefault();var t=e.clipboardData.getData("text/plain").slice(0,x-v).split(""),n=t.length;_(t),v+n>=x&&m(!0)},L=function(e){var t=e.target.value;_(t.split(""))},B=function(e){(function(e){return(0,i.e9)(e,10)&&1===e.trim().length})(e.target.value)&&S()};return(0,o.tZ)("div",D({css:D({display:"flex",flexDirection:"row"},n.getTarget("fc"))},{children:function(){for(var e=[],r=function(r){var i=r===x-1;e.push((0,o.tZ)(N,{index:r,focus:v===r,value:k[r],onChange:L,onEnter:i?l:function(){},onInput:B,paste:g,onPaste:A,onFocus:function(e){y(r),m(!1),e.target.select()},onBlur:function(){return y(-1)},element:t,responsiveStyles:n,inlineError:d,changeCodeAtFocus:T,focusPrevInput:P,focusNextInput:S,isFocused:v>-1,disabled:s,autoComplete:f},"".concat(t.servar.key,"-").concat(r)))},i=0;i<x;i++)r(i);return e}()}))}const B=function(e){var t=e.element,n=e.responsiveStyles,r=e.fieldLabel,i=e.inlineError,a=e.autoFocus,c=void 0!==a&&a,l=e.fieldVal,u=void 0===l?"":l,s=e.editMode,f=e.onChange,d=void 0===f?function(){}:f,p=e.onEnter,v=void 0===p?function(){}:p,y=e.elementProps,h=void 0===y?{}:y,g=e.disabled,m=void 0!==g&&g,b=e.autoComplete,k=e.children;return(0,o.BX)("div",D({style:{display:"flex",position:"relative",flexDirection:"column",pointerEvents:s?"none":"auto"}},h,{children:[k,r,(0,o.tZ)(L,{autoFocus:c,value:u,responsiveStyles:n,element:t,onChange:d,onEnter:v,inlineError:i,disabled:m,autoComplete:b})]}))}}}]);
1
+ "use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[861],{6705:(e,t,n)=>{n.r(t),n.d(t,{default:()=>B});var o=n(5944),r=n(7294),i=n(426),a="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function c(e,t,n,o){e.addEventListener?e.addEventListener(t,n,o):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function l(e,t){for(var n=t.slice(0,t.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function u(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":a?173:189,"=":a?61:187,";":a?59:186,"'":222,"[":219,"]":221,"\\":220},f={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},d={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},p={16:!1,18:!1,17:!1,91:!1},v={},y=1;y<20;y++)s["f".concat(y)]=111+y;var h=[],g=!1,m="all",b=[],k=function(e){return s[e.toLowerCase()]||f[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function w(e){m=e||"all"}function O(){return m||"all"}var E=function(e){var t=e.key,n=e.scope,o=e.method,r=e.splitKey,i=void 0===r?"+":r;u(t).forEach((function(e){var t=e.split(i),r=t.length,a=t[r-1],c="*"===a?"*":k(a);if(v[c]){n||(n=O());var u=r>1?l(f,t):[];v[c]=v[c].filter((function(e){return!((!o||e.method===o)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,o=e.length>=t.length?t:e,r=!0,i=0;i<n.length;i++)-1===o.indexOf(n[i])&&(r=!1);return r}(e.mods,u))}))}}))};function C(e,t,n,o){var r;if(t.element===o&&(t.scope===n||"all"===t.scope)){for(var i in r=t.mods.length>0,p)Object.prototype.hasOwnProperty.call(p,i)&&(!p[i]&&t.mods.indexOf(+i)>-1||p[i]&&-1===t.mods.indexOf(+i))&&(r=!1);(0!==t.mods.length||p[16]||p[18]||p[17]||p[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function x(e,t){var n=v["*"],o=e.keyCode||e.which||e.charCode;if(K.filter.call(this,e)){if(93!==o&&224!==o||(o=91),-1===h.indexOf(o)&&229!==o&&h.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=d[t];e[t]&&-1===h.indexOf(n)?h.push(n):!e[t]&&h.indexOf(n)>-1?h.splice(h.indexOf(n),1):"metaKey"===t&&e[t]&&3===h.length&&(e.ctrlKey||e.shiftKey||e.altKey||(h=h.slice(h.indexOf(n))))})),o in p){for(var r in p[o]=!0,f)f[r]===o&&(K[r]=!0);if(!n)return}for(var i in p)Object.prototype.hasOwnProperty.call(p,i)&&(p[i]=e[d[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===h.indexOf(17)&&h.push(17),-1===h.indexOf(18)&&h.push(18),p[17]=!0,p[18]=!0);var a=O();if(n)for(var c=0;c<n.length;c++)n[c].scope===a&&("keydown"===e.type&&n[c].keydown||"keyup"===e.type&&n[c].keyup)&&C(e,n[c],a,t);if(o in v)for(var l=0;l<v[o].length;l++)if(("keydown"===e.type&&v[o][l].keydown||"keyup"===e.type&&v[o][l].keyup)&&v[o][l].key){for(var u=v[o][l],s=u.splitKey,y=u.key.split(s),g=[],m=0;m<y.length;m++)g.push(k(y[m]));g.sort().join("")===h.sort().join("")&&C(e,u,a,t)}}}function K(e,t,n){h=[];var o=u(e),r=[],i="all",a=document,s=0,d=!1,y=!0,m="+",w=!1;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(d=t.keyup),void 0!==t.keydown&&(y=t.keydown),void 0!==t.capture&&(w=t.capture),"string"==typeof t.splitKey&&(m=t.splitKey)),"string"==typeof t&&(i=t);s<o.length;s++)r=[],(e=o[s].split(m)).length>1&&(r=l(f,e)),(e="*"===(e=e[e.length-1])?"*":k(e))in v||(v[e]=[]),v[e].push({keyup:d,keydown:y,scope:i,mods:r,shortcut:o[s],method:n,key:o[s],splitKey:m,element:a});void 0!==a&&!function(e){return b.indexOf(e)>-1}(a)&&window&&(b.push(a),c(a,"keydown",(function(e){x(e,a)}),w),g||(g=!0,c(window,"focus",(function(){h=[]}),w)),c(a,"keyup",(function(e){x(e,a),function(e){var t=e.keyCode||e.which||e.charCode,n=h.indexOf(t);if(n>=0&&h.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&h.splice(0,h.length),93!==t&&224!==t||(t=91),t in p)for(var o in p[t]=!1,f)f[o]===t&&(K[o]=!1)}(e)}),w))}var S={setScope:w,getScope:O,deleteScope:function(e,t){var n,o;for(var r in e||(e=O()),v)if(Object.prototype.hasOwnProperty.call(v,r))for(n=v[r],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;O()===e&&w(t||"all")},getPressedKeyCodes:function(){return h.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=k(e)),-1!==h.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,o=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(o=!1),o},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(v).forEach((function(n){var o=v[n].find((function(n){return n.scope===t&&n.shortcut===e}));o&&o.method&&o.method()}))},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&E(e)}));else if("object"==typeof e)e.key&&E(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=n[0],i=n[1];"function"==typeof r&&(i=r,r=""),E({key:e,scope:r,method:i,splitKey:"+"})}}else Object.keys(v).forEach((function(e){return delete v[e]}))},keyMap:s,modifier:f,modifierMap:d};for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(K[P]=S[P]);if("undefined"!=typeof window){var T=window.hotkeys;K.noConflict=function(e){return e&&window.hotkeys===K&&(window.hotkeys=T),K},window.hotkeys=K}K.filter=function(){return!0};var _=function(e,t){var n=e.target,o=n&&n.tagName;return Boolean(o&&t&&t.includes(o))};K.isPressed;var A=n(6867),j=n(9479),D=function(){return D=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},D.apply(this,arguments)},I=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a};function N(e){var t=e.index,n=e.focus,i=e.value,a=e.onChange,c=e.onEnter,l=e.onInput,u=e.paste,s=e.onPaste,f=e.onFocus,d=e.onBlur,p=e.element,v=e.responsiveStyles,y=e.inlineError,h=e.changeCodeAtFocus,g=e.focusPrevInput,m=e.focusNextInput,b=e.isFocused,k=e.disabled,w=e.autoComplete,O=(0,r.useRef)(null);(0,r.useEffect)((function(){var e=O.current;e&&n&&(e.focus(),e.select(),u&&(e.selectionStart=e.selectionEnd))}),[n,O]);var E=(0,A.Z)({element:p,error:y,breakpoint:v.getMobileBreakpoint()}),C=E.borderStyles,x=E.customBorder;return function(e,t,n,o){n instanceof Array&&(o=n,n=void 0);var i=n||{},a=i.enableOnTags,c=i.filter,l=i.keyup,u=i.keydown,s=i.filterPreventDefault,f=void 0===s||s,d=i.enabled,p=void 0===d||d,v=i.enableOnContentEditable,y=void 0!==v&&v,h=(0,r.useRef)(null),g=(0,r.useCallback)((function(e,n){var o;return c&&!c(e)?!f:!!(_(e,["INPUT","TEXTAREA","SELECT"])&&!_(e,a)||null!=(o=e.target)&&o.isContentEditable&&!y)||(null===h.current||document.activeElement===h.current)&&(t(e,n),!0)}),o?[h,a,c].concat(o):[h,a,c]);(0,r.useEffect)((function(){if(p)return l&&!0!==u&&(n.keydown=!1),K(e,n||{},g),function(){return K.unbind(e,g)};K.unbind(e,g)}),[g,e,p])}("enter, backspace, delete, left, right, space",(function(e,t){if(b)switch(t.key){case"enter":e.preventDefault(),n&&c(e);break;case"backspace":e.preventDefault(),h(""),g();break;case"delete":e.preventDefault(),h("");break;case"left":e.preventDefault(),g();break;case"right":e.preventDefault(),m();break;case"space":e.preventDefault()}}),{enableOnTags:["INPUT"]}),(0,o.BX)("div",D({css:D(D(D({position:"relative",display:"flex",alignItems:"center",marginLeft:0===t?0:"8px"},v.getTarget("sub-fc")),k?v.getTarget("disabled"):{}),{"&:hover":(0,j.wL)(k?{}:D(D({},v.getTarget("hover")),C.hover)),"&&":n?D(D({},v.getTarget("active")),C.active):{}})},{children:[x,(0,o.tZ)("input",{id:"".concat(p.servar.key,"-").concat(t),name:p.servar.key,"aria-label":"".concat(0===t?"Please enter verification code. ":"","Digit ").concat(t+1),css:D({position:"relative",textAlign:"center",outline:"none",border:"none",background:"none",height:"100%",width:"100%"},v.getTarget("field")),autoComplete:"on"===w?"one-time-code":"new-password",inputMode:"numeric",disabled:k,ref:O,value:i||"",onChange:a,onInput:l,onPaste:s,onFocus:f,onBlur:d})]}))}var F=function(e){return e.toString().split("")};function L(e){var t=e.element,n=e.responsiveStyles,a=e.autoFocus,c=e.onChange,l=e.onEnter,u=e.value,s=e.disabled,f=e.autoComplete,d=e.inlineError,p=I((0,r.useState)(a?0:-1),2),v=p[0],y=p[1],h=I((0,r.useState)(!1),2),g=h[0],m=h[1],b=I((0,r.useState)(F(u)),2),k=b[0],w=b[1];(0,r.useEffect)((function(){u!==k&&w(F(u))}),[u]);var O,E,C=function(e){w(e),c(e.filter(Boolean).join(""))},x=t.servar.max_length,K=function(e){y(Math.max(Math.min(x-1,e),0))},S=function(){K(v+1)},P=function(){K(v-1)},T=function(e){var t=JSON.parse(JSON.stringify(k));t[v]=e[0],C(t)},_=function(e){if(!e.some((function(e){return isNaN(parseInt(e,10))}))){for(var t=JSON.parse(JSON.stringify(k)),n=v,o=0;o<x;++o)o>=v&&e.length>0&&(t[o]=e.shift(),n++);y(n),K(n),C(t)}};O=function(e){var t=e.slice(0,x-v).split("");_(t),v+t.length>=x&&m(!0)},E=(0,r.useRef)(O),(0,r.useEffect)((function(){E.current=O}),[O]),(0,r.useEffect)((function(){if("OTPCredential"in(0,j.Kv)()){var e=new AbortController;return navigator.credentials.get({otp:{transport:["sms"]},signal:e.signal}).then((function(e){E.current(e.code)})).catch((function(e){console.log(e)})),function(){e.abort()}}console.log("WebOTP API not supported")}),[]);var A=function(e){e.preventDefault();var t=e.clipboardData.getData("text/plain").slice(0,x-v).split(""),n=t.length;_(t),v+n>=x&&m(!0)},L=function(e){var t=e.target.value;_(t.split(""))},B=function(e){(function(e){return(0,i.e9)(e,10)&&1===e.trim().length})(e.target.value)&&S()};return(0,o.tZ)("div",D({css:D({display:"flex",flexDirection:"row"},n.getTarget("fc"))},{children:function(){for(var e=[],r=function(r){var i=r===x-1;e.push((0,o.tZ)(N,{index:r,focus:v===r,value:k[r],onChange:L,onEnter:i?l:function(){},onInput:B,paste:g,onPaste:A,onFocus:function(e){y(r),m(!1),e.target.select()},onBlur:function(){return y(-1)},element:t,responsiveStyles:n,inlineError:d,changeCodeAtFocus:T,focusPrevInput:P,focusNextInput:S,isFocused:v>-1,disabled:s,autoComplete:f},"".concat(t.servar.key,"-").concat(r)))},i=0;i<x;i++)r(i);return e}()}))}const B=function(e){var t=e.element,n=e.responsiveStyles,r=e.fieldLabel,i=e.inlineError,a=e.autoFocus,c=void 0!==a&&a,l=e.fieldVal,u=void 0===l?"":l,s=e.editMode,f=e.onChange,d=void 0===f?function(){}:f,p=e.onEnter,v=void 0===p?function(){}:p,y=e.elementProps,h=void 0===y?{}:y,g=e.disabled,m=void 0!==g&&g,b=e.autoComplete,k=e.children;return(0,o.BX)("div",D({style:{display:"flex",position:"relative",flexDirection:"column",pointerEvents:s?"none":"auto"}},h,{children:[k,r,(0,o.tZ)(L,{autoFocus:c,value:u,responsiveStyles:n,element:t,onChange:d,onEnter:v,inlineError:i,disabled:m,autoComplete:b})]}))}}}]);