@wise/dynamic-flow-client 3.11.6 → 3.12.0-experimental-kyc-camera-fae600d

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 (732) hide show
  1. package/build/common/cameraCapture/CameraCapture.js +161 -0
  2. package/build/common/cameraCapture/CameraCapture.messages.js +58 -0
  3. package/build/common/cameraCapture/CameraCapture.spec.js +447 -0
  4. package/build/common/cameraCapture/components/bottomBar/BottomBar.js +17 -0
  5. package/build/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.js +8 -0
  6. package/build/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.js +8 -0
  7. package/build/common/cameraCapture/hooks/useFullScreenOrientationLock.js +62 -0
  8. package/build/common/cameraCapture/hooks/useVideoConstraints.js +80 -0
  9. package/build/common/cameraCapture/overlay/Overlay.js +78 -0
  10. package/build/common/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.js +7 -0
  11. package/build/common/cameraCapture/tracking/index.js +109 -0
  12. package/build/common/cameraCapture/types/index.js +7 -0
  13. package/build/common/cameraCapture/utils/index.js +107 -0
  14. package/build/common/cameraCapture/utils/mobile-utils.js +23 -0
  15. package/build/common/cameraCapture/utils/mobile-utils.spec.js +71 -0
  16. package/build/common/errorBoundary/ErrorBoundary.js +44 -0
  17. package/build/common/errorBoundary/ErrorBoundaryAlert.js +12 -0
  18. package/build/common/httpClientContext/HttpClientContext.js +24 -0
  19. package/build/common/httpClientContext/index.js +1 -0
  20. package/build/common/makeHttpClient/index.js +1 -0
  21. package/build/common/makeHttpClient/makeHttpClient.js +30 -0
  22. package/build/common/makeHttpClient/makeHttpClient.spec.js +140 -0
  23. package/build/common/messages/external-confirmation.messages.js +23 -0
  24. package/build/common/messages/generic-error.messages.js +18 -0
  25. package/build/common/messages/help.messages.js +8 -0
  26. package/build/common/messages/multi-file-upload.messages.js +18 -0
  27. package/build/common/messages/multi-select.messages.js +8 -0
  28. package/build/common/messages/paragraph.messages.js +13 -0
  29. package/build/common/messages/repeatable.messages.js +23 -0
  30. package/build/common/messages/validation.array.messages.js +13 -0
  31. package/build/common/messages/validation.messages.js +53 -0
  32. package/build/common/utils/api-utils.js +4 -0
  33. package/build/common/utils/debounce.js +44 -0
  34. package/build/common/utils/debounce.spec.js +72 -0
  35. package/build/i18n/index.js +36 -0
  36. package/build/index.js +11 -0
  37. package/build/legacy/common/constants/DateMode.js +4 -0
  38. package/build/legacy/common/constants/FeatureName.js +4 -0
  39. package/build/legacy/common/constants/FormControlType.js +21 -0
  40. package/build/legacy/common/constants/MonthFormat.js +4 -0
  41. package/build/legacy/common/constants/Size.js +7 -0
  42. package/build/legacy/common/constants/index.js +4 -0
  43. package/build/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +25 -0
  44. package/build/legacy/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +15 -0
  45. package/build/legacy/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.spec.js +113 -0
  46. package/build/legacy/common/contexts/eventsContext/EventsContext.js +38 -0
  47. package/build/legacy/common/contexts/eventsContext/EventsContext.spec.js +47 -0
  48. package/build/legacy/common/contexts/featureContext/FeatureContext.js +11 -0
  49. package/build/legacy/common/contexts/featureContext/FeatureContext.spec.js +30 -0
  50. package/build/legacy/common/contexts/index.js +3 -0
  51. package/build/legacy/common/contexts/logContext/LogContext.js +44 -0
  52. package/build/legacy/common/contexts/logContext/LogContext.spec.js +43 -0
  53. package/build/legacy/common/hooks/index.js +7 -0
  54. package/build/legacy/common/hooks/useDebouncedFunction/useDebouncedFunction.js +9 -0
  55. package/build/legacy/common/hooks/useDebouncedFunction/useDebouncedFunction.spec.js +59 -0
  56. package/build/legacy/common/hooks/useExternal/useExternal.js +15 -0
  57. package/build/legacy/common/hooks/useExternal/useExternal.spec.js +236 -0
  58. package/build/legacy/common/hooks/useExternalStepPolling/useExternalStepPolling.js +71 -0
  59. package/build/legacy/common/hooks/usePersistAsync/usePersistAsync.js +172 -0
  60. package/build/legacy/common/hooks/usePersistAsync/usePersistAsync.spec.js +221 -0
  61. package/build/legacy/common/hooks/usePolling/usePolling.js +53 -0
  62. package/build/legacy/common/hooks/usePolling/usePolling.spec.js +243 -0
  63. package/build/legacy/common/hooks/usePrevious/usePrevious.js +8 -0
  64. package/build/legacy/common/hooks/usePrevious/usePrevious.spec.js +66 -0
  65. package/build/legacy/common/hooks/useStepPolling/useStepPolling.js +45 -0
  66. package/build/legacy/common/hooks/useStepPolling/useStepPolling.spec.js +288 -0
  67. package/build/legacy/common/messages.js +8 -0
  68. package/build/legacy/common/utils/api-utils.js +6 -0
  69. package/build/legacy/common/utils/date-utils.js +22 -0
  70. package/build/legacy/common/utils/file-utils.js +45 -0
  71. package/build/legacy/common/utils/file-utils.spec.js +69 -0
  72. package/build/legacy/common/utils/id-utils.js +5 -0
  73. package/build/legacy/common/utils/id-utils.spec.js +12 -0
  74. package/build/legacy/common/utils/index.js +11 -0
  75. package/build/legacy/common/utils/is-equal.js +21 -0
  76. package/build/legacy/common/utils/is-equal.spec.js +88 -0
  77. package/build/legacy/common/utils/misc-utils.js +4 -0
  78. package/build/legacy/common/utils/model-utils.js +33 -0
  79. package/build/legacy/common/utils/schema-utils.js +113 -0
  80. package/build/legacy/common/utils/step-utils.js +32 -0
  81. package/build/legacy/common/validators/index.js +5 -0
  82. package/build/legacy/common/validators/models/model-utils.js +119 -0
  83. package/build/legacy/common/validators/models/model-utils.spec.js +45 -0
  84. package/build/legacy/common/validators/models/model-validators.js +62 -0
  85. package/build/legacy/common/validators/models/model-validators.spec.js +647 -0
  86. package/build/legacy/common/validators/schemas/schema-validators.js +101 -0
  87. package/build/legacy/common/validators/schemas/schema-validators.spec.js +157 -0
  88. package/build/legacy/common/validators/types/type-validators.js +14 -0
  89. package/build/legacy/common/validators/types/type-validators.spec.js +147 -0
  90. package/build/legacy/common/validators/validationFailures/validation-failures.js +139 -0
  91. package/build/legacy/common/validators/validationFailures/validation-failures.spec.js +198 -0
  92. package/build/legacy/common/validators/validationFailures/validation-failures.utils.js +40 -0
  93. package/build/legacy/common/validators/validationFailures/validation-failures.utils.spec.js +145 -0
  94. package/build/legacy/common/validators/values/value-validators.js +6 -0
  95. package/build/legacy/common/validators/values/value-validators.spec.js +22 -0
  96. package/build/legacy/dynamic-flow-types.js +1 -0
  97. package/build/legacy/dynamicFlow/BackButton.js +22 -0
  98. package/build/legacy/dynamicFlow/DynamicFlow.js +347 -0
  99. package/build/legacy/dynamicFlow/DynamicFlowStep.js +37 -0
  100. package/build/legacy/dynamicFlow/DynamicFlowTypes.js +1 -0
  101. package/build/legacy/dynamicFlow/index.js +1 -0
  102. package/build/legacy/dynamicFlow/stories/dev-tools/DynamicFlow.story.js +78 -0
  103. package/build/legacy/dynamicFlow/stories/dev-tools/ErrorResponses.story.js +124 -0
  104. package/build/legacy/dynamicFlow/stories/dev-tools/Examples.story.js +25 -0
  105. package/build/legacy/dynamicFlow/stories/dev-tools/Features.story.js +33 -0
  106. package/build/legacy/dynamicFlow/stories/dev-tools/JsonSchemaForm.story.js +31 -0
  107. package/build/legacy/dynamicFlow/stories/dev-tools/RefreshOnChange.story.js +194 -0
  108. package/build/legacy/dynamicFlow/stories/dev-tools/SearchFeature.story.js +253 -0
  109. package/build/legacy/dynamicFlow/stories/dev-tools/ServerTest.story.js +44 -0
  110. package/build/legacy/dynamicFlow/stories/dev-tools/Upload.story.js +212 -0
  111. package/build/legacy/dynamicFlow/stories/dev-tools/ValidationAsync.story.js +156 -0
  112. package/build/legacy/dynamicFlow/stories/examples/ObjectConst.story.js +150 -0
  113. package/build/legacy/dynamicFlow/stories/fixtureHttpClient.js +117 -0
  114. package/build/legacy/dynamicFlow/stories/visual-tests/VisualTests.story.js +43 -0
  115. package/build/legacy/dynamicFlow/tests/Actions.spec.js +232 -0
  116. package/build/legacy/dynamicFlow/tests/AllOfSchema.spec.js +196 -0
  117. package/build/legacy/dynamicFlow/tests/AutocompleteHints.spec.js +59 -0
  118. package/build/legacy/dynamicFlow/tests/DynamicFlow.BackButton.spec.js +179 -0
  119. package/build/legacy/dynamicFlow/tests/DynamicFlow.InitialAction.spec.js +458 -0
  120. package/build/legacy/dynamicFlow/tests/DynamicFlow.InitialStep.spec.js +734 -0
  121. package/build/legacy/dynamicFlow/tests/DynamicFlow.LoaderConfig.spec.js +254 -0
  122. package/build/legacy/dynamicFlow/tests/DynamicFlow.legacy.spec.js +1202 -0
  123. package/build/legacy/dynamicFlow/tests/DynamicFlow.search.spec.js +475 -0
  124. package/build/legacy/dynamicFlow/tests/DynamicFlow.spec.js +559 -0
  125. package/build/legacy/dynamicFlow/tests/DynamicImage.spec.js +287 -0
  126. package/build/legacy/dynamicFlow/tests/DynamicInstructions.spec.js +49 -0
  127. package/build/legacy/dynamicFlow/tests/HiddenSchemas.spec.js +307 -0
  128. package/build/legacy/dynamicFlow/tests/ModalLayout.spec.js +252 -0
  129. package/build/legacy/dynamicFlow/tests/MultiSelect.spec.js +327 -0
  130. package/build/legacy/dynamicFlow/tests/MultipleFileUploadSchema.spec.js +401 -0
  131. package/build/legacy/dynamicFlow/tests/ObjectSchema.spec.js +295 -0
  132. package/build/legacy/dynamicFlow/tests/OneOfSchema.spec.js +773 -0
  133. package/build/legacy/dynamicFlow/tests/PersistAsync.blob-schema.spec.js +331 -0
  134. package/build/legacy/dynamicFlow/tests/PersistAsync.string-schema.spec.js +389 -0
  135. package/build/legacy/dynamicFlow/tests/RefreshStepOnChange.debouncing.spec.js +391 -0
  136. package/build/legacy/dynamicFlow/tests/RefreshStepOnChange.spec.js +588 -0
  137. package/build/legacy/dynamicFlow/tests/RepeatableSchema.spec.js +977 -0
  138. package/build/legacy/dynamicFlow/tests/StepModel.spec.js +119 -0
  139. package/build/legacy/dynamicFlow/tests/ValidationAsync.spec.js +484 -0
  140. package/build/legacy/dynamicFlow/tests/ssr.spec.js +47 -0
  141. package/build/legacy/dynamicFlow/utils/index.js +5 -0
  142. package/build/legacy/dynamicFlow/utils/responseParsers/response-parsers.js +185 -0
  143. package/build/legacy/dynamicFlow/utils/responseParsers/response-parsers.spec.js +463 -0
  144. package/build/legacy/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js +35 -0
  145. package/build/legacy/dynamicFlow/utils/useDynamicFlowState.js +137 -0
  146. package/build/legacy/dynamicFlow/utils/useErrorResponse.js +62 -0
  147. package/build/legacy/dynamicFlow/utils/useLoader.js +22 -0
  148. package/build/legacy/formControl/FormControl.js +267 -0
  149. package/build/legacy/formControl/FormControl.spec.js +445 -0
  150. package/build/legacy/formControl/Select.spec.js +104 -0
  151. package/build/legacy/formControl/index.js +1 -0
  152. package/build/legacy/formControl/utils/getAutocompleteString.js +80 -0
  153. package/build/legacy/formControl/utils/getAutocompleteString.spec.js +30 -0
  154. package/build/legacy/formControl/utils/index.js +2 -0
  155. package/build/legacy/formControl/utils/value-utils.js +108 -0
  156. package/build/legacy/formControl/utils/value-utils.spec.js +158 -0
  157. package/build/legacy/jsonSchemaForm/JsonSchemaForm.end-to-end.spec.js +534 -0
  158. package/build/legacy/jsonSchemaForm/JsonSchemaForm.js +24 -0
  159. package/build/legacy/jsonSchemaForm/JsonSchemaForm.spec.js +77 -0
  160. package/build/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.js +50 -0
  161. package/build/legacy/jsonSchemaForm/allOfSchema/index.js +1 -0
  162. package/build/legacy/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +25 -0
  163. package/build/legacy/jsonSchemaForm/arrayTypeSchema/ArrayTypeSchema.spec.js +50 -0
  164. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +34 -0
  165. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +1 -0
  166. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multiSelectSchema/MultiSelectSchema.js +86 -0
  167. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +141 -0
  168. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +1 -0
  169. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js +2 -0
  170. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js +79 -0
  171. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +14 -0
  172. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.js +7 -0
  173. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.js +134 -0
  174. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.js +85 -0
  175. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.js +135 -0
  176. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.spec.js +909 -0
  177. package/build/legacy/jsonSchemaForm/arrayTypeSchema/index.js +1 -0
  178. package/build/legacy/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.errors.spec.js +233 -0
  179. package/build/legacy/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +100 -0
  180. package/build/legacy/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.spec.js +291 -0
  181. package/build/legacy/jsonSchemaForm/basicTypeSchema/index.js +1 -0
  182. package/build/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.js +89 -0
  183. package/build/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.spec.js +182 -0
  184. package/build/legacy/jsonSchemaForm/controlFeedback/index.js +1 -0
  185. package/build/legacy/jsonSchemaForm/genericSchema/GenericSchema.js +85 -0
  186. package/build/legacy/jsonSchemaForm/genericSchema/GenericSchema.rtl.spec.js +55 -0
  187. package/build/legacy/jsonSchemaForm/genericSchema/GenericSchema.spec.js +334 -0
  188. package/build/legacy/jsonSchemaForm/genericSchema/index.js +1 -0
  189. package/build/legacy/jsonSchemaForm/help/Help.js +9 -0
  190. package/build/legacy/jsonSchemaForm/help/Help.spec.js +61 -0
  191. package/build/legacy/jsonSchemaForm/help/index.js +1 -0
  192. package/build/legacy/jsonSchemaForm/index.js +1 -0
  193. package/build/legacy/jsonSchemaForm/objectSchema/ObjectSchema.js +77 -0
  194. package/build/legacy/jsonSchemaForm/objectSchema/index.js +1 -0
  195. package/build/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.js +155 -0
  196. package/build/legacy/jsonSchemaForm/oneOfSchema/index.js +1 -0
  197. package/build/legacy/jsonSchemaForm/oneOfSchema/utils.js +68 -0
  198. package/build/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +26 -0
  199. package/build/legacy/jsonSchemaForm/persistAsyncSchema/index.js +1 -0
  200. package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +165 -0
  201. package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js +1 -0
  202. package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +131 -0
  203. package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +31 -0
  204. package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.spec.js +243 -0
  205. package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js +1 -0
  206. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +72 -0
  207. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.spec.js +420 -0
  208. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/index.js +1 -0
  209. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js +8 -0
  210. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +16 -0
  211. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.spec.js +125 -0
  212. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +31 -0
  213. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.spec.js +82 -0
  214. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +32 -0
  215. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.spec.js +130 -0
  216. package/build/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +54 -0
  217. package/build/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +13 -0
  218. package/build/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.spec.js +117 -0
  219. package/build/legacy/jsonSchemaForm/readOnlySchema/index.js +1 -0
  220. package/build/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +138 -0
  221. package/build/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.spec.js +312 -0
  222. package/build/legacy/jsonSchemaForm/schemaFormControl/index.js +1 -0
  223. package/build/legacy/jsonSchemaForm/schemaFormControl/utils/index.js +1 -0
  224. package/build/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +107 -0
  225. package/build/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.spec.js +220 -0
  226. package/build/legacy/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +150 -0
  227. package/build/legacy/jsonSchemaForm/validationAsyncSchema/index.js +1 -0
  228. package/build/legacy/layout/DynamicLayout.end-to-end.spec.js +71 -0
  229. package/build/legacy/layout/DynamicLayout.js +68 -0
  230. package/build/legacy/layout/DynamicLayout.spec.js +243 -0
  231. package/build/legacy/layout/alert/DynamicAlert.js +29 -0
  232. package/build/legacy/layout/alert/DynamicAlert.spec.js +42 -0
  233. package/build/legacy/layout/box/DynamicBox.js +30 -0
  234. package/build/legacy/layout/box/DynamicBox.spec.js +56 -0
  235. package/build/legacy/layout/button/DynamicButton.js +16 -0
  236. package/build/legacy/layout/button/DynamicButton.spec.js +141 -0
  237. package/build/legacy/layout/button/utils.js +45 -0
  238. package/build/legacy/layout/button/utils.spec.js +50 -0
  239. package/build/legacy/layout/columns/DynamicColumns.js +27 -0
  240. package/build/legacy/layout/columns/DynamicColumns.spec.js +83 -0
  241. package/build/legacy/layout/decision/DynamicDecision.js +10 -0
  242. package/build/legacy/layout/decision/DynamicDecision.spec.js +146 -0
  243. package/build/legacy/layout/divider/DynamicDivider.js +9 -0
  244. package/build/legacy/layout/divider/DynamicDivider.spec.js +17 -0
  245. package/build/legacy/layout/external/DynamicExternal.js +32 -0
  246. package/build/legacy/layout/external/DynamicExternal.messages.js +8 -0
  247. package/build/legacy/layout/external/DynamicExternal.spec.js +264 -0
  248. package/build/legacy/layout/form/DynamicForm.js +22 -0
  249. package/build/legacy/layout/form/DynamicForm.spec.js +74 -0
  250. package/build/legacy/layout/heading/DynamicHeading.js +40 -0
  251. package/build/legacy/layout/heading/DynamicHeading.spec.js +14 -0
  252. package/build/legacy/layout/icon/DynamicIcon.js +17 -0
  253. package/build/legacy/layout/icon/DynamicIcon.spec.js +20 -0
  254. package/build/legacy/layout/icon/FlagIcon.js +11 -0
  255. package/build/legacy/layout/icon/NamedIcon.js +19 -0
  256. package/build/legacy/layout/image/DynamicImage.js +112 -0
  257. package/build/legacy/layout/index.js +20 -0
  258. package/build/legacy/layout/instructions/DynamicInstructions.js +19 -0
  259. package/build/legacy/layout/list/DynamicStatusList.js +37 -0
  260. package/build/legacy/layout/list/DynamicStatusList.spec.js +111 -0
  261. package/build/legacy/layout/loadingIndicator/DynamicLoadingIndicator.js +11 -0
  262. package/build/legacy/layout/loadingIndicator/DynamicLoadingIndicator.spec.js +25 -0
  263. package/build/legacy/layout/markdown/DynamicMarkdown.js +12 -0
  264. package/build/legacy/layout/markdown/DynamicMarkdown.spec.js +58 -0
  265. package/build/legacy/layout/modal/DynamicModal.js +26 -0
  266. package/build/legacy/layout/paragraph/DynamicParagraph.js +35 -0
  267. package/build/legacy/layout/paragraph/DynamicParagraph.spec.js +109 -0
  268. package/build/legacy/layout/paragraph/useSnackBarIfAvailable.js +9 -0
  269. package/build/legacy/layout/review/DynamicReview.js +59 -0
  270. package/build/legacy/layout/review/DynamicReview.spec.js +152 -0
  271. package/build/legacy/layout/search/DynamicSearch.js +83 -0
  272. package/build/legacy/layout/search/SearchInput.js +6 -0
  273. package/build/legacy/layout/search/SearchResults.js +20 -0
  274. package/build/legacy/layout/search/useSearch.js +137 -0
  275. package/build/legacy/layout/utils/getNavigationOptionMedia.js +17 -0
  276. package/build/legacy/layout/utils/index.js +32 -0
  277. package/build/legacy/step/cameraStep/CameraStep.js +124 -0
  278. package/build/legacy/step/cameraStep/index.js +1 -0
  279. package/build/legacy/step/externalConfirmationStep/ExternalConfirmationStep.js +64 -0
  280. package/build/legacy/step/externalConfirmationStep/index.js +1 -0
  281. package/build/legacy/step/index.js +3 -0
  282. package/build/legacy/step/layoutStep/LayoutStep.js +33 -0
  283. package/build/legacy/step/layoutStep/LayoutStep.spec.js +189 -0
  284. package/build/legacy/step/layoutStep/index.js +1 -0
  285. package/build/legacy/step/layoutStep/utils/index.js +2 -0
  286. package/build/legacy/step/layoutStep/utils/inline-reference-utils.js +105 -0
  287. package/build/legacy/step/layoutStep/utils/inline-reference-utils.spec.js +296 -0
  288. package/build/legacy/step/layoutStep/utils/layout-utils.js +212 -0
  289. package/build/legacy/step/layoutStep/utils/layout-utils.spec.js +558 -0
  290. package/build/legacy/test-utils/DynamicFlowProviders.js +8 -0
  291. package/build/legacy/test-utils/index.js +4 -0
  292. package/build/legacy/test-utils/legacy-utils.js +69 -0
  293. package/build/legacy/test-utils/log-utils.js +9 -0
  294. package/build/main.js +856 -1068
  295. package/build/main.min.js +1 -1
  296. package/build/main.mjs +847 -1059
  297. package/build/revamp/DynamicFlowCore.js +25 -0
  298. package/build/revamp/DynamicFlowWise.js +32 -0
  299. package/build/revamp/DynamicFlowWise.spec.js +105 -0
  300. package/build/revamp/DynamicFragmentWise.js +83 -0
  301. package/build/revamp/domain/components/AlertComponent.js +50 -0
  302. package/build/revamp/domain/components/AllOfComponent.js +72 -0
  303. package/build/revamp/domain/components/BooleanInputComponent.js +109 -0
  304. package/build/revamp/domain/components/BoxComponent.js +65 -0
  305. package/build/revamp/domain/components/ButtonComponent.js +50 -0
  306. package/build/revamp/domain/components/ColumnsComponent.js +74 -0
  307. package/build/revamp/domain/components/ConstComponent.js +50 -0
  308. package/build/revamp/domain/components/ContainerComponent.js +65 -0
  309. package/build/revamp/domain/components/DateInputComponent.js +128 -0
  310. package/build/revamp/domain/components/DecisionComponent.js +50 -0
  311. package/build/revamp/domain/components/DividerComponent.js +50 -0
  312. package/build/revamp/domain/components/FormComponent.js +65 -0
  313. package/build/revamp/domain/components/HeadingComponent.js +50 -0
  314. package/build/revamp/domain/components/ImageComponent.js +50 -0
  315. package/build/revamp/domain/components/InstructionsComponent.js +50 -0
  316. package/build/revamp/domain/components/IntegerInputComponent.js +129 -0
  317. package/build/revamp/domain/components/LoadingIndicatorComponent.js +50 -0
  318. package/build/revamp/domain/components/MarkdownComponent.js +50 -0
  319. package/build/revamp/domain/components/ModalComponent.js +65 -0
  320. package/build/revamp/domain/components/MultiSelectInputComponent.js +148 -0
  321. package/build/revamp/domain/components/MultiUploadInputComponent.js +192 -0
  322. package/build/revamp/domain/components/NumberInputComponent.js +129 -0
  323. package/build/revamp/domain/components/ObjectComponent.js +104 -0
  324. package/build/revamp/domain/components/ParagraphComponent.js +50 -0
  325. package/build/revamp/domain/components/ReviewComponent.js +50 -0
  326. package/build/revamp/domain/components/SelectInputComponent.js +140 -0
  327. package/build/revamp/domain/components/StatusListComponent.js +50 -0
  328. package/build/revamp/domain/components/StepDomainComponent.js +87 -0
  329. package/build/revamp/domain/components/TextInputComponent.js +129 -0
  330. package/build/revamp/domain/components/UploadInputComponent.js +154 -0
  331. package/build/revamp/domain/components/repeatableComponent/RepeatableComponent.js +150 -0
  332. package/build/revamp/domain/components/repeatableComponent/RepeatableComponent.spec.js +146 -0
  333. package/build/revamp/domain/components/searchComponent/SearchComponent.js +111 -0
  334. package/build/revamp/domain/components/searchComponent/SearchComponent.spec.js +327 -0
  335. package/build/revamp/domain/components/utils/component-utils.js +18 -0
  336. package/build/revamp/domain/components/utils/debounce.js +38 -0
  337. package/build/revamp/domain/components/utils/debounce.spec.js +72 -0
  338. package/build/revamp/domain/components/utils/file-utils.js +65 -0
  339. package/build/revamp/domain/components/utils/file-utils.spec.js +81 -0
  340. package/build/revamp/domain/components/utils/getComponentForLocalValueKey.js +31 -0
  341. package/build/revamp/domain/components/utils/isPartialLocalValueMatch.js +41 -0
  342. package/build/revamp/domain/components/utils/isPartialLocalValueMatch.spec.js +119 -0
  343. package/build/revamp/domain/components/utils/local-value.js +11 -0
  344. package/build/revamp/domain/features/events.js +1 -0
  345. package/build/revamp/domain/features/persistAsync/getComponentPersistAsync.js +134 -0
  346. package/build/revamp/domain/features/persistAsync/getComponentPersistAsync.spec.js +200 -0
  347. package/build/revamp/domain/features/persistAsync/getInitialPersistedState.js +6 -0
  348. package/build/revamp/domain/features/persistAsync/getPerformPersistAsync.js +103 -0
  349. package/build/revamp/domain/features/persistAsync/getPerformPersistAsync.spec.js +280 -0
  350. package/build/revamp/domain/features/polling/getStepPolling.js +82 -0
  351. package/build/revamp/domain/features/polling/getStepPolling.spec.js +170 -0
  352. package/build/revamp/domain/features/refresh/getPerformRefresh.js +16 -0
  353. package/build/revamp/domain/features/search/getPerformSearchFunction.js +104 -0
  354. package/build/revamp/domain/features/search/getPerformSearchFunction.spec.js +260 -0
  355. package/build/revamp/domain/features/summary/summary-utils.js +39 -0
  356. package/build/revamp/domain/features/summary/summary-utils.spec.js +110 -0
  357. package/build/revamp/domain/features/utils/http-utils.js +34 -0
  358. package/build/revamp/domain/features/utils/response-utils.js +9 -0
  359. package/build/revamp/domain/features/validation/spec-utils.js +16 -0
  360. package/build/revamp/domain/features/validation/validation-functions.js +12 -0
  361. package/build/revamp/domain/features/validation/validation-functions.spec.js +110 -0
  362. package/build/revamp/domain/features/validation/value-checks.js +111 -0
  363. package/build/revamp/domain/features/validation/value-checks.spec.js +204 -0
  364. package/build/revamp/domain/features/validationAsync/getComponentValidationAsync.js +95 -0
  365. package/build/revamp/domain/features/validationAsync/getComponentValidationAsync.spec.js +178 -0
  366. package/build/revamp/domain/features/validationAsync/getInitialValidationState.js +5 -0
  367. package/build/revamp/domain/features/validationAsync/getPerformValidationAsync.js +107 -0
  368. package/build/revamp/domain/features/validationAsync/getPerformValidationAsync.spec.js +266 -0
  369. package/build/revamp/domain/mappers/layout/alertLayoutToComponent.js +12 -0
  370. package/build/revamp/domain/mappers/layout/boxLayoutToComponents.js +15 -0
  371. package/build/revamp/domain/mappers/layout/buttonLayoutToComponent.js +45 -0
  372. package/build/revamp/domain/mappers/layout/columnsLayoutToComponent.js +18 -0
  373. package/build/revamp/domain/mappers/layout/decisionLayoutToComponent.js +40 -0
  374. package/build/revamp/domain/mappers/layout/dividerLayoutToComponent.js +5 -0
  375. package/build/revamp/domain/mappers/layout/formLayoutToComponent.js +27 -0
  376. package/build/revamp/domain/mappers/layout/headingLayoutToComponent.js +13 -0
  377. package/build/revamp/domain/mappers/layout/imageLayoutToComponent.js +12 -0
  378. package/build/revamp/domain/mappers/layout/infoLayoutToComponent.js +12 -0
  379. package/build/revamp/domain/mappers/layout/instructionsLayoutToComponent.js +18 -0
  380. package/build/revamp/domain/mappers/layout/listLayoutToComponent.js +30 -0
  381. package/build/revamp/domain/mappers/layout/loadingIndicatorLayoutToComponent.js +5 -0
  382. package/build/revamp/domain/mappers/layout/markdownLayoutToComponent.js +12 -0
  383. package/build/revamp/domain/mappers/layout/modalLayoutToComponent.js +17 -0
  384. package/build/revamp/domain/mappers/layout/paragraphLayoutToComponent.js +12 -0
  385. package/build/revamp/domain/mappers/layout/reviewLayoutToComponent.js +51 -0
  386. package/build/revamp/domain/mappers/layout/searchLayoutToComponent.js +14 -0
  387. package/build/revamp/domain/mappers/layout/statusListLayoutToComponent.js +11 -0
  388. package/build/revamp/domain/mappers/mapLayoutToComponent.js +63 -0
  389. package/build/revamp/domain/mappers/mapSchemaToComponent.js +84 -0
  390. package/build/revamp/domain/mappers/mapSchemaToComponent.spec.js +197 -0
  391. package/build/revamp/domain/mappers/mapStepToComponent.js +133 -0
  392. package/build/revamp/domain/mappers/mapStepToComponent.spec.js +162 -0
  393. package/build/revamp/domain/mappers/schema/allOfSchemaToComponent.js +29 -0
  394. package/build/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToComponent.js +42 -0
  395. package/build/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToMultiSelectComponent.js +54 -0
  396. package/build/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToMultiUploadComponent.js +64 -0
  397. package/build/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToRepeatableComponent.js +66 -0
  398. package/build/revamp/domain/mappers/schema/blobSchemaToComponent.js +30 -0
  399. package/build/revamp/domain/mappers/schema/booleanSchemaToComponent.js +38 -0
  400. package/build/revamp/domain/mappers/schema/constSchemaToComponent.js +14 -0
  401. package/build/revamp/domain/mappers/schema/integerSchemaToComponent.js +36 -0
  402. package/build/revamp/domain/mappers/schema/numberSchemaToComponent.js +35 -0
  403. package/build/revamp/domain/mappers/schema/objectSchemaToComponent/objectSchemaToComponent.js +41 -0
  404. package/build/revamp/domain/mappers/schema/objectSchemaToComponent/objectSchemaToComponent.spec.js +165 -0
  405. package/build/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.js +67 -0
  406. package/build/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.spec.js +316 -0
  407. package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.js +14 -0
  408. package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.spec.js +220 -0
  409. package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToDateInputComponent.js +37 -0
  410. package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToTextInputComponent.js +45 -0
  411. package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToUploadInputComponent.js +37 -0
  412. package/build/revamp/domain/mappers/schema/tests/test-utils.js +27 -0
  413. package/build/revamp/domain/mappers/schema/types.js +1 -0
  414. package/build/revamp/domain/mappers/schema/utils/getPersistAsyncInitialState.js +35 -0
  415. package/build/revamp/domain/mappers/schema/utils/getValidationAsyncInitialState.js +25 -0
  416. package/build/revamp/domain/mappers/schema/utils/mapCommonSchemaProps.js +28 -0
  417. package/build/revamp/domain/mappers/types.js +1 -0
  418. package/build/revamp/domain/mappers/utils/getAutocompleteString.js +76 -0
  419. package/build/revamp/domain/mappers/utils/getAutocompleteString.spec.js +21 -0
  420. package/build/revamp/domain/mappers/utils/getRandomId.js +2 -0
  421. package/build/revamp/domain/mappers/utils/inlineAction.js +23 -0
  422. package/build/revamp/domain/mappers/utils/legacy-utils.js +53 -0
  423. package/build/revamp/domain/types.js +1 -0
  424. package/build/revamp/flow/executeRefresh.js +97 -0
  425. package/build/revamp/flow/executeSubmission.js +160 -0
  426. package/build/revamp/flow/getResponseType.js +76 -0
  427. package/build/revamp/flow/response-utils.js +92 -0
  428. package/build/revamp/renderers/CoreContainerRenderer.js +8 -0
  429. package/build/revamp/renderers/getRenderFunction.js +55 -0
  430. package/build/revamp/renderers/getSchemaErrorMessageFunction.js +90 -0
  431. package/build/revamp/renderers/mappers/alertComponentToProps.js +4 -0
  432. package/build/revamp/renderers/mappers/allOfComponentToProps.js +11 -0
  433. package/build/revamp/renderers/mappers/booleanInputComponentToProps.js +16 -0
  434. package/build/revamp/renderers/mappers/boxComponentToProps.js +4 -0
  435. package/build/revamp/renderers/mappers/buttonComponentToProps.js +14 -0
  436. package/build/revamp/renderers/mappers/columnsComponentToProps.js +4 -0
  437. package/build/revamp/renderers/mappers/componentToRendererProps.js +108 -0
  438. package/build/revamp/renderers/mappers/containerComponentToProps.js +4 -0
  439. package/build/revamp/renderers/mappers/dateInputComponentToProps.js +13 -0
  440. package/build/revamp/renderers/mappers/decisionComponentToProps.js +4 -0
  441. package/build/revamp/renderers/mappers/dividerComponentToProps.js +4 -0
  442. package/build/revamp/renderers/mappers/formComponentToProps.js +4 -0
  443. package/build/revamp/renderers/mappers/headingComponentToProps.js +11 -0
  444. package/build/revamp/renderers/mappers/hiddenComponentToProps.js +3 -0
  445. package/build/revamp/renderers/mappers/imageComponentToProps.js +11 -0
  446. package/build/revamp/renderers/mappers/instructionsComponentToProps.js +10 -0
  447. package/build/revamp/renderers/mappers/integerInputComponentToProps.js +13 -0
  448. package/build/revamp/renderers/mappers/loadingIndicatorComponentToProps.js +9 -0
  449. package/build/revamp/renderers/mappers/markdownComponentToProps.js +10 -0
  450. package/build/revamp/renderers/mappers/modalComponentToProps.js +10 -0
  451. package/build/revamp/renderers/mappers/multiSelectComponentToProps.js +28 -0
  452. package/build/revamp/renderers/mappers/multiUploadInputComponentToProps.js +24 -0
  453. package/build/revamp/renderers/mappers/numberInputComponentToProps.js +13 -0
  454. package/build/revamp/renderers/mappers/objectComponentToProps.js +11 -0
  455. package/build/revamp/renderers/mappers/paragraphComponentToProps.js +10 -0
  456. package/build/revamp/renderers/mappers/repeatableComponentToProps.js +40 -0
  457. package/build/revamp/renderers/mappers/reviewComponentToProps.js +11 -0
  458. package/build/revamp/renderers/mappers/searchComponentToProps.js +53 -0
  459. package/build/revamp/renderers/mappers/selectInputComponentToProps.js +29 -0
  460. package/build/revamp/renderers/mappers/statusListComponentToProps.js +10 -0
  461. package/build/revamp/renderers/mappers/textInputComponentToProps.js +13 -0
  462. package/build/revamp/renderers/mappers/uploadInputComponentToProps.js +16 -0
  463. package/build/revamp/renderers/mappers/utils/inputComponentToProps.js +27 -0
  464. package/build/revamp/renderers/stepComponentToProps.js +16 -0
  465. package/build/revamp/renderers/types.js +1 -0
  466. package/build/revamp/stories/dev-tools/ActionResponse.story.js +101 -0
  467. package/build/revamp/stories/dev-tools/DynamicFlowRevamp.story.js +314 -0
  468. package/build/revamp/stories/dev-tools/EditableStep.story.js +71 -0
  469. package/build/revamp/stories/dev-tools/ErrorHandling.story.js +149 -0
  470. package/build/revamp/stories/dev-tools/External.story.js +83 -0
  471. package/build/revamp/stories/dev-tools/OneOf.Inititalisation.story.js +123 -0
  472. package/build/revamp/stories/dev-tools/PersistAsync.story.js +168 -0
  473. package/build/revamp/stories/dev-tools/Polling.story.js +79 -0
  474. package/build/revamp/stories/dev-tools/RefreshOnChange.story.js +309 -0
  475. package/build/revamp/stories/dev-tools/RefreshOnChange.with.PersistAsync.story.js +1004 -0
  476. package/build/revamp/stories/dev-tools/SearchFeature.story.js +260 -0
  477. package/build/revamp/stories/dev-tools/ServerTest.story.js +86 -0
  478. package/build/revamp/stories/dev-tools/Upload.story.js +221 -0
  479. package/build/revamp/stories/dev-tools/ValidationAsync.story.js +161 -0
  480. package/build/revamp/stories/examples/KYCCameraStep.story.js +83 -0
  481. package/build/revamp/stories/examples/ObjectConst.story.js +153 -0
  482. package/build/revamp/stories/examples/OneOfInitialisation.story.js +102 -0
  483. package/build/revamp/stories/utils/fixtureHttpClient.js +130 -0
  484. package/build/revamp/stories/utils/mockSearchHandler.js +125 -0
  485. package/build/revamp/stories/visual-tests/VisualTests.story.js +114 -0
  486. package/build/revamp/test-utils/component-utils.js +19 -0
  487. package/build/revamp/test-utils/step-utils.js +6 -0
  488. package/build/revamp/tests/ImageRenderer.spec.js +108 -0
  489. package/build/revamp/tests/InitialAction.spec.js +299 -0
  490. package/build/revamp/tests/InitialStep.spec.js +104 -0
  491. package/build/revamp/tests/Logging.spec.js +112 -0
  492. package/build/revamp/tests/OneOfInitialisation.spec.js +876 -0
  493. package/build/revamp/tests/Polling.spec.js +611 -0
  494. package/build/revamp/tests/RefreshOnChange.ResponseHandling.spec.js +322 -0
  495. package/build/revamp/tests/RefreshOnChange.with.Segmented.spec.js +447 -0
  496. package/build/revamp/tests/RefreshOnChange.with.Tabs.spec.js +447 -0
  497. package/build/revamp/tests/RefreshOnChangePreserve.spec.js +341 -0
  498. package/build/revamp/tests/Rerendering.spec.js +156 -0
  499. package/build/revamp/tests/SegmentedControl.spec.js +48 -0
  500. package/build/revamp/tests/Submission.ResponseHandling.spec.js +697 -0
  501. package/build/revamp/tests/Submission.spec.js +399 -0
  502. package/build/revamp/tests/legacy/Actions.spec.js +242 -0
  503. package/build/revamp/tests/legacy/BackButton.spec.js +189 -0
  504. package/build/revamp/tests/legacy/HiddenSchemas.spec.js +312 -0
  505. package/build/revamp/tests/legacy/MultiSelect.spec.js +753 -0
  506. package/build/revamp/tests/legacy/MultipleFileUploadSchema.spec.js +447 -0
  507. package/build/revamp/tests/legacy/PersistAsync.blob-schema.spec.js +339 -0
  508. package/build/revamp/tests/legacy/PersistAsync.string-schema.spec.js +385 -0
  509. package/build/revamp/tests/legacy/RefreshStepOnChange.debouncing.spec.js +352 -0
  510. package/build/revamp/tests/legacy/RefreshStepOnChange.spec.js +623 -0
  511. package/build/revamp/tests/legacy/Search.spec.js +501 -0
  512. package/build/revamp/tests/legacy/ValidationAsync.spec.js +452 -0
  513. package/build/revamp/tests/legacy/useExternal.spec.js +235 -0
  514. package/build/revamp/types.js +1 -0
  515. package/build/revamp/useDynamicFlowCore.js +285 -0
  516. package/build/revamp/utils/component-utils.js +86 -0
  517. package/build/revamp/utils/component-utils.spec.js +385 -0
  518. package/build/revamp/utils/findComponent.js +29 -0
  519. package/build/revamp/utils/findComponent.spec.js +92 -0
  520. package/build/revamp/utils/type-utils.js +59 -0
  521. package/build/revamp/utils/type-validators.js +16 -0
  522. package/build/revamp/utils/type-validators.spec.js +163 -0
  523. package/build/revamp/utils/useStableCallback.js +21 -0
  524. package/build/revamp/wise/renderers/AlertRenderer.js +11 -0
  525. package/build/revamp/wise/renderers/BooleanInputRenderer.js +34 -0
  526. package/build/revamp/wise/renderers/BoxRenderer.js +19 -0
  527. package/build/revamp/wise/renderers/ButtonRenderer.js +53 -0
  528. package/build/revamp/wise/renderers/ColumnsRenderer.js +14 -0
  529. package/build/revamp/wise/renderers/DateInputRenderer.js +35 -0
  530. package/build/revamp/wise/renderers/DecisionRenderer.js +18 -0
  531. package/build/revamp/wise/renderers/DividerRenderer.js +10 -0
  532. package/build/revamp/wise/renderers/FormRenderer.js +10 -0
  533. package/build/revamp/wise/renderers/FormSectionRenderer.js +16 -0
  534. package/build/revamp/wise/renderers/HeadingRenderer.js +57 -0
  535. package/build/revamp/wise/renderers/ImageRenderer.js +112 -0
  536. package/build/revamp/wise/renderers/InstructionsRenderer.js +23 -0
  537. package/build/revamp/wise/renderers/IntegerInputRenderer.js +38 -0
  538. package/build/revamp/wise/renderers/LoadingIndicatorRenderer.js +11 -0
  539. package/build/revamp/wise/renderers/MarkdownRenderer.js +11 -0
  540. package/build/revamp/wise/renderers/ModalRenderer.js +25 -0
  541. package/build/revamp/wise/renderers/MultiSelectInputRenderer.js +84 -0
  542. package/build/revamp/wise/renderers/MultiUploadInputRenderer.js +63 -0
  543. package/build/revamp/wise/renderers/NumberInputRenderer.js +38 -0
  544. package/build/revamp/wise/renderers/ParagraphRenderer.js +45 -0
  545. package/build/revamp/wise/renderers/RepeatableRenderer.js +58 -0
  546. package/build/revamp/wise/renderers/ReviewRenderer.js +50 -0
  547. package/build/revamp/wise/renderers/SearchRenderer/BlockSearchRendererComponent.js +59 -0
  548. package/build/revamp/wise/renderers/SearchRenderer/ErrorResult.js +11 -0
  549. package/build/revamp/wise/renderers/SearchRenderer/InlineSearchRendererComponent.js +63 -0
  550. package/build/revamp/wise/renderers/SearchRenderer/SearchRenderer.js +21 -0
  551. package/build/revamp/wise/renderers/SelectInputRenderer/OptionMedia.js +16 -0
  552. package/build/revamp/wise/renderers/SelectInputRenderer/RadioInputRendererComponent.js +14 -0
  553. package/build/revamp/wise/renderers/SelectInputRenderer/RadioInputRendererComponent.spec.js +76 -0
  554. package/build/revamp/wise/renderers/SelectInputRenderer/SegmentedInputRendererComponent.js +21 -0
  555. package/build/revamp/wise/renderers/SelectInputRenderer/SelectInputRenderer.js +33 -0
  556. package/build/revamp/wise/renderers/SelectInputRenderer/SelectInputRendererComponent.js +56 -0
  557. package/build/revamp/wise/renderers/SelectInputRenderer/SelectTriggerMedia.js +16 -0
  558. package/build/revamp/wise/renderers/SelectInputRenderer/TabInputRendererComponent.js +22 -0
  559. package/build/revamp/wise/renderers/StatusListRenderer.js +21 -0
  560. package/build/revamp/wise/renderers/TextInputRenderer.js +35 -0
  561. package/build/revamp/wise/renderers/UploadInputRenderer.js +136 -0
  562. package/build/revamp/wise/renderers/components/FieldInput.js +9 -0
  563. package/build/revamp/wise/renderers/components/Help.js +10 -0
  564. package/build/revamp/wise/renderers/components/LabelContentWithHelp.js +6 -0
  565. package/build/revamp/wise/renderers/components/UploadFieldInput.js +14 -0
  566. package/build/revamp/wise/renderers/components/VariableDateInput.js +30 -0
  567. package/build/revamp/wise/renderers/components/VariableTextInput.js +69 -0
  568. package/build/revamp/wise/renderers/components/icon/DynamicIcon.js +17 -0
  569. package/build/revamp/wise/renderers/components/icon/FlagIcon.js +11 -0
  570. package/build/revamp/wise/renderers/components/icon/NamedIcon.js +19 -0
  571. package/build/revamp/wise/renderers/components/icon/NavigationOptionMedia.js +20 -0
  572. package/build/revamp/wise/renderers/getWiseRenderers.js +61 -0
  573. package/build/revamp/wise/renderers/hooks/useSnackBarIfAvailable.js +6 -0
  574. package/build/revamp/wise/renderers/step/BackButton.js +11 -0
  575. package/build/revamp/wise/renderers/step/ExternalConfirmationDialog.js +20 -0
  576. package/build/revamp/wise/renderers/step/KYCCameraStepRenderer.js +144 -0
  577. package/build/revamp/wise/renderers/step/StepRenderer.js +31 -0
  578. package/build/revamp/wise/renderers/step/StepRendererContext.js +11 -0
  579. package/build/revamp/wise/renderers/step/useExternal.js +15 -0
  580. package/build/revamp/wise/renderers/utils/file-utils.js +70 -0
  581. package/build/revamp/wise/renderers/utils/getRandomId.js +2 -0
  582. package/build/revamp/wise/renderers/utils/input-utils.js +6 -0
  583. package/build/revamp/wise/renderers/utils/layout-utils.js +31 -0
  584. package/build/revamp/wise/renderers/utils/value-utils.js +23 -0
  585. package/build/revamp/wise/renderers/utils/value-utils.spec.js +33 -0
  586. package/build/revamp/wise/renderers/validators/type-validators.js +15 -0
  587. package/build/test-utils/NeptuneProviders.js +23 -0
  588. package/build/test-utils/fetch-utils.js +104 -0
  589. package/build/test-utils/index.js +2 -0
  590. package/build/test-utils/rtl-utils.js +20 -0
  591. package/build/types/common/cameraCapture/CameraCapture.d.ts +16 -0
  592. package/build/types/{legacy/step/cameraStep → common}/cameraCapture/components/bottomBar/BottomBar.d.ts +2 -2
  593. package/build/types/common/cameraCapture/components/index.d.ts +3 -0
  594. package/build/types/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.d.ts +2 -0
  595. package/build/types/{legacy/step/cameraStep → common}/cameraCapture/hooks/useFullScreenOrientationLock.d.ts +2 -2
  596. package/build/types/common/cameraCapture/index.d.ts +1 -0
  597. package/build/types/{legacy/step/cameraStep → common}/cameraCapture/overlay/Overlay.d.ts +1 -1
  598. package/build/types/{legacy/step/cameraStep → common}/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.d.ts +1 -1
  599. package/build/types/common/cameraCapture/screens/index.d.ts +1 -0
  600. package/build/types/common/cameraCapture/tracking/index.d.ts +8 -0
  601. package/build/types/common/errorBoundary/ErrorBoundary.d.ts +1 -1
  602. package/build/types/common/errorBoundary/ErrorBoundaryAlert.d.ts +1 -1
  603. package/build/types/common/httpClientContext/HttpClientContext.d.ts +2 -2
  604. package/build/types/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +1 -1
  605. package/build/types/legacy/common/contexts/eventsContext/EventsContext.d.ts +1 -1
  606. package/build/types/legacy/common/contexts/featureContext/FeatureContext.d.ts +1 -1
  607. package/build/types/legacy/common/contexts/logContext/LogContext.d.ts +1 -1
  608. package/build/types/legacy/common/utils/index.d.ts +5 -5
  609. package/build/types/legacy/dynamic-flow-types.d.ts +2 -1
  610. package/build/types/legacy/dynamicFlow/BackButton.d.ts +1 -1
  611. package/build/types/legacy/dynamicFlow/DynamicFlow.d.ts +1 -1
  612. package/build/types/legacy/dynamicFlow/DynamicFlowStep.d.ts +1 -1
  613. package/build/types/legacy/dynamicFlow/utils/useLoader.d.ts +1 -1
  614. package/build/types/legacy/formControl/FormControl.d.ts +1 -1
  615. package/build/types/legacy/jsonSchemaForm/JsonSchemaForm.d.ts +1 -1
  616. package/build/types/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +1 -1
  617. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/ArraySchema.d.ts +1 -1
  618. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +1 -1
  619. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multiSelectSchema/MultiSelectSchema.d.ts +1 -1
  620. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +1 -1
  621. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.d.ts +1 -1
  622. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.d.ts +1 -1
  623. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.d.ts +1 -1
  624. package/build/types/legacy/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.d.ts +1 -1
  625. package/build/types/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +1 -1
  626. package/build/types/legacy/jsonSchemaForm/genericSchema/GenericSchema.d.ts +1 -1
  627. package/build/types/legacy/jsonSchemaForm/help/Help.d.ts +1 -1
  628. package/build/types/legacy/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +1 -1
  629. package/build/types/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +1 -1
  630. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +1 -1
  631. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +1 -1
  632. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +1 -1
  633. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +1 -1
  634. package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.d.ts +1 -1
  635. package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +1 -1
  636. package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +1 -1
  637. package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +1 -1
  638. package/build/types/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +1 -1
  639. package/build/types/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +1 -1
  640. package/build/types/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.d.ts +5 -5
  641. package/build/types/legacy/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +1 -1
  642. package/build/types/legacy/layout/DynamicLayout.d.ts +1 -1
  643. package/build/types/legacy/layout/alert/DynamicAlert.d.ts +1 -1
  644. package/build/types/legacy/layout/box/DynamicBox.d.ts +1 -1
  645. package/build/types/legacy/layout/button/DynamicButton.d.ts +1 -1
  646. package/build/types/legacy/layout/columns/DynamicColumns.d.ts +1 -1
  647. package/build/types/legacy/layout/decision/DynamicDecision.d.ts +1 -1
  648. package/build/types/legacy/layout/divider/DynamicDivider.d.ts +1 -1
  649. package/build/types/legacy/layout/external/DynamicExternal.d.ts +1 -1
  650. package/build/types/legacy/layout/form/DynamicForm.d.ts +1 -1
  651. package/build/types/legacy/layout/heading/DynamicHeading.d.ts +1 -1
  652. package/build/types/legacy/layout/icon/DynamicIcon.d.ts +1 -1
  653. package/build/types/legacy/layout/icon/FlagIcon.d.ts +1 -1
  654. package/build/types/legacy/layout/icon/NamedIcon.d.ts +1 -1
  655. package/build/types/legacy/layout/image/DynamicImage.d.ts +1 -1
  656. package/build/types/legacy/layout/instructions/DynamicInstructions.d.ts +1 -1
  657. package/build/types/legacy/layout/list/DynamicStatusList.d.ts +1 -1
  658. package/build/types/legacy/layout/loadingIndicator/DynamicLoadingIndicator.d.ts +1 -1
  659. package/build/types/legacy/layout/markdown/DynamicMarkdown.d.ts +2 -2
  660. package/build/types/legacy/layout/modal/DynamicModal.d.ts +1 -1
  661. package/build/types/legacy/layout/paragraph/DynamicParagraph.d.ts +1 -1
  662. package/build/types/legacy/layout/review/DynamicReview.d.ts +1 -1
  663. package/build/types/legacy/layout/search/DynamicSearch.d.ts +1 -1
  664. package/build/types/legacy/layout/search/SearchInput.d.ts +1 -1
  665. package/build/types/legacy/layout/search/SearchResults.d.ts +2 -2
  666. package/build/types/legacy/layout/utils/getNavigationOptionMedia.d.ts +3 -3
  667. package/build/types/legacy/step/cameraStep/CameraStep.d.ts +1 -1
  668. package/build/types/legacy/step/externalConfirmationStep/ExternalConfirmationStep.d.ts +1 -1
  669. package/build/types/legacy/step/layoutStep/LayoutStep.d.ts +1 -1
  670. package/build/types/legacy/test-utils/DynamicFlowProviders.d.ts +1 -1
  671. package/build/types/legacy/test-utils/legacy-utils.d.ts +1 -1
  672. package/build/types/revamp/DynamicFlowCore.d.ts +1 -1
  673. package/build/types/revamp/DynamicFlowWise.d.ts +1 -1
  674. package/build/types/revamp/domain/components/AllOfComponent.d.ts +2 -2
  675. package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +1 -1
  676. package/build/types/revamp/domain/components/ConstComponent.d.ts +1 -1
  677. package/build/types/revamp/domain/components/DateInputComponent.d.ts +1 -1
  678. package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +1 -1
  679. package/build/types/revamp/domain/components/MultiSelectInputComponent.d.ts +1 -1
  680. package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +1 -1
  681. package/build/types/revamp/domain/components/NumberInputComponent.d.ts +1 -1
  682. package/build/types/revamp/domain/components/ObjectComponent.d.ts +2 -2
  683. package/build/types/revamp/domain/components/SelectInputComponent.d.ts +1 -1
  684. package/build/types/revamp/domain/components/StepDomainComponent.d.ts +7 -5
  685. package/build/types/revamp/domain/components/TextInputComponent.d.ts +1 -1
  686. package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -1
  687. package/build/types/revamp/domain/components/repeatableComponent/RepeatableComponent.d.ts +3 -3
  688. package/build/types/revamp/domain/components/utils/isPartialLocalValueMatch.d.ts +1 -1
  689. package/build/types/revamp/domain/features/persistAsync/getPerformPersistAsync.d.ts +1 -1
  690. package/build/types/revamp/domain/features/validationAsync/getPerformValidationAsync.d.ts +1 -1
  691. package/build/types/revamp/flow/executeRefresh.d.ts +1 -1
  692. package/build/types/revamp/renderers/mappers/componentToRendererProps.d.ts +3 -3
  693. package/build/types/revamp/renderers/stepComponentToProps.d.ts +1 -1
  694. package/build/types/revamp/renderers/types.d.ts +5 -1
  695. package/build/types/revamp/wise/renderers/MultiSelectInputRenderer.d.ts +1 -1
  696. package/build/types/revamp/wise/renderers/SearchRenderer/BlockSearchRendererComponent.d.ts +2 -2
  697. package/build/types/revamp/wise/renderers/SearchRenderer/ErrorResult.d.ts +1 -1
  698. package/build/types/revamp/wise/renderers/SearchRenderer/InlineSearchRendererComponent.d.ts +1 -1
  699. package/build/types/revamp/wise/renderers/SelectInputRenderer/OptionMedia.d.ts +1 -1
  700. package/build/types/revamp/wise/renderers/SelectInputRenderer/RadioInputRendererComponent.d.ts +1 -1
  701. package/build/types/revamp/wise/renderers/SelectInputRenderer/SegmentedInputRendererComponent.d.ts +1 -1
  702. package/build/types/revamp/wise/renderers/SelectInputRenderer/SelectInputRendererComponent.d.ts +1 -1
  703. package/build/types/revamp/wise/renderers/SelectInputRenderer/SelectTriggerMedia.d.ts +1 -1
  704. package/build/types/revamp/wise/renderers/SelectInputRenderer/TabInputRendererComponent.d.ts +1 -1
  705. package/build/types/revamp/wise/renderers/components/FieldInput.d.ts +1 -1
  706. package/build/types/revamp/wise/renderers/components/Help.d.ts +1 -1
  707. package/build/types/revamp/wise/renderers/components/LabelContentWithHelp.d.ts +1 -1
  708. package/build/types/revamp/wise/renderers/components/UploadFieldInput.d.ts +1 -1
  709. package/build/types/revamp/wise/renderers/components/VariableDateInput.d.ts +1 -1
  710. package/build/types/revamp/wise/renderers/components/VariableTextInput.d.ts +1 -1
  711. package/build/types/revamp/wise/renderers/components/icon/DynamicIcon.d.ts +1 -1
  712. package/build/types/revamp/wise/renderers/components/icon/FlagIcon.d.ts +1 -1
  713. package/build/types/revamp/wise/renderers/components/icon/NamedIcon.d.ts +1 -1
  714. package/build/types/revamp/wise/renderers/components/icon/NavigationOptionMedia.d.ts +1 -1
  715. package/build/types/revamp/wise/renderers/step/BackButton.d.ts +1 -1
  716. package/build/types/revamp/wise/renderers/step/ExternalConfirmationDialog.d.ts +1 -1
  717. package/build/types/revamp/wise/renderers/step/KYCCameraStepRenderer.d.ts +2 -0
  718. package/build/types/test-utils/NeptuneProviders.d.ts +1 -1
  719. package/package.json +31 -30
  720. package/build/types/legacy/step/cameraStep/cameraCapture/CameraCapture.d.ts +0 -15
  721. package/build/types/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.d.ts +0 -2
  722. package/build/types/legacy/step/cameraStep/cameraCapture/tracking/index.d.ts +0 -8
  723. /package/build/{types/legacy/step/cameraStep/cameraCapture/components/index.d.ts → common/cameraCapture/components/index.js} +0 -0
  724. /package/build/{types/legacy/step/cameraStep/cameraCapture/index.d.ts → common/cameraCapture/index.js} +0 -0
  725. /package/build/{types/legacy/step/cameraStep/cameraCapture/screens/index.d.ts → common/cameraCapture/screens/index.js} +0 -0
  726. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/CameraCapture.messages.d.ts +0 -0
  727. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.d.ts +0 -0
  728. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/hooks/useVideoConstraints.d.ts +0 -0
  729. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/types/index.d.ts +0 -0
  730. /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/utils/index.d.ts +0 -0
  731. /package/build/types/{legacy/common → common/cameraCapture}/utils/mobile-utils.d.ts +0 -0
  732. /package/build/types/{legacy/common → common}/utils/debounce.d.ts +0 -0
