@verifiedinc-public/shared-ui-elements 8.20.3 → 8.21.1

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 (445) hide show
  1. package/dist/components/Alert/Alert.mjs +1 -0
  2. package/dist/components/Alert/FullWidthAlert.mjs +1 -0
  3. package/dist/components/Backdrop/index.mjs +1 -0
  4. package/dist/components/Banners/Banner.mjs +1 -0
  5. package/dist/components/Banners/ExactBirthdayBanner.mjs +1 -0
  6. package/dist/components/Banners/ResendPhoneBanner.mjs +1 -0
  7. package/dist/components/Banners/TestPhoneNumbersBanner.mjs +1 -0
  8. package/dist/components/BrandFilterInput/BrandFilterInput.hook.mjs +1 -0
  9. package/dist/components/BrandFilterInput/index.mjs +1 -0
  10. package/dist/components/Button/index.mjs +1 -0
  11. package/dist/components/CredentialRequestsEditor/CredentialRequestsEditor.context.mjs +1 -0
  12. package/dist/components/CredentialRequestsEditor/components/CredentialRequestsField.mjs +1 -0
  13. package/dist/components/CredentialRequestsEditor/components/DataFieldAccordion.mjs +1 -0
  14. package/dist/components/CredentialRequestsEditor/components/DataFieldDeleteModal.mjs +1 -0
  15. package/dist/components/CredentialRequestsEditor/components/DataFieldDescription.mjs +3 -0
  16. package/dist/components/CredentialRequestsEditor/components/DataFieldMandatory.mjs +3 -0
  17. package/dist/components/CredentialRequestsEditor/components/DataFieldMulti.mjs +3 -0
  18. package/dist/components/CredentialRequestsEditor/components/DataFieldOptionType.mjs +3 -0
  19. package/dist/components/CredentialRequestsEditor/components/DataFieldSection.mjs +1 -0
  20. package/dist/components/CredentialRequestsEditor/components/DataFieldUserInput.mjs +3 -0
  21. package/dist/components/CredentialRequestsEditor/components/RadioOption.mjs +1 -0
  22. package/dist/components/CredentialRequestsEditor/contexts/CredentialRequestFieldContext.mjs +1 -0
  23. package/dist/components/CredentialRequestsEditor/index.mjs +1 -0
  24. package/dist/components/CredentialRequestsEditor/types/mandatoryEnum.mjs +1 -0
  25. package/dist/components/CredentialRequestsEditor/types/sdk.mjs +1 -0
  26. package/dist/components/CredentialRequestsEditor/utils/buildDataFieldValue.mjs +1 -0
  27. package/dist/components/CredentialRequestsEditor/utils/prettyField.mjs +1 -0
  28. package/dist/components/CredentialRequestsEditor/utils/propagateToChildren.mjs +1 -0
  29. package/dist/components/Image.mjs +1 -0
  30. package/dist/components/QRCodeDisplay/index.mjs +1 -0
  31. package/dist/components/RequiredLabel/index.mjs +1 -0
  32. package/dist/components/Snackbar/index.mjs +1 -0
  33. package/dist/components/TextField/index.mjs +1 -0
  34. package/dist/components/Tip/index.mjs +1 -0
  35. package/dist/components/Typography/index.mjs +1 -0
  36. package/dist/components/UI/AdaptativeBox.mjs +1 -0
  37. package/dist/components/UI/ContentWithLoader.mjs +1 -0
  38. package/dist/components/When.mjs +1 -0
  39. package/dist/components/WhenStyled.mjs +1 -0
  40. package/dist/components/animation/AnimatedHeight.mjs +1 -0
  41. package/dist/components/animation/Counter.mjs +1 -0
  42. package/dist/components/animation/index.mjs +1 -1
  43. package/dist/components/animation/motions.mjs +1 -0
  44. package/dist/components/buttons/ExportToPdfButton.mjs +1 -0
  45. package/dist/components/buttons/LinkButton.mjs +1 -0
  46. package/dist/components/buttons/OriginalButton.mjs +1 -0
  47. package/dist/components/buttons/TextButton.mjs +1 -0
  48. package/dist/components/chart/AreaChart/AreaChart.map.mjs +1 -0
  49. package/dist/components/chart/AreaChart/index.d.ts +3 -1
  50. package/dist/components/chart/AreaChart/index.mjs +1 -0
  51. package/dist/components/chart/BigNumber/index.mjs +1 -0
  52. package/dist/components/chart/EmptyChartSection.mjs +1 -0
  53. package/dist/components/chart/ErrorCodesChart/index.mjs +1 -0
  54. package/dist/components/chart/FunnelChart/index.d.ts +35 -0
  55. package/dist/components/chart/FunnelChart/index.mjs +1 -0
  56. package/dist/components/chart/LoadingChartSection.mjs +1 -0
  57. package/dist/components/chart/MetricLastUpdated.mjs +1 -0
  58. package/dist/components/chart/MonthlySignupsOverviewTable/MonthlySignupsOverviewTable.mjs +1 -0
  59. package/dist/components/chart/MonthlySignupsOverviewTable/MonthlySignupsOverviewTableDataMapper.mjs +1 -0
  60. package/dist/components/chart/NoRiskSignalsPermissionSection/index.mjs +1 -0
  61. package/dist/components/chart/OneClickHealthBigNumbers/OneClickHealthBigNumbers.mjs +1 -0
  62. package/dist/components/chart/OneClickHealthBigNumbers/OneClickHealthBigNumbersMapper.mjs +1 -0
  63. package/dist/components/chart/OneClickHealthOverTimeChart/OneClickHealthOverTimeChart.map.mjs +1 -0
  64. package/dist/components/chart/OneClickHealthOverTimeChart/OneClickHealthOverTimeChart.mjs +1 -0
  65. package/dist/components/chart/OneClickHealthPercentageChart/OneClickHealthPercentageChart.mjs +1 -0
  66. package/dist/components/chart/OneClickOverTimeChart/OneClickOverTimeChart.map.mjs +1 -0
  67. package/dist/components/chart/OneClickOverTimeChart/OneClickOverTimeChart.mjs +1 -0
  68. package/dist/components/chart/OneClickPercentageChart/OneClickPercentageChart.mjs +1 -0
  69. package/dist/components/chart/OneClickVerificationBigNumbers/OneClickVerificationBigNumbers.mjs +1 -0
  70. package/dist/components/chart/OneClickVerificationBigNumbers/OneClickVerificationBigNumbersMapper.d.ts +5 -16
  71. package/dist/components/chart/OneClickVerificationBigNumbers/OneClickVerificationBigNumbersMapper.mjs +1 -0
  72. package/dist/components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.map.d.ts +3 -10
  73. package/dist/components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.map.mjs +1 -0
  74. package/dist/components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.mjs +1 -0
  75. package/dist/components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.d.ts +11 -0
  76. package/dist/components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.map.d.ts +21 -0
  77. package/dist/components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.map.mjs +1 -0
  78. package/dist/components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.mjs +1 -0
  79. package/dist/components/chart/OneClickVerificationFunnelChart/index.d.ts +2 -0
  80. package/dist/components/chart/OneClickVerificationOutcomeOverTimeChart/OneClickVerificationOutcomeOverTimeChart.d.ts +17 -0
  81. package/dist/components/chart/OneClickVerificationOutcomeOverTimeChart/OneClickVerificationOutcomeOverTimeChart.map.d.ts +23 -0
  82. package/dist/components/chart/OneClickVerificationOutcomeOverTimeChart/OneClickVerificationOutcomeOverTimeChart.map.mjs +1 -0
  83. package/dist/components/chart/OneClickVerificationOutcomeOverTimeChart/OneClickVerificationOutcomeOverTimeChart.mjs +1 -0
  84. package/dist/components/chart/OneClickVerificationOutcomeOverTimeChart/index.d.ts +2 -0
  85. package/dist/components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.map.d.ts +4 -15
  86. package/dist/components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.map.mjs +1 -0
  87. package/dist/components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.mjs +1 -0
  88. package/dist/components/chart/PieChart/index.mjs +1 -0
  89. package/dist/components/chart/PieChart/renderActiveShape.mjs +1 -0
  90. package/dist/components/chart/PieChart/renderNeedle.mjs +1 -0
  91. package/dist/components/chart/ReasonCodesChart/index.mjs +1 -0
  92. package/dist/components/chart/RiskScoreBarChart/index.mjs +1 -0
  93. package/dist/components/chart/RiskScorePieChart/index.mjs +1 -0
  94. package/dist/components/chart/SeriesChart/SeriesChart.map.mjs +1 -0
  95. package/dist/components/chart/SeriesChart/index.mjs +1 -0
  96. package/dist/components/chart/SeriesChartLegend/index.mjs +1 -0
  97. package/dist/components/chart/SeriesPercentageChart/index.mjs +1 -0
  98. package/dist/components/chart/SeriesPercentageChartLegend/index.mjs +1 -0
  99. package/dist/components/chart/SignupBigNumbers/SignupBigNumbers.mjs +1 -0
  100. package/dist/components/chart/SignupBigNumbers/SignupBigNumbersMapper.mjs +1 -0
  101. package/dist/components/chart/SimpleBarChart/index.mjs +1 -0
  102. package/dist/components/chart/SimpleLegend/index.mjs +1 -0
  103. package/dist/components/chart/TTSBigNumbers/TTSBigNumbers.mjs +1 -0
  104. package/dist/components/chart/TTSBigNumbers/TTSBigNumbersMapper.mjs +1 -0
  105. package/dist/components/chart/TTSOverTimeChart/TTSOverTimeChart.map.mjs +1 -0
  106. package/dist/components/chart/TTSOverTimeChart/TTSOverTimeChart.mjs +1 -0
  107. package/dist/components/chart/constants.mjs +1 -0
  108. package/dist/components/chart/index.d.ts +4 -0
  109. package/dist/components/chart/index.mjs +1 -1
  110. package/dist/components/chart/oneClickVerification.types.d.ts +18 -0
  111. package/dist/components/chart/shared.mjs +1 -0
  112. package/dist/components/chart/styles.mjs +1 -0
  113. package/dist/components/dialog/CalendlyDialog.mjs +1 -0
  114. package/dist/components/dialog/Dialog.mjs +1 -0
  115. package/dist/components/dialog/PersistentDialog.mjs +8 -0
  116. package/dist/components/form/AddressInput/autofill.hook.mjs +1 -0
  117. package/dist/components/form/AddressInput/context.mjs +1 -0
  118. package/dist/components/form/AddressInput/hook.mjs +1 -0
  119. package/dist/components/form/AddressInput/index.mjs +1 -0
  120. package/dist/components/form/BasePhoneInput.mjs +1 -0
  121. package/dist/components/form/CountrySelector.mjs +1 -0
  122. package/dist/components/form/DataFieldClearAdornment.mjs +1 -0
  123. package/dist/components/form/DateInput/index.mjs +1 -0
  124. package/dist/components/form/DateRangeInput/index.mjs +1 -0
  125. package/dist/components/form/DateRangeInput/style.mjs +1 -0
  126. package/dist/components/form/DefaultInput.mjs +1 -0
  127. package/dist/components/form/EmailInput.mjs +1 -0
  128. package/dist/components/form/InputMask.mjs +1 -0
  129. package/dist/components/form/NPIInput/index.mjs +1 -0
  130. package/dist/components/form/NewOneClickForm/core/fields/address.mjs +1 -0
  131. package/dist/components/form/NewOneClickForm/core/fields/birthDate.mjs +1 -0
  132. package/dist/components/form/NewOneClickForm/core/fields/constants.mjs +1 -0
  133. package/dist/components/form/NewOneClickForm/core/fields/driversLicense.mjs +1 -0
  134. package/dist/components/form/NewOneClickForm/core/fields/fullName.mjs +1 -0
  135. package/dist/components/form/NewOneClickForm/core/fields/index.mjs +1 -0
  136. package/dist/components/form/NewOneClickForm/core/fields/phone.mjs +1 -0
  137. package/dist/components/form/NewOneClickForm/core/fields/sex.mjs +1 -0
  138. package/dist/components/form/NewOneClickForm/core/fields/ssn.mjs +1 -0
  139. package/dist/components/form/NewOneClickForm/core/form/form.mjs +1 -0
  140. package/dist/components/form/NewOneClickForm/core/form/formBuilder.mjs +1 -0
  141. package/dist/components/form/NewOneClickForm/core/form/formField.mjs +1 -0
  142. package/dist/components/form/NewOneClickForm/core/form/formFieldBuilder.mjs +1 -0
  143. package/dist/components/form/NewOneClickForm/core/form/utils.mjs +1 -0
  144. package/dist/components/form/NewOneClickForm/core/formats/address.format.mjs +1 -0
  145. package/dist/components/form/NewOneClickForm/core/formats/date.format.mjs +1 -0
  146. package/dist/components/form/NewOneClickForm/core/formats/ssn.format.mjs +1 -0
  147. package/dist/components/form/NewOneClickForm/core/formats/state.format.mjs +1 -0
  148. package/dist/components/form/NewOneClickForm/core/mappers/create-patch.map.mjs +1 -0
  149. package/dist/components/form/NewOneClickForm/core/mappers/share.map.mjs +1 -0
  150. package/dist/components/form/NewOneClickForm/core/shared/us-states.mjs +1 -0
  151. package/dist/components/form/NewOneClickForm/core/validations/address/address.schema.mjs +1 -0
  152. package/dist/components/form/NewOneClickForm/core/validations/address/city.schema.mjs +1 -0
  153. package/dist/components/form/NewOneClickForm/core/validations/address/country.schema.mjs +1 -0
  154. package/dist/components/form/NewOneClickForm/core/validations/address/line1.schema.mjs +1 -0
  155. package/dist/components/form/NewOneClickForm/core/validations/address/line2.schema.mjs +1 -0
  156. package/dist/components/form/NewOneClickForm/core/validations/address/state.schema.mjs +1 -0
  157. package/dist/components/form/NewOneClickForm/core/validations/address/zipcode.schema.mjs +1 -0
  158. package/dist/components/form/NewOneClickForm/core/validations/driversLicense/driversLicense.schema.mjs +1 -0
  159. package/dist/components/form/NewOneClickForm/core/validations/name/first.schema.mjs +1 -0
  160. package/dist/components/form/NewOneClickForm/core/validations/name/fullName.schema.mjs +1 -0
  161. package/dist/components/form/NewOneClickForm/core/validations/name/last.schema.mjs +1 -0
  162. package/dist/components/form/NewOneClickForm/core/validations/name/middle.schema.mjs +1 -0
  163. package/dist/components/form/NewOneClickForm/core/validations/other/birthDate.schema.mjs +1 -0
  164. package/dist/components/form/NewOneClickForm/core/validations/other/date.schema.mjs +1 -0
  165. package/dist/components/form/NewOneClickForm/core/validations/other/documentNumber.schema.mjs +1 -0
  166. package/dist/components/form/NewOneClickForm/core/validations/other/phone.schema.mjs +1 -0
  167. package/dist/components/form/NewOneClickForm/core/validations/other/sex.schema.mjs +1 -0
  168. package/dist/components/form/NewOneClickForm/core/validations/other/ssn.schema.mjs +1 -0
  169. package/dist/components/form/NewOneClickForm/react/core/field.hook.mjs +1 -0
  170. package/dist/components/form/NewOneClickForm/react/core/form.context.mjs +1 -0
  171. package/dist/components/form/NewOneClickForm/react/ui/fields/input/address.field.mjs +1 -0
  172. package/dist/components/form/NewOneClickForm/react/ui/fields/input/clear-field-adornment.mjs +1 -0
  173. package/dist/components/form/NewOneClickForm/react/ui/fields/input/date.field.mjs +1 -0
  174. package/dist/components/form/NewOneClickForm/react/ui/fields/input/field.mjs +1 -0
  175. package/dist/components/form/NewOneClickForm/react/ui/fields/input/label.mjs +1 -0
  176. package/dist/components/form/NewOneClickForm/react/ui/fields/input/select.field.mjs +1 -0
  177. package/dist/components/form/NewOneClickForm/react/ui/fields/input/ssn.field.mjs +1 -0
  178. package/dist/components/form/NewOneClickForm/react/ui/fields/input/text.field.mjs +1 -0
  179. package/dist/components/form/NewOneClickForm/react/ui/fields/readonly/field.mjs +1 -0
  180. package/dist/components/form/NewOneClickForm/react/ui/fields/readonly/multi.field.mjs +1 -0
  181. package/dist/components/form/NewOneClickForm/react/ui/fields/readonly/single.field.mjs +1 -0
  182. package/dist/components/form/NewOneClickForm/react/ui/fields/shared.mjs +1 -0
  183. package/dist/components/form/NewOneClickForm/react/ui/fields/style.mjs +1 -0
  184. package/dist/components/form/NewOneClickForm/react/ui/form-content.mjs +1 -0
  185. package/dist/components/form/NewOneClickForm/react/ui/form.context.mjs +1 -0
  186. package/dist/components/form/NewOneClickForm/react/ui/form.mjs +1 -0
  187. package/dist/components/form/OTPInput.mjs +1 -0
  188. package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplay.mjs +1 -0
  189. package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplayContext.mjs +1 -0
  190. package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplayItem.mjs +1 -0
  191. package/dist/components/form/OneClickForm/components/CredentialsDisplay/CredentialsDisplayItemContext.mjs +1 -0
  192. package/dist/components/form/OneClickForm/components/CredentialsDisplay/components/EditModeButton.mjs +1 -0
  193. package/dist/components/form/OneClickForm/components/CredentialsDisplay/hooks.mjs +1 -0
  194. package/dist/components/form/OneClickForm/components/CredentialsDisplay/types.mjs +1 -0
  195. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/extractChildrenFromCredentialFieldSet.mjs +1 -0
  196. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/extractTypesFromSchema.mjs +1 -0
  197. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/filterRepeatedCredentials.mjs +1 -0
  198. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/findCorrectSchemaProperty.mjs +1 -0
  199. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/findCredentialsByType.mjs +1 -0
  200. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getCredentialTypeDisplayInfo.mjs +1 -0
  201. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getCredentialValues.mjs +1 -0
  202. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getLastPathName.mjs +1 -0
  203. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getParentPath.mjs +1 -0
  204. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/getReferencedSchemaNames.mjs +1 -0
  205. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/hasMandatoryFieldEmpty.mjs +1 -0
  206. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isNewCredentialAgainstInstance.mjs +1 -0
  207. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isNewCredentialValues.mjs +1 -0
  208. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isRequiredCredentialDisplayInfo.mjs +1 -0
  209. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isSomeFieldInputAllowed.mjs +1 -0
  210. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/isValidInputCredential.mjs +1 -0
  211. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/makeCredentialDisplayInfoList.mjs +1 -0
  212. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/sortCredentialsBySchema.mjs +1 -0
  213. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/transformToFormObject.mjs +1 -0
  214. package/dist/components/form/OneClickForm/components/CredentialsDisplay/utils/transformToFormSchema.mjs +1 -0
  215. package/dist/components/form/OneClickForm/components/DataField/DataFieldAtomic.mjs +1 -0
  216. package/dist/components/form/OneClickForm/components/DataField/DataFieldCheckbox.mjs +1 -0
  217. package/dist/components/form/OneClickForm/components/DataField/DataFieldClearAdornment.mjs +1 -0
  218. package/dist/components/form/OneClickForm/components/DataField/DataFieldComposite.mjs +1 -0
  219. package/dist/components/form/OneClickForm/components/DataField/DataFieldDescription.mjs +1 -0
  220. package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/index.mjs +1 -0
  221. package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/styles.mjs +1 -0
  222. package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/utils/getAddressFormat.mjs +1 -0
  223. package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/HeaderSelect/utils/renderInstance.mjs +1 -0
  224. package/dist/components/form/OneClickForm/components/DataField/DataFieldHeader/index.mjs +1 -0
  225. package/dist/components/form/OneClickForm/components/DataField/DataFieldInputLabel.mjs +1 -0
  226. package/dist/components/form/OneClickForm/components/DataField/DataFieldLabel.mjs +1 -0
  227. package/dist/components/form/OneClickForm/components/DataField/DataFieldLabelText.mjs +1 -0
  228. package/dist/components/form/OneClickForm/components/DataField/DataFieldLeftSide.mjs +1 -0
  229. package/dist/components/form/OneClickForm/components/DataField/DataFieldLegend.mjs +1 -0
  230. package/dist/components/form/OneClickForm/components/DataField/DataFieldRootStack.mjs +1 -0
  231. package/dist/components/form/OneClickForm/components/DataField/DataFieldStack.mjs +1 -0
  232. package/dist/components/form/OneClickForm/components/DataField/DataFieldValue.mjs +1 -0
  233. package/dist/components/form/OneClickForm/components/DataField/formats/DataFieldImage.mjs +1 -0
  234. package/dist/components/form/OneClickForm/components/DataField/formats/DataFieldText.mjs +1 -0
  235. package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldAddressInput/autofill.hook.mjs +1 -0
  236. package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldAddressInput/hook.mjs +1 -0
  237. package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldAddressInput/index.mjs +1 -0
  238. package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldDateInput.mjs +1 -0
  239. package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldImageInput.mjs +1 -0
  240. package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldPhoneInput.mjs +1 -0
  241. package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldSSNInput.mjs +1 -0
  242. package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldSelectInput.mjs +1 -0
  243. package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldTextInput.mjs +1 -0
  244. package/dist/components/form/OneClickForm/components/DataField/types.mjs +1 -0
  245. package/dist/components/form/OneClickForm/components/DataField/utils/defaults.mjs +1 -0
  246. package/dist/components/form/OneClickForm/components/DataField/utils/getAutoCompleteAttributeValue.mjs +1 -0
  247. package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialLabel.mjs +1 -0
  248. package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialLabelInput.mjs +1 -0
  249. package/dist/components/form/OneClickForm/components/DataField/utils/getCredentialSeparator.mjs +1 -0
  250. package/dist/components/form/OneClickForm/components/shared/Image.mjs +1 -0
  251. package/dist/components/form/OneClickForm/components/shared/ImageEncoded.mjs +1 -0
  252. package/dist/components/form/OneClickForm/components/shared/When.mjs +1 -0
  253. package/dist/components/form/OneClickForm/components/validations/fragments/birthDate.mjs +1 -0
  254. package/dist/components/form/OneClickForm/components/validations/fragments/credentials.mjs +1 -0
  255. package/dist/components/form/OneClickForm/components/validations/fragments/email.mjs +1 -0
  256. package/dist/components/form/OneClickForm/components/validations/schemas/date.schema.mjs +1 -0
  257. package/dist/components/form/OneClickForm/constants/credentialTypes.mjs +1 -0
  258. package/dist/components/form/OneClickForm/contexts/one-click-form-options.context.mjs +1 -0
  259. package/dist/components/form/OneClickForm/hooks/useCanFillByQueryParam.mjs +1 -0
  260. package/dist/components/form/OneClickForm/hooks/useDebounceCallback.mjs +1 -0
  261. package/dist/components/form/OneClickForm/index.mjs +1 -0
  262. package/dist/components/form/OneClickForm/styles/input.mjs +1 -0
  263. package/dist/components/form/OneClickForm/types/display-format.mjs +1 -0
  264. package/dist/components/form/OneClickForm/types/input-format.mjs +1 -0
  265. package/dist/components/form/OneClickForm/utils/calendarDateFormatter.mjs +1 -0
  266. package/dist/components/form/OneClickForm/utils/compareCredentialData.mjs +1 -0
  267. package/dist/components/form/OneClickForm/utils/currencyRangeFormatter.mjs +1 -0
  268. package/dist/components/form/OneClickForm/utils/date.mjs +1 -0
  269. package/dist/components/form/OneClickForm/utils/formatCredentialValue.mjs +1 -0
  270. package/dist/components/form/OneClickForm/utils/image.mjs +1 -0
  271. package/dist/components/form/OneClickForm/utils/isAtomicBySchema.mjs +1 -0
  272. package/dist/components/form/OneClickForm/utils/isCompositeBySchema.mjs +1 -0
  273. package/dist/components/form/OneClickForm/utils/phone.mjs +1 -0
  274. package/dist/components/form/OneClickForm/utils/phoneNumberFormatter.mjs +1 -0
  275. package/dist/components/form/OneClickForm/utils/regex.mjs +1 -0
  276. package/dist/components/form/OneClickForm/utils/ssnFormatter.mjs +1 -0
  277. package/dist/components/form/OneClickForm/utils/string.mjs +1 -0
  278. package/dist/components/form/OneClickForm/utils/when.mjs +1 -0
  279. package/dist/components/form/PhoneInput.mjs +1 -0
  280. package/dist/components/form/PrettyPhoneInput.mjs +64 -0
  281. package/dist/components/form/RadioOption.mjs +1 -0
  282. package/dist/components/form/SSNInput.mjs +1 -0
  283. package/dist/components/form/SelectInput.mjs +1 -0
  284. package/dist/components/form/TextMaskCustom.mjs +1 -0
  285. package/dist/components/form/TimezoneInput/index.mjs +1 -0
  286. package/dist/components/form/TimezoneInput/timezones.mjs +1 -0
  287. package/dist/components/icons/IconPlayer.mjs +1 -0
  288. package/dist/components/index.mjs +1 -1
  289. package/dist/components/terms/AcceptTermsNotice.mjs +1 -0
  290. package/dist/components/terms/LegalLink.mjs +1 -0
  291. package/dist/components/terms/PrivacyPolicyNotice.mjs +1 -0
  292. package/dist/components/text-to-signup/magic-button.mjs +1 -0
  293. package/dist/components/text-to-signup/magic-legal-language.mjs +1 -0
  294. package/dist/components/text-to-signup/magic-qr-code.mjs +1 -0
  295. package/dist/components/typographies/PageHeader.mjs +1 -0
  296. package/dist/components/typographies/PageSectionHeader.mjs +1 -0
  297. package/dist/components/typographies/Paragraph.mjs +1 -0
  298. package/dist/components/typographies/SectionDescription.mjs +1 -0
  299. package/dist/components/typographies/SectionHeader.mjs +1 -0
  300. package/dist/components/typographies/SectionTitle.mjs +1 -0
  301. package/dist/components/typographies/index.mjs +1 -1
  302. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Access powered by Verified/black.mjs +1 -0
  303. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Access powered by Verified/blackGreen.mjs +1 -0
  304. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Access powered by Verified/gray.mjs +1 -0
  305. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Access powered by Verified/green.mjs +1 -0
  306. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Access powered by Verified/index.mjs +1 -0
  307. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Access powered by Verified/white.mjs +1 -0
  308. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Access powered by Verified/whiteGreen.mjs +1 -0
  309. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Apply powered by Verified/black.mjs +1 -0
  310. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Apply powered by Verified/blackGreen.mjs +1 -0
  311. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Apply powered by Verified/gray.mjs +1 -0
  312. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Apply powered by Verified/green.mjs +1 -0
  313. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Apply powered by Verified/index.mjs +1 -0
  314. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Apply powered by Verified/white.mjs +1 -0
  315. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Apply powered by Verified/whiteGreen.mjs +1 -0
  316. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click AutoFill powered by Verified/black.mjs +1 -0
  317. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click AutoFill powered by Verified/blackGreen.mjs +1 -0
  318. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click AutoFill powered by Verified/gray.mjs +1 -0
  319. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click AutoFill powered by Verified/green.mjs +1 -0
  320. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click AutoFill powered by Verified/index.mjs +1 -0
  321. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click AutoFill powered by Verified/white.mjs +1 -0
  322. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click AutoFill powered by Verified/whiteGreen.mjs +1 -0
  323. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Login powered by Verified/black.mjs +1 -0
  324. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Login powered by Verified/blackGreen.mjs +1 -0
  325. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Login powered by Verified/gray.mjs +1 -0
  326. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Login powered by Verified/green.mjs +1 -0
  327. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Login powered by Verified/index.mjs +1 -0
  328. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Login powered by Verified/white.mjs +1 -0
  329. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Login powered by Verified/whiteGreen.mjs +1 -0
  330. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Signup powered by Verified/black.mjs +1 -0
  331. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Signup powered by Verified/blackGreen.mjs +1 -0
  332. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Signup powered by Verified/gray.mjs +1 -0
  333. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Signup powered by Verified/green.mjs +1 -0
  334. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Signup powered by Verified/index.mjs +1 -0
  335. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Signup powered by Verified/white.mjs +1 -0
  336. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Signup powered by Verified/whiteGreen.mjs +1 -0
  337. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Verify powered by Verified/black.mjs +1 -0
  338. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Verify powered by Verified/blackGreen.mjs +1 -0
  339. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Verify powered by Verified/gray.mjs +1 -0
  340. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Verify powered by Verified/green.mjs +1 -0
  341. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Verify powered by Verified/index.mjs +1 -0
  342. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Verify powered by Verified/white.mjs +1 -0
  343. package/dist/components/verified/OneClickPoweredByVerified/components/1-Click Verify powered by Verified/whiteGreen.mjs +1 -0
  344. package/dist/components/verified/OneClickPoweredByVerified/index.mjs +1 -0
  345. package/dist/components/verified/VerifiedImage.mjs +1 -0
  346. package/dist/components/verified/VerifiedIncLogo.mjs +1 -0
  347. package/dist/components/verified/powered-by-verified/index.mjs +1 -0
  348. package/dist/{shared/email-B-xO6du4.mjs → constants/email.mjs} +1 -1
  349. package/dist/constants/index.mjs +1 -1
  350. package/dist/{shared/metrics-BWSI1rAo.mjs → constants/metrics.mjs} +1 -1
  351. package/dist/contexts/index.mjs +1 -1
  352. package/dist/contexts/metrics/Metrics.context.mjs +1 -0
  353. package/dist/contexts/tunnel/index.mjs +1 -0
  354. package/dist/hooks/index.mjs +1 -1
  355. package/dist/hooks/metrics/useColorMap.mjs +1 -0
  356. package/dist/hooks/text-to-signup/magic-link.mjs +1 -0
  357. package/dist/hooks/text-to-signup/magic-qr-code-options.mjs +1 -0
  358. package/dist/hooks/text-to-signup/magic-qr-code.mjs +1 -0
  359. package/dist/hooks/text-to-signup/magic-text.mjs +1 -0
  360. package/dist/hooks/useCallbackRef.mjs +1 -0
  361. package/dist/hooks/useCopyToClipboard.mjs +1 -0
  362. package/dist/{shared/useCounter-BV32zXDQ.mjs → hooks/useCounter.mjs} +1 -1
  363. package/dist/hooks/useDebounceCallback.mjs +1 -0
  364. package/dist/hooks/useDebounceValue.mjs +1 -0
  365. package/dist/hooks/useDisclosure.mjs +1 -0
  366. package/dist/hooks/useGoogleFont.mjs +1 -0
  367. package/dist/hooks/useIntersectionObserver.mjs +1 -0
  368. package/dist/{shared/useLocalStorage-OKgpJYer.mjs → hooks/useLocalStorage.mjs} +1 -1
  369. package/dist/hooks/useNavigatorOnline.mjs +1 -0
  370. package/dist/hooks/useNetworkType.mjs +1 -0
  371. package/dist/hooks/useOnClickOutside.mjs +1 -0
  372. package/dist/hooks/usePersistedReducer.mjs +1 -0
  373. package/dist/hooks/usePrevious.mjs +1 -0
  374. package/dist/hooks/useQRCode.mjs +1 -0
  375. package/dist/hooks/useResizeObserver.mjs +1 -0
  376. package/dist/hooks/useScript.mjs +1 -0
  377. package/dist/hooks/useSearchParams.mjs +1 -0
  378. package/dist/hooks/useStyledQRCode.mjs +1 -0
  379. package/dist/hooks/useThrottle.mjs +1 -0
  380. package/dist/hooks/useToggle.mjs +1 -0
  381. package/dist/hooks/useWindowScroll.mjs +1 -0
  382. package/dist/hooks/useWindowSize.mjs +1 -0
  383. package/dist/index.mjs +1 -1
  384. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1 -0
  385. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +1 -0
  386. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.mjs +1 -0
  387. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs +1 -0
  388. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +1 -0
  389. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +1 -0
  390. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +1 -0
  391. package/dist/node_modules/clsx/dist/clsx.mjs +1 -0
  392. package/dist/node_modules/react-datepicker/dist/es/index.mjs +1 -0
  393. package/dist/styles/colors.mjs +1 -0
  394. package/dist/styles/index.mjs +1 -1
  395. package/dist/styles/lib/react-datepicker.css.mjs +1 -0
  396. package/dist/styles/shadows.mjs +1 -0
  397. package/dist/styles/theme.mjs +1 -0
  398. package/dist/styles/typography.mjs +1 -0
  399. package/dist/utils/date.mjs +1 -0
  400. package/dist/utils/index.mjs +1 -1
  401. package/dist/utils/makeGoogleFont.mjs +1 -0
  402. package/dist/{shared/notification-sBaCxCY5.mjs → utils/notification.mjs} +1 -1
  403. package/dist/utils/number/formatters.mjs +1 -0
  404. package/dist/utils/omitProperty.mjs +1 -0
  405. package/dist/utils/phone/index.mjs +1 -1
  406. package/dist/utils/ssn.mjs +1 -0
  407. package/dist/utils/string/formatKebabToPretty.mjs +1 -0
  408. package/dist/{shared/generateKeyFromString-D1AuwK4y.mjs → utils/string/generateKeyFromString.mjs} +1 -1
  409. package/dist/utils/string/index.mjs +1 -1
  410. package/dist/utils/string/toCapitalize.mjs +1 -0
  411. package/dist/utils/string/toSentenceCase.mjs +1 -0
  412. package/dist/utils/uuidColor.mjs +1 -0
  413. package/dist/validations/address.schema.mjs +1 -0
  414. package/dist/validations/date.schema.mjs +1 -0
  415. package/dist/validations/description.schema.mjs +1 -0
  416. package/dist/validations/email.schema.mjs +1 -0
  417. package/dist/validations/field.schema.mjs +1 -0
  418. package/dist/validations/index.mjs +1 -1
  419. package/dist/validations/npi.schema.mjs +1 -0
  420. package/dist/validations/phone.schema.mjs +1 -0
  421. package/dist/validations/ssn.schema.mjs +1 -0
  422. package/dist/validations/unix.schema.mjs +1 -0
  423. package/package.json +5 -1
  424. package/dist/shared/Metrics.context-nclzMP1W.mjs +0 -1
  425. package/dist/shared/OneClickVerificationSuccessOverTimeChart.map-D9L91Rks.mjs +0 -1
  426. package/dist/shared/PageSectionHeader-WvpwlmBn.mjs +0 -1
  427. package/dist/shared/_baseIsEqual-sbOBMsGa.mjs +0 -1
  428. package/dist/shared/address.schema-2gCctEOX.mjs +0 -1
  429. package/dist/shared/colors-CSvtCJK4.mjs +0 -1
  430. package/dist/shared/driversLicense.schema-BR4qKD7W.mjs +0 -1
  431. package/dist/shared/formatKebabToPretty-Du43TgPC.mjs +0 -1
  432. package/dist/shared/isEqual-DsQDNaUy.mjs +0 -1
  433. package/dist/shared/magic-legal-language-33vF2Lum.mjs +0 -81
  434. package/dist/shared/magic-qr-code-UDSE_LRd.mjs +0 -1
  435. package/dist/shared/makeGoogleFont-pok2oDWs.mjs +0 -1
  436. package/dist/shared/motions-CgJF6dYW.mjs +0 -1
  437. package/dist/shared/omitProperty-DReNmkk1.mjs +0 -1
  438. package/dist/shared/phone-D3-biBwM.mjs +0 -1
  439. package/dist/shared/shadows-levwxV7v.mjs +0 -1
  440. package/dist/shared/ssn-Ben2r4Gg.mjs +0 -1
  441. package/dist/shared/useColorMap-CLfTqu93.mjs +0 -1
  442. package/dist/shared/useCopyToClipboard-ClqTa6sX.mjs +0 -1
  443. package/dist/shared/useResizeObserver-D7K4jTvT.mjs +0 -1
  444. package/dist/shared/uuidColor-bmve2xeu.mjs +0 -20
  445. package/dist/verifiedinc-public-shared-ui-elements-5.25.1-beta.0.tgz +0 -0
