@sheerid/jslib-nightly 2.114.0-alpha.5 → 2.114.0-alpha.6

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 (235) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +6 -6
  3. package/chunk/EmailLoopPending-Dtf0p85F.js +4 -4
  4. package/chunk/EmailLoopPending-Dy8mLFvV.js +4 -4
  5. package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +4 -4
  6. package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +4 -4
  7. package/chunk/Onfido-AyvUk6wg.js +4 -4
  8. package/chunk/StepIDCheckLoopOnfido-CmNwFqjD.js +4 -4
  9. package/chunk/StepIDCheckLoopOnfido-DtbplNxs.js +4 -4
  10. package/chunk/StepIDCheckLoopRegula-RoX971sR.js +4 -4
  11. package/chunk/StepIDCheckLoopRegula-oqf-QxHT.js +4 -4
  12. package/chunk/StepInactiveMilitaryPersonalInfoComponent-CTCfr5Y8.js +4 -4
  13. package/chunk/StepInactiveMilitaryPersonalInfoComponent-D4veFRlW.js +4 -4
  14. package/chunk/ar-BZsYQiJv.js +4 -4
  15. package/chunk/bg-DB_ZEB5O.js +4 -4
  16. package/chunk/bn-IN-D69rNeuh.js +4 -4
  17. package/chunk/cs-Dk4czWE5.js +4 -4
  18. package/chunk/da-NesYkkEW.js +4 -4
  19. package/chunk/de-4yAGb-JC.js +4 -4
  20. package/chunk/el-D1h3O3E7.js +4 -4
  21. package/chunk/en-GB-QY9gqmlz.js +4 -4
  22. package/chunk/es-BYhP2rUk.js +4 -4
  23. package/chunk/es-ES-BJLdehwH.js +4 -4
  24. package/chunk/fi-D-Ycqh7I.js +4 -4
  25. package/chunk/fr-CA-a8W9ZT_A.js +4 -4
  26. package/chunk/fr-DR25pnXw.js +4 -4
  27. package/chunk/ga-Bj6efXd2.js +4 -4
  28. package/chunk/hi-IN-C-u9_T8L.js +4 -4
  29. package/chunk/hr-B8E9jyUX.js +4 -4
  30. package/chunk/hu-C7z4yBSK.js +4 -4
  31. package/chunk/id-AsEkOlRu.js +4 -4
  32. package/chunk/index-4APUDd8S.js +4 -4
  33. package/chunk/index-9OD0Bw98.js +4 -4
  34. package/chunk/index-B-PpnUEO.js +4 -4
  35. package/chunk/index-B8F8N-JM.js +4 -4
  36. package/chunk/index-B8KPM--K.js +4 -4
  37. package/chunk/index-BD2bjH-C.js +4 -4
  38. package/chunk/index-BD_a0MZT.js +4 -4
  39. package/chunk/index-BDrKYann.js +4 -4
  40. package/chunk/index-BORxVuto.js +4 -4
  41. package/chunk/index-BTMETMEE.js +4 -4
  42. package/chunk/index-Bi9QXN5x.js +4 -4
  43. package/chunk/index-Bmq6cJ3F.js +4 -4
  44. package/chunk/index-BpZoH-Wz.js +4 -4
  45. package/chunk/index-BuX76GyE.js +4 -4
  46. package/chunk/index-C2h0Wj84.js +4 -4
  47. package/chunk/index-C8MQD8EK.js +4 -4
  48. package/chunk/index-C8u9IJUa.js +4 -4
  49. package/chunk/index-C96ntS0u.js +4 -4
  50. package/chunk/index-CHK5i4jj.js +4 -4
  51. package/chunk/index-CTb96lOK.js +4 -4
  52. package/chunk/index-CU0rkVHP.js +4 -4
  53. package/chunk/index-CcRowarb.js +4 -4
  54. package/chunk/index-CeHu2Npu.js +4 -4
  55. package/chunk/index-DIkWpujR.js +4 -4
  56. package/chunk/index-DKWjcFJK.js +4 -4
  57. package/chunk/index-DLz31Fzh.js +4 -4
  58. package/chunk/index-DO5Z3e-E.js +4 -4
  59. package/chunk/index-DRlGAW07.js +4 -4
  60. package/chunk/index-DVynViqA.js +4 -4
  61. package/chunk/index-D_9J6arc.js +4 -4
  62. package/chunk/index-Dg8t7-dm.js +4 -4
  63. package/chunk/index-DhGg9lvf.js +4 -4
  64. package/chunk/index-DsgCNIS5.js +4 -4
  65. package/chunk/index-DvQoVn8P.js +4 -4
  66. package/chunk/index-DzqRsB7_.js +4 -4
  67. package/chunk/index-FjzhfDlx.js +4 -4
  68. package/chunk/index-Gfy-1H7s.js +4 -4
  69. package/chunk/index-YSVzGeq_.js +4 -4
  70. package/chunk/index-_t8SsXjy.js +4 -4
  71. package/chunk/is-PzizLXcv.js +4 -4
  72. package/chunk/it-CiJeQN1_.js +4 -4
  73. package/chunk/iw-QHmqNHZP.js +4 -4
  74. package/chunk/ja-DPgVvasb.js +4 -4
  75. package/chunk/ko-DykOu1Yp.js +4 -4
  76. package/chunk/lo-C4bFrJOj.js +4 -4
  77. package/chunk/lt-KjZ7oOV5.js +4 -4
  78. package/chunk/ms-CNvzXjsH.js +4 -4
  79. package/chunk/nl-BE-BXbsNtu2.js +4 -4
  80. package/chunk/nl-ucuj2G5l.js +4 -4
  81. package/chunk/no-D8IuXJ7O.js +4 -4
  82. package/chunk/pl-DvnUkXGb.js +4 -4
  83. package/chunk/pt-BR-Be00Hx-L.js +4 -4
  84. package/chunk/pt-DS7isrlt.js +4 -4
  85. package/chunk/ro-BHCICvJV.js +4 -4
  86. package/chunk/ru-DUDtL41i.js +4 -4
  87. package/chunk/sk-O9yqW58Q.js +4 -4
  88. package/chunk/sl-CxcvfiDu.js +4 -4
  89. package/chunk/sr-DgvzAvVS.js +4 -4
  90. package/chunk/sv-BtktR0mm.js +4 -4
  91. package/chunk/sw-D06YJhji.js +4 -4
  92. package/chunk/th-C1KZhtMd.js +4 -4
  93. package/chunk/tr-CqpbTukW.js +4 -4
  94. package/chunk/uk-BWHH_jN1.js +4 -4
  95. package/chunk/ur-BHWni4Fn.js +4 -4
  96. package/chunk/useCollectFieldsEndpoint-C5fsaYJe.js +4 -4
  97. package/chunk/useCollectFieldsEndpoint-kmLFyUA-.js +4 -4
  98. package/chunk/useEmailFirstExperiment-BbDrKQEs.js +4 -4
  99. package/chunk/useEmailFirstExperiment-CgU-itQI.js +4 -4
  100. package/chunk/vi-DVhQHKtP.js +4 -4
  101. package/chunk/zh-HK-C-wTSVhL.js +4 -4
  102. package/chunk/zh-qa3hzwEB.js +4 -4
  103. package/chunk/zu-DwVIy-bC.js +4 -4
  104. package/es6.css +4 -4
  105. package/jslib.js +5 -5
  106. package/lib/{EmailLoopPending-CG9KVEyj.js → EmailLoopPending-DZBx_Mbf.js} +5 -5
  107. package/lib/{EmailLoopPending-CG9KVEyj.js.map → EmailLoopPending-DZBx_Mbf.js.map} +1 -1
  108. package/lib/{LicensedProfessionalOrganizationComponent-BmqDK2Xr.js → LicensedProfessionalOrganizationComponent-DKs0FPrD.js} +5 -5
  109. package/lib/{LicensedProfessionalOrganizationComponent-BmqDK2Xr.js.map → LicensedProfessionalOrganizationComponent-DKs0FPrD.js.map} +1 -1
  110. package/lib/Onfido-AyvUk6wg.js +4 -4
  111. package/lib/StepCollectMilitaryStatusComponent-CKQtZOI1.js +11 -0
  112. package/lib/{StepCollectMilitaryStatusComponent-zR6N-kE-.js.map → StepCollectMilitaryStatusComponent-CKQtZOI1.js.map} +1 -1
  113. package/lib/{StepIDCheckLoopOnfido-DcITFgCX.js → StepIDCheckLoopOnfido-C9yVYjVQ.js} +5 -5
  114. package/lib/{StepIDCheckLoopOnfido-DcITFgCX.js.map → StepIDCheckLoopOnfido-C9yVYjVQ.js.map} +1 -1
  115. package/lib/{StepIDCheckLoopRegula-DBWRpZ7X.js → StepIDCheckLoopRegula-CqZQSBfe.js} +5 -5
  116. package/lib/{StepIDCheckLoopRegula-DBWRpZ7X.js.map → StepIDCheckLoopRegula-CqZQSBfe.js.map} +1 -1
  117. package/lib/{StepInactiveMilitaryPersonalInfoComponent-B-TY5ixS.js → StepInactiveMilitaryPersonalInfoComponent-BCnvvapt.js} +6 -6
  118. package/lib/{StepInactiveMilitaryPersonalInfoComponent-B-TY5ixS.js.map → StepInactiveMilitaryPersonalInfoComponent-BCnvvapt.js.map} +1 -1
  119. package/lib/{VerificationApiUtils-B-nP7TJ0.js → VerificationApiUtils-TVsND75s.js} +5 -5
  120. package/lib/{VerificationApiUtils-B-nP7TJ0.js.map → VerificationApiUtils-TVsND75s.js.map} +1 -1
  121. package/lib/ar-BZsYQiJv.js +4 -4
  122. package/lib/bg-DB_ZEB5O.js +4 -4
  123. package/lib/bn-IN-D69rNeuh.js +4 -4
  124. package/lib/cs-Dk4czWE5.js +4 -4
  125. package/lib/da-NesYkkEW.js +4 -4
  126. package/lib/de-4yAGb-JC.js +4 -4
  127. package/lib/el-D1h3O3E7.js +4 -4
  128. package/lib/en-GB-QY9gqmlz.js +4 -4
  129. package/lib/es-BYhP2rUk.js +4 -4
  130. package/lib/es-ES-BJLdehwH.js +4 -4
  131. package/lib/{es6-BUJTYIpg.js → es6-C_99KlFr.js} +33 -33
  132. package/lib/{es6-BUJTYIpg.js.map → es6-C_99KlFr.js.map} +1 -1
  133. package/lib/fi-D-Ycqh7I.js +4 -4
  134. package/lib/fr-CA-a8W9ZT_A.js +4 -4
  135. package/lib/fr-DR25pnXw.js +4 -4
  136. package/lib/ga-Bj6efXd2.js +4 -4
  137. package/lib/hi-IN-C-u9_T8L.js +4 -4
  138. package/lib/hr-B8E9jyUX.js +4 -4
  139. package/lib/hu-C7z4yBSK.js +4 -4
  140. package/lib/id-AsEkOlRu.js +4 -4
  141. package/lib/index-2eh3nVLP.js +11 -0
  142. package/lib/index-2eh3nVLP.js.map +1 -0
  143. package/lib/{index-CLTqi5nC.js → index-BAf5uTAB.js} +6 -6
  144. package/lib/{index-CLTqi5nC.js.map → index-BAf5uTAB.js.map} +1 -1
  145. package/lib/{index-D3WSuhFz.js → index-BAq-Jq2T.js} +5 -5
  146. package/lib/{index-D3WSuhFz.js.map → index-BAq-Jq2T.js.map} +1 -1
  147. package/lib/{index-CUxmEsdD.js → index-BR-Zl3Ml.js} +5 -5
  148. package/lib/{index-CUxmEsdD.js.map → index-BR-Zl3Ml.js.map} +1 -1
  149. package/lib/{index-CPgZQIHk.js → index-BRinhyTK.js} +7 -7
  150. package/lib/{index-CPgZQIHk.js.map → index-BRinhyTK.js.map} +1 -1
  151. package/lib/{index-C8MCHPw-.js → index-C4IwazOc.js} +5 -5
  152. package/lib/{index-C8MCHPw-.js.map → index-C4IwazOc.js.map} +1 -1
  153. package/lib/{index-BzC44xRD.js → index-CHNXOSWd.js} +5 -5
  154. package/lib/{index-BzC44xRD.js.map → index-CHNXOSWd.js.map} +1 -1
  155. package/lib/{index-E3o1Tsh2.js → index-C_iBLKwH.js} +6 -6
  156. package/lib/{index-E3o1Tsh2.js.map → index-C_iBLKwH.js.map} +1 -1
  157. package/lib/{index-lDmxO76R.js → index-CmnbmD6-.js} +7 -7
  158. package/lib/{index-lDmxO76R.js.map → index-CmnbmD6-.js.map} +1 -1
  159. package/lib/{index-ChI1PCzk.js → index-Cs7ijogy.js} +6 -6
  160. package/lib/{index-ChI1PCzk.js.map → index-Cs7ijogy.js.map} +1 -1
  161. package/lib/{index-PoucKg6j.js → index-D4Kgldkd.js} +5 -5
  162. package/lib/{index-PoucKg6j.js.map → index-D4Kgldkd.js.map} +1 -1
  163. package/lib/{index-B-6Wpxpq.js → index-D5XLi9m9.js} +5 -5
  164. package/lib/{index-B-6Wpxpq.js.map → index-D5XLi9m9.js.map} +1 -1
  165. package/lib/{index-CJm6Xe0u.js → index-DER4wNKW.js} +6 -6
  166. package/lib/{index-CJm6Xe0u.js.map → index-DER4wNKW.js.map} +1 -1
  167. package/lib/{index-q9_QXcvo.js → index-DFXTvQ3I.js} +6 -6
  168. package/lib/{index-q9_QXcvo.js.map → index-DFXTvQ3I.js.map} +1 -1
  169. package/lib/index-DIkWpujR.js +4 -4
  170. package/lib/index-D_thaigM.js +11 -0
  171. package/lib/index-D_thaigM.js.map +1 -0
  172. package/lib/{index-HvKvIkn7.js → index-Dh5LHKxY.js} +5 -5
  173. package/lib/{index-HvKvIkn7.js.map → index-Dh5LHKxY.js.map} +1 -1
  174. package/lib/{index-Dvuk9uIj.js → index-DuqGb99f.js} +5 -5
  175. package/lib/{index-Dvuk9uIj.js.map → index-DuqGb99f.js.map} +1 -1
  176. package/lib/{index-BD-Ry1jh.js → index-EFiv72_1.js} +6 -6
  177. package/lib/{index-BD-Ry1jh.js.map → index-EFiv72_1.js.map} +1 -1
  178. package/lib/index-Eu6kawQV.js +11 -0
  179. package/lib/index-Eu6kawQV.js.map +1 -0
  180. package/lib/{index-B_5yrkMw.js → index-UBQz7Q-3.js} +5 -5
  181. package/lib/{index-B_5yrkMw.js.map → index-UBQz7Q-3.js.map} +1 -1
  182. package/lib/{index-BPi_eur3.js → index-hF9oCs2V.js} +6 -6
  183. package/lib/{index-BPi_eur3.js.map → index-hF9oCs2V.js.map} +1 -1
  184. package/lib/index-kVxLgjr8.js +11 -0
  185. package/lib/index-kVxLgjr8.js.map +1 -0
  186. package/lib/{index-BzOEMRyG.js → index-lZKxm8AO.js} +5 -5
  187. package/lib/{index-BzOEMRyG.js.map → index-lZKxm8AO.js.map} +1 -1
  188. package/lib/is-PzizLXcv.js +4 -4
  189. package/lib/it-CiJeQN1_.js +4 -4
  190. package/lib/iw-QHmqNHZP.js +4 -4
  191. package/lib/ja-DPgVvasb.js +4 -4
  192. package/lib/ko-DykOu1Yp.js +4 -4
  193. package/lib/lo-C4bFrJOj.js +4 -4
  194. package/lib/lt-KjZ7oOV5.js +4 -4
  195. package/lib/ms-CNvzXjsH.js +4 -4
  196. package/lib/nl-BE-BXbsNtu2.js +4 -4
  197. package/lib/nl-ucuj2G5l.js +4 -4
  198. package/lib/no-D8IuXJ7O.js +4 -4
  199. package/lib/pl-DvnUkXGb.js +4 -4
  200. package/lib/pt-BR-Be00Hx-L.js +4 -4
  201. package/lib/pt-DS7isrlt.js +4 -4
  202. package/lib/ro-BHCICvJV.js +4 -4
  203. package/lib/ru-DUDtL41i.js +4 -4
  204. package/lib/sk-O9yqW58Q.js +4 -4
  205. package/lib/sl-CxcvfiDu.js +4 -4
  206. package/lib/sr-DgvzAvVS.js +4 -4
  207. package/lib/sv-BtktR0mm.js +4 -4
  208. package/lib/sw-D06YJhji.js +4 -4
  209. package/lib/th-C1KZhtMd.js +4 -4
  210. package/lib/tr-CqpbTukW.js +4 -4
  211. package/lib/uk-BWHH_jN1.js +4 -4
  212. package/lib/ur-BHWni4Fn.js +4 -4
  213. package/lib/{useCollectFieldsEndpoint-BZxXH0Ib.js → useCollectFieldsEndpoint-Dikzi0_r.js} +6 -6
  214. package/lib/{useCollectFieldsEndpoint-BZxXH0Ib.js.map → useCollectFieldsEndpoint-Dikzi0_r.js.map} +1 -1
  215. package/lib/{useEmailFirstExperiment-D41_GhPD.js → useEmailFirstExperiment-CrFK19iH.js} +5 -5
  216. package/lib/{useEmailFirstExperiment-D41_GhPD.js.map → useEmailFirstExperiment-CrFK19iH.js.map} +1 -1
  217. package/lib/vi-DVhQHKtP.js +4 -4
  218. package/lib/zh-HK-C-wTSVhL.js +4 -4
  219. package/lib/zh-qa3hzwEB.js +4 -4
  220. package/lib/zu-DwVIy-bC.js +4 -4
  221. package/package.json +1 -1
  222. package/sheerid-install.css +4 -4
  223. package/sheerid-install.js +5 -5
  224. package/sheerid.css +4 -4
  225. package/sheerid.js +6 -6
  226. package/types-reference.zip +0 -0
  227. package/lib/StepCollectMilitaryStatusComponent-zR6N-kE-.js +0 -11
  228. package/lib/index-BXvFAwi9.js +0 -11
  229. package/lib/index-BXvFAwi9.js.map +0 -1
  230. package/lib/index-DFxcP6MS.js +0 -11
  231. package/lib/index-DFxcP6MS.js.map +0 -1
  232. package/lib/index-DecIB_VE.js +0 -11
  233. package/lib/index-DecIB_VE.js.map +0 -1
  234. package/lib/index-DltP_ntt.js +0 -11
  235. package/lib/index-DltP_ntt.js.map +0 -1