package/build/main.mjs CHANGED
@@ -1269,16 +1269,28 @@ var isStringSchemaWithUpload = (schema) => isStringSchema(schema) && schema.form
1269
1269
  var isSchemaWithPersistAsync = (schema) => "persistAsync" in schema && !isNullish(schema.persistAsync);
1270
1270
 
1271
1271
  // src/revamp/renderers/stepComponentToProps.ts
1272
- var stepComponentToProps = ({ back, description, error, external, loadingState, title, trackEvent }, children) => ({
1272
+ var stepComponentToProps = ({
1273
+ back,
1274
+ description,
1275
+ error,
1276
+ external,
1277
+ loadingState,
1278
+ step,
1279
+ title,
1280
+ trackEvent,
1281
+ onAction
1282
+ }, children) => ({
1273
1283
  type: "step",
1274
1284
  back,
1275
1285
  description,
1276
1286
  error,
1277
1287
  external,
1278
1288
  loadingState,
1289
+ step,
1279
1290
  title,
1291
+ children,
1280
1292
  trackEvent,
1281
- children
1293
+ onAction
1282
1294
  });
1283
1295
 
1284
1296
  // src/revamp/renderers/mappers/alertComponentToProps.ts
@@ -2002,7 +2014,7 @@ var quotelessJson = (obj) => {
2002
2014
  const json = JSON.stringify(obj, null, 2);
2003
2015
  return json.replace(/"([^"]+)":/g, "$1:");
2004
2016
  };
2005
- var ZodError = class _ZodError extends Error {
2017
+ var ZodError = class extends Error {
2006
2018
  constructor(issues) {
2007
2019
  super();
2008
2020
  this.issues = [];
@@ -2060,11 +2072,6 @@ var ZodError = class _ZodError extends Error {
2060
2072
  processError(this);
2061
2073
  return fieldErrors;
2062
2074
  }
2063
- static assert(value) {
2064
- if (!(value instanceof _ZodError)) {
2065
- throw new Error(`Not a ZodError: ${value}`);
2066
- }
2067
- }
2068
2075
  toString() {
2069
2076
  return this.message;
2070
2077
  }
@@ -2206,12 +2213,6 @@ var makeIssue = (params) => {
2206
2213
  const fullIssue = __spreadProps2(__spreadValues2({}, issueData), {
2207
2214
  path: fullPath
2208
2215
  });
2209
- if (issueData.message !== void 0) {
2210
- return __spreadProps2(__spreadValues2({}, issueData), {
2211
- path: fullPath,
2212
- message: issueData.message
2213
- });
2214
- }
2215
2216
  let errorMessage = "";
2216
2217
  const maps = errorMaps.filter((m) => !!m).slice().reverse();
2217
2218
  for (const map of maps) {
@@ -2219,12 +2220,11 @@ var makeIssue = (params) => {
2219
2220
  }
2220
2221
  return __spreadProps2(__spreadValues2({}, issueData), {
2221
2222
  path: fullPath,
2222
- message: errorMessage
2223
+ message: issueData.message || errorMessage
2223
2224
  });
2224
2225
  };
2225
2226
  var EMPTY_PATH = [];
2226
2227
  function addIssueToContext(ctx, issueData) {
2227
- const overrideMap = getErrorMap();
2228
2228
  const issue = makeIssue({
2229
2229
  issueData,
2230
2230
  data: ctx.data,
@@ -2232,8 +2232,8 @@ function addIssueToContext(ctx, issueData) {
2232
2232
  errorMaps: [
2233
2233
  ctx.common.contextualErrorMap,
2234
2234
  ctx.schemaErrorMap,
2235
- overrideMap,
2236
- overrideMap === errorMap ? void 0 : errorMap
2235
+ getErrorMap(),
2236
+ errorMap
2237
2237
  // then global default map
2238
2238
  ].filter((x) => !!x)
2239
2239
  });
@@ -2265,11 +2265,9 @@ var ParseStatus = class _ParseStatus {
2265
2265
  static async mergeObjectAsync(status, pairs) {
2266
2266
  const syncPairs = [];
2267
2267
  for (const pair of pairs) {
2268
- const key = await pair.key;
2269
- const value = await pair.value;
2270
2268
  syncPairs.push({
2271
- key,
2272
- value
2269
+ key: await pair.key,
2270
+ value: await pair.value
2273
2271
  });
2274
2272
  }
2275
2273
  return _ParseStatus.mergeObjectSync(status, syncPairs);
@@ -2302,29 +2300,11 @@ var isAborted = (x) => x.status === "aborted";
2302
2300
  var isDirty = (x) => x.status === "dirty";
2303
2301
  var isValid = (x) => x.status === "valid";
2304
2302
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
2305
- function __classPrivateFieldGet(receiver, state, kind, f) {
2306
- if (kind === "a" && !f)
2307
- throw new TypeError("Private accessor was defined without a getter");
2308
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
2309
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
2310
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
2311
- }
2312
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
2313
- if (kind === "m")
2314
- throw new TypeError("Private method is not writable");
2315
- if (kind === "a" && !f)
2316
- throw new TypeError("Private accessor was defined without a setter");
2317
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
2318
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
2319
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
2320
- }
2321
2303
  var errorUtil;
2322
2304
  (function(errorUtil2) {
2323
2305
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
2324
2306
  errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
2325
2307
  })(errorUtil || (errorUtil = {}));
2326
- var _ZodEnum_cache;
2327
- var _ZodNativeEnum_cache;
2328
2308
  var ParseInputLazyPath = class {
2329
2309
  constructor(parent, value, path, key) {
2330
2310
  this._cachedPath = [];
@@ -2373,17 +2353,12 @@ function processCreateParams(params) {
2373
2353
  if (errorMap2)
2374
2354
  return { errorMap: errorMap2, description };
2375
2355
  const customMap = (iss, ctx) => {
2376
- var _a, _b;
2377
- const { message } = params;
2378
- if (iss.code === "invalid_enum_value") {
2379
- return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
2380
- }
2381
- if (typeof ctx.data === "undefined") {
2382
- return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError };
2383
- }
2384
2356
  if (iss.code !== "invalid_type")
2385
2357
  return { message: ctx.defaultError };
2386
- return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };
2358
+ if (typeof ctx.data === "undefined") {
2359
+ return { message: required_error !== null && required_error !== void 0 ? required_error : ctx.defaultError };
2360
+ }
2361
+ return { message: invalid_type_error !== null && invalid_type_error !== void 0 ? invalid_type_error : ctx.defaultError };
2387
2362
  };
2388
2363
  return { errorMap: customMap, description };
2389
2364
  }
@@ -2625,40 +2600,35 @@ var ZodType = class {
2625
2600
  }
2626
2601
  };
2627
2602
  var cuidRegex = /^c[^\s-]{8,}$/i;
2628
- var cuid2Regex = /^[0-9a-z]+$/;
2603
+ var cuid2Regex = /^[a-z][a-z0-9]*$/;
2629
2604
  var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;
2630
2605
  var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
2631
- var nanoidRegex = /^[a-z0-9_-]{21}$/i;
2632
- var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
2633
- var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
2606
+ var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
2634
2607
  var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
2635
2608
  var emojiRegex;
2636
- var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
2609
+ var ipv4Regex = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/;
2637
2610
  var ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
2638
- var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
2639
- var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
2640
- var dateRegex = new RegExp(`^${dateRegexSource}$`);
2641
- function timeRegexSource(args) {
2642
- let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
2611
+ var datetimeRegex = (args) => {
2643
2612
  if (args.precision) {
2644
- regex = `${regex}\\.\\d{${args.precision}}`;
2645
- } else if (args.precision == null) {
2646
- regex = `${regex}(\\.\\d+)?`;
2613
+ if (args.offset) {
2614
+ return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${args.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`);
2615
+ } else {
2616
+ return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${args.precision}}Z$`);
2617
+ }
2618
+ } else if (args.precision === 0) {
2619
+ if (args.offset) {
2620
+ return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$`);
2621
+ } else {
2622
+ return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$`);
2623
+ }
2624
+ } else {
2625
+ if (args.offset) {
2626
+ return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$`);
2627
+ } else {
2628
+ return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$`);
2629
+ }
2647
2630
  }
2648
- return regex;
2649
- }
2650
- function timeRegex(args) {
2651
- return new RegExp(`^${timeRegexSource(args)}$`);
2652
- }
2653
- function datetimeRegex(args) {
2654
- let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
2655
- const opts = [];
2656
- opts.push(args.local ? `Z?` : `Z`);
2657
- if (args.offset)
2658
- opts.push(`([+-]\\d{2}:?\\d{2})`);
2659
- regex = `${regex}(${opts.join("|")})`;
2660
- return new RegExp(`^${regex}$`);
2661
- }
2631
+ };
2662
2632
  function isValidIP(ip, version) {
2663
2633
  if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
2664
2634
  return true;
@@ -2676,11 +2646,15 @@ var ZodString = class _ZodString extends ZodType {
2676
2646
  const parsedType = this._getType(input);
2677
2647
  if (parsedType !== ZodParsedType.string) {
2678
2648
  const ctx2 = this._getOrReturnCtx(input);
2679
- addIssueToContext(ctx2, {
2680
- code: ZodIssueCode.invalid_type,
2681
- expected: ZodParsedType.string,
2682
- received: ctx2.parsedType
2683
- });
2649
+ addIssueToContext(
2650
+ ctx2,
2651
+ {
2652
+ code: ZodIssueCode.invalid_type,
2653
+ expected: ZodParsedType.string,
2654
+ received: ctx2.parsedType
2655
+ }
2656
+ //
2657
+ );
2684
2658
  return INVALID;
2685
2659
  }
2686
2660
  const status = new ParseStatus();
@@ -2771,16 +2745,6 @@ var ZodString = class _ZodString extends ZodType {
2771
2745
  });
2772
2746
  status.dirty();
2773
2747
  }
2774
- } else if (check.kind === "nanoid") {
2775
- if (!nanoidRegex.test(input.data)) {
2776
- ctx = this._getOrReturnCtx(input, ctx);
2777
- addIssueToContext(ctx, {
2778
- validation: "nanoid",
2779
- code: ZodIssueCode.invalid_string,
2780
- message: check.message
2781
- });
2782
- status.dirty();
2783
- }
2784
2748
  } else if (check.kind === "cuid") {
2785
2749
  if (!cuidRegex.test(input.data)) {
2786
2750
  ctx = this._getOrReturnCtx(input, ctx);
@@ -2882,38 +2846,6 @@ var ZodString = class _ZodString extends ZodType {
2882
2846
  });
2883
2847
  status.dirty();
2884
2848
  }
2885
- } else if (check.kind === "date") {
2886
- const regex = dateRegex;
2887
- if (!regex.test(input.data)) {
2888
- ctx = this._getOrReturnCtx(input, ctx);
2889
- addIssueToContext(ctx, {
2890
- code: ZodIssueCode.invalid_string,
2891
- validation: "date",
2892
- message: check.message
2893
- });
2894
- status.dirty();
2895
- }
2896
- } else if (check.kind === "time") {
2897
- const regex = timeRegex(check);
2898
- if (!regex.test(input.data)) {
2899
- ctx = this._getOrReturnCtx(input, ctx);
2900
- addIssueToContext(ctx, {
2901
- code: ZodIssueCode.invalid_string,
2902
- validation: "time",
2903
- message: check.message
2904
- });
2905
- status.dirty();
2906
- }
2907
- } else if (check.kind === "duration") {
2908
- if (!durationRegex.test(input.data)) {
2909
- ctx = this._getOrReturnCtx(input, ctx);
2910
- addIssueToContext(ctx, {
2911
- validation: "duration",
2912
- code: ZodIssueCode.invalid_string,
2913
- message: check.message
2914
- });
2915
- status.dirty();
2916
- }
2917
2849
  } else if (check.kind === "ip") {
2918
2850
  if (!isValidIP(input.data, check.version)) {
2919
2851
  ctx = this._getOrReturnCtx(input, ctx);
@@ -2924,16 +2856,6 @@ var ZodString = class _ZodString extends ZodType {
2924
2856
  });
2925
2857
  status.dirty();
2926
2858
  }
2927
- } else if (check.kind === "base64") {
2928
- if (!base64Regex.test(input.data)) {
2929
- ctx = this._getOrReturnCtx(input, ctx);
2930
- addIssueToContext(ctx, {
2931
- validation: "base64",
2932
- code: ZodIssueCode.invalid_string,
2933
- message: check.message
2934
- });
2935
- status.dirty();
2936
- }
2937
2859
  } else {
2938
2860
  util.assertNever(check);
2939
2861
  }
@@ -2963,9 +2885,6 @@ var ZodString = class _ZodString extends ZodType {
2963
2885
  uuid(message) {
2964
2886
  return this._addCheck(__spreadValues2({ kind: "uuid" }, errorUtil.errToObj(message)));
2965
2887
  }
2966
- nanoid(message) {
2967
- return this._addCheck(__spreadValues2({ kind: "nanoid" }, errorUtil.errToObj(message)));
2968
- }
2969
2888
  cuid(message) {
2970
2889
  return this._addCheck(__spreadValues2({ kind: "cuid" }, errorUtil.errToObj(message)));
2971
2890
  }
@@ -2975,49 +2894,25 @@ var ZodString = class _ZodString extends ZodType {
2975
2894
  ulid(message) {
2976
2895
  return this._addCheck(__spreadValues2({ kind: "ulid" }, errorUtil.errToObj(message)));
2977
2896
  }
2978
- base64(message) {
2979
- return this._addCheck(__spreadValues2({ kind: "base64" }, errorUtil.errToObj(message)));
2980
- }
2981
2897
  ip(options) {
2982
2898
  return this._addCheck(__spreadValues2({ kind: "ip" }, errorUtil.errToObj(options)));
2983
2899
  }
2984
2900
  datetime(options) {
2985
- var _a, _b;
2901
+ var _a;
2986
2902
  if (typeof options === "string") {
2987
2903
  return this._addCheck({
2988
2904
  kind: "datetime",
2989
2905
  precision: null,
2990
2906
  offset: false,
2991
- local: false,
2992
2907
  message: options
2993
2908
  });
2994
2909
  }
2995
2910
  return this._addCheck(__spreadValues2({
2996
2911
  kind: "datetime",
2997
2912
  precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
2998
- offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,
2999
- local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false
3000
- }, errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)));
3001
- }
3002
- date(message) {
3003
- return this._addCheck({ kind: "date", message });
3004
- }
3005
- time(options) {
3006
- if (typeof options === "string") {
3007
- return this._addCheck({
3008
- kind: "time",
3009
- precision: null,
3010
- message: options
3011
- });
3012
- }
3013
- return this._addCheck(__spreadValues2({
3014
- kind: "time",
3015
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision
2913
+ offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false
3016
2914
  }, errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)));
3017
2915
  }
3018
- duration(message) {
3019
- return this._addCheck(__spreadValues2({ kind: "duration" }, errorUtil.errToObj(message)));
3020
- }
3021
2916
  regex(regex, message) {
3022
2917
  return this._addCheck(__spreadValues2({
3023
2918
  kind: "regex",
@@ -3086,15 +2981,6 @@ var ZodString = class _ZodString extends ZodType {
3086
2981
  get isDatetime() {
3087
2982
  return !!this._def.checks.find((ch) => ch.kind === "datetime");
3088
2983
  }
3089
- get isDate() {
3090
- return !!this._def.checks.find((ch) => ch.kind === "date");
3091
- }
3092
- get isTime() {
3093
- return !!this._def.checks.find((ch) => ch.kind === "time");
3094
- }
3095
- get isDuration() {
3096
- return !!this._def.checks.find((ch) => ch.kind === "duration");
3097
- }
3098
2984
  get isEmail() {
3099
2985
  return !!this._def.checks.find((ch) => ch.kind === "email");
3100
2986
  }
@@ -3107,9 +2993,6 @@ var ZodString = class _ZodString extends ZodType {
3107
2993
  get isUUID() {
3108
2994
  return !!this._def.checks.find((ch) => ch.kind === "uuid");
3109
2995
  }
3110
- get isNANOID() {
3111
- return !!this._def.checks.find((ch) => ch.kind === "nanoid");
3112
- }
3113
2996
  get isCUID() {
3114
2997
  return !!this._def.checks.find((ch) => ch.kind === "cuid");
3115
2998
  }
@@ -3122,9 +3005,6 @@ var ZodString = class _ZodString extends ZodType {
3122
3005
  get isIP() {
3123
3006
  return !!this._def.checks.find((ch) => ch.kind === "ip");
3124
3007
  }
3125
- get isBase64() {
3126
- return !!this._def.checks.find((ch) => ch.kind === "base64");
3127
- }
3128
3008
  get minLength() {
3129
3009
  let min = null;
3130
3010
  for (const ch of this._def.checks) {
@@ -4015,10 +3895,9 @@ var ZodObject = class _ZodObject extends ZodType {
4015
3895
  const syncPairs = [];
4016
3896
  for (const pair of pairs) {
4017
3897
  const key = await pair.key;
4018
- const value = await pair.value;
4019
3898
  syncPairs.push({
4020
3899
  key,
4021
- value,
3900
+ value: await pair.value,
4022
3901
  alwaysSet: pair.alwaysSet
4023
3902
  });
4024
3903
  }
@@ -4345,25 +4224,15 @@ var getDiscriminator = (type) => {
4345
4224
  } else if (type instanceof ZodEnum) {
4346
4225
  return type.options;
4347
4226
  } else if (type instanceof ZodNativeEnum) {
4348
- return util.objectValues(type.enum);
4227
+ return Object.keys(type.enum);
4349
4228
  } else if (type instanceof ZodDefault) {
4350
4229
  return getDiscriminator(type._def.innerType);
4351
4230
  } else if (type instanceof ZodUndefined) {
4352
4231
  return [void 0];
4353
4232
  } else if (type instanceof ZodNull) {
4354
4233
  return [null];
4355
- } else if (type instanceof ZodOptional) {
4356
- return [void 0, ...getDiscriminator(type.unwrap())];
4357
- } else if (type instanceof ZodNullable) {
4358
- return [null, ...getDiscriminator(type.unwrap())];
4359
- } else if (type instanceof ZodBranded) {
4360
- return getDiscriminator(type.unwrap());
4361
- } else if (type instanceof ZodReadonly) {
4362
- return getDiscriminator(type.unwrap());
4363
- } else if (type instanceof ZodCatch) {
4364
- return getDiscriminator(type._def.innerType);
4365
4234
  } else {
4366
- return [];
4235
+ return null;
4367
4236
  }
4368
4237
  };
4369
4238
  var ZodDiscriminatedUnion = class _ZodDiscriminatedUnion extends ZodType {
@@ -4423,7 +4292,7 @@ var ZodDiscriminatedUnion = class _ZodDiscriminatedUnion extends ZodType {
4423
4292
  const optionsMap = /* @__PURE__ */ new Map();
4424
4293
  for (const type of options) {
4425
4294
  const discriminatorValues = getDiscriminator(type.shape[discriminator]);
4426
- if (!discriminatorValues.length) {
4295
+ if (!discriminatorValues) {
4427
4296
  throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
4428
4297
  }
4429
4298
  for (const value of discriminatorValues) {
@@ -4619,8 +4488,7 @@ var ZodRecord = class _ZodRecord extends ZodType {
4619
4488
  for (const key in ctx.data) {
4620
4489
  pairs.push({
4621
4490
  key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
4622
- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
4623
- alwaysSet: key in ctx.data
4491
+ value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key))
4624
4492
  });
4625
4493
  }
4626
4494
  if (ctx.common.async) {
@@ -4952,10 +4820,6 @@ function createZodEnum(values, params) {
4952
4820
  }, processCreateParams(params)));
4953
4821
  }
4954
4822
  var ZodEnum = class _ZodEnum extends ZodType {
4955
- constructor() {
4956
- super(...arguments);
4957
- _ZodEnum_cache.set(this, void 0);
4958
- }
4959
4823
  _parse(input) {
4960
4824
  if (typeof input.data !== "string") {
4961
4825
  const ctx = this._getOrReturnCtx(input);
@@ -4967,10 +4831,7 @@ var ZodEnum = class _ZodEnum extends ZodType {
4967
4831
  });
4968
4832
  return INVALID;
4969
4833
  }
4970
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {
4971
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
4972
- }
4973
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {
4834
+ if (this._def.values.indexOf(input.data) === -1) {
4974
4835
  const ctx = this._getOrReturnCtx(input);
4975
4836
  const expectedValues = this._def.values;
4976
4837
  addIssueToContext(ctx, {
@@ -5006,20 +4867,15 @@ var ZodEnum = class _ZodEnum extends ZodType {
5006
4867
  }
5007
4868
  return enumValues;
5008
4869
  }
5009
- extract(values, newDef = this._def) {
5010
- return _ZodEnum.create(values, __spreadValues2(__spreadValues2({}, this._def), newDef));
4870
+ extract(values) {
4871
+ return _ZodEnum.create(values);
5011
4872
  }
5012
- exclude(values, newDef = this._def) {
5013
- return _ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), __spreadValues2(__spreadValues2({}, this._def), newDef));
4873
+ exclude(values) {
4874
+ return _ZodEnum.create(this.options.filter((opt) => !values.includes(opt)));
5014
4875
  }
5015
4876
  };
5016
- _ZodEnum_cache = /* @__PURE__ */ new WeakMap();
5017
4877
  ZodEnum.create = createZodEnum;
5018
4878
  var ZodNativeEnum = class extends ZodType {
5019
- constructor() {
5020
- super(...arguments);
5021
- _ZodNativeEnum_cache.set(this, void 0);
5022
- }
5023
4879
  _parse(input) {
5024
4880
  const nativeEnumValues = util.getValidEnumValues(this._def.values);
5025
4881
  const ctx = this._getOrReturnCtx(input);
@@ -5032,10 +4888,7 @@ var ZodNativeEnum = class extends ZodType {
5032
4888
  });
5033
4889
  return INVALID;
5034
4890
  }
5035
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {
5036
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f");
5037
- }
5038
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) {
4891
+ if (nativeEnumValues.indexOf(input.data) === -1) {
5039
4892
  const expectedValues = util.objectValues(nativeEnumValues);
5040
4893
  addIssueToContext(ctx, {
5041
4894
  received: ctx.data,
@@ -5050,7 +4903,6 @@ var ZodNativeEnum = class extends ZodType {
5050
4903
  return this._def.values;
5051
4904
  }
5052
4905
  };
5053
- _ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
5054
4906
  ZodNativeEnum.create = (values, params) => {
5055
4907
  return new ZodNativeEnum(__spreadValues2({
5056
4908
  values,
@@ -5112,38 +4964,26 @@ var ZodEffects = class extends ZodType {
5112
4964
  checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
5113
4965
  if (effect.type === "preprocess") {
5114
4966
  const processed = effect.transform(ctx.data, checkCtx);
4967
+ if (ctx.common.issues.length) {
4968
+ return {
4969
+ status: "dirty",
4970
+ value: ctx.data
4971
+ };
4972
+ }
5115
4973
  if (ctx.common.async) {
5116
- return Promise.resolve(processed).then(async (processed2) => {
5117
- if (status.value === "aborted")
5118
- return INVALID;
5119
- const result = await this._def.schema._parseAsync({
4974
+ return Promise.resolve(processed).then((processed2) => {
4975
+ return this._def.schema._parseAsync({
5120
4976
  data: processed2,
5121
4977
  path: ctx.path,
5122
4978
  parent: ctx
5123
4979
  });
5124
- if (result.status === "aborted")
5125
- return INVALID;
5126
- if (result.status === "dirty")
5127
- return DIRTY(result.value);
5128
- if (status.value === "dirty")
5129
- return DIRTY(result.value);
5130
- return result;
5131
4980
  });
5132
4981
  } else {
5133
- if (status.value === "aborted")
5134
- return INVALID;
5135
- const result = this._def.schema._parseSync({
4982
+ return this._def.schema._parseSync({
5136
4983
  data: processed,
5137
4984
  path: ctx.path,
5138
4985
  parent: ctx
5139
4986
  });
5140
- if (result.status === "aborted")
5141
- return INVALID;
5142
- if (result.status === "dirty")
5143
- return DIRTY(result.value);
5144
- if (status.value === "dirty")
5145
- return DIRTY(result.value);
5146
- return result;
5147
4987
  }
5148
4988
  }
5149
4989
  if (effect.type === "refinement") {
@@ -5421,16 +5261,10 @@ var ZodPipeline = class _ZodPipeline extends ZodType {
5421
5261
  var ZodReadonly = class extends ZodType {
5422
5262
  _parse(input) {
5423
5263
  const result = this._def.innerType._parse(input);
5424
- const freeze = (data) => {
5425
- if (isValid(data)) {
5426
- data.value = Object.freeze(data.value);
5427
- }
5428
- return data;
5429
- };
5430
- return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
5431
- }
5432
- unwrap() {
5433
- return this._def.innerType;
5264
+ if (isValid(result)) {
5265
+ result.value = Object.freeze(result.value);
5266
+ }
5267
+ return result;
5434
5268
  }
5435
5269
  };
5436
5270
  ZodReadonly.create = (type, params) => {
@@ -5439,7 +5273,7 @@ ZodReadonly.create = (type, params) => {
5439
5273
  typeName: ZodFirstPartyTypeKind.ZodReadonly
5440
5274
  }, processCreateParams(params)));
5441
5275
  };
5442
- function custom(check, params = {}, fatal) {
5276
+ var custom = (check, params = {}, fatal) => {
5443
5277
  if (check)
5444
5278
  return ZodAny.create().superRefine((data, ctx) => {
5445
5279
  var _a, _b;
@@ -5451,7 +5285,7 @@ function custom(check, params = {}, fatal) {
5451
5285
  }
5452
5286
  });
5453
5287
  return ZodAny.create();
5454
- }
5288
+ };
5455
5289
  var late = {
5456
5290
  object: ZodObject.lazycreate
5457
5291
  };
@@ -5569,7 +5403,6 @@ var z = /* @__PURE__ */ Object.freeze({
5569
5403
  ZodParsedType,
5570
5404
  getParsedType,
5571
5405
  ZodType,
5572
- datetimeRegex,
5573
5406
  ZodString,
5574
5407
  ZodNumber,
5575
5408
  ZodBigInt,
@@ -5665,38 +5498,24 @@ var imageSchema = z.object({
5665
5498
  url: z.string(),
5666
5499
  accessibilityDescription: z.string().optional()
5667
5500
  });
5668
- var httpMethodSchema = z.union([
5669
- z.literal("GET"),
5670
- z.literal("POST"),
5671
- z.literal("PUT"),
5672
- z.literal("PATCH"),
5673
- z.literal("DELETE")
5674
- ]);
5675
- var iconNamedSchema = z.object({
5676
- name: z.string()
5501
+ var summaryProviderSchema = z.object({
5502
+ providesTitle: z.boolean().optional(),
5503
+ providesDescription: z.boolean().optional(),
5504
+ providesIcon: z.boolean().optional(),
5505
+ providesImage: z.boolean().optional()
5677
5506
  });
5678
- var contextSchema = z.union([
5679
- z.literal("positive"),
5680
- z.literal("neutral"),
5681
- z.literal("warning"),
5682
- z.literal("negative"),
5683
- z.literal("success"),
5684
- z.literal("failure"),
5685
- z.literal("info"),
5686
- z.literal("primary")
5687
- ]);
5688
- var iconTextSchema = z.object({
5689
- text: z.string()
5507
+ var jsonElementSchema = z.lazy(
5508
+ () => z.union([
5509
+ z.string(),
5510
+ z.number(),
5511
+ z.boolean(),
5512
+ z.record(jsonElementSchema),
5513
+ z.array(jsonElementSchema)
5514
+ ]).nullable()
5515
+ );
5516
+ var helpSchema = z.object({
5517
+ markdown: z.string()
5690
5518
  });
5691
- var sizeSchema = z.union([
5692
- z.literal("xs"),
5693
- z.literal("sm"),
5694
- z.literal("md"),
5695
- z.literal("lg"),
5696
- z.literal("xl")
5697
- ]);
5698
- var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
5699
- var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
5700
5519
  var autocompleteTokenSchema = z.union([
5701
5520
  z.literal("on"),
5702
5521
  z.literal("name"),
@@ -5762,59 +5581,84 @@ var autocompleteTokenSchema = z.union([
5762
5581
  z.literal("fax"),
5763
5582
  z.literal("pager")
5764
5583
  ]);
5765
- var loadingIndicatorLayoutSchema = z.object({
5766
- type: z.literal("loading-indicator"),
5767
- size: sizeSchema.optional(),
5768
- control: z.string().optional(),
5769
- margin: sizeSchema.optional()
5770
- });
5771
- var alertLayoutSchema = z.object({
5772
- type: z.literal("alert"),
5773
- markdown: z.string(),
5774
- context: contextSchema.optional(),
5775
- control: z.string().optional(),
5776
- margin: sizeSchema.optional()
5777
- });
5778
- var paragraphLayoutSchema = z.object({
5779
- type: z.literal("paragraph"),
5780
- text: z.string(),
5781
- align: alignSchema.optional(),
5782
- control: z.string().optional(),
5783
- margin: sizeSchema.optional()
5584
+ var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
5585
+ var stringSchemaFormatSchema = z.union([
5586
+ z.literal("date"),
5587
+ z.literal("email"),
5588
+ z.literal("numeric"),
5589
+ z.literal("password"),
5590
+ z.literal("phone-number"),
5591
+ z.literal("base64url")
5592
+ ]);
5593
+ var externalSchema = z.object({
5594
+ url: z.string()
5784
5595
  });
5785
- var dividerLayoutSchema = z.object({
5786
- type: z.literal("divider"),
5787
- control: z.string().optional(),
5788
- margin: sizeSchema.optional()
5596
+ var stepErrorSchema = z.object({
5597
+ error: z.string().optional(),
5598
+ validation: jsonElementSchema.optional()
5789
5599
  });
5600
+ var httpMethodSchema = z.union([
5601
+ z.literal("GET"),
5602
+ z.literal("POST"),
5603
+ z.literal("PUT"),
5604
+ z.literal("PATCH"),
5605
+ z.literal("DELETE")
5606
+ ]);
5607
+ var actionTypeSchema = z.union([
5608
+ z.literal("primary"),
5609
+ z.literal("secondary"),
5610
+ z.literal("link"),
5611
+ z.literal("positive"),
5612
+ z.literal("negative")
5613
+ ]);
5614
+ var navigationStackBehaviorSchema = z.union([
5615
+ z.literal("default"),
5616
+ z.literal("remove-previous"),
5617
+ z.literal("remove-all"),
5618
+ z.literal("replace-current")
5619
+ ]);
5620
+ var sizeSchema = z.union([
5621
+ z.literal("xs"),
5622
+ z.literal("sm"),
5623
+ z.literal("md"),
5624
+ z.literal("lg"),
5625
+ z.literal("xl")
5626
+ ]);
5790
5627
  var listLayoutStatusSchema = z.union([
5791
5628
  z.literal("warning"),
5792
5629
  z.literal("neutral"),
5793
5630
  z.literal("positive")
5794
5631
  ]);
5632
+ var contextSchema = z.union([
5633
+ z.literal("positive"),
5634
+ z.literal("neutral"),
5635
+ z.literal("warning"),
5636
+ z.literal("negative"),
5637
+ z.literal("success"),
5638
+ z.literal("failure"),
5639
+ z.literal("info"),
5640
+ z.literal("primary")
5641
+ ]);
5642
+ var modalLayoutTriggerSchema = z.object({
5643
+ title: z.string()
5644
+ });
5795
5645
  var formLayoutSchemaReferenceSchema = z.object({
5796
5646
  $ref: z.string()
5797
5647
  });
5798
- var imageLayoutSchema = z.object({
5799
- type: z.literal("image"),
5800
- text: z.string().optional(),
5801
- url: z.string(),
5802
- size: sizeSchema.optional(),
5803
- accessibilityDescription: z.string().optional(),
5648
+ var dividerLayoutSchema = z.object({
5649
+ type: z.literal("divider"),
5804
5650
  control: z.string().optional(),
5805
5651
  margin: sizeSchema.optional()
5806
5652
  });
5807
- var statusListLayoutStatusSchema = z.union([
5808
- z.literal("not-done"),
5809
- z.literal("pending"),
5810
- z.literal("done")
5811
- ]);
5812
5653
  var instructionsLayoutItemSchema = z.object({
5813
5654
  text: z.string(),
5814
5655
  context: contextSchema
5815
5656
  });
5816
- var modalLayoutTriggerSchema = z.object({
5817
- title: z.string()
5657
+ var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
5658
+ var reviewLayoutFieldSchema = z.object({
5659
+ label: z.string(),
5660
+ value: z.string(),
5661
+ help: helpSchema.optional()
5818
5662
  });
5819
5663
  var searchLayoutSchema = z.object({
5820
5664
  type: z.literal("search"),
@@ -5826,17 +5670,21 @@ var searchLayoutSchema = z.object({
5826
5670
  control: z.string().optional(),
5827
5671
  margin: sizeSchema.optional()
5828
5672
  });
5829
- var infoLayoutSchema = z.object({
5830
- type: z.literal("info"),
5831
- markdown: z.string(),
5673
+ var paragraphLayoutSchema = z.object({
5674
+ type: z.literal("paragraph"),
5675
+ text: z.string(),
5832
5676
  align: alignSchema.optional(),
5833
5677
  control: z.string().optional(),
5834
5678
  margin: sizeSchema.optional()
5835
5679
  });
5836
- var formLayoutSchema = z.object({
5837
- type: z.literal("form"),
5838
- schema: formLayoutSchemaReferenceSchema.optional(),
5839
- schemaId: z.string(),
5680
+ var columnsLayoutBiasSchema = z.union([
5681
+ z.literal("none"),
5682
+ z.literal("left"),
5683
+ z.literal("right")
5684
+ ]);
5685
+ var loadingIndicatorLayoutSchema = z.object({
5686
+ type: z.literal("loading-indicator"),
5687
+ size: sizeSchema.optional(),
5840
5688
  control: z.string().optional(),
5841
5689
  margin: sizeSchema.optional()
5842
5690
  });
@@ -5848,6 +5696,11 @@ var headingLayoutSchema = z.object({
5848
5696
  control: z.string().optional(),
5849
5697
  margin: sizeSchema.optional()
5850
5698
  });
5699
+ var statusListLayoutStatusSchema = z.union([
5700
+ z.literal("not-done"),
5701
+ z.literal("pending"),
5702
+ z.literal("done")
5703
+ ]);
5851
5704
  var markdownLayoutSchema = z.object({
5852
5705
  type: z.literal("markdown"),
5853
5706
  content: z.string(),
@@ -5855,13 +5708,11 @@ var markdownLayoutSchema = z.object({
5855
5708
  control: z.string().optional(),
5856
5709
  margin: sizeSchema.optional()
5857
5710
  });
5858
- var columnsLayoutBiasSchema = z.union([
5859
- z.literal("none"),
5860
- z.literal("left"),
5861
- z.literal("right")
5862
- ]);
5863
- var helpSchema = z.object({
5864
- markdown: z.string()
5711
+ var iconTextSchema = z.object({
5712
+ text: z.string()
5713
+ });
5714
+ var iconNamedSchema = z.object({
5715
+ name: z.string()
5865
5716
  });
5866
5717
  var searchSearchRequestSchema = z.object({
5867
5718
  url: z.string(),
@@ -5869,154 +5720,26 @@ var searchSearchRequestSchema = z.object({
5869
5720
  param: z.string(),
5870
5721
  query: z.string()
5871
5722
  });
5872
- var jsonElementSchema = z.lazy(
5873
- () => z.union([
5874
- z.string(),
5875
- z.number(),
5876
- z.boolean(),
5877
- z.record(jsonElementSchema),
5878
- z.array(jsonElementSchema)
5879
- ]).nullable()
5880
- );
5881
- var externalSchema = z.object({
5882
- url: z.string()
5883
- });
5884
- var stepErrorSchema = z.object({
5723
+ var errorResponseBodySchema = z.object({
5724
+ refreshFormUrl: z.string().optional(),
5725
+ analytics: z.record(z.string()).optional(),
5885
5726
  error: z.string().optional(),
5886
- validation: jsonElementSchema.optional()
5887
- });
5888
- var stringSchemaFormatSchema = z.union([
5889
- z.literal("date"),
5890
- z.literal("email"),
5891
- z.literal("numeric"),
5892
- z.literal("password"),
5893
- z.literal("phone-number"),
5894
- z.literal("base64url")
5895
- ]);
5896
- var summarySummariserSchema = z.object({
5897
- defaultTitle: z.string().optional(),
5898
- defaultDescription: z.string().optional(),
5899
- defaultIcon: iconSchema.optional(),
5900
- defaultImage: imageLayoutSchema.optional(),
5901
- providesTitle: z.boolean().optional(),
5902
- providesDescription: z.boolean().optional(),
5903
- providesIcon: z.boolean().optional(),
5904
- providesImage: z.boolean().optional()
5727
+ validation: jsonElementSchema.optional(),
5728
+ refreshUrl: z.string().optional()
5905
5729
  });
5730
+ var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
5906
5731
  var validateAsyncSchema = z.object({
5907
5732
  param: z.string(),
5908
5733
  method: httpMethodSchema,
5909
5734
  url: z.string()
5910
5735
  });
5911
- var summaryProviderSchema = z.object({
5912
- providesTitle: z.boolean().optional(),
5913
- providesDescription: z.boolean().optional(),
5914
- providesIcon: z.boolean().optional(),
5915
- providesImage: z.boolean().optional()
5916
- });
5917
- var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
5918
- var navigationStackBehaviorSchema = z.union([
5919
- z.literal("default"),
5920
- z.literal("remove-previous"),
5921
- z.literal("remove-all"),
5922
- z.literal("replace-current")
5923
- ]);
5924
- var actionTypeSchema = z.union([
5925
- z.literal("primary"),
5926
- z.literal("secondary"),
5927
- z.literal("link"),
5928
- z.literal("positive"),
5929
- z.literal("negative")
5930
- ]);
5931
- var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
5932
- var actionSchema = z.object({
5933
- title: z.string().optional(),
5934
- type: actionTypeSchema.optional(),
5935
- disabled: z.boolean().optional(),
5936
- $id: z.string().optional(),
5937
- $ref: z.string().optional(),
5938
- id: z.string().optional(),
5939
- url: z.string().optional(),
5940
- method: httpMethodSchema.optional(),
5941
- exit: z.boolean().optional(),
5942
- result: jsonElementSchema.optional(),
5943
- data: jsonElementSchema.optional(),
5944
- timeout: z.number().optional(),
5945
- skipValidation: z.boolean().optional()
5946
- });
5947
- var listLayoutItemSchema = z.object({
5948
- title: z.string(),
5949
- description: z.string().optional(),
5950
- icon: iconSchema,
5951
- status: listLayoutStatusSchema.optional()
5952
- });
5953
- var decisionLayoutOptionSchema = z.object({
5954
- action: actionSchema,
5955
- title: z.string(),
5956
- description: z.string().optional(),
5957
- disabled: z.boolean().optional(),
5958
- icon: iconSchema.optional(),
5959
- image: imageLayoutSchema.optional()
5960
- });
5961
- var statusListLayoutItemSchema = z.object({
5962
- title: z.string(),
5963
- description: z.string().optional(),
5964
- icon: iconSchema,
5965
- status: statusListLayoutStatusSchema.optional()
5966
- });
5967
- var instructionsLayoutSchema = z.object({
5968
- type: z.literal("instructions"),
5969
- title: z.string().optional(),
5970
- items: z.array(instructionsLayoutItemSchema),
5971
- control: z.string().optional(),
5972
- margin: sizeSchema.optional()
5973
- });
5974
- var buttonLayoutSchema = z.object({
5975
- type: z.literal("button"),
5976
- size: sizeSchema.optional(),
5977
- title: z.string().optional(),
5978
- action: actionSchema,
5736
+ var alertLayoutSchema = z.object({
5737
+ type: z.literal("alert"),
5738
+ markdown: z.string(),
5979
5739
  context: contextSchema.optional(),
5980
- disabled: z.boolean().optional(),
5981
- pinOrder: z.number().optional(),
5982
5740
  control: z.string().optional(),
5983
5741
  margin: sizeSchema.optional()
5984
5742
  });
5985
- var reviewLayoutFieldSchema = z.object({
5986
- label: z.string(),
5987
- value: z.string(),
5988
- help: helpSchema.optional()
5989
- });
5990
- var searchResultSearchSchema = z.object({
5991
- type: z.literal("search"),
5992
- title: z.string(),
5993
- description: z.string().optional(),
5994
- icon: iconSchema.optional(),
5995
- image: imageLayoutSchema.optional(),
5996
- value: searchSearchRequestSchema
5997
- });
5998
- var searchResultActionSchema = z.object({
5999
- type: z.literal("action"),
6000
- title: z.string(),
6001
- description: z.string().optional(),
6002
- icon: iconSchema.optional(),
6003
- image: imageLayoutSchema.optional(),
6004
- value: actionSchema
6005
- });
6006
- var actionResponseBodySchema = z.object({
6007
- action: actionSchema
6008
- });
6009
- var errorResponseBodySchema = z.object({
6010
- refreshFormUrl: z.string().optional(),
6011
- analytics: z.record(z.string()).optional(),
6012
- error: z.string().optional(),
6013
- validation: jsonElementSchema.optional(),
6014
- refreshUrl: z.string().optional()
6015
- });
6016
- var linkHandlerSchema = z.object({
6017
- regexPattern: z.string(),
6018
- action: actionSchema
6019
- });
6020
5743
  var blobSchemaSchema = z.object({
6021
5744
  type: z.literal("blob"),
6022
5745
  promoted: z.boolean().optional(),
@@ -6055,37 +5778,97 @@ var constSchemaSchema = z.object({
6055
5778
  analyticsId: z.string().optional(),
6056
5779
  disabled: z.boolean().optional()
6057
5780
  });
6058
- var pollingOnErrorSchema = z.object({
5781
+ var actionSchema = z.object({
5782
+ title: z.string().optional(),
5783
+ type: actionTypeSchema.optional(),
5784
+ disabled: z.boolean().optional(),
5785
+ $id: z.string().optional(),
5786
+ $ref: z.string().optional(),
5787
+ id: z.string().optional(),
5788
+ url: z.string().optional(),
5789
+ method: httpMethodSchema.optional(),
5790
+ exit: z.boolean().optional(),
5791
+ result: jsonElementSchema.optional(),
5792
+ data: jsonElementSchema.optional(),
5793
+ timeout: z.number().optional(),
5794
+ skipValidation: z.boolean().optional()
5795
+ });
5796
+ var linkHandlerSchema = z.object({
5797
+ regexPattern: z.string(),
6059
5798
  action: actionSchema
6060
5799
  });
6061
5800
  var navigationBackBehaviourSchema = z.object({
6062
5801
  title: z.string().optional(),
6063
5802
  action: actionSchema
6064
5803
  });
6065
- var reviewLayoutCallToActionSchema = z.object({
6066
- title: z.string(),
5804
+ var pollingOnErrorSchema = z.object({
6067
5805
  action: actionSchema
6068
5806
  });
6069
- var listLayoutSchema = z.object({
6070
- type: z.literal("list"),
6071
- items: z.array(listLayoutItemSchema),
5807
+ var imageLayoutSchema = z.object({
5808
+ type: z.literal("image"),
5809
+ text: z.string().optional(),
5810
+ url: z.string(),
5811
+ size: sizeSchema.optional(),
5812
+ accessibilityDescription: z.string().optional(),
5813
+ control: z.string().optional(),
5814
+ margin: sizeSchema.optional()
5815
+ });
5816
+ var decisionLayoutOptionSchema = z.object({
5817
+ action: actionSchema,
5818
+ title: z.string(),
5819
+ description: z.string().optional(),
5820
+ disabled: z.boolean().optional(),
5821
+ icon: iconSchema.optional(),
5822
+ image: imageLayoutSchema.optional()
5823
+ });
5824
+ var listLayoutItemSchema = z.object({
5825
+ title: z.string(),
5826
+ description: z.string().optional(),
5827
+ icon: iconSchema,
5828
+ status: listLayoutStatusSchema.optional()
5829
+ });
5830
+ var statusListLayoutItemSchema = z.object({
5831
+ title: z.string(),
5832
+ description: z.string().optional(),
5833
+ icon: iconSchema,
5834
+ status: statusListLayoutStatusSchema.optional()
5835
+ });
5836
+ var formLayoutSchema = z.object({
5837
+ type: z.literal("form"),
5838
+ schema: formLayoutSchemaReferenceSchema.optional(),
5839
+ schemaId: z.string(),
5840
+ control: z.string().optional(),
5841
+ margin: sizeSchema.optional()
5842
+ });
5843
+ var instructionsLayoutSchema = z.object({
5844
+ type: z.literal("instructions"),
6072
5845
  title: z.string().optional(),
5846
+ items: z.array(instructionsLayoutItemSchema),
6073
5847
  control: z.string().optional(),
6074
5848
  margin: sizeSchema.optional()
6075
5849
  });
6076
- var decisionLayoutSchema = z.object({
6077
- type: z.literal("decision"),
6078
- options: z.array(decisionLayoutOptionSchema),
5850
+ var infoLayoutSchema = z.object({
5851
+ type: z.literal("info"),
5852
+ markdown: z.string(),
5853
+ align: alignSchema.optional(),
6079
5854
  control: z.string().optional(),
6080
5855
  margin: sizeSchema.optional()
6081
5856
  });
6082
- var statusListLayoutSchema = z.object({
6083
- type: z.literal("status-list"),
6084
- items: z.array(statusListLayoutItemSchema),
5857
+ var buttonLayoutSchema = z.object({
5858
+ type: z.literal("button"),
5859
+ size: sizeSchema.optional(),
6085
5860
  title: z.string().optional(),
5861
+ action: actionSchema,
5862
+ context: contextSchema.optional(),
5863
+ disabled: z.boolean().optional(),
5864
+ pinOrder: z.number().optional(),
6086
5865
  control: z.string().optional(),
6087
5866
  margin: sizeSchema.optional()
6088
5867
  });
5868
+ var reviewLayoutCallToActionSchema = z.object({
5869
+ title: z.string(),
5870
+ action: actionSchema
5871
+ });
6089
5872
  var reviewLayoutSchema = z.object({
6090
5873
  type: z.literal("review"),
6091
5874
  orientation: z.string().optional(),
@@ -6096,97 +5879,89 @@ var reviewLayoutSchema = z.object({
6096
5879
  control: z.string().optional(),
6097
5880
  margin: sizeSchema.optional()
6098
5881
  });
6099
- var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
6100
- var pollingSchema = z.object({
6101
- url: z.string(),
6102
- interval: z.number(),
6103
- maxAttempts: z.number(),
6104
- onError: pollingOnErrorSchema
5882
+ var searchResultActionSchema = z.object({
5883
+ type: z.literal("action"),
5884
+ title: z.string(),
5885
+ description: z.string().optional(),
5886
+ icon: iconSchema.optional(),
5887
+ image: imageLayoutSchema.optional(),
5888
+ value: actionSchema
6105
5889
  });
6106
- var navigationSchema = z.object({
6107
- backButton: navigationBackBehaviourSchema.optional(),
6108
- back: navigationBackBehaviourSchema.optional(),
6109
- stackBehavior: navigationStackBehaviorSchema.optional()
5890
+ var searchResultSearchSchema = z.object({
5891
+ type: z.literal("search"),
5892
+ title: z.string(),
5893
+ description: z.string().optional(),
5894
+ icon: iconSchema.optional(),
5895
+ image: imageLayoutSchema.optional(),
5896
+ value: searchSearchRequestSchema
6110
5897
  });
6111
- var searchResponseBodySchema = z.object({
6112
- results: z.array(searchResultSchema)
5898
+ var actionResponseBodySchema = z.object({
5899
+ action: actionSchema
6113
5900
  });
6114
- var layoutSchema = z.lazy(
6115
- () => z.union([
6116
- alertLayoutSchema,
6117
- boxLayoutSchema,
6118
- buttonLayoutSchema,
6119
- columnsLayoutSchema,
6120
- decisionLayoutSchema,
6121
- dividerLayoutSchema,
6122
- formLayoutSchema,
6123
- headingLayoutSchema,
6124
- imageLayoutSchema,
6125
- infoLayoutSchema,
6126
- instructionsLayoutSchema,
6127
- listLayoutSchema,
6128
- loadingIndicatorLayoutSchema,
6129
- markdownLayoutSchema,
6130
- modalLayoutSchema,
6131
- paragraphLayoutSchema,
6132
- reviewLayoutSchema,
6133
- searchLayoutSchema,
6134
- statusListLayoutSchema
6135
- ])
6136
- );
6137
- var boxLayoutSchema = z.lazy(
6138
- () => z.object({
6139
- type: z.literal("box"),
6140
- components: z.array(layoutSchema),
6141
- width: sizeSchema.optional(),
6142
- border: z.boolean().optional(),
6143
- control: z.string().optional(),
6144
- margin: sizeSchema.optional()
6145
- })
6146
- );
6147
- var columnsLayoutSchema = z.lazy(
6148
- () => z.object({
6149
- type: z.literal("columns"),
6150
- left: z.array(layoutSchema),
6151
- right: z.array(layoutSchema),
6152
- bias: columnsLayoutBiasSchema.optional(),
6153
- control: z.string().optional(),
6154
- margin: sizeSchema.optional()
6155
- })
6156
- );
6157
- var modalLayoutSchema = z.lazy(
6158
- () => z.object({
6159
- type: z.literal("modal"),
6160
- control: z.string().optional(),
6161
- margin: sizeSchema.optional(),
6162
- trigger: modalLayoutTriggerSchema,
6163
- content: modalLayoutContentSchema
6164
- })
6165
- );
6166
- var modalLayoutContentSchema = z.lazy(
6167
- () => z.object({
6168
- components: z.array(layoutSchema)
6169
- })
6170
- );
6171
- var stepSchema = z.lazy(
5901
+ var summarySummariserSchema = z.object({
5902
+ defaultTitle: z.string().optional(),
5903
+ defaultDescription: z.string().optional(),
5904
+ defaultIcon: iconSchema.optional(),
5905
+ defaultImage: imageLayoutSchema.optional(),
5906
+ providesTitle: z.boolean().optional(),
5907
+ providesDescription: z.boolean().optional(),
5908
+ providesIcon: z.boolean().optional(),
5909
+ providesImage: z.boolean().optional()
5910
+ });
5911
+ var pollingSchema = z.object({
5912
+ url: z.string(),
5913
+ interval: z.number(),
5914
+ maxAttempts: z.number(),
5915
+ onError: pollingOnErrorSchema
5916
+ });
5917
+ var navigationSchema = z.object({
5918
+ backButton: navigationBackBehaviourSchema.optional(),
5919
+ back: navigationBackBehaviourSchema.optional(),
5920
+ stackBehavior: navigationStackBehaviorSchema.optional()
5921
+ });
5922
+ var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
5923
+ var decisionLayoutSchema = z.object({
5924
+ type: z.literal("decision"),
5925
+ options: z.array(decisionLayoutOptionSchema),
5926
+ control: z.string().optional(),
5927
+ margin: sizeSchema.optional()
5928
+ });
5929
+ var listLayoutSchema = z.object({
5930
+ type: z.literal("list"),
5931
+ items: z.array(listLayoutItemSchema),
5932
+ title: z.string().optional(),
5933
+ control: z.string().optional(),
5934
+ margin: sizeSchema.optional()
5935
+ });
5936
+ var statusListLayoutSchema = z.object({
5937
+ type: z.literal("status-list"),
5938
+ items: z.array(statusListLayoutItemSchema),
5939
+ title: z.string().optional(),
5940
+ control: z.string().optional(),
5941
+ margin: sizeSchema.optional()
5942
+ });
5943
+ var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
5944
+ var searchResponseBodySchema = z.object({
5945
+ results: z.array(searchResultSchema)
5946
+ });
5947
+ var arraySchemaTupleSchema = z.lazy(
6172
5948
  () => z.object({
6173
- key: z.string().optional(),
6174
- type: z.string().optional(),
5949
+ type: z.literal("array"),
5950
+ promoted: z.boolean().optional(),
5951
+ $id: z.string().optional(),
5952
+ items: z.array(schemaSchema),
5953
+ title: z.string().optional(),
6175
5954
  description: z.string().optional(),
6176
- actions: z.array(actionSchema).optional(),
6177
- refreshFormUrl: z.string().optional(),
6178
- id: z.string(),
6179
- title: z.string(),
6180
- schemas: z.array(schemaSchema),
6181
- layout: z.array(layoutSchema),
6182
- model: jsonElementSchema.optional(),
6183
- external: externalSchema.optional(),
6184
- polling: pollingSchema.optional(),
6185
- linkHandlers: z.array(linkHandlerSchema).optional(),
6186
- analytics: z.record(z.string()).optional(),
6187
- errors: stepErrorSchema.optional(),
6188
- navigation: navigationSchema.optional(),
6189
- refreshUrl: z.string().optional()
5955
+ control: z.string().optional(),
5956
+ hidden: z.boolean().optional(),
5957
+ icon: iconSchema.optional(),
5958
+ image: imageSchema.optional(),
5959
+ keywords: z.array(z.string()).optional(),
5960
+ summary: summaryProviderSchema.optional(),
5961
+ analyticsId: z.string().optional(),
5962
+ persistAsync: persistAsyncSchema.optional(),
5963
+ validationAsync: validateAsyncSchema.optional(),
5964
+ alert: alertLayoutSchema.optional()
6190
5965
  })
6191
5966
  );
6192
5967
  var schemaSchema = z.lazy(
@@ -6203,6 +5978,94 @@ var schemaSchema = z.lazy(
6203
5978
  stringSchemaSchema
6204
5979
  ])
6205
5980
  );
5981
+ var persistAsyncSchema = z.lazy(
5982
+ () => z.object({
5983
+ param: z.string(),
5984
+ idProperty: z.string(),
5985
+ schema: schemaSchema,
5986
+ url: z.string(),
5987
+ method: httpMethodSchema
5988
+ })
5989
+ );
5990
+ var oneOfSchemaSchema = z.lazy(
5991
+ () => z.object({
5992
+ autofillProvider: z.string().optional(),
5993
+ promoted: z.boolean().optional(),
5994
+ refreshFormOnChange: z.boolean().optional(),
5995
+ refreshUrl: z.string().optional(),
5996
+ refreshFormUrl: z.string().optional(),
5997
+ promotion: jsonElementSchema.optional(),
5998
+ oneOf: z.array(schemaSchema),
5999
+ placeholder: z.string().optional(),
6000
+ $id: z.string().optional(),
6001
+ title: z.string().optional(),
6002
+ description: z.string().optional(),
6003
+ control: z.string().optional(),
6004
+ default: jsonElementSchema.optional(),
6005
+ hidden: z.boolean().optional(),
6006
+ icon: iconSchema.optional(),
6007
+ image: imageSchema.optional(),
6008
+ keywords: z.array(z.string()).optional(),
6009
+ summary: summaryProviderSchema.optional(),
6010
+ analyticsId: z.string().optional(),
6011
+ refreshStepOnChange: z.boolean().optional(),
6012
+ alert: alertLayoutSchema.optional(),
6013
+ help: helpSchema.optional(),
6014
+ autocompleteHint: z.array(autocompleteTokenSchema).optional(),
6015
+ autofillKey: z.string().optional(),
6016
+ validationMessages: z.record(z.string()).optional(),
6017
+ disabled: z.boolean().optional()
6018
+ })
6019
+ );
6020
+ var objectSchemaSchema = z.lazy(
6021
+ () => z.object({
6022
+ type: z.literal("object"),
6023
+ disabled: z.boolean().optional(),
6024
+ promoted: z.boolean().optional(),
6025
+ help: helpSchema.optional(),
6026
+ properties: z.record(schemaSchema),
6027
+ displayOrder: z.array(z.string()),
6028
+ required: z.array(z.string()).optional(),
6029
+ $id: z.string().optional(),
6030
+ title: z.string().optional(),
6031
+ description: z.string().optional(),
6032
+ control: z.string().optional(),
6033
+ hidden: z.boolean().optional(),
6034
+ icon: iconSchema.optional(),
6035
+ image: imageSchema.optional(),
6036
+ keywords: z.array(z.string()).optional(),
6037
+ summary: summaryProviderSchema.optional(),
6038
+ analyticsId: z.string().optional(),
6039
+ alert: alertLayoutSchema.optional()
6040
+ })
6041
+ );
6042
+ var arraySchemaListSchema = z.lazy(
6043
+ () => z.object({
6044
+ type: z.literal("array"),
6045
+ promoted: z.boolean().optional(),
6046
+ $id: z.string().optional(),
6047
+ items: schemaSchema,
6048
+ addItemTitle: z.string(),
6049
+ editItemTitle: z.string(),
6050
+ minItems: z.number().optional(),
6051
+ maxItems: z.number().optional(),
6052
+ placeholder: z.string().optional(),
6053
+ title: z.string().optional(),
6054
+ description: z.string().optional(),
6055
+ control: z.string().optional(),
6056
+ hidden: z.boolean().optional(),
6057
+ icon: iconSchema.optional(),
6058
+ image: imageSchema.optional(),
6059
+ keywords: z.array(z.string()).optional(),
6060
+ summary: summarySummariserSchema.optional(),
6061
+ analyticsId: z.string().optional(),
6062
+ persistAsync: persistAsyncSchema.optional(),
6063
+ validationAsync: validateAsyncSchema.optional(),
6064
+ alert: alertLayoutSchema.optional(),
6065
+ validationMessages: z.record(z.string()).optional(),
6066
+ disabled: z.boolean().optional()
6067
+ })
6068
+ );
6206
6069
  var allOfSchemaSchema = z.lazy(
6207
6070
  () => z.object({
6208
6071
  disabled: z.boolean().optional(),
@@ -6318,58 +6181,6 @@ var numberSchemaSchema = z.lazy(
6318
6181
  help: helpSchema.optional()
6319
6182
  })
6320
6183
  );
6321
- var objectSchemaSchema = z.lazy(
6322
- () => z.object({
6323
- type: z.literal("object"),
6324
- disabled: z.boolean().optional(),
6325
- promoted: z.boolean().optional(),
6326
- help: helpSchema.optional(),
6327
- properties: z.record(schemaSchema),
6328
- displayOrder: z.array(z.string()),
6329
- required: z.array(z.string()).optional(),
6330
- $id: z.string().optional(),
6331
- title: z.string().optional(),
6332
- description: z.string().optional(),
6333
- control: z.string().optional(),
6334
- hidden: z.boolean().optional(),
6335
- icon: iconSchema.optional(),
6336
- image: imageSchema.optional(),
6337
- keywords: z.array(z.string()).optional(),
6338
- summary: summaryProviderSchema.optional(),
6339
- analyticsId: z.string().optional(),
6340
- alert: alertLayoutSchema.optional()
6341
- })
6342
- );
6343
- var oneOfSchemaSchema = z.lazy(
6344
- () => z.object({
6345
- autofillProvider: z.string().optional(),
6346
- promoted: z.boolean().optional(),
6347
- refreshFormOnChange: z.boolean().optional(),
6348
- refreshUrl: z.string().optional(),
6349
- refreshFormUrl: z.string().optional(),
6350
- promotion: jsonElementSchema.optional(),
6351
- oneOf: z.array(schemaSchema),
6352
- placeholder: z.string().optional(),
6353
- $id: z.string().optional(),
6354
- title: z.string().optional(),
6355
- description: z.string().optional(),
6356
- control: z.string().optional(),
6357
- default: jsonElementSchema.optional(),
6358
- hidden: z.boolean().optional(),
6359
- icon: iconSchema.optional(),
6360
- image: imageSchema.optional(),
6361
- keywords: z.array(z.string()).optional(),
6362
- summary: summaryProviderSchema.optional(),
6363
- analyticsId: z.string().optional(),
6364
- refreshStepOnChange: z.boolean().optional(),
6365
- alert: alertLayoutSchema.optional(),
6366
- help: helpSchema.optional(),
6367
- autocompleteHint: z.array(autocompleteTokenSchema).optional(),
6368
- autofillKey: z.string().optional(),
6369
- validationMessages: z.record(z.string()).optional(),
6370
- disabled: z.boolean().optional()
6371
- })
6372
- );
6373
6184
  var stringSchemaSchema = z.lazy(
6374
6185
  () => z.object({
6375
6186
  type: z.literal("string"),
@@ -6412,60 +6223,82 @@ var stringSchemaSchema = z.lazy(
6412
6223
  help: helpSchema.optional()
6413
6224
  })
6414
6225
  );
6415
- var arraySchemaListSchema = z.lazy(
6226
+ var stepSchema = z.lazy(
6227
+ () => z.object({
6228
+ key: z.string().optional(),
6229
+ type: z.string().optional(),
6230
+ actions: z.array(actionSchema).optional(),
6231
+ refreshFormUrl: z.string().optional(),
6232
+ id: z.string(),
6233
+ title: z.string(),
6234
+ description: z.string().optional(),
6235
+ schemas: z.array(schemaSchema),
6236
+ layout: z.array(layoutSchema),
6237
+ model: jsonElementSchema.optional(),
6238
+ external: externalSchema.optional(),
6239
+ polling: pollingSchema.optional(),
6240
+ linkHandlers: z.array(linkHandlerSchema).optional(),
6241
+ analytics: z.record(z.string()).optional(),
6242
+ errors: stepErrorSchema.optional(),
6243
+ navigation: navigationSchema.optional(),
6244
+ refreshUrl: z.string().optional()
6245
+ })
6246
+ );
6247
+ var layoutSchema = z.lazy(
6248
+ () => z.union([
6249
+ alertLayoutSchema,
6250
+ boxLayoutSchema,
6251
+ buttonLayoutSchema,
6252
+ columnsLayoutSchema,
6253
+ decisionLayoutSchema,
6254
+ dividerLayoutSchema,
6255
+ formLayoutSchema,
6256
+ headingLayoutSchema,
6257
+ imageLayoutSchema,
6258
+ infoLayoutSchema,
6259
+ instructionsLayoutSchema,
6260
+ listLayoutSchema,
6261
+ loadingIndicatorLayoutSchema,
6262
+ markdownLayoutSchema,
6263
+ modalLayoutSchema,
6264
+ paragraphLayoutSchema,
6265
+ reviewLayoutSchema,
6266
+ searchLayoutSchema,
6267
+ statusListLayoutSchema
6268
+ ])
6269
+ );
6270
+ var boxLayoutSchema = z.lazy(
6271
+ () => z.object({
6272
+ type: z.literal("box"),
6273
+ components: z.array(layoutSchema),
6274
+ width: sizeSchema.optional(),
6275
+ border: z.boolean().optional(),
6276
+ control: z.string().optional(),
6277
+ margin: sizeSchema.optional()
6278
+ })
6279
+ );
6280
+ var modalLayoutSchema = z.lazy(
6416
6281
  () => z.object({
6417
- type: z.literal("array"),
6418
- promoted: z.boolean().optional(),
6419
- $id: z.string().optional(),
6420
- items: schemaSchema,
6421
- addItemTitle: z.string(),
6422
- editItemTitle: z.string(),
6423
- minItems: z.number().optional(),
6424
- maxItems: z.number().optional(),
6425
- placeholder: z.string().optional(),
6426
- title: z.string().optional(),
6427
- description: z.string().optional(),
6282
+ type: z.literal("modal"),
6428
6283
  control: z.string().optional(),
6429
- hidden: z.boolean().optional(),
6430
- icon: iconSchema.optional(),
6431
- image: imageSchema.optional(),
6432
- keywords: z.array(z.string()).optional(),
6433
- summary: summarySummariserSchema.optional(),
6434
- analyticsId: z.string().optional(),
6435
- persistAsync: persistAsyncSchema.optional(),
6436
- validationAsync: validateAsyncSchema.optional(),
6437
- alert: alertLayoutSchema.optional(),
6438
- validationMessages: z.record(z.string()).optional(),
6439
- disabled: z.boolean().optional()
6284
+ margin: sizeSchema.optional(),
6285
+ trigger: modalLayoutTriggerSchema,
6286
+ content: modalLayoutContentSchema
6440
6287
  })
6441
6288
  );
6442
- var persistAsyncSchema = z.lazy(
6289
+ var modalLayoutContentSchema = z.lazy(
6443
6290
  () => z.object({
6444
- param: z.string(),
6445
- idProperty: z.string(),
6446
- schema: schemaSchema,
6447
- url: z.string(),
6448
- method: httpMethodSchema
6291
+ components: z.array(layoutSchema)
6449
6292
  })
6450
6293
  );
6451
- var arraySchemaTupleSchema = z.lazy(
6294
+ var columnsLayoutSchema = z.lazy(
6452
6295
  () => z.object({
6453
- type: z.literal("array"),
6454
- promoted: z.boolean().optional(),
6455
- $id: z.string().optional(),
6456
- items: z.array(schemaSchema),
6457
- title: z.string().optional(),
6458
- description: z.string().optional(),
6296
+ type: z.literal("columns"),
6297
+ left: z.array(layoutSchema),
6298
+ right: z.array(layoutSchema),
6299
+ bias: columnsLayoutBiasSchema.optional(),
6459
6300
  control: z.string().optional(),
6460
- hidden: z.boolean().optional(),
6461
- icon: iconSchema.optional(),
6462
- image: imageSchema.optional(),
6463
- keywords: z.array(z.string()).optional(),
6464
- summary: summaryProviderSchema.optional(),
6465
- analyticsId: z.string().optional(),
6466
- persistAsync: persistAsyncSchema.optional(),
6467
- validationAsync: validateAsyncSchema.optional(),
6468
- alert: alertLayoutSchema.optional()
6301
+ margin: sizeSchema.optional()
6469
6302
  })
6470
6303
  );
6471
6304
  var validateStep = (step) => validate(step, stepSchema);
@@ -6882,9 +6715,7 @@ var compareLocalValue = (valueA, valueB) => {
6882
6715
  return valueA.length === valueB.length && valueA.every((value, index) => compareLocalValue(value, valueB[index]));
6883
6716
  }
6884
6717
  if (isObjectLocalValue(valueA) && isObjectLocalValue(valueB)) {
6885
- const keysA = Object.keys(valueA);
6886
- const keysB = Object.keys(valueB);
6887
- return keysA.length === keysB.length && keysA.every((key) => compareLocalValue(valueA[key], valueB[key]));
6718
+ return Object.keys(valueA).every((key) => compareLocalValue(valueA[key], valueB[key]));
6888
6719
  }
6889
6720
  return valueA === valueB;
6890
6721
  };
@@ -7654,7 +7485,12 @@ var mergeChildrenValues = (displayOrder, getComponentValue) => displayOrder.redu
7654
7485
  var objectSchemaToComponent = (schemaMapperProps, mapperProps) => {
7655
7486
  const { uid, localValue, schema, model, validationErrors } = schemaMapperProps;
7656
7487
  const { $id, displayOrder, properties, required } = schema;
7657
- validateDisplayOrder($id, displayOrder, properties, mapperProps.logEvent);
7488
+ const propertyNames = Object.keys(properties);
7489
+ if (displayOrder.length !== propertyNames.length) {
7490
+ throw new Error(
7491
+ `Object schema ${$id} has ${propertyNames.length} properties but only ${displayOrder.length} are listed in displayOrder`
7492
+ );
7493
+ }
7658
7494
  const componentMap = displayOrder.reduce((acc, propName) => {
7659
7495
  var _a;
7660
7496
  const propSchema = properties[propName];
@@ -7680,28 +7516,6 @@ var objectSchemaToComponent = (schemaMapperProps, mapperProps) => {
7680
7516
  displayOrder
7681
7517
  }));
7682
7518
  };
7683
- var validateDisplayOrder = ($id, displayOrder, properties, logEvent) => {
7684
- if (!displayOrder) {
7685
- const message = `Object schema ${$id} has no displayOrder property.`;
7686
- logEvent("error", message);
7687
- throw new Error(message);
7688
- }
7689
- const propertyNames = Object.keys(properties);
7690
- displayOrder.forEach((propName) => {
7691
- if (!properties[propName]) {
7692
- const message = `Object schema ${$id} has no property named "${propName}", but it is listed in the displayOrder array.`;
7693
- logEvent("error", message);
7694
- throw new Error(message);
7695
- }
7696
- });
7697
- propertyNames.forEach((propName) => {
7698
- if (!displayOrder.includes(propName)) {
7699
- const message = `Object schema ${$id} has a "${propName}" property which is missing in the displayOrder array.`;
7700
- logEvent("error", message);
7701
- throw new Error(message);
7702
- }
7703
- });
7704
- };
7705
7519
 
7706
7520
  // src/revamp/domain/components/AllOfComponent.ts
7707
7521
  var createAllOfComponent = (allOfProps) => {
@@ -7951,20 +7765,17 @@ var isPartialLocalValueMatch = (partialValue, component) => {
7951
7765
  if (isObjectLocalValue(partialValue) && isObjectLocalValue(componentValue)) {
7952
7766
  return isPartialObjectMatch(partialValue, componentValue, component);
7953
7767
  }
7954
- return null;
7768
+ return true;
7955
7769
  };
7956
7770
  var isPartialObjectMatch = (partialValue, componentValue, component) => {
7957
- const results = getMatchingKeys(partialValue, componentValue).map((key) => {
7771
+ const resultByKey = getMatchingKeys(partialValue, componentValue).map((key) => {
7958
7772
  const componentForKey = getComponentForLocalValueKey(key, component);
7959
- return componentForKey && componentForKey.type === "const" ? isPartialLocalValueMatch(partialValue[key], componentForKey) : null;
7773
+ if (componentForKey && componentForKey.type === "const") {
7774
+ return isPartialLocalValueMatch(partialValue[key], componentForKey);
7775
+ }
7776
+ return null;
7960
7777
  });
7961
- if (results.includes(false)) {
7962
- return false;
7963
- }
7964
- if (results.includes(true)) {
7965
- return true;
7966
- }
7967
- return null;
7778
+ return resultByKey.includes(true) && !resultByKey.includes(false);
7968
7779
  };
7969
7780
  var getMatchingKeys = (a, b) => {
7970
7781
  const allKeys = Array.from(/* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(b)]));
@@ -8079,7 +7890,7 @@ var createSelectInputComponent = (selectProps, updateComponent) => {
8079
7890
  }
8080
7891
  });
8081
7892
  };
8082
- var isTrue = (value) => value === true;
7893
+ var isTrue = (value) => value;
8083
7894
 
8084
7895
  // src/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.ts
8085
7896
  var oneOfSchemaToComponent = (schemaMapperProps, mapperProps) => {
@@ -9961,7 +9772,9 @@ var mapStepToComponent = (_a) => {
9961
9772
  stepPolling,
9962
9773
  updateComponent,
9963
9774
  title: displayStepTitle ? title : void 0,
9964
- trackEvent
9775
+ trackEvent,
9776
+ step,
9777
+ onAction
9965
9778
  });
9966
9779
  return stepComponent;
9967
9780
  };
@@ -10578,15 +10391,15 @@ var AlertRenderer = {
10578
10391
  };
10579
10392
  var AlertRenderer_default = AlertRenderer;
10580
10393
 
10581
- // ../../node_modules/.pnpm/@radix-ui+react-id@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
10394
+ // ../../node_modules/.pnpm/@radix-ui+react-id@1.0.1_@types+react@18.0.29_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.mjs
10582
10395
  import * as $2AODx$react from "react";
10583
10396
 
10584
- // ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
10397
+ // ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.0.1_@types+react@18.0.29_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
10585
10398
  import { useLayoutEffect as $dxlwH$useLayoutEffect } from "react";
10586
10399
  var $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? $dxlwH$useLayoutEffect : () => {
10587
10400
  };
10588
10401
 
10589
- // ../../node_modules/.pnpm/@radix-ui+react-id@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
10402
+ // ../../node_modules/.pnpm/@radix-ui+react-id@1.0.1_@types+react@18.0.29_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.mjs
10590
10403
  var $1746a345f3d73bb7$var$useReactId = $2AODx$react["useId".toString()] || (() => void 0);
10591
10404
  var $1746a345f3d73bb7$var$count = 0;
10592
10405
  function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
@@ -10602,7 +10415,7 @@ function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
10602
10415
  return deterministicId || (id ? `radix-${id}` : "");
10603
10416
  }
10604
10417
 
10605
- // ../../node_modules/.pnpm/@wise+forms@0.3.4_@transferwise+components@46.36.0_@types+react@18.3.3_react@18.3.1/node_modules/@wise/forms/dist/index.mjs
10418
+ // ../../node_modules/.pnpm/@wise+forms@0.3.4_@transferwise+components@46.35.0_@types+react@18.0.29_react@18.2.0/node_modules/@wise/forms/dist/index.mjs
10606
10419
  var import_classnames = __toESM(require_classnames(), 1);
10607
10420
  import { InlineAlert, Sentiment as Sentiment2, Input, TextArea } from "@transferwise/components";
10608
10421
  import { createContext as createContext2, useContext as useContext2, forwardRef } from "react";
@@ -10896,16 +10709,7 @@ function VariableDateInput({
10896
10709
  control,
10897
10710
  inputProps
10898
10711
  }) {
10899
- const {
10900
- autoComplete,
10901
- minimumDate,
10902
- maximumDate,
10903
- placeholder,
10904
- disabled,
10905
- onBlur,
10906
- onChange,
10907
- onFocus
10908
- } = inputProps;
10712
+ const { minimumDate, maximumDate, placeholder, disabled, onBlur, onChange, onFocus } = inputProps;
10909
10713
  if (control === "date-lookup") {
10910
10714
  return /* @__PURE__ */ jsx16(
10911
10715
  DateLookup,
@@ -10923,20 +10727,8 @@ function VariableDateInput({
10923
10727
  }
10924
10728
  );
10925
10729
  }
10926
- return /* @__PURE__ */ jsx16(
10927
- DateInput,
10928
- __spreadProps(__spreadValues({}, inputProps), {
10929
- dayAutoComplete: getAutocompleteString2(autoComplete, "day"),
10930
- yearAutoComplete: getAutocompleteString2(autoComplete, "year")
10931
- })
10932
- );
10730
+ return /* @__PURE__ */ jsx16(DateInput, __spreadValues({}, inputProps));
10933
10731
  }
10934
- var getAutocompleteString2 = (value, suffix) => {
10935
- if (value === "bday") {
10936
- return `${value}-${suffix}`;
10937
- }
10938
- return void 0;
10939
- };
10940
10732
  var VariableDateInput_default = VariableDateInput;
10941
10733
 
10942
10734
  // src/revamp/wise/renderers/DateInputRenderer.tsx
@@ -10973,7 +10765,7 @@ var DateInputRenderer_default = DateInputRenderer;
10973
10765
  // src/revamp/wise/renderers/DecisionRenderer.tsx
10974
10766
  import { NavigationOptionsList, NavigationOption } from "@transferwise/components";
10975
10767
 
10976
- // ../../node_modules/.pnpm/@wise+art@2.7.0_react-dom@18.3.1_react@18.3.1/node_modules/@wise/art/dist/index.esm.js
10768
+ // ../../node_modules/.pnpm/@wise+art@2.7.0_react-dom@18.2.0_react@18.2.0/node_modules/@wise/art/dist/index.esm.js
10977
10769
  import { useState as useState3, useEffect as useEffect2, forwardRef as forwardRef2 } from "react";
10978
10770
  import { jsx as jsx18, jsxs as jsxs5, Fragment as Fragment3 } from "react/jsx-runtime";
10979
10771
  var unknownFlagName = "wise";
@@ -11875,18 +11667,79 @@ function ItemSummaryOption({
11875
11667
  }
11876
11668
  var RepeatableRenderer_default = RepeatableRenderer;
11877
11669
 
11670
+ // src/revamp/wise/renderers/ReviewRenderer.tsx
11671
+ import { DefinitionList, Header as Header4 } from "@transferwise/components";
11672
+ import { Fragment as Fragment5, jsx as jsx41, jsxs as jsxs12 } from "react/jsx-runtime";
11673
+ var ReviewRenderer = {
11674
+ canRenderType: "review",
11675
+ render: ({ callToAction, control, fields, margin, title }) => {
11676
+ const orientation = mapControlToDefinitionListLayout(control);
11677
+ const action = callToAction ? {
11678
+ text: callToAction.title,
11679
+ onClick: (event) => {
11680
+ event.preventDefault();
11681
+ callToAction.onClick();
11682
+ }
11683
+ } : void 0;
11684
+ return /* @__PURE__ */ jsxs12("div", { className: getMargin(margin), children: [
11685
+ (title || callToAction) && /* @__PURE__ */ jsx41(Header4, { title: title != null ? title : "", action }),
11686
+ /* @__PURE__ */ jsx41("div", { className: margin, children: /* @__PURE__ */ jsx41(
11687
+ DefinitionList,
11688
+ {
11689
+ layout: orientation,
11690
+ definitions: fields.map(({ label, value, help }, index) => ({
11691
+ key: String(index),
11692
+ title: label,
11693
+ value: getFieldValue(value, help, orientation)
11694
+ }))
11695
+ }
11696
+ ) })
11697
+ ] });
11698
+ }
11699
+ };
11700
+ var ReviewRenderer_default = ReviewRenderer;
11701
+ var mapControlToDefinitionListLayout = (control) => {
11702
+ switch (control) {
11703
+ case "horizontal":
11704
+ case "horizontal-end-aligned":
11705
+ return "HORIZONTAL_RIGHT_ALIGNED";
11706
+ case "horizontal-start-aligned":
11707
+ return "HORIZONTAL_LEFT_ALIGNED";
11708
+ case "vertical-two-column":
11709
+ return "VERTICAL_TWO_COLUMN";
11710
+ case "vertical":
11711
+ case "vertical-one-column":
11712
+ default:
11713
+ return "VERTICAL_ONE_COLUMN";
11714
+ }
11715
+ };
11716
+ var getFieldValue = (value, help, orientation) => {
11717
+ if (help) {
11718
+ return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ jsxs12(Fragment5, { children: [
11719
+ /* @__PURE__ */ jsx41(Help_default, { help }),
11720
+ " ",
11721
+ value
11722
+ ] }) : /* @__PURE__ */ jsxs12(Fragment5, { children: [
11723
+ value,
11724
+ " ",
11725
+ /* @__PURE__ */ jsx41(Help_default, { help })
11726
+ ] });
11727
+ }
11728
+ return value;
11729
+ };
11730
+
11878
11731
  // src/revamp/wise/renderers/SearchRenderer/BlockSearchRendererComponent.tsx
11879
11732
  import { Input as Input5, Markdown as Markdown3, NavigationOption as NavigationOption3, NavigationOptionsList as NavigationOptionsList2 } from "@transferwise/components";
11880
11733
 
11881
11734
  // src/revamp/wise/renderers/SearchRenderer/ErrorResult.tsx
11882
11735
  import { useIntl as useIntl7 } from "react-intl";
11883
- import { jsx as jsx41, jsxs as jsxs12 } from "react/jsx-runtime";
11736
+ import { jsx as jsx42, jsxs as jsxs13 } from "react/jsx-runtime";
11884
11737
  function ErrorResult({ state }) {
11885
11738
  const intl = useIntl7();
11886
- return /* @__PURE__ */ jsxs12("p", { className: "m-t-2", children: [
11739
+ return /* @__PURE__ */ jsxs13("p", { className: "m-t-2", children: [
11887
11740
  intl.formatMessage(generic_error_messages_default.genericError),
11888
11741
  "\xA0",
11889
- /* @__PURE__ */ jsx41(
11742
+ /* @__PURE__ */ jsx42(
11890
11743
  "a",
11891
11744
  {
11892
11745
  href: "/",
@@ -11902,7 +11755,7 @@ function ErrorResult({ state }) {
11902
11755
 
11903
11756
  // src/revamp/wise/renderers/SearchRenderer/BlockSearchRendererComponent.tsx
11904
11757
  import { useState as useState8 } from "react";
11905
- import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs13 } from "react/jsx-runtime";
11758
+ import { Fragment as Fragment6, jsx as jsx43, jsxs as jsxs14 } from "react/jsx-runtime";
11906
11759
  function BlockSearchRendererComponent({
11907
11760
  id,
11908
11761
  isLoading,
@@ -11914,8 +11767,8 @@ function BlockSearchRendererComponent({
11914
11767
  }) {
11915
11768
  const [hasSearched, setHasSearched] = useState8(false);
11916
11769
  const trackEvent = useTrackEvent();
11917
- return /* @__PURE__ */ jsxs13("div", { className: getMargin(margin), children: [
11918
- /* @__PURE__ */ jsx42(FieldInput_default, { id, description: "", error: "", help: "", label: title, children: /* @__PURE__ */ jsx42(
11770
+ return /* @__PURE__ */ jsxs14("div", { className: getMargin(margin), children: [
11771
+ /* @__PURE__ */ jsx43(FieldInput_default, { id, description: "", error: "", help: "", label: title, children: /* @__PURE__ */ jsx43(
11919
11772
  Input5,
11920
11773
  {
11921
11774
  id,
@@ -11932,7 +11785,7 @@ function BlockSearchRendererComponent({
11932
11785
  }
11933
11786
  }
11934
11787
  ) }),
11935
- isLoading ? /* @__PURE__ */ jsx42(Fragment5, { children: "Loading..." }) : /* @__PURE__ */ jsx42(SearchResultContent, { state, onChange })
11788
+ isLoading ? /* @__PURE__ */ jsx43(Fragment6, { children: "Loading..." }) : /* @__PURE__ */ jsx43(SearchResultContent, { state, onChange })
11936
11789
  ] });
11937
11790
  }
11938
11791
  function SearchResultContent({
@@ -11941,29 +11794,29 @@ function SearchResultContent({
11941
11794
  }) {
11942
11795
  switch (state.type) {
11943
11796
  case "error":
11944
- return /* @__PURE__ */ jsx42(ErrorResult, { state });
11797
+ return /* @__PURE__ */ jsx43(ErrorResult, { state });
11945
11798
  case "results":
11946
- return /* @__PURE__ */ jsx42(SearchResults, { state, onChange });
11799
+ return /* @__PURE__ */ jsx43(SearchResults, { state, onChange });
11947
11800
  case "noResults":
11948
- return /* @__PURE__ */ jsx42(EmptySearchResult, { state });
11801
+ return /* @__PURE__ */ jsx43(EmptySearchResult, { state });
11949
11802
  case "pending":
11950
11803
  default:
11951
11804
  return null;
11952
11805
  }
11953
11806
  }
11954
11807
  function EmptySearchResult({ state }) {
11955
- return /* @__PURE__ */ jsx42(Markdown3, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
11808
+ return /* @__PURE__ */ jsx43(Markdown3, { className: "m-t-2", config: { link: { target: "_blank" } }, children: state.message });
11956
11809
  }
11957
11810
  function SearchResults({
11958
11811
  state
11959
11812
  }) {
11960
11813
  const trackEvent = useTrackEvent();
11961
- return /* @__PURE__ */ jsx42(NavigationOptionsList2, { children: state.results.map((result) => /* @__PURE__ */ jsx42(
11814
+ return /* @__PURE__ */ jsx43(NavigationOptionsList2, { children: state.results.map((result) => /* @__PURE__ */ jsx43(
11962
11815
  NavigationOption3,
11963
11816
  {
11964
11817
  title: result.title,
11965
11818
  content: result.description,
11966
- media: /* @__PURE__ */ jsx42(NavigationOptionMedia, __spreadValues({}, result)),
11819
+ media: /* @__PURE__ */ jsx43(NavigationOptionMedia, __spreadValues({}, result)),
11967
11820
  showMediaCircle: false,
11968
11821
  showMediaAtAllSizes: true,
11969
11822
  onClick: () => {
@@ -11982,7 +11835,7 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
11982
11835
  import { Markdown as Markdown4, Typeahead } from "@transferwise/components";
11983
11836
  import { Search } from "@transferwise/icons";
11984
11837
  import { useState as useState9 } from "react";
11985
- import { jsx as jsx43, jsxs as jsxs14 } from "react/jsx-runtime";
11838
+ import { jsx as jsx44, jsxs as jsxs15 } from "react/jsx-runtime";
11986
11839
  function InlineSearchRenderer({
11987
11840
  id,
11988
11841
  isLoading,
@@ -11993,19 +11846,19 @@ function InlineSearchRenderer({
11993
11846
  }) {
11994
11847
  const [hasSearched, setHasSearched] = useState9(false);
11995
11848
  const trackEvent = useTrackEvent();
11996
- return /* @__PURE__ */ jsx43("div", { className: getMargin(margin), children: /* @__PURE__ */ jsxs14(FieldInput_default, { id, description: "", error: "", help: "", label: title, children: [
11849
+ return /* @__PURE__ */ jsx44("div", { className: getMargin(margin), children: /* @__PURE__ */ jsxs15(FieldInput_default, { id, description: "", error: "", help: "", label: title, children: [
11997
11850
  id,
11998
- /* @__PURE__ */ jsx43(
11851
+ /* @__PURE__ */ jsx44(
11999
11852
  Typeahead,
12000
11853
  {
12001
11854
  id: "typeahead-input-id",
12002
11855
  name: "typeahead-input-name",
12003
11856
  size: "md",
12004
11857
  maxHeight: 100,
12005
- footer: /* @__PURE__ */ jsx43(TypeaheadFooter, { state, isLoading }),
11858
+ footer: /* @__PURE__ */ jsx44(TypeaheadFooter, { state, isLoading }),
12006
11859
  multiple: false,
12007
11860
  clearable: false,
12008
- addon: /* @__PURE__ */ jsx43(Search, { size: 24 }),
11861
+ addon: /* @__PURE__ */ jsx44(Search, { size: 24 }),
12009
11862
  options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
12010
11863
  minQueryLength: 1,
12011
11864
  onChange: (values) => {
@@ -12042,29 +11895,29 @@ function mapResultToTypeaheadOption(result) {
12042
11895
  }
12043
11896
  function TypeaheadFooter({ state, isLoading }) {
12044
11897
  if (state.type === "noResults") {
12045
- return /* @__PURE__ */ jsx43(Markdown4, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
11898
+ return /* @__PURE__ */ jsx44(Markdown4, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
12046
11899
  }
12047
11900
  if (state.type === "error") {
12048
- return /* @__PURE__ */ jsx43("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx43(ErrorResult, { state }) });
11901
+ return /* @__PURE__ */ jsx44("div", { className: "m-t-2 m-x-2", children: /* @__PURE__ */ jsx44(ErrorResult, { state }) });
12049
11902
  }
12050
11903
  if (state.type === "pending" || isLoading) {
12051
- return /* @__PURE__ */ jsx43("p", { className: "m-t-2 m-x-2", children: "Loading..." });
11904
+ return /* @__PURE__ */ jsx44("p", { className: "m-t-2 m-x-2", children: "Loading..." });
12052
11905
  }
12053
11906
  return null;
12054
11907
  }
12055
11908
  var InlineSearchRendererComponent_default = InlineSearchRenderer;
12056
11909
 
12057
11910
  // src/revamp/wise/renderers/SearchRenderer/SearchRenderer.tsx
12058
- import { jsx as jsx44 } from "react/jsx-runtime";
11911
+ import { jsx as jsx45 } from "react/jsx-runtime";
12059
11912
  var SearchRenderer = {
12060
11913
  canRenderType: "search",
12061
- render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx44(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx44(BlockSearchRendererComponent_default, __spreadValues({}, props))
11914
+ render: (props) => props.control === "inline" ? /* @__PURE__ */ jsx45(InlineSearchRendererComponent_default, __spreadValues({}, props)) : /* @__PURE__ */ jsx45(BlockSearchRendererComponent_default, __spreadValues({}, props))
12062
11915
  };
12063
11916
  var SearchRenderer_default = SearchRenderer;
12064
11917
 
12065
11918
  // src/revamp/wise/renderers/SelectInputRenderer/RadioInputRendererComponent.tsx
12066
11919
  import { RadioGroup } from "@transferwise/components";
12067
- import { Fragment as Fragment6, jsx as jsx45, jsxs as jsxs15 } from "react/jsx-runtime";
11920
+ import { Fragment as Fragment7, jsx as jsx46, jsxs as jsxs16 } from "react/jsx-runtime";
12068
11921
  function RadioInputRendererComponent(props) {
12069
11922
  const {
12070
11923
  id,
@@ -12078,8 +11931,8 @@ function RadioInputRendererComponent(props) {
12078
11931
  selectedIndex,
12079
11932
  onSelect
12080
11933
  } = props;
12081
- return /* @__PURE__ */ jsxs15(Fragment6, { children: [
12082
- /* @__PURE__ */ jsx45(FieldInput_default, { id, label, help, description, error, children: /* @__PURE__ */ jsx45("span", { children: /* @__PURE__ */ jsx45(
11934
+ return /* @__PURE__ */ jsxs16(Fragment7, { children: [
11935
+ /* @__PURE__ */ jsx46(FieldInput_default, { id, label, help, description, error, children: /* @__PURE__ */ jsx46("span", { children: /* @__PURE__ */ jsx46(
12083
11936
  RadioGroup,
12084
11937
  {
12085
11938
  name: id,
@@ -12088,7 +11941,7 @@ function RadioInputRendererComponent(props) {
12088
11941
  value: index,
12089
11942
  secondary: option.description,
12090
11943
  disabled: option.disabled || disabled,
12091
- avatar: /* @__PURE__ */ jsx45(OptionMedia, { icon: option.icon, image: option.image })
11944
+ avatar: /* @__PURE__ */ jsx46(OptionMedia, { icon: option.icon, image: option.image })
12092
11945
  })),
12093
11946
  selectedValue: selectedIndex != null ? selectedIndex : void 0,
12094
11947
  onChange: onSelect
@@ -12102,7 +11955,7 @@ function RadioInputRendererComponent(props) {
12102
11955
  // src/revamp/wise/renderers/SelectInputRenderer/TabInputRendererComponent.tsx
12103
11956
  import { Tabs } from "@transferwise/components";
12104
11957
  import { useEffect as useEffect4 } from "react";
12105
- import { Fragment as Fragment7, jsx as jsx46, jsxs as jsxs16 } from "react/jsx-runtime";
11958
+ import { Fragment as Fragment8, jsx as jsx47, jsxs as jsxs17 } from "react/jsx-runtime";
12106
11959
  function TabInputRendererComponent(props) {
12107
11960
  const {
12108
11961
  id,
@@ -12121,8 +11974,8 @@ function TabInputRendererComponent(props) {
12121
11974
  onSelect(0);
12122
11975
  }
12123
11976
  }, [selectedIndex, onSelect, options.length]);
12124
- return /* @__PURE__ */ jsxs16(Fragment7, { children: [
12125
- /* @__PURE__ */ jsx46(FieldInput_default, { id, label, help, description, error, children: /* @__PURE__ */ jsx46(
11977
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
11978
+ /* @__PURE__ */ jsx47(FieldInput_default, { id, label, help, description, error, children: /* @__PURE__ */ jsx47(
12126
11979
  Tabs,
12127
11980
  {
12128
11981
  name: id,
@@ -12131,7 +11984,7 @@ function TabInputRendererComponent(props) {
12131
11984
  title: option.title,
12132
11985
  // if we pass null, we get some props-types console errors
12133
11986
  // eslint-disable-next-line react/jsx-no-useless-fragment
12134
- content: /* @__PURE__ */ jsx46(Fragment7, {}),
11987
+ content: /* @__PURE__ */ jsx47(Fragment8, {}),
12135
11988
  disabled: option.disabled || disabled
12136
11989
  })),
12137
11990
  onTabSelect: onSelect
@@ -12147,22 +12000,22 @@ import { SelectInput as SelectInput2, SelectInputOptionContent as SelectInputOpt
12147
12000
 
12148
12001
  // src/revamp/wise/renderers/SelectInputRenderer/SelectTriggerMedia.tsx
12149
12002
  import { Avatar as Avatar3, AvatarType as AvatarType3 } from "@transferwise/components";
12150
- import { jsx as jsx47 } from "react/jsx-runtime";
12003
+ import { jsx as jsx48 } from "react/jsx-runtime";
12151
12004
  function SelectTriggerMedia({ icon, image }) {
12152
12005
  if (image == null ? void 0 : image.url) {
12153
12006
  return null;
12154
12007
  }
12155
12008
  if (icon && "name" in icon) {
12156
- return /* @__PURE__ */ jsx47(Avatar3, { type: AvatarType3.ICON, size: 24, children: /* @__PURE__ */ jsx47(DynamicIcon_default, { name: icon.name }) });
12009
+ return /* @__PURE__ */ jsx48(Avatar3, { type: AvatarType3.ICON, size: 24, children: /* @__PURE__ */ jsx48(DynamicIcon_default, { name: icon.name }) });
12157
12010
  }
12158
12011
  if (icon && "text" in icon) {
12159
- return /* @__PURE__ */ jsx47(Avatar3, { type: AvatarType3.ICON, size: 24, children: icon.text });
12012
+ return /* @__PURE__ */ jsx48(Avatar3, { type: AvatarType3.ICON, size: 24, children: icon.text });
12160
12013
  }
12161
12014
  return null;
12162
12015
  }
12163
12016
 
12164
12017
  // src/revamp/wise/renderers/SelectInputRenderer/SelectInputRendererComponent.tsx
12165
- import { Fragment as Fragment8, jsx as jsx48, jsxs as jsxs17 } from "react/jsx-runtime";
12018
+ import { Fragment as Fragment9, jsx as jsx49, jsxs as jsxs18 } from "react/jsx-runtime";
12166
12019
  function SelectInputRendererComponent(props) {
12167
12020
  const {
12168
12021
  id,
@@ -12197,16 +12050,16 @@ function SelectInputRendererComponent(props) {
12197
12050
  const contentProps = withinTrigger ? {
12198
12051
  title: option.title,
12199
12052
  note: option.description,
12200
- icon: /* @__PURE__ */ jsx48(SelectTriggerMedia, { icon: option.icon, image: option.image })
12053
+ icon: /* @__PURE__ */ jsx49(SelectTriggerMedia, { icon: option.icon, image: option.image })
12201
12054
  } : {
12202
12055
  title: option.title,
12203
12056
  description: option.description,
12204
- icon: /* @__PURE__ */ jsx48(OptionMedia, { icon: option.icon, image: option.image })
12057
+ icon: /* @__PURE__ */ jsx49(OptionMedia, { icon: option.icon, image: option.image })
12205
12058
  };
12206
- return /* @__PURE__ */ jsx48(SelectInputOptionContent2, __spreadValues({}, contentProps));
12059
+ return /* @__PURE__ */ jsx49(SelectInputOptionContent2, __spreadValues({}, contentProps));
12207
12060
  };
12208
- return /* @__PURE__ */ jsxs17(Fragment8, { children: [
12209
- /* @__PURE__ */ jsx48(FieldInput_default, { id, label, help, description, error, children: /* @__PURE__ */ jsx48(
12061
+ return /* @__PURE__ */ jsxs18(Fragment9, { children: [
12062
+ /* @__PURE__ */ jsx49(FieldInput_default, { id, label, help, description, error, children: /* @__PURE__ */ jsx49(
12210
12063
  SelectInput2,
12211
12064
  {
12212
12065
  name: id,
@@ -12227,7 +12080,7 @@ function SelectInputRendererComponent(props) {
12227
12080
  // src/revamp/wise/renderers/SelectInputRenderer/SegmentedInputRendererComponent.tsx
12228
12081
  import { useEffect as useEffect5 } from "react";
12229
12082
  import { SegmentedControl } from "@transferwise/components";
12230
- import { Fragment as Fragment9, jsx as jsx49, jsxs as jsxs18 } from "react/jsx-runtime";
12083
+ import { Fragment as Fragment10, jsx as jsx50, jsxs as jsxs19 } from "react/jsx-runtime";
12231
12084
  function SegmentedInputRendererComponent(props) {
12232
12085
  const { id, children, description, error, help, label, options, selectedIndex, onSelect } = props;
12233
12086
  useEffect5(() => {
@@ -12235,8 +12088,8 @@ function SegmentedInputRendererComponent(props) {
12235
12088
  onSelect(0);
12236
12089
  }
12237
12090
  }, [selectedIndex, onSelect, options.length]);
12238
- return /* @__PURE__ */ jsxs18(Fragment9, { children: [
12239
- /* @__PURE__ */ jsx49(FieldInput_default, { id, label, help, description, error, children: /* @__PURE__ */ jsx49(
12091
+ return /* @__PURE__ */ jsxs19(Fragment10, { children: [
12092
+ /* @__PURE__ */ jsx50(FieldInput_default, { id, label, help, description, error, children: /* @__PURE__ */ jsx50(
12240
12093
  SegmentedControl,
12241
12094
  {
12242
12095
  name: `${id}-segmented-control`,
@@ -12251,44 +12104,44 @@ function SegmentedInputRendererComponent(props) {
12251
12104
  onChange: (value) => onSelect(Number(value))
12252
12105
  }
12253
12106
  ) }),
12254
- /* @__PURE__ */ jsx49("div", { id: `${id}-children`, children })
12107
+ /* @__PURE__ */ jsx50("div", { id: `${id}-children`, children })
12255
12108
  ] });
12256
12109
  }
12257
12110
  var isValidIndex2 = (index, options) => index !== null && index >= 0 && index < options;
12258
12111
 
12259
12112
  // src/revamp/wise/renderers/SelectInputRenderer/SelectInputRenderer.tsx
12260
- import { jsx as jsx50 } from "react/jsx-runtime";
12113
+ import { jsx as jsx51 } from "react/jsx-runtime";
12261
12114
  var SelectInputRenderer = {
12262
12115
  canRenderType: "input-select",
12263
12116
  render: (props) => {
12264
12117
  switch (props.control) {
12265
12118
  case "radio":
12266
- return /* @__PURE__ */ jsx50(RadioInputRendererComponent, __spreadValues({}, props));
12119
+ return /* @__PURE__ */ jsx51(RadioInputRendererComponent, __spreadValues({}, props));
12267
12120
  case "tab":
12268
- return props.options.length > 3 ? /* @__PURE__ */ jsx50(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx50(TabInputRendererComponent, __spreadValues({}, props));
12121
+ return props.options.length > 3 ? /* @__PURE__ */ jsx51(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx51(TabInputRendererComponent, __spreadValues({}, props));
12269
12122
  case "segmented":
12270
- return props.options.length > 3 ? /* @__PURE__ */ jsx50(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx50(SegmentedInputRendererComponent, __spreadValues({}, props));
12123
+ return props.options.length > 3 ? /* @__PURE__ */ jsx51(SelectInputRendererComponent, __spreadValues({}, props)) : /* @__PURE__ */ jsx51(SegmentedInputRendererComponent, __spreadValues({}, props));
12271
12124
  case "select":
12272
12125
  default:
12273
- return /* @__PURE__ */ jsx50(SelectInputRendererComponent, __spreadValues({}, props));
12126
+ return /* @__PURE__ */ jsx51(SelectInputRendererComponent, __spreadValues({}, props));
12274
12127
  }
12275
12128
  }
12276
12129
  };
12277
12130
  var SelectInputRenderer_default = SelectInputRenderer;
12278
12131
 
12279
12132
  // src/revamp/wise/renderers/StatusListRenderer.tsx
12280
- import { Header as Header4, Summary } from "@transferwise/components";
12281
- import { jsx as jsx51, jsxs as jsxs19 } from "react/jsx-runtime";
12133
+ import { Header as Header5, Summary } from "@transferwise/components";
12134
+ import { jsx as jsx52, jsxs as jsxs20 } from "react/jsx-runtime";
12282
12135
  var StatusListRenderer = {
12283
12136
  canRenderType: "status-list",
12284
- render: ({ margin, items, title }) => /* @__PURE__ */ jsxs19("div", { className: getMargin(margin), children: [
12285
- title ? /* @__PURE__ */ jsx51(Header4, { title }) : null,
12286
- items.map(({ description, icon, status, title: itemTitle }) => /* @__PURE__ */ jsx51(
12137
+ render: ({ margin, items, title }) => /* @__PURE__ */ jsxs20("div", { className: getMargin(margin), children: [
12138
+ title ? /* @__PURE__ */ jsx52(Header5, { title }) : null,
12139
+ items.map(({ description, icon, status, title: itemTitle }) => /* @__PURE__ */ jsx52(
12287
12140
  Summary,
12288
12141
  {
12289
12142
  title: itemTitle,
12290
12143
  description,
12291
- icon: icon && "name" in icon ? /* @__PURE__ */ jsx51(DynamicIcon_default, { name: icon.name }) : null,
12144
+ icon: icon && "name" in icon ? /* @__PURE__ */ jsx52(DynamicIcon_default, { name: icon.name }) : null,
12292
12145
  status: mapStatus(status)
12293
12146
  },
12294
12147
  `${title}/${description || ""}`
@@ -12311,31 +12164,31 @@ import {
12311
12164
  TextArea as TextArea2,
12312
12165
  TextareaWithDisplayFormat
12313
12166
  } from "@transferwise/components";
12314
- import { jsx as jsx52 } from "react/jsx-runtime";
12167
+ import { jsx as jsx53 } from "react/jsx-runtime";
12315
12168
  function VariableTextInput({
12316
12169
  control,
12317
12170
  inputProps
12318
12171
  }) {
12319
12172
  switch (control) {
12320
12173
  case "password":
12321
- return /* @__PURE__ */ jsx52(TextInput, __spreadValues({ type: "password" }, inputProps));
12174
+ return /* @__PURE__ */ jsx53(TextInput, __spreadValues({ type: "password" }, inputProps));
12322
12175
  case "email":
12323
- return /* @__PURE__ */ jsx52(TextInput, __spreadValues({ type: "email" }, inputProps));
12176
+ return /* @__PURE__ */ jsx53(TextInput, __spreadValues({ type: "email" }, inputProps));
12324
12177
  case "textarea":
12325
- return /* @__PURE__ */ jsx52(TextAreaInput, __spreadValues({}, inputProps));
12178
+ return /* @__PURE__ */ jsx53(TextAreaInput, __spreadValues({}, inputProps));
12326
12179
  case "numeric":
12327
- return /* @__PURE__ */ jsx52(NumericInput, __spreadValues({ type: "number" }, inputProps));
12180
+ return /* @__PURE__ */ jsx53(NumericInput, __spreadValues({ type: "number" }, inputProps));
12328
12181
  case "phone-number":
12329
- return /* @__PURE__ */ jsx52(PhoneNumberInput, __spreadValues({}, inputProps));
12182
+ return /* @__PURE__ */ jsx53(PhoneNumberInput, __spreadValues({}, inputProps));
12330
12183
  default:
12331
- return /* @__PURE__ */ jsx52(TextInput, __spreadValues({ type: "text" }, inputProps));
12184
+ return /* @__PURE__ */ jsx53(TextInput, __spreadValues({ type: "text" }, inputProps));
12332
12185
  }
12333
12186
  }
12334
12187
  function TextInput(_a) {
12335
12188
  var _b = _a, { id, displayFormat, onChange } = _b, rest = __objRest(_b, ["id", "displayFormat", "onChange"]);
12336
12189
  if (typeof displayFormat === "string") {
12337
12190
  const inputProps = __spreadValues({ id, name: id, className: "form-control" }, rest);
12338
- return /* @__PURE__ */ jsx52(
12191
+ return /* @__PURE__ */ jsx53(
12339
12192
  InputWithDisplayFormat,
12340
12193
  __spreadValues({
12341
12194
  displayPattern: displayFormat,
@@ -12343,29 +12196,29 @@ function TextInput(_a) {
12343
12196
  }, inputProps)
12344
12197
  );
12345
12198
  }
12346
- return /* @__PURE__ */ jsx52(Input6, __spreadValues({ id, name: id, onChange: (e) => onChange(e.target.value) }, rest));
12199
+ return /* @__PURE__ */ jsx53(Input6, __spreadValues({ id, name: id, onChange: (e) => onChange(e.target.value) }, rest));
12347
12200
  }
12348
12201
  function TextAreaInput(_a) {
12349
12202
  var _b = _a, { id, displayFormat, onChange } = _b, rest = __objRest(_b, ["id", "displayFormat", "onChange"]);
12350
12203
  const textAreaProps = __spreadValues({ id, name: id }, rest);
12351
- return typeof displayFormat === "string" ? /* @__PURE__ */ jsx52(
12204
+ return typeof displayFormat === "string" ? /* @__PURE__ */ jsx53(
12352
12205
  TextareaWithDisplayFormat,
12353
12206
  __spreadValues({
12354
12207
  displayPattern: displayFormat,
12355
12208
  onChange: (newValue) => onChange(newValue)
12356
12209
  }, textAreaProps)
12357
- ) : /* @__PURE__ */ jsx52(TextArea2, __spreadValues({ onChange: (e) => onChange(e.target.value) }, textAreaProps));
12210
+ ) : /* @__PURE__ */ jsx53(TextArea2, __spreadValues({ onChange: (e) => onChange(e.target.value) }, textAreaProps));
12358
12211
  }
12359
12212
  function NumericInput(_a) {
12360
12213
  var _b = _a, { id, displayFormat, onChange } = _b, rest = __objRest(_b, ["id", "displayFormat", "onChange"]);
12361
12214
  const numericProps = __spreadValues({ id, name: id, onWheel }, rest);
12362
- return typeof displayFormat === "string" ? /* @__PURE__ */ jsx52(
12215
+ return typeof displayFormat === "string" ? /* @__PURE__ */ jsx53(
12363
12216
  InputWithDisplayFormat,
12364
12217
  __spreadValues({
12365
12218
  displayPattern: displayFormat,
12366
12219
  onChange: (newValue) => onChange(numericValueOrNull(newValue))
12367
12220
  }, numericProps)
12368
- ) : /* @__PURE__ */ jsx52(
12221
+ ) : /* @__PURE__ */ jsx53(
12369
12222
  Input6,
12370
12223
  __spreadValues({
12371
12224
  onChange: ({ target: { value: newValue } }) => onChange(numericValueOrNull(newValue))
@@ -12374,12 +12227,12 @@ function NumericInput(_a) {
12374
12227
  }
12375
12228
  function PhoneNumberInput(_a) {
12376
12229
  var _b = _a, { value } = _b, rest = __objRest(_b, ["value"]);
12377
- return /* @__PURE__ */ jsx52(PhoneNumber, __spreadValues({ initialValue: value }, rest));
12230
+ return /* @__PURE__ */ jsx53(PhoneNumber, __spreadValues({ initialValue: value }, rest));
12378
12231
  }
12379
12232
  var VariableTextInput_default = VariableTextInput;
12380
12233
 
12381
12234
  // src/revamp/wise/renderers/TextInputRenderer.tsx
12382
- import { jsx as jsx53 } from "react/jsx-runtime";
12235
+ import { jsx as jsx54 } from "react/jsx-runtime";
12383
12236
  var TextInputRenderer = {
12384
12237
  canRenderType: "input-text",
12385
12238
  render: (props) => {
@@ -12404,14 +12257,14 @@ var TextInputRenderer = {
12404
12257
  ]);
12405
12258
  const value = initialValue != null ? initialValue : "";
12406
12259
  const inputProps = __spreadProps(__spreadValues({}, rest), { value, id });
12407
- return /* @__PURE__ */ jsx53(FieldInput_default, { id, label, description, error, help, children: /* @__PURE__ */ jsx53(VariableTextInput_default, { control, inputProps }) });
12260
+ return /* @__PURE__ */ jsx54(FieldInput_default, { id, label, description, error, help, children: /* @__PURE__ */ jsx54(VariableTextInput_default, { control, inputProps }) });
12408
12261
  }
12409
12262
  };
12410
12263
  var TextInputRenderer_default = TextInputRenderer;
12411
12264
 
12412
12265
  // src/revamp/wise/renderers/UploadInputRenderer.tsx
12413
12266
  import { Upload, UploadInput as UploadInput2 } from "@transferwise/components";
12414
- import { jsx as jsx54 } from "react/jsx-runtime";
12267
+ import { jsx as jsx55 } from "react/jsx-runtime";
12415
12268
  var UploadInputRenderer = {
12416
12269
  canRenderType: "input-upload",
12417
12270
  render: (props) => {
@@ -12427,7 +12280,7 @@ var UploadInputRenderer = {
12427
12280
  };
12428
12281
  return (
12429
12282
  // We don't pass help here as there is no sensible place to display it
12430
- /* @__PURE__ */ jsx54(UploadFieldInput_default, { id, label: void 0, description: void 0, error, children: /* @__PURE__ */ jsx54(
12283
+ /* @__PURE__ */ jsx55(UploadFieldInput_default, { id, label: void 0, description: void 0, error, children: /* @__PURE__ */ jsx55(
12431
12284
  UploadInput2,
12432
12285
  {
12433
12286
  id,
@@ -12460,100 +12313,39 @@ var LargeUploadRenderer = {
12460
12313
  type,
12461
12314
  onUpload
12462
12315
  } = _a, rest = __objRest(_a, [
12463
- "id",
12464
- "accepts",
12465
- "control",
12466
- "label",
12467
- "description",
12468
- "disabled",
12469
- "error",
12470
- "help",
12471
- "maxSize",
12472
- "type",
12473
- "onUpload"
12474
- ]);
12475
- const uploadProps = __spreadProps(__spreadValues({}, rest), { id, name: id });
12476
- const onUploadFile = async (file, fileName) => {
12477
- try {
12478
- const convertedFile = file ? await toFile(file, fileName) : null;
12479
- await onUpload(convertedFile);
12480
- } catch (e) {
12481
- await onUpload(null);
12482
- throw e;
12483
- }
12484
- };
12485
- return /* @__PURE__ */ jsx54(FieldInput_default, { id, label, description, error, help, children: /* @__PURE__ */ jsx54(
12486
- Upload,
12487
- __spreadProps(__spreadValues({}, uploadProps), {
12488
- usAccept: getAcceptsString(accepts),
12489
- usDisabled: disabled,
12490
- onSuccess: onUploadFile,
12491
- onFailure: async () => onUpload(null),
12492
- onCancel: async () => onUpload(null)
12493
- })
12494
- ) });
12495
- }
12496
- };
12497
-
12498
- // src/revamp/wise/renderers/ReviewRenderer.tsx
12499
- import { DefinitionList, Header as Header5 } from "@transferwise/components";
12500
- import { Fragment as Fragment10, jsx as jsx55, jsxs as jsxs20 } from "react/jsx-runtime";
12501
- var ReviewRenderer = {
12502
- canRenderType: "review",
12503
- render: ({ callToAction, control, fields, margin, title }) => {
12504
- const orientation = mapControlToDefinitionListLayout(control);
12505
- const action = callToAction ? {
12506
- text: callToAction.title,
12507
- onClick: (event) => {
12508
- event.preventDefault();
12509
- callToAction.onClick();
12510
- }
12511
- } : void 0;
12512
- return /* @__PURE__ */ jsxs20("div", { className: getMargin(margin), children: [
12513
- (title || callToAction) && /* @__PURE__ */ jsx55(Header5, { title: title != null ? title : "", action }),
12514
- /* @__PURE__ */ jsx55("div", { className: margin, children: /* @__PURE__ */ jsx55(
12515
- DefinitionList,
12516
- {
12517
- layout: orientation,
12518
- definitions: fields.map(({ label, value, help }, index) => ({
12519
- key: String(index),
12520
- title: label,
12521
- value: getFieldValue(value, help, orientation)
12522
- }))
12523
- }
12524
- ) })
12525
- ] });
12526
- }
12527
- };
12528
- var ReviewRenderer_default = ReviewRenderer;
12529
- var mapControlToDefinitionListLayout = (control) => {
12530
- switch (control) {
12531
- case "horizontal":
12532
- case "horizontal-end-aligned":
12533
- return "HORIZONTAL_RIGHT_ALIGNED";
12534
- case "horizontal-start-aligned":
12535
- return "HORIZONTAL_LEFT_ALIGNED";
12536
- case "vertical-two-column":
12537
- return "VERTICAL_TWO_COLUMN";
12538
- case "vertical":
12539
- case "vertical-one-column":
12540
- default:
12541
- return "VERTICAL_ONE_COLUMN";
12542
- }
12543
- };
12544
- var getFieldValue = (value, help, orientation) => {
12545
- if (help) {
12546
- return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ jsxs20(Fragment10, { children: [
12547
- /* @__PURE__ */ jsx55(Help_default, { help }),
12548
- " ",
12549
- value
12550
- ] }) : /* @__PURE__ */ jsxs20(Fragment10, { children: [
12551
- value,
12552
- " ",
12553
- /* @__PURE__ */ jsx55(Help_default, { help })
12554
- ] });
12316
+ "id",
12317
+ "accepts",
12318
+ "control",
12319
+ "label",
12320
+ "description",
12321
+ "disabled",
12322
+ "error",
12323
+ "help",
12324
+ "maxSize",
12325
+ "type",
12326
+ "onUpload"
12327
+ ]);
12328
+ const uploadProps = __spreadProps(__spreadValues({}, rest), { id, name: id });
12329
+ const onUploadFile = async (file, fileName) => {
12330
+ try {
12331
+ const convertedFile = file ? await toFile(file, fileName) : null;
12332
+ await onUpload(convertedFile);
12333
+ } catch (e) {
12334
+ await onUpload(null);
12335
+ throw e;
12336
+ }
12337
+ };
12338
+ return /* @__PURE__ */ jsx55(FieldInput_default, { id, label, description, error, help, children: /* @__PURE__ */ jsx55(
12339
+ Upload,
12340
+ __spreadProps(__spreadValues({}, uploadProps), {
12341
+ usAccept: getAcceptsString(accepts),
12342
+ usDisabled: disabled,
12343
+ onSuccess: onUploadFile,
12344
+ onFailure: async () => onUpload(null),
12345
+ onCancel: async () => onUpload(null)
12346
+ })
12347
+ ) });
12555
12348
  }
12556
- return value;
12557
12349
  };
12558
12350
 
12559
12351
  // src/revamp/wise/renderers/step/StepRenderer.tsx
@@ -13078,7 +12870,6 @@ function isReference(block) {
13078
12870
 
13079
12871
  // src/legacy/dynamicFlow/DynamicFlow.tsx
13080
12872
  import { useCallback as useCallback11, useEffect as useEffect26, useMemo as useMemo22, useState as useState35 } from "react";
13081
- import { useIntl as useIntl26 } from "react-intl";
13082
12873
 
13083
12874
  // src/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.tsx
13084
12875
  import { createContext as createContext4, useContext as useContext5, useMemo as useMemo7 } from "react";
@@ -13192,6 +12983,61 @@ function FeatureContextProvider({ features, children }) {
13192
12983
  return /* @__PURE__ */ jsx64(FeatureContext.Provider, { value: features, children });
13193
12984
  }
13194
12985
 
12986
+ // src/common/cameraCapture/utils/mobile-utils.ts
12987
+ var isMobile = () => isMobileScreenSize() && (isTouchScreen() || isMobileUA());
12988
+ var isMobileUA = (userAgent = window.navigator.userAgent) => (
12989
+ // eslint-disable-next-line regexp/no-unused-capturing-group
12990
+ /mobi|\b(iphone|android|blackberry|webos|windows phone)\b/i.test(userAgent)
12991
+ );
12992
+ var isMobileScreenSize = (width = window.screen.width, height = window.screen.height) => width < 768 || height < 768;
12993
+ var isTouchScreen = (navigator2 = window.navigator, matchMedia = window.matchMedia) => {
12994
+ if ("maxTouchPoints" in navigator2) {
12995
+ return navigator2.maxTouchPoints > 0;
12996
+ }
12997
+ const mQ = matchMedia == null ? void 0 : matchMedia("(pointer:coarse)");
12998
+ if ((mQ == null ? void 0 : mQ.media) === "(pointer:coarse)") {
12999
+ return Boolean(mQ.matches);
13000
+ }
13001
+ return false;
13002
+ };
13003
+
13004
+ // src/common/utils/debounce.ts
13005
+ var debounce2 = (callback, waitMs) => {
13006
+ let timeoutId;
13007
+ let lastArgs;
13008
+ const clearTimer = () => {
13009
+ if (timeoutId) {
13010
+ clearTimeout(timeoutId);
13011
+ timeoutId = null;
13012
+ }
13013
+ lastArgs = null;
13014
+ };
13015
+ const debouncedFn = (...args) => {
13016
+ lastArgs = args;
13017
+ if (timeoutId !== null) {
13018
+ clearTimeout(timeoutId);
13019
+ }
13020
+ timeoutId = setTimeout(() => {
13021
+ callback(...lastArgs);
13022
+ timeoutId = null;
13023
+ lastArgs = null;
13024
+ }, waitMs);
13025
+ };
13026
+ debouncedFn.cancel = () => {
13027
+ if (timeoutId !== null) {
13028
+ clearTimer();
13029
+ }
13030
+ };
13031
+ debouncedFn.flush = () => {
13032
+ if (timeoutId !== null) {
13033
+ callback(...lastArgs);
13034
+ clearTimer();
13035
+ }
13036
+ };
13037
+ debouncedFn.isPending = () => timeoutId !== null;
13038
+ return debouncedFn;
13039
+ };
13040
+
13195
13041
  // src/legacy/common/utils/api-utils.ts
13196
13042
  function isStatus2xx(status) {
13197
13043
  return status >= 200 && status < 300;
@@ -13654,63 +13500,6 @@ var dateStringToDate = (dateString) => {
13654
13500
  };
13655
13501
  var dateToDateString2 = (date) => formatDate2(date);
13656
13502
 
13657
- // src/legacy/common/utils/debounce.ts
13658
- var debounce2 = (callback, waitMs) => {
13659
- let timeoutId;
13660
- let lastArgs;
13661
- const clearTimer = () => {
13662
- if (timeoutId) {
13663
- clearTimeout(timeoutId);
13664
- timeoutId = null;
13665
- }
13666
- lastArgs = null;
13667
- };
13668
- const debouncedFn = (...args) => {
13669
- lastArgs = args;
13670
- if (timeoutId !== null) {
13671
- clearTimeout(timeoutId);
13672
- }
13673
- timeoutId = setTimeout(() => {
13674
- callback(...lastArgs);
13675
- timeoutId = null;
13676
- lastArgs = null;
13677
- }, waitMs);
13678
- };
13679
- debouncedFn.cancel = () => {
13680
- if (timeoutId !== null) {
13681
- clearTimer();
13682
- }
13683
- };
13684
- debouncedFn.flush = () => {
13685
- if (timeoutId !== null) {
13686
- callback(...lastArgs);
13687
- clearTimer();
13688
- }
13689
- };
13690
- debouncedFn.isPending = () => timeoutId !== null;
13691
- return debouncedFn;
13692
- };
13693
-
13694
- // src/legacy/common/utils/is-equal.ts
13695
- var isEqual = (a, b) => {
13696
- if (a === b) {
13697
- return true;
13698
- }
13699
- if (Array.isArray(a) && Array.isArray(b)) {
13700
- return a.length === b.length && a.every((item, index) => isEqual(item, b[index]));
13701
- }
13702
- if (isNonNullObject(a) && isNonNullObject(b) && isObjectEquals(a, b)) {
13703
- return true;
13704
- }
13705
- return false;
13706
- };
13707
- var isObjectEquals = (a, b) => {
13708
- const keysA = Object.keys(a);
13709
- const keysB = Object.keys(b);
13710
- return keysA.length === keysB.length && keysA.every((key) => Object.hasOwnProperty.call(b, key) && isEqual(a[key], b[key]));
13711
- };
13712
- var isNonNullObject = (a) => typeof a === "object" && a !== null;
13713
-
13714
13503
  // src/legacy/common/utils/file-utils.ts
13715
13504
  function toKilobytes2(sizeInBytes) {
13716
13505
  const ONE_KB_IN_BYTES = 1024;
@@ -13746,6 +13535,52 @@ var generateRandomId = (prefix = "") => {
13746
13535
  return `${prefixString}${Math.floor(1e8 * Math.random())}`;
13747
13536
  };
13748
13537
 
13538
+ // src/legacy/common/utils/is-equal.ts
13539
+ var isEqual = (a, b) => {
13540
+ if (a === b) {
13541
+ return true;
13542
+ }
13543
+ if (Array.isArray(a) && Array.isArray(b)) {
13544
+ return a.length === b.length && a.every((item, index) => isEqual(item, b[index]));
13545
+ }
13546
+ if (isNonNullObject(a) && isNonNullObject(b) && isObjectEquals(a, b)) {
13547
+ return true;
13548
+ }
13549
+ return false;
13550
+ };
13551
+ var isObjectEquals = (a, b) => {
13552
+ const keysA = Object.keys(a);
13553
+ const keysB = Object.keys(b);
13554
+ return keysA.length === keysB.length && keysA.every((key) => Object.hasOwnProperty.call(b, key) && isEqual(a[key], b[key]));
13555
+ };
13556
+ var isNonNullObject = (a) => typeof a === "object" && a !== null;
13557
+
13558
+ // src/legacy/common/utils/misc-utils.ts
13559
+ var isBasicError = (error) => isString2(error) || isNull3(error);
13560
+
13561
+ // src/legacy/common/utils/model-utils.ts
13562
+ var isObjectModel2 = (model) => typeof model === "object" && model !== null && model.constructor === Object;
13563
+ var isNullableObjectModel = (model) => isNull3(model) || isObjectModel2(model);
13564
+ var isNullableBasicModel = (model) => isBoolean2(model) || isNumber3(model) || isString2(model) || isNull3(model);
13565
+ var isNullableStringModel = (model) => isString2(model) || isNull3(model);
13566
+ var isArrayModel2 = (model) => {
13567
+ if (isArray2(model)) {
13568
+ if (model.length === 0) {
13569
+ return true;
13570
+ }
13571
+ return model.every(
13572
+ (item) => typeof item === "string" || typeof item === "number" || typeof item === "boolean" || typeof item === "object"
13573
+ );
13574
+ }
13575
+ return false;
13576
+ };
13577
+ var isNullableArrayModel = (model) => {
13578
+ if (isNull3(model)) {
13579
+ return true;
13580
+ }
13581
+ return isArrayModel2(model);
13582
+ };
13583
+
13749
13584
  // src/legacy/common/utils/schema-utils.ts
13750
13585
  function isConstSchema2(schema) {
13751
13586
  return !isUndefined3(schema == null ? void 0 : schema.const);
@@ -13874,50 +13709,6 @@ var filterHiddenSchemas = (schemas) => schemas.filter((schema) => {
13874
13709
  return (schema == null ? void 0 : schema.hidden) !== true;
13875
13710
  });
13876
13711
 
13877
- // src/legacy/common/utils/model-utils.ts
13878
- var isObjectModel2 = (model) => typeof model === "object" && model !== null && model.constructor === Object;
13879
- var isNullableObjectModel = (model) => isNull3(model) || isObjectModel2(model);
13880
- var isNullableBasicModel = (model) => isBoolean2(model) || isNumber3(model) || isString2(model) || isNull3(model);
13881
- var isNullableStringModel = (model) => isString2(model) || isNull3(model);
13882
- var isArrayModel2 = (model) => {
13883
- if (isArray2(model)) {
13884
- if (model.length === 0) {
13885
- return true;
13886
- }
13887
- return model.every(
13888
- (item) => typeof item === "string" || typeof item === "number" || typeof item === "boolean" || typeof item === "object"
13889
- );
13890
- }
13891
- return false;
13892
- };
13893
- var isNullableArrayModel = (model) => {
13894
- if (isNull3(model)) {
13895
- return true;
13896
- }
13897
- return isArrayModel2(model);
13898
- };
13899
-
13900
- // src/legacy/common/utils/misc-utils.ts
13901
- var isBasicError = (error) => isString2(error) || isNull3(error);
13902
-
13903
- // src/legacy/common/utils/mobile-utils.ts
13904
- var isMobile = () => isMobileScreenSize() && (isTouchScreen() || isMobileUA());
13905
- var isMobileUA = (userAgent = window.navigator.userAgent) => (
13906
- // eslint-disable-next-line regexp/no-unused-capturing-group
13907
- /mobi|\b(iphone|android|blackberry|webos|windows phone)\b/i.test(userAgent)
13908
- );
13909
- var isMobileScreenSize = (width = window.screen.width, height = window.screen.height) => width < 768 || height < 768;
13910
- var isTouchScreen = (navigator2 = window.navigator, matchMedia = window.matchMedia) => {
13911
- if ("maxTouchPoints" in navigator2) {
13912
- return navigator2.maxTouchPoints > 0;
13913
- }
13914
- const mQ = matchMedia == null ? void 0 : matchMedia("(pointer:coarse)");
13915
- if ((mQ == null ? void 0 : mQ.media) === "(pointer:coarse)") {
13916
- return Boolean(mQ.matches);
13917
- }
13918
- return false;
13919
- };
13920
-
13921
13712
  // src/legacy/common/hooks/useDebouncedFunction/useDebouncedFunction.tsx
13922
13713
  import { useCallback as useCallback4 } from "react";
13923
13714
  function useDebouncedFunction(callback, waitMs) {
@@ -15652,7 +15443,7 @@ var logInvalidTypeFallbackWarning = ({
15652
15443
  };
15653
15444
 
15654
15445
  // src/legacy/formControl/utils/getAutocompleteString.ts
15655
- var getAutocompleteString3 = (hints, { prefix = "", suffix = "" } = {}) => {
15446
+ var getAutocompleteString2 = (hints, { prefix = "", suffix = "" } = {}) => {
15656
15447
  const autoCompleteString = hints.map((hint) => {
15657
15448
  const builtHint = `${prefix}${hint}${suffix}`;
15658
15449
  return isAutocompleteToken(builtHint) ? autocompleteTokenMap2[builtHint] : void 0;
@@ -15735,7 +15526,7 @@ var _FormControl = class _FormControl extends PureComponent {
15735
15526
  this.getAutocompleteValue = ({ prefix = "", suffix = "" } = {}) => {
15736
15527
  const { autoComplete, autocompleteHint } = this.props;
15737
15528
  if (isArray2(autocompleteHint)) {
15738
- return getAutocompleteString3(autocompleteHint, { prefix, suffix });
15529
+ return getAutocompleteString2(autocompleteHint, { prefix, suffix });
15739
15530
  }
15740
15531
  return autoComplete ? "on" : "off";
15741
15532
  };
@@ -18146,12 +17937,12 @@ var LayoutStep_default = LayoutStep;
18146
17937
  // src/legacy/step/cameraStep/CameraStep.tsx
18147
17938
  import { useEffect as useEffect25, useState as useState32 } from "react";
18148
17939
 
18149
- // src/legacy/step/cameraStep/cameraCapture/CameraCapture.tsx
17940
+ // src/common/cameraCapture/CameraCapture.tsx
18150
17941
  import { useCallback as useCallback10, useEffect as useEffect24, useMemo as useMemo20, useRef as useRef8, useState as useState31 } from "react";
18151
17942
  import { useIntl as useIntl23 } from "react-intl";
18152
17943
  import Webcam from "react-webcam";
18153
17944
 
18154
- // src/legacy/step/cameraStep/cameraCapture/CameraCapture.messages.ts
17945
+ // src/common/cameraCapture/CameraCapture.messages.ts
18155
17946
  import { defineMessages as defineMessages13 } from "react-intl";
18156
17947
  var CameraCapture_messages_default = defineMessages13({
18157
17948
  reviewSubmit: {
@@ -18211,7 +18002,7 @@ var CameraCapture_messages_default = defineMessages13({
18211
18002
  }
18212
18003
  });
18213
18004
 
18214
- // src/legacy/step/cameraStep/cameraCapture/components/bottomBar/BottomBar.tsx
18005
+ // src/common/cameraCapture/components/bottomBar/BottomBar.tsx
18215
18006
  import { Button as Button10, ControlType, Priority, Size as Size3 } from "@transferwise/components";
18216
18007
  import { useIntl as useIntl21 } from "react-intl";
18217
18008
  import { jsx as jsx118, jsxs as jsxs46 } from "react/jsx-runtime";
@@ -18258,10 +18049,10 @@ var CaptureButton = ({ onClick }) => /* @__PURE__ */ jsx118(
18258
18049
  }
18259
18050
  );
18260
18051
 
18261
- // src/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
18052
+ // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
18262
18053
  import { useIntl as useIntl22 } from "react-intl";
18263
18054
 
18264
- // src/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.ts
18055
+ // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.ts
18265
18056
  import { defineMessages as defineMessages14 } from "react-intl";
18266
18057
  var OrientationLockOverlay_messages_default = defineMessages14({
18267
18058
  text: {
@@ -18271,7 +18062,7 @@ var OrientationLockOverlay_messages_default = defineMessages14({
18271
18062
  }
18272
18063
  });
18273
18064
 
18274
- // src/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
18065
+ // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
18275
18066
  import { jsx as jsx119, jsxs as jsxs47 } from "react/jsx-runtime";
18276
18067
  function OrientationLockOverlay() {
18277
18068
  const intl = useIntl22();
@@ -18291,23 +18082,11 @@ function OrientationLockOverlay() {
18291
18082
  }
18292
18083
  var OrientationLockOverlay_default = OrientationLockOverlay;
18293
18084
 
18294
- // src/legacy/step/cameraStep/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.tsx
18295
- import { Button as Button11 } from "@transferwise/components";
18296
- import { jsx as jsx120, jsxs as jsxs48 } from "react/jsx-runtime";
18297
- function CameraErrorScreen({ title, description, actionButton, onAction }) {
18298
- return /* @__PURE__ */ jsx120("div", { className: "container p-t-5", children: /* @__PURE__ */ jsx120("div", { className: "row", children: /* @__PURE__ */ jsxs48("div", { className: "col-md-6 col-md-offset-3", children: [
18299
- /* @__PURE__ */ jsx120("h2", { className: "text-xs-center m-b-3", children: title }),
18300
- /* @__PURE__ */ jsx120("p", { className: "text-xs-center m-b-5", children: description }),
18301
- onAction && actionButton && /* @__PURE__ */ jsx120(Button11, { block: true, onClick: onAction, children: actionButton })
18302
- ] }) }) });
18303
- }
18304
- var CameraErrorScreen_default = CameraErrorScreen;
18305
-
18306
- // src/legacy/step/cameraStep/cameraCapture/hooks/useFullScreenOrientationLock.ts
18085
+ // src/common/cameraCapture/hooks/useFullScreenOrientationLock.ts
18307
18086
  var import_screenfull = __toESM(require_screenfull());
18308
18087
  import { useCallback as useCallback9, useEffect as useEffect21 } from "react";
18309
18088
 
18310
- // src/legacy/step/cameraStep/cameraCapture/utils/index.ts
18089
+ // src/common/cameraCapture/utils/index.ts
18311
18090
  var isSelfieCamera = (stream) => {
18312
18091
  var _a;
18313
18092
  const { facingMode } = ((_a = getVideoTrack(stream)) == null ? void 0 : _a.getSettings()) || {};
@@ -18353,7 +18132,7 @@ var getVideoCapabilities = (videoStream) => {
18353
18132
  return (_b = (_a = getVideoTrack(videoStream)) == null ? void 0 : _a.getCapabilities) == null ? void 0 : _b.call(_a);
18354
18133
  };
18355
18134
 
18356
- // src/legacy/step/cameraStep/cameraCapture/tracking/index.ts
18135
+ // src/common/cameraCapture/tracking/index.ts
18357
18136
  var trackCameraError = (message, onEvent, error) => onEvent == null ? void 0 : onEvent(message, { Error: getSerializedError(error) });
18358
18137
  var getSerializedError = (error) => error instanceof DOMException ? JSON.stringify({
18359
18138
  name: error == null ? void 0 : error.name,
@@ -18375,13 +18154,13 @@ var getCameraStartedProperties = async (props, videoStream) => {
18375
18154
  });
18376
18155
  };
18377
18156
  var trackCameraOrientationLandscape = (onEvent) => {
18378
- onEvent == null ? void 0 : onEvent("Dynamic Flow - Camera Orientation Lock Overlay Shown", {});
18157
+ void (onEvent == null ? void 0 : onEvent("Dynamic Flow - Camera Orientation Lock Overlay Shown", {}));
18379
18158
  };
18380
18159
  var trackCameraOrientationLocked = (onEvent) => {
18381
- onEvent == null ? void 0 : onEvent("Dynamic Flow - Camera Orientation Locked", {});
18160
+ void (onEvent == null ? void 0 : onEvent("Dynamic Flow - Camera Orientation Locked", {}));
18382
18161
  };
18383
18162
 
18384
- // src/legacy/step/cameraStep/cameraCapture/hooks/useFullScreenOrientationLock.ts
18163
+ // src/common/cameraCapture/hooks/useFullScreenOrientationLock.ts
18385
18164
  var useFullScreenOrientationLock = (shouldLockOrientation, onEvent) => {
18386
18165
  const lockOrientation = useCallback9(() => {
18387
18166
  if (window.screen.orientation && "lock" in window.screen.orientation && typeof window.screen.orientation.lock === "function") {
@@ -18443,37 +18222,37 @@ var useFullScreenOrientationLock = (shouldLockOrientation, onEvent) => {
18443
18222
  var noop5 = () => {
18444
18223
  };
18445
18224
 
18446
- // src/legacy/step/cameraStep/cameraCapture/hooks/useVideoConstraints.ts
18225
+ // src/common/cameraCapture/hooks/useVideoConstraints.ts
18447
18226
  import { useEffect as useEffect22, useState as useState30 } from "react";
18448
18227
  var useVideoConstraints = (direction) => {
18449
18228
  const [videoConstraints, setVideoConstraints] = useState30();
18229
+ useEffect22(() => {
18230
+ void getVideoConstraints(direction).then(setVideoConstraints);
18231
+ }, [direction]);
18232
+ return { videoConstraints };
18233
+ };
18234
+ var getVideoConstraints = async (dir) => {
18450
18235
  const defaultVideoConstraints = {
18451
- facingMode: direction === "front" ? "user" : "environment",
18236
+ facingMode: dir === "front" ? "user" : "environment",
18452
18237
  height: { min: 480, max: 1080, ideal: 720 },
18453
18238
  width: { min: 640, max: 1920, ideal: 1280 },
18454
18239
  frameRate: 30,
18455
18240
  aspectRatio: 16 / 9
18456
18241
  };
18457
- useEffect22(() => {
18458
- void getVideoConstraints(direction).then(setVideoConstraints);
18459
- }, [direction]);
18460
- const getVideoConstraints = async (direction2) => {
18461
- if (direction2 === "back") {
18462
- const mainCamera = (await getAvailableVideoDevices()).find(isMainBackCamera);
18463
- if (mainCamera == null ? void 0 : mainCamera.deviceId) {
18464
- return __spreadProps(__spreadValues({}, defaultVideoConstraints), {
18465
- deviceId: { exact: mainCamera.deviceId }
18466
- });
18467
- }
18242
+ if (dir === "back") {
18243
+ const mainCamera = (await getAvailableVideoDevices()).find(isMainBackCamera);
18244
+ if (mainCamera == null ? void 0 : mainCamera.deviceId) {
18245
+ return __spreadProps(__spreadValues({}, defaultVideoConstraints), {
18246
+ deviceId: { exact: mainCamera.deviceId }
18247
+ });
18468
18248
  }
18469
- return defaultVideoConstraints;
18470
- };
18471
- return { videoConstraints };
18249
+ }
18250
+ return defaultVideoConstraints;
18472
18251
  };
18473
18252
 
18474
- // src/legacy/step/cameraStep/cameraCapture/overlay/Overlay.tsx
18253
+ // src/common/cameraCapture/overlay/Overlay.tsx
18475
18254
  import { useEffect as useEffect23, useRef as useRef7 } from "react";
18476
- import { Fragment as Fragment23, jsx as jsx121, jsxs as jsxs49 } from "react/jsx-runtime";
18255
+ import { Fragment as Fragment23, jsx as jsx120, jsxs as jsxs48 } from "react/jsx-runtime";
18477
18256
  var captureButtonHeight = 92;
18478
18257
  var reviewButtonsHeight = 120;
18479
18258
  var imageHeight = 40;
@@ -18495,18 +18274,18 @@ function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstru
18495
18274
  return () => window.removeEventListener("resize", listener);
18496
18275
  });
18497
18276
  let helperBoxHeight = (imageUrl ? imageHeight : 0) + (title ? titleHeight : 0) + (instructions ? instructionsHeight : 0);
18498
- let helperBox = /* @__PURE__ */ jsxs49(Fragment23, { children: [
18499
- imageUrl && /* @__PURE__ */ jsx121("img", { className: "camera-capture-img", src: imageUrl, alt: "" }),
18500
- title && /* @__PURE__ */ jsx121("h4", { className: "camera-capture-title", children: title }),
18501
- instructions && /* @__PURE__ */ jsx121("small", { className: "camera-capture-instructions", children: instructions })
18277
+ let helperBox = /* @__PURE__ */ jsxs48(Fragment23, { children: [
18278
+ imageUrl && /* @__PURE__ */ jsx120("img", { className: "camera-capture-img", src: imageUrl, alt: "" }),
18279
+ title && /* @__PURE__ */ jsx120("h4", { className: "camera-capture-title", children: title }),
18280
+ instructions && /* @__PURE__ */ jsx120("small", { className: "camera-capture-instructions", children: instructions })
18502
18281
  ] });
18503
18282
  const frameBottomMargin = captureButtonHeight + helperBoxHeight;
18504
18283
  if (reviewInstructions) {
18505
18284
  helperBoxHeight = frameBottomMargin - reviewButtonsHeight;
18506
- helperBox = /* @__PURE__ */ jsx121("small", { className: "camera-capture-instructions", children: reviewInstructions });
18285
+ helperBox = /* @__PURE__ */ jsx120("small", { className: "camera-capture-instructions", children: reviewInstructions });
18507
18286
  const frameWithReviewInstructionsMinBottomMargin = reviewButtonsHeight + reviewInstructionsHeight;
18508
18287
  if (frameBottomMargin < frameWithReviewInstructionsMinBottomMargin) {
18509
- helperBox = /* @__PURE__ */ jsx121(Fragment23, {});
18288
+ helperBox = /* @__PURE__ */ jsx120(Fragment23, {});
18510
18289
  }
18511
18290
  }
18512
18291
  const framePosition = {
@@ -18524,19 +18303,31 @@ function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstru
18524
18303
  width: "90%"
18525
18304
  }
18526
18305
  };
18527
- return /* @__PURE__ */ jsxs49("svg", { ref: svgReference, xmlns: "http://www.w3.org/2000/svg", children: [
18528
- /* @__PURE__ */ jsx121("defs", { children: /* @__PURE__ */ jsxs49("mask", { id: "mask", children: [
18529
- /* @__PURE__ */ jsx121("rect", { width: "100%", height: "100%", fill: "#fff" }),
18530
- /* @__PURE__ */ jsx121("image", __spreadValues({ href: overlay }, framePosition))
18306
+ return /* @__PURE__ */ jsxs48("svg", { ref: svgReference, xmlns: "http://www.w3.org/2000/svg", children: [
18307
+ /* @__PURE__ */ jsx120("defs", { children: /* @__PURE__ */ jsxs48("mask", { id: "mask", children: [
18308
+ /* @__PURE__ */ jsx120("rect", { width: "100%", height: "100%", fill: "#fff" }),
18309
+ /* @__PURE__ */ jsx120("image", __spreadValues({ href: overlay }, framePosition))
18531
18310
  ] }) }),
18532
- overlay && /* @__PURE__ */ jsx121("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }),
18533
- outline && /* @__PURE__ */ jsx121("image", __spreadValues({ href: outline }, framePosition)),
18534
- /* @__PURE__ */ jsx121("foreignObject", { width: "100%", height: "100%", children: /* @__PURE__ */ jsx121("div", __spreadProps(__spreadValues({ className: "camera-capture-text-and-image-container" }, helperBoxPosition), { children: helperBox })) })
18311
+ overlay && /* @__PURE__ */ jsx120("rect", { width: "100%", height: "100%", mask: "url(#mask)", fillOpacity: "0.72" }),
18312
+ outline && /* @__PURE__ */ jsx120("image", __spreadValues({ href: outline }, framePosition)),
18313
+ /* @__PURE__ */ jsx120("foreignObject", { width: "100%", height: "100%", children: /* @__PURE__ */ jsx120("div", __spreadProps(__spreadValues({ className: "camera-capture-text-and-image-container" }, helperBoxPosition), { children: helperBox })) })
18535
18314
  ] });
18536
18315
  }
18537
18316
  var Overlay_default = Overlay;
18538
18317
 
18539
- // src/legacy/step/cameraStep/cameraCapture/CameraCapture.tsx
18318
+ // src/common/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.tsx
18319
+ import { Button as Button11 } from "@transferwise/components";
18320
+ import { jsx as jsx121, jsxs as jsxs49 } from "react/jsx-runtime";
18321
+ function CameraErrorScreen({ title, description, actionButton, onAction }) {
18322
+ return /* @__PURE__ */ jsx121("div", { className: "container p-t-5", children: /* @__PURE__ */ jsx121("div", { className: "row", children: /* @__PURE__ */ jsxs49("div", { className: "col-md-6 col-md-offset-3", children: [
18323
+ /* @__PURE__ */ jsx121("h2", { className: "text-xs-center m-b-3", children: title }),
18324
+ /* @__PURE__ */ jsx121("p", { className: "text-xs-center m-b-5", children: description }),
18325
+ onAction && actionButton && /* @__PURE__ */ jsx121(Button11, { block: true, onClick: onAction, children: actionButton })
18326
+ ] }) }) });
18327
+ }
18328
+ var CameraErrorScreen_default = CameraErrorScreen;
18329
+
18330
+ // src/common/cameraCapture/CameraCapture.tsx
18540
18331
  import { jsx as jsx122, jsxs as jsxs50 } from "react/jsx-runtime";
18541
18332
  function CameraCapture({
18542
18333
  direction = "back",
@@ -19211,7 +19002,6 @@ var DynamicFlowComponent = ({
19211
19002
  setSchemaModel
19212
19003
  } = useDynamicFlowState(initialStep);
19213
19004
  const [submitted, setSubmitted] = useState35(false);
19214
- const { locale } = useIntl26();
19215
19005
  const { isLoading, loader, setLoadingState } = useLoader(
19216
19006
  loaderConfig,
19217
19007
  initialStep ? "idle" : "initial"
@@ -19249,15 +19039,13 @@ var DynamicFlowComponent = ({
19249
19039
  const { url, method = "POST" } = action;
19250
19040
  return httpClient(url != null ? url : "", {
19251
19041
  method,
19252
- credentials: "include",
19253
19042
  headers: __spreadValues({
19254
- "Content-Type": "application/json",
19255
- "accept-language": locale
19043
+ "Content-Type": "application/json"
19256
19044
  }, etag2 ? { "If-None-Match": etag2 } : {}),
19257
19045
  body: method === "GET" ? void 0 : JSON.stringify(data)
19258
19046
  });
19259
19047
  },
19260
- [httpClient, locale]
19048
+ [httpClient]
19261
19049
  );
19262
19050
  const performAction = async (action, data = {}) => {
19263
19051
  cancelPendingRefreshes();