@@ -0,0 +1 @@
1
+ "use strict";import o from"@mui/material/Alert";import{jsx as t}from"react/jsx-runtime";function f(r){return t(o,{...r})}export{f as Alert};
@@ -0,0 +1 @@
1
+ "use strict";import{Alert as n}from"@mui/material";import{jsx as t,Fragment as l}from"react/jsx-runtime";function s({children:e,sx:r,...i}){return t(l,{children:t(n,{severity:"info",sx:{maxWidth:"100%",width:"100%",textAlign:"left",alignItems:"center",...r},...i,children:e})})}export{s as FullWidthAlert};
@@ -0,0 +1 @@
1
+ "use strict";import{Backdrop as n,Stack as i,CircularProgress as c}from"@mui/material";import{jsx as e,jsxs as t}from"react/jsx-runtime";const p=({open:s,sx:a,children:o})=>e(n,{sx:{color:r=>r.palette.primary.main,zIndex:r=>r.zIndex.drawer+1,...a},open:s,children:t(i,{alignItems:"center",spacing:3,children:[e(c,{color:"inherit"}),o]})});export{p as Backdrop};
@@ -0,0 +1 @@
1
+ "use strict";import{useTheme as l,Box as n,AlertTitle as a}from"@mui/material";import{FullWidthAlert as m}from"../Alert/FullWidthAlert.mjs";import{Typography as c}from"../Typography/index.mjs";import{jsx as t,jsxs as h}from"react/jsx-runtime";function p({title:r,severity:e,children:s,sx:o}){const i=l();return t(n,{sx:{mt:3,...o},children:h(m,{severity:e,sx:{alignItems:"start"},children:[t(a,{children:t(c,{sx:{color:i.palette.info.contrastText},fontWeight:"bold",children:r})}),s]})})}export{p as Banner};
@@ -0,0 +1 @@
1
+ "use strict";import{Banner as e}from"./Banner.mjs";import{jsx as i}from"react/jsx-runtime";function t({sx:r}){return i(e,{title:"Enter your exact Birthday",severity:"info",sx:r,children:"We need this to verify your identity with your phone carrier and pre-fill your signup info."})}export{t as ExactBirthdayBanner};
@@ -0,0 +1 @@
1
+ "use strict";import{useTheme as s}from"@mui/material";import{FullWidthAlert as a}from"../Alert/FullWidthAlert.mjs";import{Button as l}from"../Button/index.mjs";import{parseToPhoneNational as m}from"../../utils/phone/index.mjs";import"tinycolor2";import{jsx as o,Fragment as c,jsxs as d}from"react/jsx-runtime";function h({phone:e,onClick:t,disabled:n=!1,sx:r}){const i=s();return o(c,{children:d(a,{action:o(l,{onClick:t,disabled:n,sx:{color:i.palette.info.contrastText,fontWeight:800,fontSize:"13px",padding:"0","&:hover":{backgroundColor:"initial"},...r},size:"small",variant:"text",color:"info",children:"Resend"}),children:["Use the text we sent to ",o("strong",{children:m(e)})," "]})})}export{h as ResendPhoneBanner};
@@ -0,0 +1 @@
1
+ "use strict";import{Box as r}from"@mui/material";import{Banner as s}from"./Banner.mjs";import{jsx as e,jsxs as t}from"react/jsx-runtime";function i({sx:n}){return e(s,{title:"Test Phone Numbers",severity:"info",sx:n,children:t(r,{component:"ul",sx:{listStyle:"inside"},children:[e("li",{children:"Phone Only Input: +10123456789"}),e("li",{children:"Phone and Birth Date Inputs: +10019999999"})]})})}export{i as TestPhoneNumbersBanner};
@@ -0,0 +1 @@
1
+ "use strict";import{useMemo as c,useEffect as v}from"react";import i from"lodash";const p=e=>i.chain(e).mapValues(r=>({name:r.brandName,value:r.brandUuid,_raw:r})).toArray().value();function f({value:e,multiple:r=!1,onChange:n,brands:s,maximumSelectedBrands:o,defaultBrandUuids:d}){const m=c(()=>(s??[]).map(a=>a),[s]),t=c(()=>i.sortBy(p(m),[a=>!a._raw.isLiveBrand]),[m]);return v(()=>{if(!t.length)return;const a=d?t.filter(l=>d.includes(l.value)):[];if(r&&Array.isArray(e)){if(!e.length&&a.length)return n?.(a.slice(0,o));const l=i.map(t,"value");!e.every(u=>l.includes(u.value))&&a.length&&n?.(a.slice(0,o))}else{const l=a[0];if(!Array.isArray(e)){if(!e&&l)return n?.(l);const u=i.map(t,"value");!(e&&u.includes(e.value))&&l&&n?.(l)}}},[t]),{brandOptions:t}}export{p as toOption,f as useBrandFilterInput};
@@ -0,0 +1 @@
1
+ "use strict";import{Box as C,Autocomplete as K,TextField as N,Checkbox as P,Typography as R}from"@mui/material";import{useSnackbar as U}from"../Snackbar/index.mjs";import{useState as O,useMemo as m,useEffect as z}from"react";import{useBrandFilterInput as T}from"./BrandFilterInput.hook.mjs";import{toOption as D}from"./BrandFilterInput.hook.mjs";import{jsx as d,jsxs as G}from"react/jsx-runtime";function H({label:I,multiple:t=!1,value:c,onChange:v,brands:_,isLoading:k,maximumSelectedBrands:i,groupLiveBrand:F=!1,selectAll:f=!1,selectLiveBrands:h=!1,defaultBrandUuids:Y,debounceMs:A=2e3,sx:q}){const[s,b]=O(c??null),E=m(()=>{if(!t)return v;let e;return r=>{clearTimeout(e),e=setTimeout(()=>{v(r)},A)}},[t,v,A]),B=e=>{if(t&&Array.isArray(e)){const r=e.slice(0,i);b(r),E(r);return}b(e),v(e)};z(()=>{b(c??null)},[c]);const{enqueueSnackbar:g}=U(),{brandOptions:n}=T({value:c,multiple:t,onChange:B,brands:_,maximumSelectedBrands:i,defaultBrandUuids:Y});let p;if(t?p="multiple":c===void 0?p="empty":p="single",(f||h)&&!t)throw new Error("selectAll and selectLiveBrands props can only be used when multiple is true");const y=m(()=>({selectAll:{name:"Select All",value:"select-all",_raw:{}},selectLiveBrands:{name:"Select Live Brands",value:"select-live-brands",_raw:{}}}),[]),M=m(()=>{if(!t)return n;const e=[];return f&&e.push(y.selectAll),h&&e.push(y.selectLiveBrands),e.length>0?[...e,...n]:n},[t,f,h,y,n]),$=m(()=>{if(!t||!Array.isArray(s)||n.length===0)return{areAllSelected:!1,areLiveBrandsSelected:!1};const e=n.filter(l=>l._raw.isLiveBrand),r=s.filter(l=>l.value!=="select-all"&&l.value!=="select-live-brands"),u=r.length===n.length&&n.every(l=>r.some(o=>o.value===l.value)),a=e.length>0&&e.every(l=>r.some(o=>o.value===l.value));return{areAllSelected:u,areLiveBrandsSelected:a}},[t,s,n]),{areAllSelected:L,areLiveBrandsSelected:S}=$,j=e=>{if(!t||!Array.isArray(e))return e;const r=e.some(a=>a.value==="select-all"),u=e.some(a=>a.value==="select-live-brands");if(r)return L?[]:i&&n.length>i?(g(`You can't select more than ${i} brands.`,"error"),Array.isArray(s)?s.filter(a=>a.value!=="select-all"&&a.value!=="select-live-brands"):[]):n;if(u){const a=n.filter(l=>l._raw.isLiveBrand);return S?Array.isArray(s)?s.filter(l=>l.value!=="select-live-brands"&&!a.some(o=>o.value===l.value)):[]:i&&a.length>i?(g(`You can't select more than ${i} brands.`,"error"),Array.isArray(s)?s.filter(l=>l.value!=="select-all"&&l.value!=="select-live-brands"):[]):[...Array.isArray(s)?s.filter(l=>l.value!=="select-all"&&l.value!=="select-live-brands"&&!a.some(o=>o.value===l.value)):[],...a]}return e.filter(a=>a.value!=="select-all"&&a.value!=="select-live-brands")},[x,w]=O(!1);return d(C,{onClick:()=>{x||w(!0)},sx:{position:"relative",cursor:"pointer",...q},children:d(K,{multiple:t,value:t?s||[]:s,limitTags:3,options:M,getOptionKey:e=>e.value,getOptionLabel:e=>e.name,isOptionEqualToValue:(e,r)=>r?e.value===r.value:!1,open:x,onOpen:()=>{},onClose:()=>w(!1),onChange:(e,r)=>{const u=j(r);if(i&&Array.isArray(u)&&u.length>i&&Array.isArray(c)&&u.length>c.length){g(`You can't select more than ${i} brands.`,"error");return}B(u)},clearOnBlur:!0,disableClearable:!t,disabled:k,disableCloseOnSelect:t,...F&&{groupBy:e=>e.value==="select-all"||e.value==="select-live-brands"?"":e._raw.isLiveBrand?"Live Brands":"Not Live Yet"},renderOption:(e,r,{selected:u})=>{const a=r.value==="select-all"?L:r.value==="select-live-brands"?S:u;return d("li",{...e,children:G(C,{display:"flex",alignItems:"center",width:"100%",children:[t&&d(P,{checked:a,sx:{marginRight:1}}),d(R,{children:r.name})]})})},renderInput:e=>d(N,{...e,label:I,placeholder:"Select...",inputProps:{...e.inputProps,flex:1,width:"100%"},sx:{width:"100%"}})},p)})}export{H as BrandFilterInput,D as toOption,T as useBrandFilterInput};
@@ -0,0 +1 @@
1
+ "use strict";import r from"@mui/material/Button";import{jsx as t}from"react/jsx-runtime";function m(o){return t(r,{...o})}export{m as Button};
@@ -0,0 +1 @@
1
+ "use strict";import{useEffect as u,createContext as d,useContext as l}from"react";import{useForm as c,FormProvider as f}from"react-hook-form";import m from"lodash/debounce";import{omitProperties as p}from"../../utils/omitProperty.mjs";import{jsx as i}from"react/jsx-runtime";const n=d(null);function h(){const e=l(n);if(!e)throw new Error("useCredentialRequestsEditor must be used within a CredentialRequestsEditorProvider");return e}function R(e){const t=c({defaultValues:{credentialRequests:e.credentialRequests}});return u(()=>{const o=m((r,{name:q,type:C})=>{if(r.credentialRequests){const a=r.credentialRequests.filter(s=>!!(s!=null&&s.type));e.onChange(p(a,["isNew","id"]))}},100);return t.watch(o).unsubscribe},[t.watch]),i(f,{...t,children:i(n.Provider,{value:{addButtonText:e.addButtonText,riskSignals:e.riskSignals,features:e.features,integrationType:e.integrationType},children:e.children})})}export{R as CredentialRequestsEditorProvider,h as useCredentialRequestsEditor};
@@ -0,0 +1 @@
1
+ "use strict";import{Stack as f}from"@mui/material";import{Add as h}from"@mui/icons-material";import{useFormContext as y,useFieldArray as A}from"react-hook-form";import{DndProvider as F}from"react-dnd";import{HTML5Backend as x}from"react-dnd-html5-backend";import{Button as q}from"../../Button/index.mjs";import{buildDataFieldValue as g}from"../utils/buildDataFieldValue.mjs";import{CredentialRequestFieldProvider as v}from"../contexts/CredentialRequestFieldContext.mjs";import{DataFieldAccordion as k}from"./DataFieldAccordion.mjs";import{useCredentialRequestsEditor as C}from"../CredentialRequestsEditor.context.mjs";import{jsx as r,jsxs as d,Fragment as R}from"react/jsx-runtime";function p({path:s="credentialRequests",parentFieldArray:u,parentIndex:m=0,level:o=0}){const n=C(),c=y(),t=A({control:c.control,name:s});return d(R,{children:[t.fields.map((e,i)=>{const a=`${s}.${i}`;return d(v,{path:a,field:e,fieldArray:t,index:i,level:o,onAllFieldsDelete:()=>{var l;(l=u??t)==null||l.remove(m)},children:[r(k,{riskSignals:n.riskSignals,integrationType:n.integrationType}),Array.isArray(e.children)&&r(p,{path:`${a}.children`,parentFieldArray:t,parentIndex:i,level:o+1},`${a}.children`)]},a+e.type)}),s==="credentialRequests"&&r(q,{type:"button",onClick:()=>{if(!n)return;const e=g(""),i={type:e.type,issuers:e.issuers,required:e.required,mandatory:e.mandatory,description:e.description,allowUserInput:e.allowUserInput,multi:e.multi,children:e.children,isNew:!0};t.append(i)},size:"large",variant:"outlined",startIcon:r(h,{}),fullWidth:!0,sx:{width:"100%"},children:n.addButtonText??"Add Credential Request"})]})}function w(){return r(F,{backend:x,children:r(f,{spacing:2,children:r(p,{})})})}export{w as CredentialRequestsField};
@@ -0,0 +1 @@
1
+ "use strict";import{useState as A,useRef as X,useMemo as Z,useCallback as _,useEffect as Y}from"react";import{useTheme as tt,Stack as r,Paper as et,Box as at,Accordion as ot,AccordionSummary as it,IconButton as b,AccordionDetails as rt,Typography as I}from"@mui/material";import{Menu as nt,Delete as lt,ChevronLeft as st,CheckCircle as dt,Close as ct}from"@mui/icons-material";import{useDrag as pt,useDrop as mt}from"react-dnd";import{useFormContext as ft,useController as ut}from"react-hook-form";import{RequiredLabel as xt}from"../../RequiredLabel/index.mjs";import{prettyField as gt}from"../utils/prettyField.mjs";import{MandatoryEnum as ht}from"../types/mandatoryEnum.mjs";import{SdkIntegrationType as p}from"../types/sdk.mjs";import{useCredentialRequestField as yt}from"../contexts/CredentialRequestFieldContext.mjs";import{DataFieldOptionType as vt}from"./DataFieldOptionType.mjs";import{DataFieldDescription as St}from"./DataFieldDescription.mjs";import{DataFieldMandatory as Dt}from"./DataFieldMandatory.mjs";import{DataFieldUserInput as Ct}from"./DataFieldUserInput.mjs";import{DataFieldDeleteModal as At}from"./DataFieldDeleteModal.mjs";import{DataFieldMulti as bt}from"./DataFieldMulti.mjs";import{jsxs as n,jsx as a,Fragment as It}from"react/jsx-runtime";function Ft(F){const{defaultExpanded:k,integrationType:l,riskSignals:w}=F,e=yt(),M=ft(),s=ut({name:`${e?.path}`}),g=s.field.value,h=M.watch("credentialRequests"),d=(e?.field).isNew,m=(e?.level??0)>0,[y,z]=A((k??d)||!1),[N,f]=A(!1),H=X(null),v=String(e?.field.type),S=gt(v||"Choose a type..."),D=tt(),u="chevron",T=Z(()=>s.field.value&&s.field.value.type,[s.field.value]),C=_(t=>{const o=t,i=e;if(!o||!i)return!1;const c=Q=>Q.split(".").slice(0,-2).join("."),x=c(o?.path??""),B=c(i?.path??""),L=x===B,G=o.level,V=o.index,J=i.level,K=i.index;return!(G!==J||V===K||!L)},[e]),[{opacity:E},P,R]=pt(()=>({type:"data-field-drag",item:()=>e,collect:t=>({opacity:t.isDragging()?0:1})}),[e,h]),[{opacity:$},j]=mt(()=>({accept:"data-field-drag",canDrop(t){return C(t)},drop(t){const o=t,i=e;if(!o||!i||!C(o))return;const c=o.index,x=i.index;e.fieldArray.move(c,x)},collect:t=>t.isOver()?{opacity:t.canDrop()?.4:1}:{opacity:1}}),[e,h]),q=()=>{if(e){if(f(!1),e.fieldArray.fields.length<=1){e.onAllFieldsDelete();return}e.fieldArray.remove(e.index)}},O=()=>a(I,{variant:"body1",sx:{fontStyle:v?"normal":"italic",fontSize:"16px",fontWeight:"800",textAlign:"left !important",alignSelf:"flex-start"},children:g.mandatory!==ht.NO?a(xt,{children:S}):S}),U=()=>{const t=g.allowUserInput;return n(r,{direction:"row",alignItems:"center",spacing:.5,pl:5.25,children:[t?a(dt,{sx:{fontSize:"12px",color:D.palette.text.disabled}}):a(ct,{sx:{fontSize:"12px",color:D.palette.text.disabled}}),a(I,{variant:"body1",color:"text.disabled",sx:{fontSize:"12px",fontWeight:"400",alignSelf:"flex-start",textAlign:"left!important"},children:"Allow User Input"})]})},W=()=>n(r,{spacing:2,children:[!m&&a(vt,{}),l!==p.NonHosted&&a(St,{}),a(Dt,{}),l!==p.NonHosted&&a(Ct,{}),T==="AddressCredential"&&a(bt,{riskSignals:w})]});return Y(()=>{var t;d&&((t=H.current)==null||t.scrollIntoView({behavior:"smooth"}))},[d]),n(r,{ref:j,sx:{position:"relative",width:"100%",opacity:$},children:[a(et,{ref:t=>R(t),sx:{p:"0!important",width:`calc(100% - ${(e?.level??0)*30}px)!important`,alignSelf:"flex-end",opacity:E},children:a(at,{children:n(ot,{defaultExpanded:d,expanded:y,sx:{boxShadow:"none","&::before":{display:"none"},my:"0px !important",mt:0,p:"8px !important"},"data-testid":"custom-demo-dialog-data-field-accordion",children:[a(it,{onClick:t=>{if(m&&l===p.NonHosted){t.preventDefault(),t.stopPropagation();return}z(o=>!o)},expandIcon:n(It,{children:[a(b,{size:"small",onClick:t=>{t.stopPropagation(),f(!0)},"data-testid":"custom-demo-dialog-data-field-delete-button",children:a(lt,{fontSize:"small",sx:{transform:"rotate(0deg)"}})}),(!m||l!==p.NonHosted)&&a(r,{className:u,sx:{ml:1,alignSelf:"center"},children:a(st,{fontSize:"small",sx:{color:"#0dbc3d",transform:"rotate(0deg)"}})})]}),sx:{px:0,minHeight:"auto!important","& .MuiAccordionSummary-content":{my:"0px !important"},"& .MuiAccordionSummary-expandIconWrapper":{alignSelf:"flex-start",transform:"rotate(0deg) !important",[`& .${u}`]:{transition:"transform .3s"},"&.Mui-expanded":{[`& .${u}`]:{transform:"rotate(-90deg)"}}}},children:a(r,{sx:{alignItems:"flex-start",mr:.5},children:n(r,{direction:"column",alignItems:"flex-start",spacing:0,children:[n(r,{direction:"row",alignItems:"center",spacing:1,children:[a(b,{ref:P,size:"small",color:"success",onClick:t=>{t.preventDefault(),t.stopPropagation()},sx:{cursor:"grab"},children:a(nt,{})}),O()]}),U()]})})}),a(rt,{sx:{pt:3},children:y&&W()})]})})}),a(At,{open:N,onClose:()=>{f(!1)},onConfirm:q})]})}export{Ft as DataFieldAccordion};
@@ -0,0 +1 @@
1
+ "use strict";import{Dialog as s,DialogTitle as r,DialogContent as d,Typography as c,DialogActions as m}from"@mui/material";import{Button as o}from"../../Button/index.mjs";import{jsxs as a,jsx as e}from"react/jsx-runtime";const i={minHeight:20,mt:2,py:1,px:1.25,fontWeight:"800",fontSize:"13px"};function f({open:l,onClose:t,onConfirm:n}){return a(s,{open:l,onClose:t,children:[e(r,{children:"Delete Data Field?"}),e(d,{children:e(c,{children:"Are you sure you want to delete this data field?"})}),a(m,{sx:{justifyContent:"space-between"},children:[e(o,{variant:"text",color:"neutral",size:"small",onClick:t,sx:i,"data-testid":"custom-demo-dialog-data-field-delete-cancel-button",children:"Don't Delete"}),e(o,{variant:"contained",color:"error",size:"small",onClick:n,sx:i,"data-testid":"custom-demo-dialog-data-field-delete-confirm-button",children:"Delete"})]})]})}export{f as DataFieldDeleteModal};
@@ -0,0 +1,3 @@
1
+ "use strict";import{useState as c,useRef as m}from"react";import{useController as f}from"react-hook-form";import g from"lodash/debounce";import{TextField as h}from"@mui/material";import{useCredentialRequestsEditor as v}from"../CredentialRequestsEditor.context.mjs";import{useCredentialRequestField as x}from"../contexts/CredentialRequestFieldContext.mjs";import{DataFieldSection as F}from"./DataFieldSection.mjs";import{jsx as i,jsxs as C,Fragment as D}from"react/jsx-runtime";function S(){var a,o;const{features:s}=v(),r=((a=s?.description)==null?void 0:a.disabled)===!0,l=x(),e=f({name:`${l?.path}.description`}),[d,n]=c(e.field.value??""),p=m(g(t=>{e.field.onChange({target:{value:t}})},500)).current,u=t=>{r||(n(t.target.value),p(t.target.value))};return i(F,{title:"Field Description",description:"What text appears under the field",tip:C(D,{children:[i("pre",{children:"POST /1-click"}),i("pre",{children:`{
2
+ description?: string
3
+ }`})]}),sx:{opacity:r?.5:1},children:i(h,{...e.field,value:d,onChange:u,error:!!e.fieldState.error,helperText:((o=e.fieldState.error)==null?void 0:o.message)??"Optional \u2014 defaults to empty",label:"Description",color:"success",size:"small",className:"original",inputProps:{"data-testid":"custom-demo-dialog-data-field-description-input"},disabled:r})})}export{S as DataFieldDescription};
@@ -0,0 +1,3 @@
1
+ "use strict";import{useFormContext as f,useController as h}from"react-hook-form";import{RadioGroup as c}from"@mui/material";import{MandatoryEnum as o}from"../types/mandatoryEnum.mjs";import{useCredentialRequestsEditor as v}from"../CredentialRequestsEditor.context.mjs";import{useCredentialRequestField as y}from"../contexts/CredentialRequestFieldContext.mjs";import{propagateToChildren as g}from"../utils/propagateToChildren.mjs";import{RadioOption as l}from"./RadioOption.mjs";import{DataFieldSection as C}from"./DataFieldSection.mjs";import{jsx as a,jsxs as u,Fragment as O}from"react/jsx-runtime";function R(){var i;const{features:r}=v(),t=((i=r?.mandatory)==null?void 0:i.disabled)===!0,e=y(),m=f(),d=h({name:`${e?.path}.mandatory`});return a(C,{title:"Optional or Required",description:"Whether it's optional or required for the user to share this data",tip:u(O,{children:[a("pre",{children:"POST /1-click"}),a("pre",{children:`{
2
+ mandatory?: enum
3
+ }`})]}),sx:{opacity:t?.5:1},children:u(c,{value:d.field.value,onChange:p=>{if(t)return;const s=p.target.value;d.field.onChange({target:{value:s}});const n=e?.path;n&&g(m,s,n,"mandatory")},children:[a(l,{isDefault:!0,value:o.NO,title:"Optional",description:"Optional for the user to share",tip:o.NO,inputProps:{"data-testid":"custom-demo-dialog-mandatory-no-radio"},disabled:t}),a(l,{value:o.IF_AVAILABLE,title:"Required if available",description:"Required to share, if the user has it",tip:o.IF_AVAILABLE,inputProps:{"data-testid":"custom-demo-dialog-mandatory-if_available-radio"},disabled:t})]})})}export{R as DataFieldMandatory};
@@ -0,0 +1,3 @@
1
+ "use strict";import{RadioGroup as p}from"@mui/material";import{useController as m}from"react-hook-form";import{SdkIntegrationType as c}from"../types/sdk.mjs";import{useCredentialRequestsEditor as f}from"../CredentialRequestsEditor.context.mjs";import{useCredentialRequestField as v}from"../contexts/CredentialRequestFieldContext.mjs";import{RadioOption as d}from"./RadioOption.mjs";import{DataFieldSection as h}from"./DataFieldSection.mjs";import{jsx as e,jsxs as n,Fragment as b}from"react/jsx-runtime";function g({riskSignals:l}){var a;const{features:o,integrationType:r}=f(),i=r===c.Hosted||((a=o?.multi)==null?void 0:a.disabled)===!0||l==="none",t=v(),s=m({name:`${t?.path}.multi`});return(t?.level??0)>0?null:e(h,{title:"Multiple Values",description:l==="none"?"This option is disabled when the Risk Signals brand setting is set to Off":"Whether multiple data values should be included if available",tip:n(b,{children:[e("pre",{children:"POST /1-click"}),e("pre",{children:`{
2
+ multi?: boolean
3
+ }`})]}),sx:{opacity:i?.5:1},children:n(p,{value:s.field.value??!1,onChange:(C,u)=>{i||s.field.onChange({target:{value:u==="true"}})},children:[e(d,{value:!0,title:"Yes",description:"Multiple values will be included if available",tip:"true",inputProps:{"data-testid":"custom-demo-dialog-multi-yes-radio"},disabled:i}),e(d,{isDefault:!0,value:!1,title:"No",description:"Multiple values won't be included",tip:"false",inputProps:{"data-testid":"custom-demo-dialog-multi-no-radio"},disabled:i})]})})}export{g as DataFieldMulti};
@@ -0,0 +1,3 @@
1
+ "use strict";import{useMemo as c}from"react";import{useFormContext as h,useController as y}from"react-hook-form";import{Autocomplete as v,TextField as C}from"@mui/material";import{prettyField as F}from"../utils/prettyField.mjs";import{buildDataFieldValue as x}from"../utils/buildDataFieldValue.mjs";import{useCredentialRequestField as g}from"../contexts/CredentialRequestFieldContext.mjs";import{DataFieldSection as b}from"./DataFieldSection.mjs";import{jsx as n,jsxs as S,Fragment as D}from"react/jsx-runtime";function P(){const e=g(),d=h(),u=y({name:`${e?.path}`}),o=c(()=>{const t={PhoneCredential:0,FullNameCredential:1,AddressCredential:2,BirthDateCredential:3,SsnCredential:4,SexCredential:5,DriversLicenseCredential:6},r=e?.path??"",i=e?.index??0,a=r.split(".").slice(0,-1).join("."),m=d.getValues(a),f=new Set(m?.map((l,s)=>s!==i?l.type:null).filter(l=>l!==null)??[]);return Object.keys(t).map(l=>({label:F(l),id:l})).filter(l=>!f.has(l.id)).sort((l,s)=>t[l.id]-t[s.id])},[e,d]),p=c(()=>{var t,r;const i=(r=(t=u.field)==null?void 0:t.value)==null?void 0:r.type;return o?.find(a=>a.id===i)},[u,o]);return n(b,{title:"Field Type",description:"What type of user data this field is for",tip:S(D,{children:[n("pre",{children:"POST /1-click"}),n("pre",{children:`{
2
+ type: string
3
+ }`})]}),children:n(v,{value:p,onChange:(t,r)=>{if(!r)return;const i=x(r.id),a={type:i.type,issuers:i.issuers,required:i.required,mandatory:i.mandatory,description:i.description,allowUserInput:i.allowUserInput,multi:i.multi,children:i.children};e?.fieldArray.update(e?.index,a)},options:o,disablePortal:!0,renderInput:t=>n(C,{...t,label:"Type",color:"success",size:"small",className:"original",fullWidth:!0,inputProps:{...t.inputProps,"data-testid":"custom-demo-dialog-data-field-type-input"},placeholder:"Choose a type..."}),disabled:(e?.level??0)>0})},JSON.stringify(p))}export{P as DataFieldOptionType};
@@ -0,0 +1 @@
1
+ "use strict";import{Stack as i,Typography as o}from"@mui/material";import{Tip as l}from"../../Tip/index.mjs";import{jsxs as a,jsx as t}from"react/jsx-runtime";function p(n){const{children:d,title:r,description:e,tip:s,sx:c}=n;return a(i,{sx:c,children:[a(i,{direction:"row",alignItems:"center",spacing:.5,children:[t(o,{variant:"body1",sx:{fontSize:"16px",fontWeight:"700"},"data-testid":"custom-demo-dialog-data-field-title",children:r}),t(l,{children:s})]}),e&&t(o,{variant:"body2",color:"text.secondary",sx:{textAlign:"left !important",fontSize:"12px",fontWeight:"400"},"data-testid":"custom-demo-dialog-data-field-description",children:e}),t(i,{sx:{mt:3},children:d})]})}export{p as DataFieldSection};
@@ -0,0 +1,3 @@
1
+ "use strict";import{RadioGroup as m}from"@mui/material";import{useFormContext as c,useController as f}from"react-hook-form";import{useCredentialRequestsEditor as h}from"../CredentialRequestsEditor.context.mjs";import{useCredentialRequestField as v}from"../contexts/CredentialRequestFieldContext.mjs";import{propagateToChildren as g}from"../utils/propagateToChildren.mjs";import{RadioOption as l}from"./RadioOption.mjs";import{DataFieldSection as C}from"./DataFieldSection.mjs";import{jsx as e,jsxs as n,Fragment as w}from"react/jsx-runtime";function I(){var o;const{features:a}=h(),t=((o=a?.description)==null?void 0:o.disabled)===!0,i=v(),u=c(),r=f({name:`${i?.path}.allowUserInput`});return e(C,{title:"Allow User Input",description:"Whether the user is allowed to add or edit data for this field",tip:n(w,{children:[e("pre",{children:"POST /1-click"}),e("pre",{children:`{
2
+ allowUserInput?: boolean
3
+ }`})]}),sx:{opacity:t?.5:1},children:n(m,{value:r.field.value,onChange:(b,p)=>{if(t)return;const s=p==="true";r.field.onChange({target:{value:s}});const d=i?.path;d&&g(u,s,d,"allowUserInput")},children:[e(l,{isDefault:!0,value:!0,title:"Yes",description:"The user can add or edit data",tip:"true",inputProps:{"data-testid":"custom-demo-dialog-user-input-yes-radio"},disabled:t}),e(l,{value:!1,title:"No",description:"The user can't add or edit data",tip:"false",inputProps:{"data-testid":"custom-demo-dialog-user-input-no-radio"},disabled:t})]})})}export{I as DataFieldUserInput};
@@ -0,0 +1 @@
1
+ "use strict";import{Stack as i,Radio as x,Typography as r,Box as f,Chip as p}from"@mui/material";import{Tip as h}from"../../Tip/index.mjs";import{jsxs as e,jsx as t}from"react/jsx-runtime";function m(a){const{isDefault:s,title:l,description:n,tip:c,sx:o,...d}=a;return e(i,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{mb:1,...o},children:[t(i,{sx:{alignItems:"flex-start"},children:e(i,{direction:"row",spacing:1,children:[t(x,{...d,sx:{mt:"1px",width:34,height:34,...o,"&.Mui-checked":{color:"#0dbc3d"}}}),e(i,{children:[e(i,{direction:"row",alignItems:"center",spacing:1,children:[t(r,{variant:"body1",sx:{fontSize:"16px",fontWeight:"400",textAlign:"left !important"},children:l}),t(h,{children:c})]}),n&&t(r,{variant:"body2",color:"text.disabled",sx:{textAlign:"left !important",alignSelf:"flex-start",fontSize:"12px",fontWeight:"400",mt:.5},children:n})]})]})}),t(f,{sx:{mt:1,alignSelf:"flex-start"},children:s&&t(p,{size:"small",label:"Default",color:"info",variant:"outlined",sx:{fontWeight:700}})})]})}export{m as RadioOption};
@@ -0,0 +1 @@
1
+ "use strict";import{createContext as i,useContext as n}from"react";import{jsx as o}from"react/jsx-runtime";const e=i(null),s=()=>n(e);function a({children:r,...t}){return o(e.Provider,{value:t,children:r})}export{a as CredentialRequestFieldProvider,s as useCredentialRequestField};
@@ -0,0 +1 @@
1
+ "use strict";import{CredentialRequestsEditorProvider as t}from"./CredentialRequestsEditor.context.mjs";import{CredentialRequestsField as i}from"./components/CredentialRequestsField.mjs";import{jsx as e}from"react/jsx-runtime";function s(r){return e(t,{...r,children:e(i,{})})}export{s as CredentialRequestsEditor};
@@ -0,0 +1 @@
1
+ "use strict";var A=(a=>(a.YES="yes",a.NO="no",a.IF_AVAILABLE="if_available",a))(A||{});export{A as MandatoryEnum};
@@ -0,0 +1 @@
1
+ "use strict";var s=(e=>(e.Hosted="hosted",e.SemiHosted="semi-hosted",e.NonHosted="non-hosted",e))(s||{});export{s as SdkIntegrationType};
@@ -0,0 +1 @@
1
+ "use strict";import t from"lodash";import{MandatoryEnum as l}from"../types/mandatoryEnum.mjs";import{fields as p}from"../../form/NewOneClickForm/core/fields/index.mjs";function d(r){return t.upperFirst(t.camelCase(o(r)))+"Credential"}function o(r){const n=r.replace("Credential","");return t.lowerFirst(t.camelCase(n))}function u(r){const n=o(r),a=d(r),e=p[n];if(!e)return{type:r,mandatory:l.NO,description:"",allowUserInput:!0,multi:!1};if("children"in e&&e.children){const s=e.children,c=Object.keys(s).map(i=>u(i)).filter(i=>i!==null);return{type:a,mandatory:l.NO,description:"",allowUserInput:!0,multi:!1,children:c}}return{type:a,mandatory:l.NO,description:"",allowUserInput:!0,multi:!1}}export{u as buildDataFieldValue};
@@ -0,0 +1 @@
1
+ "use strict";const n=/([A-Z][a-z0-9]+)/gm,p=i=>i.split(n).map(e=>e==="Id"?"ID":e==="Zip"?"ZIP":e==="Ssn"?"SSN":e).filter(e=>e!=="Credential").join(" ");export{p as prettyField};
@@ -0,0 +1 @@
1
+ "use strict";function c(o,n,r,i){const d=o.getValues(),l=r.split(".");let e=d;for(const t of l)e&&typeof e=="object"&&t in e&&(e=e[t]);if(e&&typeof e=="object"&&"children"in e){const t=e.children;Array.isArray(t)&&t.forEach((y,u)=>{const a=`${r}.children.${u}`,p=`${a}.mandatory`,f=`${a}.allowUserInput`,s=`${a}.${i}`,h=o.getValues(p),g=o.getValues(f);o.getValues(s)!==void 0&&h!==void 0&&g!==void 0&&(o.setValue(s,n,{shouldValidate:!1}),c(o,n,a,i))})}}export{c as propagateToChildren};
@@ -0,0 +1 @@
1
+ "use strict";import{Box as r}from"@mui/material";import{jsx as s}from"react/jsx-runtime";const a=({src:o,alt:t,...m})=>s(r,{src:o,alt:t,...m,component:"img"});export{a as Image};
@@ -0,0 +1 @@
1
+ "use strict";import{Box as t}from"@mui/material";import{useQRCode as r}from"../../hooks/useQRCode.mjs";import{jsxs as l,jsx as e}from"react/jsx-runtime";function m({data:o,asset:a,svgSize:s=300,logoSize:i=0,fill:n="#000000"}){const p=r({data:o,size:s,imageSize:i,fill:n});return l(t,{position:"relative",children:[e(t,{display:"flex",sx:{"& svg":{width:"100%",height:"auto",aspectRatio:1}},dangerouslySetInnerHTML:{__html:p}}),e(t,{component:"img",src:a,sx:{position:"absolute",width:i/s*100+"%",maxWidth:i+"px",height:"auto",inset:0,aspectRatio:1,m:"auto",p:.5}})]})}export{m as QRCodeDisplay};
@@ -0,0 +1 @@
1
+ "use strict";import{Box as o}from"@mui/material";import{jsxs as n,jsx as e}from"react/jsx-runtime";function s(r){return n("span",{children:[r.children,e(o,{component:"span",color:"error.main",sx:{ml:.5},children:"*"})]})}export{s as RequiredLabel};
@@ -0,0 +1 @@
1
+ "use strict";import{Close as h}from"@mui/icons-material";import{Alert as p,Box as v,IconButton as s}from"@mui/material";import{closeSnackbar as t,SnackbarContent as f,enqueueSnackbar as k}from"notistack";import{SnackbarProvider as b}from"notistack";import{forwardRef as C}from"react";import{When as c}from"../When.mjs";import{jsx as n,jsxs as S}from"react/jsx-runtime";function x(){return{enqueueSnackbar:(o,e="success",a)=>{k(o,{severity:e,variant:"customAlertComponent",persist:!0,...a})},closeSnackbar:t}}const A=C(({id:o,message:e,severity:a,alertAction:r,sx:l,showCloseIcon:m=!0,persist:I,hideIconVariant:g,autoHideDuration:q,anchorOrigin:w,iconVariant:y,...u},d)=>n(f,{ref:d,...u,children:n(p,{severity:a,action:S(v,{ml:1,children:[n(c,{value:r,children:n(s,{size:"small",onClick:()=>{var i;return o&&((i=r?.onAction)==null?void 0:i.call(r,o))},color:"inherit",children:r?.icon})}),n(c,{value:!r&&m,children:n(s,{size:"small",onClick:()=>{t(o)},color:"inherit",children:n(h,{})})})]}),sx:{alignItems:"center",width:"320px",...l},children:e})}));export{A as CustomAlertComponent,b as SnackbarProvider,x as useSnackbar};
@@ -0,0 +1 @@
1
+ "use strict";import t from"@mui/material/TextField";import{jsx as o}from"react/jsx-runtime";function e(r){return o(t,{...r})}export{e as TextField};
@@ -0,0 +1 @@
1
+ "use strict";import{Tooltip as t,IconButton as e}from"@mui/material";import{Code as n}from"@mui/icons-material";import{jsx as o}from"react/jsx-runtime";function a({children:r}){return o(t,{title:r,arrow:!0,enterTouchDelay:0,children:o(e,{size:"small",onClick:i=>{i.stopPropagation()},children:o(n,{})})})}export{a as Tip};
@@ -0,0 +1 @@
1
+ "use strict";import r from"@mui/material/Typography";import{jsx as p}from"react/jsx-runtime";function t(o){return p(r,{...o})}export{t as Typography};
@@ -0,0 +1 @@
1
+ "use strict";import{Box as p}from"@mui/material";import{useState as r,useRef as x,useEffect as v}from"react";import{MotionBox as w}from"../animation/motions.mjs";import{jsx as o}from"react/jsx-runtime";function b(n){const{children:i,...s}=n,[c,a]=r("auto"),[d,f]=r("auto"),e=x(null);return v(()=>{const t=new ResizeObserver(u=>{for(const h of u){const{width:m,height:l}=h.contentRect;f(m),a(l)}});return t.observe(e.current),document.addEventListener("resize",()=>{e.current&&t.observe(e.current)}),()=>{t.disconnect()}},[]),o(w,{...s,animate:{width:d,height:c},children:o(p,{ref:e,sx:{display:"inline-flex",overflow:"hidden",whiteSpace:"pre"},children:i})})}export{b as AdaptativeBox};
@@ -0,0 +1 @@
1
+ "use strict";import{AnimatePresence as a}from"framer-motion";import{MotionBox as r}from"../animation/motions.mjs";import{AdaptativeBox as e}from"./AdaptativeBox.mjs";import{jsx as i}from"react/jsx-runtime";function m({isLoading:t,loadingContent:n,children:o}){return i(a,{initial:!1,children:i(e,{children:t?n:i(r,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.1}},children:o})})})}export{m as ContentWithLoader};
@@ -0,0 +1 @@
1
+ "use strict";import{jsx as r,Fragment as t}from"react/jsx-runtime";function i({value:n,children:e}){return n?typeof e=="function"?r(t,{children:e(n)}):r(t,{children:e}):null}export{i as When};
@@ -0,0 +1 @@
1
+ "use strict";import{Box as s}from"@mui/material";import{jsx as t}from"react/jsx-runtime";const n=({isVisible:i,children:o,sx:e})=>t(s,{sx:{visibility:i?"visible":"hidden",position:i?"static":"absolute",pointerEvents:i?"auto":"none",top:i?"auto":0,left:i?"auto":0,height:i?"auto":0,width:i?"auto":0,overflow:i?"visible":"hidden",...e},children:o});export{n as WhenStyled};
@@ -0,0 +1 @@
1
+ "use strict";import{useRef as o}from"react";import{motion as n}from"framer-motion";import{useResizeObserver as s}from"../../hooks/useResizeObserver.mjs";import{jsx as e}from"react/jsx-runtime";function m(r){const i=o(null),[,t]=s(i);return e(n.div,{animate:{height:t,transition:{duration:r.duration??.2}},children:e("div",{ref:i,children:r.children})})}export{m as AnimateHeight};
@@ -0,0 +1 @@
1
+ "use strict";import{Box as n}from"@mui/material";import{useCounter as f}from"../../hooks/useCounter.mjs";import{jsx as p}from"react/jsx-runtime";function s({children:o,from:r,to:m,map:t}){const{ref:e}=f({from:r,to:m,map:t});return p(n,{ref:e,component:"span",children:o})}export{s as Counter};
@@ -1 +1 @@
1
- "use strict";import{C as n,M as s,f as r,a as e,d as m,c as d,b as f,e as l}from"../../shared/motions-CgJF6dYW.mjs";import{useRef as p}from"react";import{motion as u}from"framer-motion";import{u as M}from"../../shared/useResizeObserver-D7K4jTvT.mjs";import{jsx as t}from"react/jsx-runtime";function c(o){const a=p(null),[,i]=M(a);return t(u.div,{animate:{height:i,transition:{duration:o.duration??.2}},children:t("div",{ref:a,children:o.children})})}export{c as AnimateHeight,n as Counter,s as MotionBox,r as MotionButton,e as MotionStack,m as MotionTableCell,d as MotionTableRow,f as MotionTbody,l as MotionTypography};
1
+ "use strict";import{Counter as o}from"./Counter.mjs";import{MotionBox as t,MotionButton as a,MotionStack as i,MotionTableCell as n,MotionTableRow as s,MotionTbody as M,MotionTypography as e}from"./motions.mjs";import{AnimateHeight as r}from"./AnimatedHeight.mjs";export{r as AnimateHeight,o as Counter,t as MotionBox,a as MotionButton,i as MotionStack,n as MotionTableCell,s as MotionTableRow,M as MotionTbody,e as MotionTypography};
@@ -0,0 +1 @@
1
+ "use strict";import{Box as a,Stack as r,TableBody as t,TableRow as s,TableCell as n,Typography as i,Button as p}from"@mui/material";import{motion as o}from"framer-motion";const M=o(a,{forwardMotionProps:!1}),d=o(r,{forwardMotionProps:!1}),f=o(t,{forwardMotionProps:!1}),w=o(s,{forwardMotionProps:!1}),l=o(n,{forwardMotionProps:!1}),T=o(i,{forwardMotionProps:!1}),e=o(p,{forwardMotionProps:!1});export{M as MotionBox,e as MotionButton,d as MotionStack,l as MotionTableCell,w as MotionTableRow,f as MotionTbody,T as MotionTypography};
@@ -0,0 +1 @@
1
+ "use strict";import{PictureAsPdf as c}from"@mui/icons-material";import{IconButton as d,CircularProgress as f}from"@mui/material";import p,{useCallback as u}from"react";import{jsx as e}from"react/jsx-runtime";const g=({targetId:t,filename:n="file",sx:s,...o})=>{const[r,a]=p.useState(!1),i=u(()=>{a(!0),requestAnimationFrame(()=>{setTimeout(()=>{try{import("react-to-pdf").then(async m=>{const l=m.default;await l(()=>typeof t=="string"?document.getElementById(t):t,{filename:`${n}.pdf`,page:{margin:10}})}).finally(()=>{a(!1),console.log("updated pdf")})}catch{a(!1)}},600)})},[n,t]);return e("span",{children:e(d,{onClick:i,disabled:r,sx:{m:"0 !important",...s},...o,children:r?e(f,{size:24}):o.children?o.children:e(c,{})})})};export{g as ExportToPdfButton};
@@ -0,0 +1 @@
1
+ "use strict";import{forwardRef as p}from"react";import{Typography as m}from"@mui/material";import{Button as s}from"../Button/index.mjs";import{jsx as o}from"react/jsx-runtime";const c=p(({children:r,type:t="button",variant:a="text",color:n="secondary",...i},e)=>o(s,{ref:e,type:t,variant:a,color:n,...i,children:o(m,{variant:"button",component:"span",children:r})}));export{c as LinkButton};
@@ -0,0 +1 @@
1
+ "use strict";import{useMemo as p}from"react";import{useTheme as m,Button as c}from"@mui/material";import{jsx as u}from"react/jsx-runtime";function b({children:i,...r}){var a,n;const{newVariant:l,...d}=r,t=m(),e=((n=(a=t?.components)==null?void 0:a.MuiButton)==null?void 0:n.defaultProps)??{},s=p(()=>{let o={fontSize:"13px",...e.sx,alignSelf:"center",display:"flex",width:"auto",minHeight:30,fontFamily:['"Lato"',"sans-serif"].join(","),lineHeight:1.75,textAlign:"center",textTransform:"uppercase !important",borderRadius:1,py:1,px:3,...r.sx};return r.disabled||(o={...o,backgroundColor:"#0dbc3d!important",color:"#fff!important",borderColor:"#0dbc3d!important"},r.color==="error"&&(o={...o,borderColor:`${t.palette.error.main}!important`,backgroundColor:`${t.palette.error.main}!important`})),l==="gray"&&(o={...o,backgroundColor:"#E0E0E0!important",color:"black !important",borderColor:"transparent"}),r.variant==="text"&&(o={...o,backgroundColor:"transparent",color:`${t.palette.text.disabled} !important`,borderColor:"transparent"}),r.variant==="outlined"&&(o={...o,backgroundColor:"transparent",color:"#0dbc3d!important",borderColor:"#0dbc3d!important"}),r.size==="small"&&(o={...o,minHeight:20,py:1,px:2,fontSize:"16px"}),o},[e.sx,r.color,r.disabled,r.size,r.sx,r.variant,t.palette.error.main,t.palette.text.disabled]);return u(c,{...e,...d,sx:{...e.sx,...r.sx,...s},children:i})}export{b as OriginalButton};
@@ -0,0 +1 @@
1
+ "use strict";import{forwardRef as f}from"react";import{Button as i}from"../Button/index.mjs";import{jsx as p}from"react/jsx-runtime";const s=({children:t,type:o="button",variant:r="text",color:a="secondary",...e},n)=>p(i,{ref:n,type:o,variant:r,color:a,...e,children:t}),c=f(s);export{c as TextButton};
@@ -0,0 +1 @@
1
+ "use strict";function r(a){const{data:t,seriesConfig:e}=a;return{series:e,data:t}}export{r as mapAreaChartData};
@@ -37,6 +37,8 @@ interface AreaChartProps {
37
37
  isAnimationActive?: boolean;
38
38
  /** Curve interpolation type. @default 'monotone' */
39
39
  areaType?: CurveType;
40
+ /** Stack mode for areas. 'none' renders independent areas; 'stack' stacks by count; 'expand' normalizes to 100%. @default 'none' */
41
+ stackMode?: 'none' | 'stack' | 'expand';
40
42
  }