@@ -1,14 +1,14 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
- import { k as V, a7 as k, a8 as A, i as q, u as d, j as o, M as B, N as L, m as U, w as W, a1 as w, f as r, O, T as _, a4 as H, a9 as K, U as X, W as Y, E as Z, n as z, X as G, Y as J, Z as Q, _ as $, o as S, V as v, aa as ee } from "./es6-BUJTYIpg.js";
8
+ import { k as V, a7 as k, a8 as A, i as q, u as d, j as o, M as B, N as L, m as U, w as W, a1 as w, f as r, O, T as _, a4 as H, a9 as K, U as X, W as Y, E as Z, n as z, X as G, Y as J, Z as Q, _ as $, o as S, V as v, aa as ee } from "./es6-C_99KlFr.js";
9
9
  import se from "react";
10
10
  import { injectIntl as ae, FormattedHTMLMessage as oe } from "react-intl";
11
- import { u as te } from "./useCollectFieldsEndpoint-BZxXH0Ib.js";
11
+ import { u as te } from "./useCollectFieldsEndpoint-Dikzi0_r.js";
12
12
  const de = ({ verificationService: s, intl: j }) => {
13
13
  var p, C, h, b, i, N, g, x, y;
14
14
  const a = s.viewModel, { fieldValidationErrors: t } = s, l = s.verificationResponse, E = V(l), I = k(
@@ -1 +1 @@
1
- {"version":3,"file":"index-BPi_eur3.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAqB,QACrBX,EAAoB,aAAa,2BACjCA,EAAoB,aAAa,gBAC7Be,IACJJ,MAAqB,QAAQX,EAAoB,aAAa,gBAE1DgB,IAASd,EAAU,aAAa,OAChCe,IAAUC,EAAW;AAGzB,EAAA,CAACf,EAAsB,eACvBC,EAAqB,YACrBA,EAAqB,SAAS,SAAS,oBAAoB,KAE3DJ,EAAoB,4BAA4B;AAAA,IAC9C,GA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,UAAA;AAAA,QAAA,IAElD;AAAA,QAEHpC,EAAQ,iBAAiB,IAAI,CAACqC,MAC5BxB,gBAAAA,MAAAyB,GAAA,EAAgB,QAAAD,GAAgB,qBAAAtD,EAAA,CAA0C,CAC5E;AAAA,QAED8B,gBAAAA,EAAA;AAAA,UAAC0B;AAAAA,UAAA;AAAA,YACC,qBAAAxD;AAAA,YACA,WAAW,CAAC,CAACG,EAAsB;AAAA,YACnC,UAAU,CAACmC,MAAa;AACtB,cAAAnB,EAAmB,YAAY;AAAA,gBAC7B,GAAGnB,EAAoB,UAAU;AAAA,gBACjC,oBAAoBsC;AAAA,cAAA,CACrB,GACoCX,EAAA,sBAAsBW,GAAUtC,CAAmB;AAAA,YAC1F;AAAA,YACA,WAAAE;AAAA,YACA,WAAUuD,IAAAtB,EAAwB,oBAAoB,MAA5C,gBAAAsB,EAA+C;AAAA,UAAA;AAAA,QAC3D;AAAA,QAEC3B,gBAAAA,EAAAA,IAAA4B,GAAA,EAAa,qBAAA1D,GAA0C,QAAO,qBAAqB,CAAA;AAAA,QAEpF8B,gBAAAA,EAAA;AAAA,UAAC6B;AAAA,UAAA;AAAA,YACC,MAAMC,EAAsB;AAAA,YAC5B,qBAAA5D;AAAA,YACA,WAAAE;AAAA,YACA,oBAAAG;AAAA,YACA,YACEyB,gBAAAA,EAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF;AAEJ,GAEaC,KAA+BC,GAAWhE,EAAmB;"}
1
+ {"version":3,"file":"index-hF9oCs2V.js","sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { getSafe } from \"../../lib/utils/getSafe\";\nimport {\n VerificationService,\n AgePersonalInfoViewModel,\n AgePersonalInfoResponse,\n FormSelectChoice,\n Country,\n FieldDescription,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\n\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"names":["StepAgePersonalInfo","verificationService","intl","viewModel","fieldValidationErrors","verificationResponse","failedInstantMatch","hasFailedInstantMatch","countryChoices","getAvailableCountryChoices","defaultCountryChoice","getDefaultCountryChoice","safeCountryValue","getSafe","defaultRequiredFields","showPhoneNumber","phoneNumberRequired","locale","options","getOptions","updateAgeViewModel","key","value","nextState","produceDraftViewModel","isFieldRequired","useCollectFieldsEndpoint","React","updateFieldValidationErrorsByFieldId","jsxs","PersonalInfoWrapper","jsx","PersonalInfoHeader","ChangeLocaleV2Component","CountryComponentWrapper","_a","getFieldConfigByFieldId","FirstName","_b","newValue","LastName","_c","BirthDate","_d","CityComponent","_e","AddressComponent","PostalCode","_f","Email","event","handleEmailOnKeyDown","_g","PhoneNumber","_h","config","FormFieldCustom","MarketConsentWrapper","_i","ExtraMessage","PersonalInfoStepSubmitButton","VerificationStepsEnum","FormattedHTMLMessage","StepAgePersonalInfoComponent","injectIntl"],"mappings":";;;;AAqDA,MAAMA,KAAsB,CAAC,EAAE,qBAAAC,GAAqB,MAAAC,QAA8C;;AAChG,QAAMC,IAAYF,EAAoB,WAChC,EAAE,uBAAAG,MAA0BH,GAC5BI,IAAuBJ,EAAoB,sBAC3CK,IAAqBC,EAAsBF,CAAoB,GAC/DG,IAAsDC;AAAA,IAC1DR,EAAoB;AAAA,IACpBC;AAAA,EACF,GACMQ,IACJC,EAAwBH,CAAc,GAClCI,IAAmBC,EAAQ,MAAMV,EAAU,cAAc,OAAOO,EAAqB,KAAK,GAC1FI,IACJF,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAc,CAAA,IAAI,CAAC,GAGnDG,IACJH,MAAq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EJ,GAEaC,KAA+BC,GAAWhE,EAAmB;"}
@@ -0,0 +1,11 @@
1
+
2
+ /**
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
+ */
8
+ import { d as e } from "./es6-C_99KlFr.js";
9
+ export {
10
+ e as default
11
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-kVxLgjr8.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,11 +1,11 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
- import { j as e, r as l, R as c, t as p, C as m } from "./es6-BUJTYIpg.js";
8
+ import { j as e, r as l, R as c, t as p, C as m } from "./es6-C_99KlFr.js";
9
9
  import { FormattedHTMLMessage as o } from "react-intl";
10
10
  const u = ({ verificationService: s }) => {
11
11
  const t = s.verificationResponse.consolationRewardCode || "${consolationRewardCode}", i = s.programTheme.config.offerType === "noCode", { verificationId: n } = s.verificationResponse, { rewardDisplay: d } = s.programTheme.config, r = !i && !!d.length;
@@ -1 +1 @@
1
- {"version":3,"file":"index-BzOEMRyG.js","sources":["../../src/components/StepConsolation/StepConsolationComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { VerificationService, ConsolationResponse } from \"../../lib/types/types\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\n\ninterface StepConsolationProps {\n verificationService: VerificationService;\n}\n\nconst StepConsolation = ({ verificationService }: StepConsolationProps) => {\n const consolationRewardCode =\n (verificationService.verificationResponse as ConsolationResponse).consolationRewardCode ||\n \"${consolationRewardCode}\"; // eslint-disable-line no-template-curly-in-string\n\n const noCodeType = verificationService.programTheme.config.offerType === \"noCode\";\n const { verificationId } = verificationService.verificationResponse;\n\n const { rewardDisplay } = verificationService.programTheme.config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n return (\n <div id=\"sid-step-consolation\" className=\"sid-l-container\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <div\n className=\"sid-header__title sid-l-horz-center sid-l-space-top-md\"\n id=\"consolation-status\"\n role=\"alertdialog\"\n >\n <FormattedHTMLMessage\n id=\"step.consolation.title\"\n defaultMessage=\"Claim your offer\"\n tagName=\"h1\"\n />\n </div>\n\n <div className=\"sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.consolation.subtitle\"\n defaultMessage=\"Unfortunately we could not verify your status, but we value your interest and are offering this promo code as a thank you. It is unique to you and can only be used once.\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={consolationRewardCode}\n src={getBarcodeUrl(verificationId, \"consolationRewardCode\", displayType)}\n />\n );\n return (\n <>\n <div\n className=\"sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {consolationRewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={consolationRewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </div>\n </>\n );\n })}\n </div>\n )}\n\n <div className=\"sid-footer sid-l-horz-center sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"rewardCodeEmailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.\"\n />\n </div>\n\n <div\n className=\"sid-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.verificationOnly\"\n defaultMessage=\"Please direct any and all questions about this offer to {companyName}.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepConsolationComponent = StepConsolation;\n"],"names":["StepConsolation","verificationService","consolationRewardCode","noCodeType","verificationId","rewardDisplay","showReward","jsxs","jsx","LogoComponent","FormattedHTMLMessage","displayType","RewardDisplayEnum","getBarcodeUrl","Fragment","CopyToClipboard","companyName","StepConsolationComponent"],"mappings":";;AAcA,MAAMA,IAAkB,CAAC,EAAE,qBAAAC,QAAgD;AACnE,QAAAC,IACHD,EAAoB,qBAA6C,yBAClE,4BAEIE,IAAaF,EAAoB,aAAa,OAAO,cAAc,UACnE,EAAE,gBAAAG,MAAmBH,EAAoB,sBAEzC,EAAE,eAAAI,EAAA,IAAkBJ,EAAoB,aAAa,QACrDK,IAAa,CAACH,KAAc,CAAC,CAACE,EAAc;AAElD,SACGE,gBAAAA,EAAAA,KAAA,OAAA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AAYb;AAAA,UACZ,kBAAmBM,gBAAAA,EAAA,IAAAE,GAAA,EAAqB,IAAG,UAAS,gBAAe,UAAS;AAAA,UAE5E,UAAAF,gBAAAA,EAAA;AAAA,YAACE;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,gBAAe;AAAA,YAAA;AAAA,UAAA;AAAA,QACjB;AAAA,MAAA,EAEJ,CAAA;AAAA,IAAA,GACF,CAEH,GACH;AAAA,IAGFF,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,mDACb,UAAAA,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,gBAAe;AAAA,MAAA;AAAA,IAAA,GAEnB;AAAA,IAEAF,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,MAAK;AAAA,QAEL,gCAACE,GAAqB,EAAA,IAAG,eAAc,gBAAe,aACnD,WAACM,MACAR,gBAAAA,EAAA;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,gBAAe;AAAA,YACf,QAAQ,EAAE,aAAAM,EAAY;AAAA,UAAA;AAAA,QAAA,EAG5B,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,GACF;AAEJ,GAEaC,IAA2BjB;"}
1
+ {"version":3,"file":"index-lZKxm8AO.js","sources":["../../src/components/StepConsolation/StepConsolationComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { VerificationService, ConsolationResponse } from \"../../lib/types/types\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\n\ninterface StepConsolationProps {\n verificationService: VerificationService;\n}\n\nconst StepConsolation = ({ verificationService }: StepConsolationProps) => {\n const consolationRewardCode =\n (verificationService.verificationResponse as ConsolationResponse).consolationRewardCode ||\n \"${consolationRewardCode}\"; // eslint-disable-line no-template-curly-in-string\n\n const noCodeType = verificationService.programTheme.config.offerType === \"noCode\";\n const { verificationId } = verificationService.verificationResponse;\n\n const { rewardDisplay } = verificationService.programTheme.config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n return (\n <div id=\"sid-step-consolation\" className=\"sid-l-container\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <div\n className=\"sid-header__title sid-l-horz-center sid-l-space-top-md\"\n id=\"consolation-status\"\n role=\"alertdialog\"\n >\n <FormattedHTMLMessage\n id=\"step.consolation.title\"\n defaultMessage=\"Claim your offer\"\n tagName=\"h1\"\n />\n </div>\n\n <div className=\"sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.consolation.subtitle\"\n defaultMessage=\"Unfortunately we could not verify your status, but we value your interest and are offering this promo code as a thank you. It is unique to you and can only be used once.\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={consolationRewardCode}\n src={getBarcodeUrl(verificationId, \"consolationRewardCode\", displayType)}\n />\n );\n return (\n <>\n <div\n className=\"sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {consolationRewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={consolationRewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </div>\n </>\n );\n })}\n </div>\n )}\n\n <div className=\"sid-footer sid-l-horz-center sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"rewardCodeEmailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.\"\n />\n </div>\n\n <div\n className=\"sid-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.verificationOnly\"\n defaultMessage=\"Please direct any and all questions about this offer to {companyName}.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepConsolationComponent = StepConsolation;\n"],"names":["StepConsolation","verificationService","consolationRewardCode","noCodeType","verificationId","rewardDisplay","showReward","jsxs","jsx","LogoComponent","FormattedHTMLMessage","displayType","RewardDisplayEnum","getBarcodeUrl","Fragment","CopyToClipboard","companyName","StepConsolationComponent"],"mappings":";;AAcA,MAAMA,IAAkB,CAAC,EAAE,qBAAAC,QAAgD;AACnE,QAAAC,IACHD,EAAoB,qBAA6C,yBAClE,4BAEIE,IAAaF,EAAoB,aAAa,OAAO,cAAc,UACnE,EAAE,gBAAAG,MAAmBH,EAAoB,sBAEzC,EAAE,eAAAI,EAAA,IAAkBJ,EAAoB,aAAa,QACrDK,IAAa,CAACH,KAAc,CAAC,CAACE,EAAc;AAElD,SACGE,gBAAAA,EAAAA,KAAA,OAAA,EAAI,IAAG,wBAAuB,WAAU,mBACvC,UAAA;AAAA,IAACA,gBAAAA,EAAAA,KAAA,OAAA,EAAI,WAAU,mDACb,UAAA;AAAA,MAAAC,gBAAAA,EAAAA,IAAC,SAAI,WAAU,qBACb,UAACA,gBAAAA,EAAA,IAAAC,GAAA,EAAc,qBAAAR,EAA0C,CAAA,GAC3D;AAAA,MAEAO,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,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gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,mDACb,UAAAA,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,gBAAe;AAAA,MAAA;AAAA,IAAA,GAEnB;AAAA,IAEAF,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,MAAK;AAAA,QAEL,gCAACE,GAAqB,EAAA,IAAG,eAAc,gBAAe,aACnD,WAACM,MACAR,gBAAAA,EAAA;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,gBAAe;AAAA,YACf,QAAQ,EAAE,aAAAM,EAAY;AAAA,UAAA;AAAA,QAAA,EAG5B,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,GACF;AAEJ,GAEaC,IAA2BjB;"}
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Virk herskylda",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Servizio Attivo",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "שירות פעיל",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "現役軍人",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "현역 군인",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "ໜ້າທີ່",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Aktyvus pareigūnas",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const a = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Tugas Aktif",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Actieve dienst",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Actieve dienst",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Aktiv Tjeneste",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Aktywna służba",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Serviço ativo",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Em serviço ativo",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Serviciu activ",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Военный",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "V aktívnej službe",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Aktivna služba",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Активна војна служба",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Aktiv Tjänst",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const a = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Mwanajeshi wa Wakati Wote",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "ประจำการ",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Faal Görev",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "Дійсна служба",
@@ -1,9 +1,9 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  const e = {
9
9
  "defaultMessages.ACTIVE_DUTY": "سرگرم ڈیوٹی",
@@ -1,13 +1,13 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.114.0-alpha.5
4
- * BUILD_TIMESTAMP: 1751493102302
5
- * BUILD_DATE: Wed Jul 02 2025 21:51:42 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 5713bc45d42895c2ee2e9a9e5da1660e563ded4f
3
+ * VERSION: 2.114.0-alpha.6
4
+ * BUILD_TIMESTAMP: 1751507083158
5
+ * BUILD_DATE: Thu Jul 03 2025 01:44:43 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: d84b30bf8adccbad6cb5930a1a4341149780d3cf
7
7
  */
8
8
  import s from "react";
9
- import { i as r, l as q } from "./es6-BUJTYIpg.js";
10
- import { g as y } from "./VerificationApiUtils-B-nP7TJ0.js";
9
+ import { i as r, l as q } from "./es6-C_99KlFr.js";
10
+ import { g as y } from "./VerificationApiUtils-TVsND75s.js";
11
11
  const T = ({
12
12
  verificationId: n,
13
13
  currentStep: l,
@@ -1 +1 @@
1
- {"version":3,"file":"useCollectFieldsEndpoint-BZxXH0Ib.js","sources":["../../src/lib/ServerApi/useCollectFieldsEndpoint.ts"],"sourcesContent":["import React from \"react\";\nimport {\n CollectFieldsResponse,\n FieldDescription,\n VerificationStep,\n PersonalInfoViewModel,\n} from \"../types/types\";\nimport { getSafe } from \"../utils/getSafe\";\nimport { logger } from \"../utils/logger/logger\";\nimport { getFieldsToCollect } from \"./VerificationApiUtils\";\n\nexport const useCollectFieldsEndpoint = <VM extends PersonalInfoViewModel = PersonalInfoViewModel>({\n verificationId,\n currentStep,\n viewModel,\n defaultRequiredFields = [],\n}: {\n verificationId: string;\n currentStep: VerificationStep;\n viewModel: VM;\n defaultRequiredFields?: FieldDescription[];\n}) => {\n const status = \"status\" in viewModel ? viewModel.status : undefined;\n\n const [requiredFields, setRequiredFields] =\n React.useState<FieldDescription[]>(defaultRequiredFields);\n const [optionalFields, setOptionalFields] = React.useState<FieldDescription[]>([]);\n\n const isFieldRequired = (key: keyof VM) => requiredFields.some((field) => field.key === key);\n const isFieldOptional = (key: keyof VM) => optionalFields.some((field) => field.key === key);\n\n React.useEffect(() => {\n const abortController = new AbortController();\n\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getFieldsToCollect(\n verificationId,\n currentStep,\n viewModel,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n const newOptionalFields = getSafe(() => collectFieldsResponse.fieldsToCollect.optional, []);\n\n if (!abortController.signal.aborted) {\n setRequiredFields(newRequiredFields);\n setOptionalFields(newOptionalFields);\n }\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`, currentStep);\n }\n })();\n\n // Cleanup function\n return () => {\n abortController.abort();\n };\n }, [viewModel.countryChoice?.value, status]);\n\n return { isFieldRequired, isFieldOptional };\n};\n"],"names":["useCollectFieldsEndpoint","verificationId","currentStep","viewModel","defaultRequiredFields","status","requiredFields","setRequiredFields","React","optionalFields","setOptionalFields","isFieldRequired","key","field","isFieldOptional","abortController","collectFieldsResponse","getFieldsToCollect","newRequiredFields","getSafe","newOptionalFields","error","logger","_a"],"mappings":";;;AAWO,MAAMA,IAA2B,CAA2D;AAAA,EACjG,gBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,uBAAAC,IAAwB,CAAA;AAC1B,MAKM;;AACJ,QAAMC,IAAS,YAAYF,IAAYA,EAAU,SAAS,QAEpD,CAACG,GAAgBC,CAAiB,IACtCC,EAAM,SAA6BJ,CAAqB,GACpD,CAACK,GAAgBC,CAAiB,IAAIF,EAAM,SAA6B,CAAA,CAAE,GAE3EG,IAAkB,CAACC,MAAkBN,EAAe,KAAK,CAACO,MAAUA,EAAM,QAAQD,CAAG,GACrFE,IAAkB,CAACF,MAAkBH,EAAe,KAAK,CAACI,MAAUA,EAAM,QAAQD,CAAG;AAE3FJ,SAAAA,EAAM,UAAU,MAAM;AACd,UAAAO,IAAkB,IAAI,gBAAgB;AAE5C,YAAC,YAAY;AACP,UAAA;AACF,cAAMC,IAA+C,MAAMC;AAAA,UACzDhB;AAAA,UACAC;AAAA,UACAC;AAAA,QACF,GACMe,IAAoBC,EAAQ,MAAMH,EAAsB,gBAAgB,UAAU,EAAE,GACpFI,IAAoBD,EAAQ,MAAMH,EAAsB,gBAAgB,UAAU,EAAE;AAEtF,QAACD,EAAgB,OAAO,YAC1BR,EAAkBW,CAAiB,GACnCR,EAAkBU,CAAiB;AAAA,eAE9BC,GAAO;AACd,QAAAC,EAAO,MAAM,0CAA0CD,CAAK,IAAInB,CAAW;AAAA,MAAA;AAAA,IAC7E,GACC,GAGI,MAAM;AACX,MAAAa,EAAgB,MAAM;AAAA,IACxB;AAAA,KACC,EAACQ,IAAApB,EAAU,kBAAV,gBAAAoB,EAAyB,OAAOlB,CAAM,CAAC,GAEpC,EAAE,iBAAAM,GAAiB,iBAAAG,EAAgB;AAC5C;"}
1
+ {"version":3,"file":"useCollectFieldsEndpoint-Dikzi0_r.js","sources":["../../src/lib/ServerApi/useCollectFieldsEndpoint.ts"],"sourcesContent":["import React from \"react\";\nimport {\n CollectFieldsResponse,\n FieldDescription,\n VerificationStep,\n PersonalInfoViewModel,\n} from \"../types/types\";\nimport { getSafe } from \"../utils/getSafe\";\nimport { logger } from \"../utils/logger/logger\";\nimport { getFieldsToCollect } from \"./VerificationApiUtils\";\n\nexport const useCollectFieldsEndpoint = <VM extends PersonalInfoViewModel = PersonalInfoViewModel>({\n verificationId,\n currentStep,\n viewModel,\n defaultRequiredFields = [],\n}: {\n verificationId: string;\n currentStep: VerificationStep;\n viewModel: VM;\n defaultRequiredFields?: FieldDescription[];\n}) => {\n const status = \"status\" in viewModel ? viewModel.status : undefined;\n\n const [requiredFields, setRequiredFields] =\n React.useState<FieldDescription[]>(defaultRequiredFields);\n const [optionalFields, setOptionalFields] = React.useState<FieldDescription[]>([]);\n\n const isFieldRequired = (key: keyof VM) => requiredFields.some((field) => field.key === key);\n const isFieldOptional = (key: keyof VM) => optionalFields.some((field) => field.key === key);\n\n React.useEffect(() => {\n const abortController = new AbortController();\n\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getFieldsToCollect(\n verificationId,\n currentStep,\n viewModel,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n const newOptionalFields = getSafe(() => collectFieldsResponse.fieldsToCollect.optional, []);\n\n if (!abortController.signal.aborted) {\n setRequiredFields(newRequiredFields);\n setOptionalFields(newOptionalFields);\n }\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`, currentStep);\n }\n })();\n\n // Cleanup function\n return () => {\n abortController.abort();\n };\n }, [viewModel.countryChoice?.value, status]);\n\n return { isFieldRequired, isFieldOptional };\n};\n"],"names":["useCollectFieldsEndpoint","verificationId","currentStep","viewModel","defaultRequiredFields","status","requiredFields","setRequiredFields","React","optionalFields","setOptionalFields","isFieldRequired","key","field","isFieldOptional","abortController","collectFieldsResponse","getFieldsToCollect","newRequiredFields","getSafe","newOptionalFields","error","logger","_a"],"mappings":";;;AAWO,MAAMA,IAA2B,CAA2D;AAAA,EACjG,gBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,uBAAAC,IAAwB,CAAA;AAC1B,MAKM;;AACJ,QAAMC,IAAS,YAAYF,IAAYA,EAAU,SAAS,QAEpD,CAACG,GAAgBC,CAAiB,IACtCC,EAAM,SAA6BJ,CAAqB,GACpD,CAACK,GAAgBC,CAAiB,IAAIF,EAAM,SAA6B,CAAA,CAAE,GAE3EG,IAAkB,CAACC,MAAkBN,EAAe,KAAK,CAACO,MAAUA,EAAM,QAAQD,CAAG,GACrFE,IAAkB,CAACF,MAAkBH,EAAe,KAAK,CAACI,MAAUA,EAAM,QAAQD,CAAG;AAE3FJ,SAAAA,EAAM,UAAU,MAAM;AACd,UAAAO,IAAkB,IAAI,gBAAgB;AAE5C,YAAC,YAAY;AACP,UAAA;AACF,cAAMC,IAA+C,MAAMC;AAAA,UACzDhB;AAAA,UACAC;AAAA,UACAC;AAAA,QACF,GACMe,IAAoBC,EAAQ,MAAMH,EAAsB,gBAAgB,UAAU,EAAE,GACpFI,IAAoBD,EAAQ,MAAMH,EAAsB,gBAAgB,UAAU,EAAE;AAEtF,QAACD,EAAgB,OAAO,YAC1BR,EAAkBW,CAAiB,GACnCR,EAAkBU,CAAiB;AAAA,eAE9BC,GAAO;AACd,QAAAC,EAAO,MAAM,0CAA0CD,CAAK,IAAInB,CAAW;AAAA,MAAA;AAAA,IAC7E,GACC,GAGI,MAAM;AACX,MAAAa,EAAgB,MAAM;AAAA,IACxB;AAAA,KACC,EAACQ,IAAApB,EAAU,kBAAV,gBAAAoB,EAAyB,OAAOlB,CAAM,CAAC,GAEpC,EAAE,iBAAAM,GAAiB,iBAAAG,EAAgB;AAC5C;"}