41
- export declare function AreaChart({ data, series, color, xAxis, yAxis, tooltip, area, referenceLines, referenceAreas, sx, isAnimationActive, areaType, }: AreaChartProps): ReactElement;
43
+ export declare function AreaChart({ data, series, color, xAxis, yAxis, tooltip, area, referenceLines, referenceAreas, sx, isAnimationActive, areaType, stackMode, }: AreaChartProps): ReactElement;
42
44
  export {};
@@ -0,0 +1 @@
1
+ "use strict";import{useTheme as C,Box as D}from"@mui/material";import{ResponsiveContainer as O,AreaChart as g,CartesianGrid as P,XAxis as R,YAxis as T,Tooltip as $,ReferenceLine as b,ReferenceArea as j,Area as G}from"recharts";import{chartDefaultProps as K,xAxisDefaultProps as W,yAxisDefaultProps as I}from"../shared.mjs";import{jsx as a,jsxs as d}from"react/jsx-runtime";function L({data:f,series:i,color:m,xAxis:x,yAxis:A,tooltip:h,area:y,referenceLines:n,referenceAreas:l,sx:u,isAnimationActive:k=!1,areaType:v="monotone",stackMode:o="none"}){const p=C(),c=m??p.palette.primary.main;return a(D,{sx:{width:"100%",height:"100%",...u},children:a(O,{children:d(g,{data:f,stackOffset:o==="expand"?"expand":void 0,...K,children:[a("defs",{children:i.map((e,r)=>{const s=`gradient-${r}`,t=e.color??c;return d("linearGradient",{id:s,x1:"0",y1:"0",x2:"0",y2:"1",children:[a("stop",{offset:"5%",stopColor:t,stopOpacity:.2}),a("stop",{offset:"95%",stopColor:t,stopOpacity:0})]},s)})}),a(P,{strokeDasharray:"3 3",vertical:!1}),a(R,{...W,...x}),a(T,{...I,...A}),a($,{cursor:{stroke:p.palette.neutral.main,strokeWidth:1},...h}),n?.map((e,r)=>a(b,{...e},e.label??r)),l?.map((e,r)=>a(j,{...e},e.label??r)),i.map((e,r)=>{const s=`gradient-${r}`,t=e.color??c;return a(G,{name:e.key,dataKey:e.dataKey,fill:`url(#${s})`,fillOpacity:o!=="none"?1:.6,stroke:t,strokeWidth:2,type:v,isAnimationActive:k,stackId:o!=="none"?"stack":void 0,...y},e.key)})]})})})}export{L as AreaChart};
@@ -0,0 +1 @@
1
+ "use strict";import{Paper as i,Stack as s,Typography as o}from"@mui/material";import{useCounter as n}from"../../../hooks/useCounter.mjs";import{usePrevious as l}from"../../../hooks/usePrevious.mjs";import{jsx as a,jsxs as m}from"react/jsx-runtime";function c(r){const t=l(r.value),{ref:e}=n({from:t??0,to:r.value,duration:1,map:r.map});return a(i,{sx:{p:3,flex:1,...r.sx},children:m(s,{spacing:1,alignItems:"center",children:[a(o,{ref:e,variant:"h4",fontWeight:"bold",children:r.initialValue}),a(o,{color:"text.secondary",children:r.label})]})})}export{c as BigNumber};
@@ -0,0 +1 @@
1
+ "use strict";import{Stack as t}from"@mui/material";import{useStyle as a}from"./styles.mjs";import{SectionTitle as o}from"../typographies/SectionTitle.mjs";import{SectionDescription as i}from"../typographies/SectionDescription.mjs";import{jsxs as s,jsx as r}from"react/jsx-runtime";function n(){const e=a();return s(t,{sx:e.smallChartWrapper,children:[r(o,{children:"No data available for the selected period and brands"}),r(i,{children:"Please select a different period or brand"})]})}export{n as EmptyChartSection};
@@ -0,0 +1 @@
1
+ "use strict";import{useTheme as d}from"@mui/material";import{ERROR_CODES_MESSAGES as i}from"../constants.mjs";import{EmptyChartSection as S}from"../EmptyChartSection.mjs";import{LoadingChartSection as f}from"../LoadingChartSection.mjs";import{SimpleBarChart as x}from"../SimpleBarChart/index.mjs";import{useStyle as k}from"../styles.mjs";import{jsx as a}from"react/jsx-runtime";function C({data:r,threshold:e=120,isLoading:s,isFetching:m,isSuccess:p,sx:c}){const n=d(),l=k(),o=Object.entries(r??{}).map(([t,y])=>({key:t,[t]:y})),h=o.map(({key:t})=>({key:t,dataKey:t,color:n.palette.error.light}));return(!r||Object.keys(r).length===0)&&s?a(f,{}):!r||Object.keys(r).length===0||!p?a(S,{}):a(x,{sx:{...l.smallChartWrapper,opacity:m?.4:1,...c},data:o,series:h,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${e>0?e+5:0}`]},tooltip:{labelFormatter:t=>`${i[t]?`${i[t]}`:""}`}})}export{C as ErrorCodesChart};
@@ -0,0 +1,35 @@
1
+ import { ComponentProps, ReactElement } from 'react';
2
+ import { SxProps } from '@mui/material';
3
+ import { Funnel, LabelList, Tooltip } from 'recharts';
4
+ export interface FunnelChartData {
5
+ name: string;
6
+ value: number;
7
+ fill?: string;
8
+ }
9
+ interface FunnelChartProps {
10
+ data: FunnelChartData[];
11
+ /** Fallback fill color for items without a `fill`. Defaults to `theme.palette.primary.main`. */
12
+ color?: string;
13
+ /** The data key used for segment size. @default 'value' */
14
+ dataKey?: string;
15
+ /** Override props for the Tooltip component. */
16
+ tooltip?: ComponentProps<typeof Tooltip>;
17
+ /** LabelList rendered at the center of each segment (e.g. count). */
18
+ insideLabel?: ComponentProps<typeof LabelList>;
19
+ /** LabelList rendered to the right of each segment (e.g. name + drop-off). */
20
+ outsideLabel?: ComponentProps<typeof LabelList>;
21
+ /** Override props applied to the Funnel element. */
22
+ funnel?: Omit<ComponentProps<typeof Funnel>, 'data' | 'dataKey'>;
23
+ /** Override the chart margin. Merged over the default `{ top: 10, right: 160, left: 10, bottom: 10 }`. */
24
+ margin?: {
25
+ top?: number;
26
+ right?: number;
27
+ left?: number;
28
+ bottom?: number;
29
+ };
30
+ sx?: SxProps;
31
+ /** Enable chart animation. @default false */
32
+ isAnimationActive?: boolean;
33
+ }
34
+ export declare function FunnelChart({ data, color, dataKey, tooltip, insideLabel, outsideLabel, funnel, margin, sx, isAnimationActive, }: FunnelChartProps): ReactElement;
35
+ export {};
@@ -0,0 +1 @@
1
+ "use strict";import{useTheme as g,Box as v}from"@mui/material";import{ResponsiveContainer as b,FunnelChart as A,Funnel as C,LabelList as s,Tooltip as F}from"recharts";import{jsx as a,jsxs as o}from"react/jsx-runtime";function L({data:l,color:r,dataKey:m="value",tooltip:i,insideLabel:t,outsideLabel:e,funnel:d,margin:h,sx:p,isAnimationActive:u=!1}){const c=g(),f=r??c.palette.primary.main,x=l.map(n=>({...n,fill:n.fill??f}));return a(v,{sx:{width:"100%",height:"100%",...p},children:a(b,{children:o(A,{margin:{top:10,right:90,left:0,bottom:10,...h},children:[o(C,{dataKey:m,data:x,isAnimationActive:u,...d,children:[t&&a(s,{...t}),e&&a(s,{...e})]}),i&&a(F,{...i})]})})})}export{L as FunnelChart};
@@ -0,0 +1 @@
1
+ "use strict";import{Stack as t}from"@mui/material";import{useStyle as a}from"./styles.mjs";import{SectionTitle as i}from"../typographies/SectionTitle.mjs";import{SectionDescription as e}from"../typographies/SectionDescription.mjs";import{jsxs as n,jsx as r}from"react/jsx-runtime";function s(){const o=a();return n(t,{sx:o.smallChartWrapper,children:[r(i,{children:"Loading..."}),r(e,{children:"Preparing your chart data"})]})}export{s as LoadingChartSection};
@@ -0,0 +1 @@
1
+ "use strict";import{Typography as a}from"@mui/material";import{formatExtendedDate as o}from"../form/OneClickForm/utils/date.mjs";import{jsxs as r}from"react/jsx-runtime";function e({lastUpdated:t}){return r(a,{variant:"caption",color:"text.secondary",fontWeight:"600",children:["The data was last updated on"," ",o(t??Date.now(),{hour12:!1}),"."]})}export{e as MetricLastUpdated};
@@ -0,0 +1 @@
1
+ "use strict";import{TableContainer as c,Paper as m,Table as p,TableHead as T,TableRow as h,TableCell as n,TableBody as b}from"@mui/material";import{EmptyChartSection as y}from"../EmptyChartSection.mjs";import{LoadingChartSection as S}from"../LoadingChartSection.mjs";import{DEFAULT_TIMEZONE as f}from"../../form/TimezoneInput/timezones.mjs";import{jsx as i,jsxs as r}from"react/jsx-runtime";const l="",C=({data:t,isLoading:d,isFetching:s,showTotalCost:e=!0,showRiskSignal:o=!0,timezone:g=f})=>!(t!=null&&t.length)&&d?i(S,{}):t!=null&&t.length?i(c,{component:m,sx:{opacity:s?.4:1},children:r(p,{children:[i(T,{children:r(h,{children:[i(n,{children:"Month"}),i(n,{children:"Brand"}),i(n,{children:"Integration Type"}),i(n,{align:"right",children:"Started"}),i(n,{align:"right",children:"Finished"}),e&&i(n,{align:"right",children:"Total Cost"}),o&&i(n,{align:"right",children:"Risk Signal"})]})}),i(b,{children:t.map(a=>r(h,{children:[i(n,{children:new Date(a.month).toLocaleDateString(void 0,{month:"short",year:"numeric",timeZone:g})}),i(n,{children:a.brand}),i(n,{children:a.integrationType}),i(n,{align:"right",children:a.total||l}),i(n,{align:"right",children:a.finished||l}),e&&i(n,{align:"right",children:a.totalCost??l}),o&&i(n,{align:"right",children:a.riskSignal||l})]},`${a.brandUuid}-${a.month}`))})]})}):i(y,{});export{C as MonthlySignupsOverviewTable};
@@ -0,0 +1 @@
1
+ "use strict";import{kebabCaseToPretty as e}from"../../../utils/string/formatKebabToPretty.mjs";const o=({data:i,brands:r})=>i.flatMap(n=>{const t=r.find(a=>a.brandUuid===n.brandUuid);return!t||!n.interval?[]:n.interval.map(a=>({month:a.date,brandUuid:n.brandUuid,brand:t.brandName,integrationType:e(t.integrationType),total:a.oneClickCreated,finished:a.oneClickSuccess,totalCost:a.totalCost,riskSignal:a.riskSignal}))});export{o as mapMonthlySignupsOverviewTableData};
@@ -0,0 +1 @@
1
+ "use strict";import{useStyle as e}from"../styles.mjs";import{SectionDescription as r}from"../../typographies/SectionDescription.mjs";import{SectionTitle as i}from"../../typographies/SectionTitle.mjs";import{Stack as t}from"@mui/material";import{jsxs as o,jsx as s}from"react/jsx-runtime";function n(){const a=e();return o(t,{sx:a.smallChartWrapper,children:[s(i,{children:"No data available for the selected period and brands"}),s(r,{children:"Please change the Risk Signals setting for your brands to enable risk signals metadata"})]})}export{n as NoRiskSignalsPermissionSection};
@@ -0,0 +1 @@
1
+ "use strict";import{Stack as r}from"@mui/material";import{BigNumber as t}from"../BigNumber/index.mjs";import{formatNumberRounded as s,formatCurrency as c,formatPercentage as u}from"../../../utils/number/formatters.mjs";import{defaultMetrics as m,calculateOneClickHealthMetrics as n}from"./OneClickHealthBigNumbersMapper.mjs";import{jsxs as f,jsx as e}from"react/jsx-runtime";function p({chartData:l,isLoading:o=!0,hideTotalCost:i=!1}){const a=o?m:n(l);return f(r,{direction:"row",spacing:3,children:[e(t,{label:"Total Created",value:a.total,initialValue:a.total,map:s}),e(t,{label:"Total Success",value:a.success,initialValue:a.success,map:s}),!i&&e(t,{label:"Total Cost",value:a.totalCost,initialValue:a.totalCost,map:c}),e(t,{label:"Success Rate",value:a.successRate,initialValue:a.successRate,map:u})]})}export{p as OneClickHealthBigNumbers};
@@ -0,0 +1 @@
1
+ "use strict";const o={total:0,success:0,totalCost:0,successRate:0};function C(e){if(!(e!=null&&e.length))return o;let t=0,c=0;const u=0;e.forEach(l=>{var r;if((r=l.interval)!=null&&r.length){const i=l.interval.reduce((a,s)=>a+(s.oneClickHealthCreated||0),0),h=l.interval.reduce((a,s)=>a+(s.oneClickHealthSucceeded||0),0);t+=i,c+=h}});const n=t>0?c/t:0;return{total:t,success:c,totalCost:u,successRate:isNaN(n)?0:n}}export{C as calculateOneClickHealthMetrics,o as defaultMetrics};
@@ -0,0 +1 @@
1
+ "use strict";import{mapSeriesTimeSeriesData as a}from"../SeriesChart/SeriesChart.map.mjs";function i(e){return a(e)}export{i as mapOneClickHealthTimeSeriesData};
@@ -0,0 +1 @@
1
+ "use strict";import{EmptyChartSection as c}from"../EmptyChartSection.mjs";import{LoadingChartSection as h}from"../LoadingChartSection.mjs";import{SeriesChart as l}from"../SeriesChart/index.mjs";import{jsx as e}from"react/jsx-runtime";const m={chartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500}};function p({label:r,data:t,isLoading:a,isFetching:i,isSuccess:n,filter:o,sx:s}){return!t.length&&a?e(h,{}):!t.length||!n?e(c,{}):e(l,{label:r??"OneClick Health Over Time",data:t,filter:o,showUuid:!0,sx:{...m.chartWrapper,opacity:i?.4:1,...s}})}export{p as OneClickHealthOverTimeChart};
@@ -0,0 +1 @@
1
+ "use strict";import{EmptyChartSection as m}from"../EmptyChartSection.mjs";import{LoadingChartSection as d}from"../LoadingChartSection.mjs";import{SeriesPercentageChart as C}from"../SeriesPercentageChart/index.mjs";import{useStyle as p}from"../styles.mjs";import{jsx as t}from"react/jsx-runtime";function u({data:e,isLoading:i,isFetching:l,isSuccess:n,filter:o,sx:s}){var a,r;const c=p(),h={oneClickHealthCreated:{key:"oneClickHealthCreated",name:"Started",isTotal:!0},oneClickHealthSucceeded:{key:"oneClickHealthSucceeded",name:"Finished"}};return!e.length&&i?t(d,{}):!e.length||!((r=(a=e[0])==null?void 0:a.chartData)!=null&&r.length)||!n?t(m,{}):t(C,{data:e,keyValues:Object.values(h),filter:o,sx:{...c.smallChartWrapper,opacity:l?.4:1,...s}})}export{u as OneClickHealthPercentageChart};
@@ -0,0 +1 @@
1
+ "use strict";import{mapSeriesTimeSeriesData as a}from"../SeriesChart/SeriesChart.map.mjs";function i(e){return a(e)}export{i as mapOneClickTimeSeriesData};
@@ -0,0 +1 @@
1
+ "use strict";import{EmptyChartSection as o}from"../EmptyChartSection.mjs";import{LoadingChartSection as s}from"../LoadingChartSection.mjs";import{SeriesChart as c}from"../SeriesChart/index.mjs";import{jsx as e}from"react/jsx-runtime";const h={chartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500}};function m({data:t,isLoading:r,isFetching:i,isSuccess:a,filter:n}){return!t.length&&r?e(s,{}):!t.length||!a?e(o,{}):e(c,{label:"Uniques",data:t,filter:n,sx:{...h.chartWrapper,opacity:i?.4:1}})}export{m as OneClickOverTimeChart};
@@ -0,0 +1 @@
1
+ "use strict";import{EmptyChartSection as C}from"../EmptyChartSection.mjs";import{LoadingChartSection as h}from"../LoadingChartSection.mjs";import{SeriesPercentageChart as p}from"../SeriesPercentageChart/index.mjs";import{useStyle as u}from"../styles.mjs";import{jsx as t}from"react/jsx-runtime";function d({data:e,isLoading:i,isFetching:s,isSuccess:n,filter:o,sx:c}){var a,r;const l=u(),m={oneClickCreated:{key:"oneClickCreated",name:"Started",isTotal:!0},oneClickSuccess:{key:"oneClickSuccess",name:"Finished"}};return!e.length&&i?t(h,{}):!e.length||!((r=(a=e[0])==null?void 0:a.chartData)!=null&&r.length)||!n?t(C,{}):t(p,{data:e,keyValues:Object.values(m),filter:o,sx:{...l.smallChartWrapper,opacity:s?.4:1,...c}})}export{d as OneClickPercentageChart};
@@ -0,0 +1 @@
1
+ "use strict";import{Stack as l}from"@mui/material";import{BigNumber as e}from"../BigNumber/index.mjs";import{formatNumberRounded as i,formatPercentage as s}from"../../../utils/number/formatters.mjs";import{defaultMetrics as c,calculateOneClickVerificationMetrics as m}from"./OneClickVerificationBigNumbersMapper.mjs";import{jsxs as u,jsx as t}from"react/jsx-runtime";function n({chartData:r,isLoading:o=!0}){const a=o?c:m(r);return u(l,{direction:"row",spacing:3,children:[t(e,{label:"Total Created",value:a.totalCreated,initialValue:a.totalCreated,map:i}),t(e,{label:"Total Verified",value:a.totalVerified,initialValue:a.totalVerified,map:i}),t(e,{label:"Success Rate",value:a.successRate,initialValue:a.successRate,map:s})]})}export{n as OneClickVerificationBigNumbers};
@@ -1,22 +1,11 @@
1
+ import { OneClickVerificationBrandData } from '../oneClickVerification.types';
2
+ export type { OneClickVerificationIntervalEntry, OneClickVerificationBrandData, } from '../oneClickVerification.types';
1
3
  export interface OneClickVerificationOverallMetrics {
2
4
  totalCreated: number;
3
5
  totalVerified: number;
4
6
  successRate: number;
5
7
  }
6
8
  export declare const defaultMetrics: OneClickVerificationOverallMetrics;
7
- export interface OneClickVerificationBigNumbersChartData {
8
- interval?: Array<{
9
- oneClickVerificationCreated: number;
10
- oneClickVerificationDelivered: number;
11
- oneClickVerificationVerified: number;
12
- oneClickVerificationFailed: number;
13
- oneClickVerificationSending: number;
14
- oneClickVerificationUndelivered: number;
15
- oneClickVerificationExpired: number;
16
- date: string | number;
17
- [key: string]: any;
18
- }>;
19
- brandUuid: string;
20
- brandName: string;
21
- }
22
- export declare function calculateOneClickVerificationMetrics(data: OneClickVerificationBigNumbersChartData[]): OneClickVerificationOverallMetrics;
9
+ /** @deprecated Use {@link OneClickVerificationBrandData} from the shared chart types. */
10
+ export type OneClickVerificationBigNumbersChartData = OneClickVerificationBrandData;
11
+ export declare function calculateOneClickVerificationMetrics(data: OneClickVerificationBrandData[]): OneClickVerificationOverallMetrics;
@@ -0,0 +1 @@
1
+ "use strict";const o={totalCreated:0,totalVerified:0,successRate:0};function u(t){if(!(t!=null&&t.length))return o;let e=0,i=0;t.forEach(a=>{var c;if((c=a.interval)!=null&&c.length){const s=a.interval.reduce((r,n)=>r+(n.oneClickVerificationCreated||0),0),f=a.interval.reduce((r,n)=>r+(n.oneClickVerificationVerified||0),0);e+=s,i+=f}});const l=e>0?i/e:0;return{totalCreated:e,totalVerified:i,successRate:isNaN(l)?0:l}}export{u as calculateOneClickVerificationMetrics,o as defaultMetrics};
@@ -1,17 +1,10 @@
1
1
  import { AreaSeriesChartData } from '../AreaChart';
2
2
  import { BrandFilter } from '../../BrandFilterInput';
3
+ import { OneClickVerificationBrandData } from '../oneClickVerification.types';
4
+ export type { OneClickVerificationIntervalEntry, OneClickVerificationBrandData, } from '../oneClickVerification.types';
3
5
  export interface MapOneClickVerificationEventsOverTimeChartDataOptions {
4
6
  brands?: BrandFilter[];
5
- data: Array<{
6
- interval?: Array<{
7
- oneClickVerificationDelivered: number;
8
- oneClickVerificationVerified: number;
9
- date: string | number;
10
- [key: string]: any;
11
- }>;
12
- brandUuid: string;
13
- brandName: string;
14
- }>;
7
+ data: OneClickVerificationBrandData[];
15
8
  }
16
9
  export interface OneClickVerificationEventsAreaChartData {
17
10
  series: AreaSeriesChartData[];
@@ -0,0 +1 @@
1
+ "use strict";import{mapAreaChartData as l}from"../AreaChart/AreaChart.map.mjs";function s(n){const a=new Map,t=n.brands?new Set(n.brands.map(e=>e._raw.brandUuid)):null;for(const e of n.data)if(!(t&&!t.has(e.brandUuid)))for(const i of e.interval??[]){const o=+new Date(i.date);a.has(o)||a.set(o,{date:o,oneClickVerificationDelivered:0,oneClickVerificationVerified:0});const r=a.get(o);r&&(r.oneClickVerificationDelivered=r.oneClickVerificationDelivered+Number(i.oneClickVerificationDelivered||0),r.oneClickVerificationVerified=r.oneClickVerificationVerified+Number(i.oneClickVerificationVerified||0))}const c=Array.from(a.values()).sort((e,i)=>e.date-i.date),{series:d,data:f}=l({data:c,seriesConfig:[{key:"SMS Delivered",dataKey:"oneClickVerificationDelivered",color:"#0dbc3d"},{key:"Phone Numbers Verified",dataKey:"oneClickVerificationVerified",color:"#6366f1"}]});return{series:d,data:f}}export{s as mapOneClickVerificationAreaSeriesData};
@@ -0,0 +1 @@
1
+ "use strict";import{EmptyChartSection as d}from"../EmptyChartSection.mjs";import{LoadingChartSection as p}from"../LoadingChartSection.mjs";import{AreaChart as h}from"../AreaChart/index.mjs";import{formatExtendedDate as u,formatDateMMYY as f}from"../../../utils/date.mjs";import{DEFAULT_TIMEZONE as g}from"../../form/TimezoneInput/timezones.mjs";import{jsx as r}from"react/jsx-runtime";const x={chartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500}};function y({label:a,data:e,series:o,isLoading:n,isFetching:m,isSuccess:s,filter:l,sx:c}){const i=l.timezone??g;return!e.length&&n?r(p,{}):!e.length||!s?r(d,{}):r(h,{data:e,series:o,xAxis:{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:t=>f(t,{timeZone:i,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1},yAxis:{tickFormatter:t=>Number(t).toLocaleString(),allowDecimals:!1,label:a?{value:a,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}}:void 0},tooltip:{formatter:t=>Number(t).toLocaleString(),labelFormatter:t=>u(t,{timeZone:i,hour12:!1}),itemSorter:t=>-Number(t?.value??0)},sx:{...x.chartWrapper,opacity:m?.4:1,...c}})}export{y as OneClickVerificationEventsOverTimeChart};
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ import { SxProps } from '@mui/material';
3
+ import { OneClickVerificationFunnelStepData } from './OneClickVerificationFunnelChart.map';
4
+ export interface OneClickVerificationFunnelChartProps {
5
+ data: OneClickVerificationFunnelStepData[];
6
+ isLoading: boolean;
7
+ isSuccess: boolean;
8
+ isFetching: boolean;
9
+ sx?: SxProps;
10
+ }
11
+ export declare function OneClickVerificationFunnelChart({ data, isLoading, isFetching, isSuccess, sx, }: Readonly<OneClickVerificationFunnelChartProps>): ReactNode;
@@ -0,0 +1,21 @@
1
+ import { BrandFilter } from '../../BrandFilterInput';
2
+ import { OneClickVerificationBrandData } from '../oneClickVerification.types';
3
+ export type { OneClickVerificationIntervalEntry, OneClickVerificationBrandData, } from '../oneClickVerification.types';
4
+ export interface MapOneClickVerificationFunnelChartDataOptions {
5
+ brands?: BrandFilter[];
6
+ data: OneClickVerificationBrandData[];
7
+ }
8
+ export interface OneClickVerificationFunnelStepData {
9
+ name: string;
10
+ value: number;
11
+ /** Relative drop-off from the previous step as a percentage. null for first step or when prev === 0. */
12
+ dropOffPercent: number | null;
13
+ }
14
+ /**
15
+ * Maps raw OneClick verification events data into a format suitable for the funnel chart.
16
+ * Aggregates all four happy-path statuses across all matching brands and interval entries.
17
+ *
18
+ * @param options Configuration options including optional brand filter and raw data
19
+ * @returns Array of 4 funnel steps ordered: Created → Sending → Delivered → Verified
20
+ */
21
+ export declare function mapOneClickVerificationFunnelChartData(options: MapOneClickVerificationFunnelChartDataOptions): OneClickVerificationFunnelStepData[];
@@ -0,0 +1 @@
1
+ "use strict";function s(a){const l=a.brands?new Set(a.brands.map(i=>i._raw.brandUuid)):null,n={created:0,sending:0,delivered:0,verified:0};for(const i of a.data)if(!(l&&!l.has(i.brandUuid)))for(const e of i.interval??[])n.created+=Number(e.oneClickVerificationCreated||0),n.sending+=Number(e.oneClickVerificationSending||0),n.delivered+=Number(e.oneClickVerificationDelivered||0),n.verified+=Number(e.oneClickVerificationVerified||0);const t=[n.created,n.sending,n.delivered,n.verified],c=["Created","Sending","Delivered","Verified"];return c.map((i,e)=>{const o=t[e],r=t[e-1];let d=null;if(e>0)if(r===0)d=null;else{const f=(r-o)/r*100;f<0?(console.warn(`[OneClickVerificationFunnelChart] Anomaly: ${i} (${o}) exceeds ${c[e-1]} (${r}). Drop-off hidden.`),d=null):d=f}return{name:i,value:o,dropOffPercent:d}})}export{s as mapOneClickVerificationFunnelChartData};
@@ -0,0 +1 @@
1
+ "use strict";import{useRef as S}from"react";import{useTheme as b}from"@mui/material";import{lighten as B,contrastColor as W}from"../../../utils/color/index.mjs";import{EmptyChartSection as x}from"../EmptyChartSection.mjs";import{LoadingChartSection as j}from"../LoadingChartSection.mjs";import{FunnelChart as k}from"../FunnelChart/index.mjs";import{useStyle as w}from"../styles.mjs";import{jsx as i,jsxs as D}from"react/jsx-runtime";const I=[40,25,10,0];function N({data:c,isLoading:C,isFetching:L,isSuccess:O,sx:F}){const P=w(),u=b();if(!c.length&&C)return i(j,{});if(!c.length||!O)return i(x,{});if(c.every(t=>t.value===0))return i(x,{});const m=c.map((t,e)=>({step:t,originalIndex:e})).filter(({step:t})=>t.value>0);if(m.length<2)return i(x,{});const g=u.palette.primary.main,v=S(0),y=S(0),p=m.map(({step:t,originalIndex:e},a)=>{const n=a>0?m[a-1].step:null;let l=null;if(n!==null&&n.value>0){const o=(n.value-t.value)/n.value*100;l=o>0?o:null}return{name:t.name,value:t.value,dropOffPercent:l,fill:B(g,I[e])}});function z(t){var e;const{x:a,y:n,width:l,height:o,value:s,index:r}=t;if(s==null)return null;r===0&&(v.current=a+l/2);const f=((e=p[r])==null?void 0:e.fill)??g,d=l>=60?W(f):u.palette.text.primary;return i("text",{x:v.current,y:n+o/2,textAnchor:"middle",dominantBaseline:"middle",fontSize:14,fontWeight:600,fill:d,children:Number(s).toLocaleString()})}function A(t){var e;const{x:a,y:n,width:l,height:o,index:s}=t,r=p[s];if(!r)return null;s===0&&(y.current=a+l);const f=y.current+8,d=r.dropOffPercent!==null&&r.dropOffPercent>0,h=n+o/2;return D("g",{children:[i("text",{x:f,y:d?h-8:h,textAnchor:"start",dominantBaseline:"middle",fontSize:16,fill:u.palette.text.primary,children:r.name}),d&&i("text",{x:f,y:h+10,textAnchor:"start",dominantBaseline:"middle",fontSize:11,fill:u.palette.text.secondary,children:`Drop-off ${(e=r.dropOffPercent)==null?void 0:e.toFixed(1)}%`})]})}return i(k,{data:p,insideLabel:{content:z,dataKey:"value"},outsideLabel:{content:A},sx:{...P.regularChartWrapper,opacity:L?.4:1,...F}})}export{N as OneClickVerificationFunnelChart};
@@ -0,0 +1,2 @@
1
+ export * from './OneClickVerificationFunnelChart';
2
+ export * from './OneClickVerificationFunnelChart.map';
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps } from '@mui/material';
3
+ import { AreaSeriesChartData } from '../AreaChart';
4
+ import { BrandFilter } from '../../BrandFilterInput';
5
+ export interface OneClickVerificationOutcomeOverTimeChartProps {
6
+ data: Array<Record<string, number | string>>;
7
+ series: AreaSeriesChartData[];
8
+ isLoading: boolean;
9
+ isSuccess: boolean;
10
+ isFetching: boolean;
11
+ filter: {
12
+ timezone?: string;
13
+ brands?: BrandFilter[];
14
+ };
15
+ sx?: SxProps;
16
+ }
17
+ export declare function OneClickVerificationOutcomeOverTimeChart({ data, series, isLoading, isFetching, isSuccess, filter, sx, }: Readonly<OneClickVerificationOutcomeOverTimeChartProps>): React.ReactNode;
@@ -0,0 +1,23 @@
1
+ import { AreaSeriesChartData } from '../AreaChart';
2
+ import { BrandFilter } from '../../BrandFilterInput';
3
+ import { OneClickVerificationBrandData } from '../oneClickVerification.types';
4
+ export type { OneClickVerificationBrandData } from '../oneClickVerification.types';
5
+ export interface MapOneClickVerificationOutcomeOverTimeChartDataOptions {
6
+ brands?: BrandFilter[];
7
+ data: OneClickVerificationBrandData[];
8
+ }
9
+ export interface OneClickVerificationOutcomeChartData {
10
+ series: AreaSeriesChartData[];
11
+ data: Array<Record<string, number | string>>;
12
+ }
13
+ /**
14
+ * Maps raw OneClick verification outcome time series data into a format suitable for AreaChart.
15
+ * Aggregates verified, expired, and failed counts across all (optionally filtered) brands by date.
16
+ *
17
+ * Series order is Verified → Expired → Failed, which determines the visual stack order
18
+ * (bottom to top) when rendered with `stackMode="stack"` or `stackMode="expand"`.
19
+ *
20
+ * @param options Configuration options for mapping the data
21
+ * @returns Formatted data ready for the AreaChart component
22
+ */
23
+ export declare function mapOneClickVerificationOutcomeOverTimeChartData(options: MapOneClickVerificationOutcomeOverTimeChartDataOptions): OneClickVerificationOutcomeChartData;
@@ -0,0 +1 @@
1
+ "use strict";import{mapAreaChartData as l}from"../AreaChart/AreaChart.map.mjs";import{green as s,yellow as V,red as k}from"../../../styles/colors.mjs";function C(n){const r=new Map,t=n.brands?new Set(n.brands.map(e=>e._raw.brandUuid)):null;for(const e of n.data)if(!(t&&!t.has(e.brandUuid)))for(const a of e.interval??[]){const o=+new Date(a.date);r.has(o)||r.set(o,{date:o,oneClickVerificationVerified:0,oneClickVerificationExpired:0,oneClickVerificationFailed:0});const i=r.get(o);i&&(i.oneClickVerificationVerified=i.oneClickVerificationVerified+Number(a.oneClickVerificationVerified||0),i.oneClickVerificationExpired=i.oneClickVerificationExpired+Number(a.oneClickVerificationExpired||0),i.oneClickVerificationFailed=i.oneClickVerificationFailed+Number(a.oneClickVerificationFailed||0))}const c=Array.from(r.values()).sort((e,a)=>e.date-a.date),{series:d,data:f}=l({data:c,seriesConfig:[{key:"Verified",dataKey:"oneClickVerificationVerified",color:s},{key:"Expired",dataKey:"oneClickVerificationExpired",color:V},{key:"Failed",dataKey:"oneClickVerificationFailed",color:k}]});return{series:d,data:f}}export{C as mapOneClickVerificationOutcomeOverTimeChartData};
@@ -0,0 +1 @@
1
+ "use strict";import{useState as k}from"react";import{Box as m,ToggleButtonGroup as F,ToggleButton as c}from"@mui/material";import{EmptyChartSection as D}from"../EmptyChartSection.mjs";import{LoadingChartSection as S}from"../LoadingChartSection.mjs";import{AreaChart as v}from"../AreaChart/index.mjs";import{useStyle as A}from"../styles.mjs";import{formatExtendedDate as E,formatDateMMYY as M}from"../../../utils/date.mjs";import{DEFAULT_TIMEZONE as N}from"../../form/TimezoneInput/timezones.mjs";import{jsx as t,jsxs as u}from"react/jsx-runtime";function L({data:i,series:d,isLoading:f,isFetching:p,isSuccess:h,filter:x,sx:g}){const n=A(),s=x.timezone??N,[a,C]=k("absolute");if(!i.length&&f)return t(S,{});if(!i.length||!h)return t(D,{});const y=a==="absolute"?"stack":"expand";return u(m,{sx:{display:"flex",flexDirection:"column",gap:1,height:n.regularChartWrapper.height},children:[t(m,{sx:{display:"flex",justifyContent:"flex-end"},children:u(F,{value:a,exclusive:!0,onChange:(e,r)=>{r!==null&&C(r)},size:"small",children:[t(c,{value:"absolute",children:"Numbers"}),t(c,{value:"percent",children:"Percentages"})]})}),t(v,{data:i,series:d,stackMode:y,isAnimationActive:!0,xAxis:{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:e=>M(e,{timeZone:s,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1},yAxis:a==="absolute"?{tickFormatter:e=>Number(e).toLocaleString(),allowDecimals:!1}:{tickFormatter:e=>`${(e*100).toFixed(0)}%`,domain:[0,1],allowDecimals:!1},tooltip:{formatter:a==="absolute"?e=>Number(e).toLocaleString():(e,r,b)=>{const o=b.payload,l=o.oneClickVerificationVerified+o.oneClickVerificationExpired+o.oneClickVerificationFailed;return l===0?"0.0%":`${(Number(e)/l*100).toFixed(1)}%`},labelFormatter:e=>E(e,{timeZone:s,hour12:!1})},sx:{...n.regularChartWrapper,height:"unset",flex:1,minHeight:0,opacity:p?.4:1,...g}})]})}export{L as OneClickVerificationOutcomeOverTimeChart};