@zeniai/web-cockpit-ui 1.14.52-qa → 1.14.53-dev

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 (225) hide show
  1. package/dist/assets/{ACHDetailsPage-DDRe8R-F-D7h9irWQ.js → ACHDetailsPage-DDRe8R-F-Bt-bp2i8.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DtkKxBdR-B3ncnsMl.js → AIPerformancePage-DtkKxBdR-BRcgeKbl.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-e2T6oeIx-SMGJi9w6.js → AccountInfoPage-e2T6oeIx-BgYjXTlb.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BjwKeIP_-BKfTuBa9.js → AccountInfoPageContent-BjwKeIP_-DK4Og01f.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-xBjf45Td-Cdqxc8Af.js → AccountLockedInfoModal-xBjf45Td-BEOFFMGS.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-3RKo-yyZ-CKVc5SH6.js → AccountReconDetailsDrawerPage-3RKo-yyZ-Xj-wx_BL.js} +1 -1
  7. package/dist/assets/{AccountRow-CLodl3sk-rKp4eA6Q.js → AccountRow-CLodl3sk-CusWtpcw.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-HH2BRWDw-H6vNY8I5.js → AccountsPromoCardStack-HH2BRWDw-7hFCLDxa.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-B4tkNRNJ-70MOV6sP.js → AddAddressForCardDrawer-B4tkNRNJ-DR_4UMta.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BUmpl49G-2pqco7ko.js → AddToWalletPage-BUmpl49G-DfEtQ7Wd.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-CPjGBjKQ-DDt3yvEs.js → AgingReportsPage-CPjGBjKQ-DZ_wZ28M.js} +1 -1
  12. package/dist/assets/{AllUserItems-DcF1ZyN--D9LQ3zfQ.js → AllUserItems-DcF1ZyN--DL8PgCy3.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-i3pTuRJe-Cf9iD8Vv.js → ApAgingDetailPage-i3pTuRJe-CimLmApz.js} +1 -1
  14. package/dist/assets/{AppBasePage-Dm141-zi-VuCXddfj.js → AppBasePage-Dm141-zi-DTaFlzwu.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-CT7DYTu8-Dj5NKgvS.js → AppDrawerContent-CT7DYTu8-CH-E5oHE.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-CsKNKVWk-D9Hrle7D.js → ApprovalRulesSettingsPage-CsKNKVWk-BrA4YSz2.js} +1 -1
  17. package/dist/assets/{ArAgingChart-C3BoCy8V-Byc1COF7.js → ArAgingChart-C3BoCy8V-DM2n4E2v.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-p7Sx3QcX-BLV0nPma.js → ArAgingDetailPage-p7Sx3QcX-ERcPd_Ys.js} +1 -1
  19. package/dist/assets/{AttachmentView-DZqwc21s-CsWhXHwu.js → AttachmentView-DZqwc21s-CGlA8Ck9.js} +1 -1
  20. package/dist/assets/{BankAccountSection-Bw2NSgNV-M8H57xLs.js → BankAccountSection-Bw2NSgNV-CQgv2w2R.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-DYc9G8bV-BU4879fO.js → BankAccountWarningSection-DYc9G8bV-C0-vT7q_.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-D-xvJh6X-BYj1CgI1.js → BankConnectionsSettingsPage-D-xvJh6X-iwc5OvrC.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DI4p83bN-DsSGq7P9.js → BillDetailPage-DI4p83bN-BXoj_7QD.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-JEK4CJ6r-Dx7PtsPZ.js → BillPayApprovalRuleDetailPage-JEK4CJ6r-Dk_wV7CZ.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CZj9RcI2-B4B2EkKe.js → BillPayApprovalRulesPage-CZj9RcI2-CSEPhG_4.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-Cem8O8Zz-pfA-kmgg.js → BillPayPromoPage-Cem8O8Zz-C4DO93H0.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-06e_GZGJ-Cepdrjx4.js → BillPaySetUpPage-06e_GZGJ-DMb1C1BX.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-qa2hgDz_-CHRTi-Bp.js → BillingSettingsPage-qa2hgDz_-DWo6jZ70.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-3zpJXx1h-C8Cwvdvb.js → BillsBulkReviewDrawerPage-3zpJXx1h-BmPhOY8O.js} +1 -1
  30. package/dist/assets/{BoxItem-CDOSjQIf-DcmyzBMd.js → BoxItem-CDOSjQIf-CJCbwKlX.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Dr718NxZ-CTlxf5gS.js → BusinessVerificationPage-Dr718NxZ-C6jJJYW1.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-Bf6KqvP0-CyJhZe3_.js → CardNumberSubText-Bf6KqvP0-BjC8Y73p.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-Dn_rWlql-Ttj6OGAc.js → CashbackDetailPage-Dn_rWlql-CRzV2FQr.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-ahR7iCT1-DJc2IDdz.js → ChargeCardDetailPage-ahR7iCT1-po2Cjgxe.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-B3v2uRvR-D917V3G-.js → ChargeCardListPage-B3v2uRvR-Bx_jP_ej.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DoIQWUoe-BJRu7QvX.js → ChargeCardListTable-DoIQWUoe-CUmUxReh.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-CjOhIQT3-DZAWVO_Q.js → ChargeCardPromoPage-CjOhIQT3-cxZBNnmD.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-DD5cBYrJ-HFWBKsod.js → ChargeCardSetupPage-DD5cBYrJ-Df_VK_y7.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-BDw7AL1M-CGDwKsj-.js → ChargeCardStatementsPage-BDw7AL1M-CEWWbHbh.js} +1 -1
  40. package/dist/assets/{ChargeCardUtils-BgCK0dfc-DrWgA1vt.js → ChargeCardUtils-BgCK0dfc-C7i0IOoX.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-0vGEbm3S-Yd_KO12K.js → ChaseOverlay-0vGEbm3S-grITfH8J.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-1_cQKlWk-DrWgpFjk.js → CheckDepositDrawerPage-1_cQKlWk-D3jB-uDZ.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-DGAyFO41-CUiTMCCC.js → CollapsableReportTable-DGAyFO41-DkSGZ87G.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-T0E1inx--BBTrgOYJ.js → CompanyOfficerDetailsSection-T0E1inx--DL2oxnP4.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-ClVNk_vJ-DVmMHYci.js → CompanyPassportCard-ClVNk_vJ-ClGw1d70.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-B-tMwsYa-D14q4Tmk.js → CompanyPassportPage-B-tMwsYa-kcJ78R9u.js} +1 -1
  47. package/dist/assets/{CompleteProfile-DWA3g-xD-D_GkWyNx.js → CompleteProfile-DWA3g-xD-8rWtFno9.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-LtR4--y0-DZTHg9uf.js → ConfettiBurst-LtR4--y0-BaPaQNFl.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-ChR16H7h-D7BbvyL3.js → CreateOrEditVendorPage-ChR16H7h-D_QP4jei.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-DPCigi3A-xnXELIfx.js → CreditCardPaymentDrawerPage-DPCigi3A-DdrhC1YE.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentPlgSection-DxNQ-KmN-BY4cRgv-.js → CreditCardPaymentPlgSection-DxNQ-KmN-B_rlLzkl.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-BAHRdBQD-BBF_kb_9.js → CurrencySelectField-BAHRdBQD-DA5fvTQH.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-D4gsv4eL-BHVZlonK.js → CustomerOnboardingActivationPage-D4gsv4eL-DpYiipac.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-CQmZ0e8x-CZcEr6oq.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-6OY3R8IK-CgLNlXeH.js → CustomerOnboardingDetailPageSkeleton-6OY3R8IK-3jVNl1vP.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-683KgkER-CFuHFpzg.js → CustomerOnboardingNoStepsPage-683KgkER-C8rZmY1O.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-CnpkJxFX-JETQKw_l.js → CustomerOnboardingPage-CnpkJxFX-CLQeKxn1.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BujbI1j--OoClg5JY.js → CustomerOnboardingProductSuitePage-BujbI1j--CONoZLBv.js} +1 -1
  59. package/dist/assets/{Dashboard-D8Z9Xn_o-Cu7jzCwF.js → Dashboard-D8Z9Xn_o-qn-01Tko.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-xiBYFSeV-CtpfTFBq.js → DashboardReportPage-xiBYFSeV-LLetpz80.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Db9iuZli-BWvWxknT.js → DashboardSidebarBackgroundAnimation-Db9iuZli-D_8NZPmW.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-CWrrHE7S-BEKXeHh6.js → DepositAccTransactionItem-CWrrHE7S-EtqMSeZg.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-D83EgfRt-YHiBlaeN.js → DepositAccTransactionListPage-D83EgfRt-CsxV3gWG.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-W4jaQzI6-rgDbsj9p.js → DomesticWireDetailsPage-W4jaQzI6-BdaVfPFS.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DUz_s1NC-CmpO_92-.js → DownloadOverlay-DUz_s1NC-Dt2oo92r.js} +1 -1
  66. package/dist/assets/{DrawerPage-eoBqN66O-N1xIxEyt.js → DrawerPage-eoBqN66O-DyTAxRPS.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-B7JxYDAy-CFDI5GnM.js → EditPeoplePage-B7JxYDAy-oC0J8m-c.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-VKRWSQec-DOU_9XOi.js → EditReimbursementDetailPage-VKRWSQec-DKB7i1lc.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-CcintM3U-Dx5G9RTF.js → EntityDetailPage-CcintM3U-CrUjzFGw.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-DCdm20Sg-CQs4dEJA.js → EntitySummarySection-DCdm20Sg-f5EB6BJ6.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-Aqgs1PCK-2evGsHz8.js → ExpenseAutomationOverviewPage-Aqgs1PCK-DDsblAEd.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-D2zUpe4g-CxjhO-PC.js → ExpenseAutomationPage-D2zUpe4g-s1T_TS_T.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-Cnq--MJv-D9HVYBHS.js → ExpressPayPage-Cnq--MJv-CI7TjCxM.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-MAPqhKzq-BznIFam1.js → FeaturePreviewPage-MAPqhKzq-B1I5kaIB.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-C6G-TvEf-CMR-bd7f.js → FollowStepsSection-C6G-TvEf-pOL3gtbW.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-BfSB0VjE-B0CTqzFZ.js → GlobalReviewListPage-BfSB0VjE-Cf-K4PFQ.js} +1 -1
  77. package/dist/assets/{HelpButton-D6-xnq8R-B7Esl1eN.js → HelpButton-D6-xnq8R-B7Yjawto.js} +1 -1
  78. package/dist/assets/{InformationCardStack-IGZ7Nkni-DQzbmEAc.js → InformationCardStack-IGZ7Nkni-DOTgbOAB.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-C3ddYN-Q-CB3A1BhT.js → InsightsCardStack-C3ddYN-Q-7nvUo7s4.js} +1 -1
  80. package/dist/assets/{InsightsSection-Tqo7NTVV-DptTpQRV.js → InsightsSection-Tqo7NTVV-DqOnr-bV.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-7I3pXnES-CTqueKtk.js → IntegrationsSettingsPage-7I3pXnES-DS3oF0Mg.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-rBvmcx9N-BfCYTFwC.js → InternationalWireSwiftDetailsPage-rBvmcx9N-BPv0XoYd.js} +1 -1
  83. package/dist/assets/{InternationalWireVerificationPage-BW4c-XdS-3X67KsZR.js → InternationalWireVerificationPage-BW4c-XdS-hPcvR4xt.js} +1 -1
  84. package/dist/assets/{InviteFormPage-1peYTuMQ-DUkzvI-2.js → InviteFormPage-1peYTuMQ-CwJvZkP2.js} +1 -1
  85. package/dist/assets/{InvitePageListView-DtG3wxwm-BgVMNece.js → InvitePageListView-DtG3wxwm-BKMkwLDy.js} +1 -1
  86. package/dist/assets/{InvitePeoplePage-M_CDwda8-BRFuhOrt.js → InvitePeoplePage-M_CDwda8-Bwy4udKN.js} +1 -1
  87. package/dist/assets/{InvoiceUploadSection-B8JEASzZ-DT8Vmew2.js → InvoiceUploadSection-B8JEASzZ-DtL8QQIy.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-8FHVPcd3-CduG1VXM.js → IssueChargeCardPage-8FHVPcd3-DCTMb26I.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-4Z_HqLEs-BuHtdjwX.js → LabeledAddressValue-4Z_HqLEs-DaseuiwF.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-T2zUztDN-BjlfdLij.js → LabeledAddressValueField-T2zUztDN-LGoET2XZ.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-DOOc6OZ4-JgoHs502.js → LabeledControlledCheckBoxField-DOOc6OZ4-B9eOJRqI.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BYHyUNlT-DEMEjD3B.js → LabeledCreatableSingleSelectField-BYHyUNlT-DUykMUFr.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-8SV_IuVA-BP8rml-i.js → LabeledDocumentField-8SV_IuVA-BLqjNxbt.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-aw4AWbJv-BtfYvR37.js → LabeledDropDownFormattedTextField-aw4AWbJv-Cr-eZFo9.js} +1 -1
  95. package/dist/assets/{LabeledText-Br6D44cd-Cu61Yowg.js → LabeledText-Br6D44cd-E57hu619.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Drz2BoXV-BV27Neva.js → LabeledUserSingleSelectWithSubtitlesField-Drz2BoXV-BId0L7Hx.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-Cl_lG3C4-DtxiKcTT.js → LabeledZeniRolesDropDownField-Cl_lG3C4-BhssEcQY.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-GlfDfp8a-CBny33OZ.js → LinkJETransactionPage-GlfDfp8a-KW3EaABX.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-DL09jFzg-CyjG6oh8.js → LowBalancePopup-DL09jFzg-DoAl-SoK.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-BJkiZKIZ-BoJwC9zZ.js → MagicLinkACHDetailsPage-BJkiZKIZ-C0hzlQM0.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-KSPEzUa7-BBZYU_0I.js → MagicLinkDomesticWireDetailsPage-KSPEzUa7-DeyD-ww2.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DYq6IjCO-C1VKFBAu.js → MagicLinkInternationalWireDetailsPage-DYq6IjCO-B92ocQZS.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-BRBqx_HR-D8oN4Vp7.js → MagicLinkSuccessPage-BRBqx_HR-B8TttEPQ.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-Ch-kaM4i-CWaa0I1J.js → MagicLinkTitleSection-Ch-kaM4i-s-NoId2m.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-C3JqXSK_-D4ByIc-C.js → MailingDetailsSection-C3JqXSK_-BdbOUFR2.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-C-QdK1eB-rxe_L8BC.js → MeetingCalenderPopup-C-QdK1eB-I2FWDDt5.js} +1 -1
  107. package/dist/assets/{Menu-Dwfvhfom-CwTCc3PN.js → Menu-Dwfvhfom-D7VO7Ohf.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-BY4W2WDp-DJpGSj2D.js → MyBankConnectionsSettingsPage-BY4W2WDp-Cyoq_FxP.js} +1 -1
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-DPb01Uh_-C8fyxiM9.js → MyPendingActivationChargeCardListPage-DPb01Uh_-CpTI46-w.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-ByXdsVkj-2unNKrIq.js → MyProfileSettingsPage-ByXdsVkj-Lm5WVjIV.js} +1 -1
  111. package/dist/assets/{NavBarWithPicker-B9K75eZj-BpUsXuzU.js → NavBarWithPicker-B9K75eZj-CShF5Op_.js} +1 -1
  112. package/dist/assets/{NavigationArrow-Bq-6ZuNW-Dj4VkEQ9.js → NavigationArrow-Bq-6ZuNW-BFfOq0DY.js} +1 -1
  113. package/dist/assets/{NavigationDots-CG19c5E0-CRwFuQ1r.js → NavigationDots-CG19c5E0-bRuIMHF0.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-CilYvqN_-Qga0nwqO.js → NewGlobalMerchantPage-CilYvqN_-BPZsi7dB.js} +1 -1
  115. package/dist/assets/{NoDataChart-BqzaDL6U-CEm48KyS.js → NoDataChart-BqzaDL6U-Dk0pHuDv.js} +1 -1
  116. package/dist/assets/{NoDataTable-CrJgsAxs-TxeNCkKH.js → NoDataTable-CrJgsAxs-Ry0eDJMZ.js} +1 -1
  117. package/dist/assets/{NotFoundPage-o8jGXrS6-DgVqZY44.js → NotFoundPage-o8jGXrS6-CkpNcWXS.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-CpL21wrx-7mcmrTdB.js → NotificationSettingsPage-CpL21wrx-DY4Fw8hO.js} +1 -1
  119. package/dist/assets/{NotificationsListConfig-BILoXX8h-UlCMUXNZ.js → NotificationsListConfig-BILoXX8h-0flLf5wB.js} +1 -1
  120. package/dist/assets/{NotificationsPage-CF0izIYw-Do8DWRJB.js → NotificationsPage-CF0izIYw-DEpb-daF.js} +1 -1
  121. package/dist/assets/{OpExByVendorPage-CzirFPfE-CdEDJwfw.js → OpExByVendorPage-CzirFPfE-D65labDU.js} +1 -1
  122. package/dist/assets/{OverlayContainerPage-D0AnG2aV-DptgSi9Y.js → OverlayContainerPage-D0AnG2aV-CNH_hFl-.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-Dv4ukuOh-CMh8DwdU.js → PandLWithForecastPage-Dv4ukuOh-tKoZ1DqV.js} +1 -1
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-xRNKGQK7-DMQOyJ-i.js → PaymentAccountSetupBillingAddressSection-xRNKGQK7-DutGvM6C.js} +1 -1
  125. package/dist/assets/{PeoplePage-BS-WEFWB-Bncn4oBd.js → PeoplePage-BS-WEFWB-2vWUHGU0.js} +1 -1
  126. package/dist/assets/{PortfolioAllocationFormPage-BqstPgzi-BbZ1uxQe.js → PortfolioAllocationFormPage-BqstPgzi-mMJXcrzt.js} +1 -1
  127. package/dist/assets/{PortfolioDetails-vFxtsdUm-Blvzf42n.js → PortfolioDetails-vFxtsdUm-DGoDL6Fa.js} +1 -1
  128. package/dist/assets/{ProductsCarousel-DCyB1B2i-CIYm8OV-.js → ProductsCarousel-DCyB1B2i-D0xcKrOQ.js} +1 -1
  129. package/dist/assets/{PromoBaseCards-BqDX1LK0-CbZdow3C.js → PromoBaseCards-BqDX1LK0-H5SZogLj.js} +1 -1
  130. package/dist/assets/{QBOConnectionDialog-DwDffCnd-BNYnUGLz.js → QBOConnectionDialog-DwDffCnd-Do3Vu7JK.js} +1 -1
  131. package/dist/assets/{QBOSetupSection-D98MTD4s-DHzHtjgS.js → QBOSetupSection-D98MTD4s-D-9StreL.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-StbOyUWl-DqSkEZl4.js → ReimbursementApprovalRuleDetailPage-StbOyUWl-DJc3lA4L.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRulesPage-DvHqE_Y4-DUUlyap1.js → ReimbursementApprovalRulesPage-DvHqE_Y4-Bsi76rf3.js} +1 -1
  134. package/dist/assets/{ReimbursementDetailPage-B5Y88oLp-Di2Q9dVJ.js → ReimbursementDetailPage-B5Y88oLp-7xvGvVHU.js} +1 -1
  135. package/dist/assets/{ReimbursementPromoPage-CgJlMkwg-CAXfuoBM.js → ReimbursementPromoPage-CgJlMkwg-CLoGA7lQ.js} +1 -1
  136. package/dist/assets/{ReimbursementSetUpPage-CPtknu9o-BMftHdPg.js → ReimbursementSetUpPage-CPtknu9o-VaiNAjjx.js} +1 -1
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CrxT3ktz-CyOiKfsr.js → ReimbursementsBulkReviewDrawerPage-CrxT3ktz-CH9_V5iE.js} +1 -1
  138. package/dist/assets/{ReloadCard-m4NkTIt8-qWxwr1pb.js → ReloadCard-m4NkTIt8-B3zRQKXY.js} +1 -1
  139. package/dist/assets/{ReportTableViewSelector-DS_XaOgf-D4PjiEPE.js → ReportTableViewSelector-DS_XaOgf-2uiHRf3a.js} +1 -1
  140. package/dist/assets/{ReportsPage-CmbmBvss-BszLDiPk.js → ReportsPage-CmbmBvss-B3sGZEJD.js} +1 -1
  141. package/dist/assets/{RevenueChart-e9_ECae4-i1hR8xN3.js → RevenueChart-e9_ECae4-Dr4DUZyS.js} +1 -1
  142. package/dist/assets/{ReviewDetailsPage-BwXJiFy3-C5fCQ_Wm.js → ReviewDetailsPage-BwXJiFy3-BTa-gJ4x.js} +1 -1
  143. package/dist/assets/{ReviewOverlay-CoU1Zdlr-C_35bcUj.js → ReviewOverlay-CoU1Zdlr-pPHE4WQA.js} +1 -1
  144. package/dist/assets/{RoleWithToolTip-B0ksgZNX-BXDkVDyN.js → RoleWithToolTip-B0ksgZNX-C4LaCBmY.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Dyi1HqQJ--mW1UI7J.js → ScheduleDetailsFixedAssetsPage-Dyi1HqQJ-D8C5sK9I.js} +1 -1
  146. package/dist/assets/{ScheduleDetailsPage-CLTUhuq2-dLS1EbbP.js → ScheduleDetailsPage-CLTUhuq2-lB0vjNEg.js} +1 -1
  147. package/dist/assets/{ScheduleSequenceTable-CFvuCill-DQBmJHOp.js → ScheduleSequenceTable-CFvuCill-BurAJNAH.js} +1 -1
  148. package/dist/assets/{ScreenRoutes-BUfK301Y.js → ScreenRoutes-BAqTdzDv.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-C3_ZtYa5-5XFHYUbe.js → SetUpAccountSection-C3_ZtYa5-e2iHRFW0.js} +1 -1
  150. package/dist/assets/{SetUpDefaultSection-CDTf48Sb-CqmPuatn.js → SetUpDefaultSection-CDTf48Sb-SLC8HzQO.js} +1 -1
  151. package/dist/assets/{SignIn-Du-ulVF5-CeXDLeDP.js → SignIn-Du-ulVF5-wm_z93Z-.js} +1 -1
  152. package/dist/assets/{SignInScreen-Dl-Wmtli.js → SignInScreen-B8mRHKzh.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-DUpDQMns-efzaYN1_.js → SpendManagementListViewPage-DUpDQMns-UaozE5x0.js} +3 -3
  154. package/dist/assets/{SpendManagementPerTabPage-BLOXsxrx-hSLWJXri.js → SpendManagementPerTabPage-BLOXsxrx-CBV89eRI.js} +1 -1
  155. package/dist/assets/{SpendManagementSection-D7sf7SeD-DR_tAIlf.js → SpendManagementSection-D7sf7SeD-D65sOJDO.js} +1 -1
  156. package/dist/assets/{SpendMgmtSetupAccountSection-CvbRCGT3-fc81_dxr.js → SpendMgmtSetupAccountSection-CvbRCGT3-BHdPIEQr.js} +1 -1
  157. package/dist/assets/{StatementItem-CWLkBF_T-WNVKfqND.js → StatementItem-CWLkBF_T-D1rtX1Ud.js} +1 -1
  158. package/dist/assets/{StatementsPage-BwQmtz3m-BLNQk_nI.js → StatementsPage-BwQmtz3m-BIy0CiTJ.js} +1 -1
  159. package/dist/assets/{StatusSwitcher-BPG5yT0r-B6xc6um_.js → StatusSwitcher-BPG5yT0r-SpXvxI9U.js} +1 -1
  160. package/dist/assets/{SubTabSwitcher-BewMmlvb-CLdrYWXx.js → SubTabSwitcher-BewMmlvb-DhZ9BjP8.js} +1 -1
  161. package/dist/assets/{SummaryCard-rwrE0c4q-HZZcrQE9.js → SummaryCard-rwrE0c4q-UeA5gLhZ.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-DLpkol3e-CZwQJjwy.js → TaskManagementPage-DLpkol3e-WdYj7iB7.js} +1 -1
  163. package/dist/assets/{TimeRangeSwitcher-DREn027B-4M1N4caR.js → TimeRangeSwitcher-DREn027B-CR-3pwaA.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcher-CG25EnHQ-BzUTZv4R.js → TimeframeSwitcher-CG25EnHQ-D7gw9ELI.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-CRKKZ2ZA-C8_TaIBV.js → TimeframeSwitcherWithToggle-CRKKZ2ZA-LMN-r2XM.js} +1 -1
  166. package/dist/assets/{TopExCard-DB87WAVl-BVGs7cOM.js → TopExCard-DB87WAVl-DXRV71RL.js} +1 -1
  167. package/dist/assets/{TopExDetailPage-CLANHUKr-CrgbOAPO.js → TopExDetailPage-CLANHUKr-CHGx82cI.js} +1 -1
  168. package/dist/assets/{TransactionDetailPage-BvC7ortv-CtNzT7z7.js → TransactionDetailPage-BvC7ortv-CN_7u84F.js} +1 -1
  169. package/dist/assets/{TransactionList-uOUugKVb-hYSSV3pD.js → TransactionList-uOUugKVb-zO1FITPJ.js} +1 -1
  170. package/dist/assets/{TransactionListBig-Ch_o0gHs-DElBpEvj.js → TransactionListBig-Ch_o0gHs-D3PX9H4o.js} +1 -1
  171. package/dist/assets/{TransactionListPage-BOCeH_I--kqCt0Qrw.js → TransactionListPage-BOCeH_I--01P661Bx.js} +1 -1
  172. package/dist/assets/{TransactionVendorDetailPage-CHoL0k1Y-saVO2znm.js → TransactionVendorDetailPage-CHoL0k1Y-DHktz1w_.js} +1 -1
  173. package/dist/assets/{TransferDrawerPage-DSeKIosp-C1sXYbcx.js → TransferDrawerPage-DSeKIosp-0D4Dxb7b.js} +1 -1
  174. package/dist/assets/{TreasuryOverviewPage-Crn1RK0t-CBDAnkxw.js → TreasuryOverviewPage-Crn1RK0t-BIkfEZrB.js} +1 -1
  175. package/dist/assets/{TreasuryPromoPage-CHEPNS2F-C1gwj4__.js → TreasuryPromoPage-CHEPNS2F-Si9IgoTg.js} +1 -1
  176. package/dist/assets/{TreasurySetupPage-ByS3Q3rx-BNp4vefV.js → TreasurySetupPage-ByS3Q3rx-hk6XLJYK.js} +1 -1
  177. package/dist/assets/{TreasuryStatementsPage-BQgavpBC-Bzxlkhk-.js → TreasuryStatementsPage-BQgavpBC-DpGxHRBu.js} +1 -1
  178. package/dist/assets/{TreasuryTaxLetterPage-A2K0qEuo-Dp0Alflv.js → TreasuryTaxLetterPage-A2K0qEuo-BaX5yOb5.js} +1 -1
  179. package/dist/assets/{TreasuryTransferOrReviewPage-C4cE9ykL-CWFP8w5o.js → TreasuryTransferOrReviewPage-C4cE9ykL-CYuFmBL_.js} +1 -1
  180. package/dist/assets/{TrendChart-BPx69s6w-C54caf00.js → TrendChart-BPx69s6w-Bsdmdm1p.js} +1 -1
  181. package/dist/assets/{TrendWithTransactions-DGrYER05-CzbDRqAW.js → TrendWithTransactions-DGrYER05-CPtwIs65.js} +1 -1
  182. package/dist/assets/{UncategorizedAccountsMappingPage-D6TnbZro-Cd3A1Au2.js → UncategorizedAccountsMappingPage-D6TnbZro-rUPR2V4g.js} +1 -1
  183. package/dist/assets/{UnitIntegrationPage-CQBSzErf-ld9qs3qV.js → UnitIntegrationPage-CQBSzErf-DXD5pG3w.js} +1 -1
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-CngeF3hu-C5Xf6mSz.js → UploadAdditionalDocumentOverlay-CngeF3hu-VngdJaMF.js} +1 -1
  185. package/dist/assets/{Vendor2FAPopup-DX0fVCg7-CG1Oavl5.js → Vendor2FAPopup-DX0fVCg7-Bo8Lj9kc.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-tvACcgwN-Cyy6w06I.js → VendorACHDetailsPage-tvACcgwN-Cu0pIM5V.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-YL7KJT0e-dOjjIlFG.js → VendorDetailPage-YL7KJT0e-eCTow_WK.js} +1 -1
  188. package/dist/assets/{VendorDomesticWireDetailsPage-ydnlkYQr-A8ghqCjU.js → VendorDomesticWireDetailsPage-ydnlkYQr-B6omw1Nf.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-DtK-dP6w-BoJlZf5G.js → VendorFiling1099EditablePage-DtK-dP6w-BShuyJdC.js} +1 -1
  190. package/dist/assets/{VendorFirstReviewPage-ZIrl95TL-Cy-T64SB.js → VendorFirstReviewPage-ZIrl95TL-D33eCV1t.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireDetailsPage-D3lhu4cb-CeGZ1fCy.js → VendorInternationalWireDetailsPage-D3lhu4cb-BLZAcGyJ.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Ch9bZvp3-DRq6__bb.js → VendorInternationalWireSwiftDetailsPage-Ch9bZvp3-DaamNzP0.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-DZSmqIN2-DA223WXy.js → VendorsAccountsSection-DZSmqIN2-MZuYfFku.js} +1 -1
  194. package/dist/assets/{VerifyDevice-CMeuheTR--kYgKkYD.js → VerifyDevice-CMeuheTR-SztBsf5z.js} +1 -1
  195. package/dist/assets/{VideoPlayer-DFyz7Puo-BlV3Z8cx.js → VideoPlayer-DFyz7Puo-D3md354V.js} +1 -1
  196. package/dist/assets/{VideoPopup-Ddg6ianH-B08H-Nsf.js → VideoPopup-Ddg6ianH-h5XRrepK.js} +1 -1
  197. package/dist/assets/{WarningsDrawerPage-BSveDRtA-Cr_9AddK.js → WarningsDrawerPage-BSveDRtA-DsS-UmhP.js} +1 -1
  198. package/dist/assets/{ZeniAccountDetailPage-nC2Srvkn-BZYo2NW8.js → ZeniAccountDetailPage-nC2Srvkn-lriwHian.js} +1 -1
  199. package/dist/assets/{ZeniAccountListViewPage-BC9ndWsY-B8cntPqx.js → ZeniAccountListViewPage-BC9ndWsY-DOT9gDEx.js} +1 -1
  200. package/dist/assets/{ZeniAccountNavBarPieces-r_SoPE-D-VPyTmUCW.js → ZeniAccountNavBarPieces-r_SoPE-D-BTUJejSR.js} +1 -1
  201. package/dist/assets/{ZeniAccountPromoPage-nZ_yTF0T-Ch1YHX9d.js → ZeniAccountPromoPage-nZ_yTF0T-B4MakfdU.js} +1 -1
  202. package/dist/assets/{ZeniAccountSetupPage-V8WZ1SIT-CgpBBRVR.js → ZeniAccountSetupPage-V8WZ1SIT-B3X9GZw2.js} +1 -1
  203. package/dist/assets/{ZeniCopyright-DkEE9Fkf-CEbRa0Tx.js → ZeniCopyright-DkEE9Fkf-D2gtc9Mg.js} +1 -1
  204. package/dist/assets/{ZeniTransferAmountSlider-CP4DXRSQ-DYCbssXa.js → ZeniTransferAmountSlider-CP4DXRSQ-D-qI5RnK.js} +1 -1
  205. package/dist/assets/{analyticsHelper-BsAbhFhb-KrL481tM.js → analyticsHelper-BsAbhFhb-DYpeFUFH.js} +1 -1
  206. package/dist/assets/{analyticsHelper-k3FWBuMr.js → analyticsHelper-D-cbbCeB.js} +1 -1
  207. package/dist/assets/{chartTypes-Cdcd3er7-GUhlIK4O.js → chartTypes-Cdcd3er7-DR1nsm-2.js} +1 -1
  208. package/dist/assets/{commonDimensions-D2awlh2V-_OxUkEof.js → commonDimensions-D2awlh2V-DGRJK6zD.js} +1 -1
  209. package/dist/assets/{detailCommon-CI0CJf_K-Bxp-kmjQ.js → detailCommon-CI0CJf_K-wfPYhhqd.js} +1 -1
  210. package/dist/assets/{downloadPdf-DKAAiZ9Q-B-454ch_.js → downloadPdf-DKAAiZ9Q-BrYmGqin.js} +1 -1
  211. package/dist/assets/{index-DMdPrhoW.js → index-BgY2d5WE.js} +5 -5
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-D1vxyJ10-ZIRqV4B0.js → mapLoadingInProgressToTreeNode-D1vxyJ10-B6tXgSES.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BzOUZmQm-ClptzLT6.js → mapSectionWithAcOnlyToTreeNode-BzOUZmQm-B2NilGOK.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-CkRIugiZ-D3tt75qz.js → mapSpacerToTreeNode-CkRIugiZ-Dh_rgVA7.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-Blq3vSo3-CBMWyYPW.js → mapTimeframeBalancesToTreeNode-Blq3vSo3-CDNuDqkx.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-CQH6xjkN-hmdHCMHY.js → mapTimeframeBalancesToTreeNode-CQH6xjkN-B0oZnGeb.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DeAakfXf-CdS6f0qv.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DeAakfXf-DB7uEh5I.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-N0H1doqM-JpFsU7mj.js → toCOABalancesWithID-N0H1doqM-Co_NSAVF.js} +1 -1
  219. package/dist/assets/{toChartData-BQrGasxp-CkdG-m8w.js → toChartData-BQrGasxp-BBK_kcLb.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-BQZcNhOr-BvktInAz.js → treasuryColorHelper-BQZcNhOr-BuqUdy3E.js} +1 -1
  221. package/dist/assets/{uploadAttachment-B4upGNxs-CyeMSH3w.js → uploadAttachment-B4upGNxs-DgsHeZH9.js} +1 -1
  222. package/dist/assets/{uploadReceipts-D7QFCUNT-Cx8HvdYO.js → uploadReceipts-D7QFCUNT-DfPmHYjT.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +3 -3
  225. package/dist/assets/CustomerOnboardingContainerPage-CQmZ0e8x-Cf_yzrns.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,x as K,r as kt,l as J,o as s,eN as Ze,bO as Ee,bS as xt,fF as wt,ao as ft,bg as Qe,a6 as Ct,e as le,a as Tt,C as Xe,ca as $t,F as yt,aj as vt,b_ as bt,ia as jt,ib as St,iH as ze,a4 as Gt,Q as De,bp as Ie,eJ as Je,iI as Lt,cx as et,iJ as pe,iK as xe,iL as Nt,iM as we,iN as tt,iO as st,iP as ot,iQ as nt,iR as at,iS as rt,iT as _,q as ke,iU as re,w as ie,iV as Et,iW as It,a3 as Mt,s as Dt,iX as zt,d9 as Bt,iY as Rt,cn as it,cH as At,v as Ot,iZ as Wt,i_ as Ft,fG as Pt,eM as Vt,i$ as Ht,j0 as Q,j1 as Be,c0 as Ut,j2 as _t,j3 as Kt,j4 as Re,j5 as Yt,f as Ae,g1 as qt,n as Zt}from"./index-DMdPrhoW.js";import{b as n,n as o,j as fe}from"./vendor-rkTZJa59.js";import{K as Qt,Y as Xt}from"./SpendManagementSection-D7sf7SeD-DR_tAIlf.js";import{A as Jt,t as es,a as ts,E as ss}from"./NotificationsListConfig-BILoXX8h-UlCMUXNZ.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-DUpDQMns-efzaYN1_.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./StatusSwitcher-BPG5yT0r-B6xc6um_.js";const ns=100,as=100,rs=3,is=.7,ls=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ns,scrollSpeed:h=as,minScrollAmount:m=rs,scrollCurveExponent:p=is})=>{n.useEffect(()=>{if(!u||typeof window>"u"||typeof document>"u")return;let a=!1,c=0,i=null;const d=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},j=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>j(x),M=x=>{const S=Math.max(x,0)/d,y=Math.pow(S,p)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,y=c;if(y<d&&y>0){const L=d-y,g=M(L);k(x,g,"up")}else if(y>S-d){const L=y-(S-d),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(c=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,u,m,e,p,h])},Se=oe.getLocalizedStrings(),lt=({count:e})=>t.jsx(ds,{isCircular:e<10,children:t.jsx(cs,{children:e>Se.common.numbers.maximumCount?`${Se.common.numbers.maximumCount}${Se.common.strings.plus}`:e})}),ds=o.div`
1
+ import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,x as K,r as kt,l as J,o as s,eN as Ze,bO as Ee,bS as xt,fF as wt,ao as ft,bg as Qe,a6 as Ct,e as le,a as Tt,C as Xe,ca as $t,F as yt,aj as vt,b_ as bt,ia as jt,ib as St,iH as ze,a4 as Gt,Q as De,bp as Ie,eJ as Je,iI as Lt,cx as et,iJ as pe,iK as xe,iL as Nt,iM as we,iN as tt,iO as st,iP as ot,iQ as nt,iR as at,iS as rt,iT as _,q as ke,iU as re,w as ie,iV as Et,iW as It,a3 as Mt,s as Dt,iX as zt,d9 as Bt,iY as Rt,cn as it,cH as At,v as Ot,iZ as Wt,i_ as Ft,fG as Pt,eM as Vt,i$ as Ht,j0 as Q,j1 as Be,c0 as Ut,j2 as _t,j3 as Kt,j4 as Re,j5 as Yt,f as Ae,g1 as qt,n as Zt}from"./index-BgY2d5WE.js";import{b as n,n as o,j as fe}from"./vendor-rkTZJa59.js";import{K as Qt,Y as Xt}from"./SpendManagementSection-D7sf7SeD-D65sOJDO.js";import{A as Jt,t as es,a as ts,E as ss}from"./NotificationsListConfig-BILoXX8h-0flLf5wB.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-DUpDQMns-UaozE5x0.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./StatusSwitcher-BPG5yT0r-SpXvxI9U.js";const ns=100,as=100,rs=3,is=.7,ls=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ns,scrollSpeed:h=as,minScrollAmount:m=rs,scrollCurveExponent:p=is})=>{n.useEffect(()=>{if(!u||typeof window>"u"||typeof document>"u")return;let a=!1,c=0,i=null;const d=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},j=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>j(x),M=x=>{const S=Math.max(x,0)/d,y=Math.pow(S,p)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,y=c;if(y<d&&y>0){const L=d-y,g=M(L);k(x,g,"up")}else if(y>S-d){const L=y-(S-d),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(c=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,u,m,e,p,h])},Se=oe.getLocalizedStrings(),lt=({count:e})=>t.jsx(ds,{isCircular:e<10,children:t.jsx(cs,{children:e>Se.common.numbers.maximumCount?`${Se.common.numbers.maximumCount}${Se.common.strings.plus}`:e})}),ds=o.div`
2
2
  ${e=>e.isCircular?fe`
3
3
  height: 18px;
4
4
  width: 18px;
@@ -1,4 +1,4 @@
1
- import{j as t,aj as D,J as k,di as H,aN as L,o as a,w as q}from"./index-DMdPrhoW.js";import{n as g,b as i}from"./vendor-rkTZJa59.js";import{R as A}from"./mui-C42whWwM.js";import{V as J}from"./CollapsableReportTable-DGAyFO41-CUiTMCCC.js";const U=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),W=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,X=g.div`
1
+ import{j as t,aj as D,J as k,di as H,aN as L,o as a,w as q}from"./index-BgY2d5WE.js";import{n as g,b as i}from"./vendor-rkTZJa59.js";import{R as A}from"./mui-C42whWwM.js";import{V as J}from"./CollapsableReportTable-DGAyFO41-DkSGZ87G.js";const U=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),W=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,X=g.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: flex-start;
@@ -1,4 +1,4 @@
1
- import{j as t,o,w as p,R as u}from"./index-DMdPrhoW.js";import{n as i}from"./vendor-rkTZJa59.js";const f=i.div`
1
+ import{j as t,o,w as p,R as u}from"./index-BgY2d5WE.js";import{n as i}from"./vendor-rkTZJa59.js";const f=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{e as c,j as t,C as n,w,b5 as x}from"./index-DMdPrhoW.js";import{n as r}from"./vendor-rkTZJa59.js";import{y as l}from"./TimeframeSwitcher-CG25EnHQ-BzUTZv4R.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...o})=>t.jsx(x,{...o,className:e,classes:{...i}}),p=r(u)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),$=e=>t.jsx(p,{...e}),d={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},b=r.div`
1
+ import{e as c,j as t,C as n,w,b5 as x}from"./index-BgY2d5WE.js";import{n as r}from"./vendor-rkTZJa59.js";import{y as l}from"./TimeframeSwitcher-CG25EnHQ-D7gw9ELI.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...o})=>t.jsx(x,{...o,className:e,classes:{...i}}),p=r(u)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),$=e=>t.jsx(p,{...e}),d={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},b=r.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{J as M,e as _,j as t,u as f,b7 as T,aw as C,av as S,bb as E,bk as k,q as x,ab as R,v as $,bl as G,bm as H,a0 as q,l as J,V as X,o as p,w as L,ao as Z,x as F,R as A,Z as N,W,a5 as O,ai as Y,aj as Q,a6 as U,bn as ee}from"./index-DMdPrhoW.js";import{f as w,b as te,n as g}from"./vendor-rkTZJa59.js";import{I as ae,T as re}from"./ReloadCard-m4NkTIt8-qWxwr1pb.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const ie=g(O)`
1
+ import{J as M,e as _,j as t,u as f,b7 as T,aw as C,av as S,bb as E,bk as k,q as x,ab as R,v as $,bl as G,bm as H,a0 as q,l as J,V as X,o as p,w as L,ao as Z,x as F,R as A,Z as N,W,a5 as O,ai as Y,aj as Q,a6 as U,bn as ee}from"./index-BgY2d5WE.js";import{f as w,b as te,n as g}from"./vendor-rkTZJa59.js";import{I as ae,T as re}from"./ReloadCard-m4NkTIt8-B3zRQKXY.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const ie=g(O)`
2
2
  justify-content: space-between;
3
3
  margin: 0;
4
4
  height: ${e=>e.height!=null?e.height+"px":"auto"};
@@ -1,4 +1,4 @@
1
- import{u as v,e as S,l as A,j as t,aX as B,R as u,a0 as k,aj as H,I as P,o as i,C as j,bj as z,aO as F,q as c,f as T,x as y,W as V,af as D}from"./index-DMdPrhoW.js";import{n as l,f as M,b as o}from"./vendor-rkTZJa59.js";import{E as Z,I as _}from"./TopExCard-DB87WAVl-BVGs7cOM.js";import{y as L}from"./TimeframeSwitcher-CG25EnHQ-BzUTZv4R.js";import{d as I}from"./NoDataTable-CrJgsAxs-TxeNCkKH.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./ReloadCard-m4NkTIt8-qWxwr1pb.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const E="141px",O=i.sp4,R="123px",J=l(D)`
1
+ import{u as v,e as S,l as A,j as t,aX as B,R as u,a0 as k,aj as H,I as P,o as i,C as j,bj as z,aO as F,q as c,f as T,x as y,W as V,af as D}from"./index-BgY2d5WE.js";import{n as l,f as M,b as o}from"./vendor-rkTZJa59.js";import{E as Z,I as _}from"./TopExCard-DB87WAVl-DXRV71RL.js";import{y as L}from"./TimeframeSwitcher-CG25EnHQ-D7gw9ELI.js";import{d as I}from"./NoDataTable-CrJgsAxs-Ry0eDJMZ.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./ReloadCard-m4NkTIt8-B3zRQKXY.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const E="141px",O=i.sp4,R="123px",J=l(D)`
2
2
  color: inherit;
3
3
  width: ${i.sp3};
4
4
  height: ${i.sp3};
@@ -1,4 +1,4 @@
1
- import{aE as Mn,dP as Bn,u as Et,a as qn,e as ie,R as q,a2 as Qt,dQ as Fn,dR as Wn,ca as Hn,J as Gn,dS as tn,l as me,dT as Yn,j as i,W as F,F as Qn,aX as Jn,dU as Zn,dV as Kn,m as ai,dW as ki,a4 as Xn,C as N,dX as ea,dY as nn,dZ as an,d_ as on,d$ as Te,e0 as Oe,e1 as _e,e2 as Ke,e3 as Xe,e4 as kt,e5 as zt,e6 as et,e7 as ht,e8 as At,e9 as Vt,ea as Jt,eb as K,ec as Xt,ed as ue,ee as pe,U as ta,ef as Tt,eg as zi,eh as ia,Q as na,bV as aa,o as a,bJ as oa,ei as sa,q as O,I as xi,f as le,r as $i,ap as oi,az as la,ej as ra,bQ as ca,bO as si,a0 as Le,cn as ot,ek as da,el as Wt,a7 as sn,cs as ua,em as pa,bM as ma,bN as ha,x as ye,af as ga,cH as fa,en as ln,eo as Zt,ep as Kt,eq as pi,de as ya,aj as ba,b_ as xa,cv as Di,b as rn,er as ei,es as ti,et as cn,ct as dn,bp as Ti,eu as mi,dj as hi,ev as va,aO as wa,ew as Ca,ex as Ai,ey as Ia,B as $a,cw as Da,ez as Ta,X as un,eA as pn,b6 as Oa,eB as Vi,eC as mn,eD as hn,eE as gn,b4 as st,b2 as La,aD as ja,ds as Sa,v as fn,eF as ka,b1 as za,a3 as Aa,n as Va,eG as Ra,a9 as vi}from"./index-DMdPrhoW.js";import{b as w,n as l,f as Ot}from"./vendor-rkTZJa59.js";import{x as Ri}from"./LabeledControlledCheckBoxField-DOOc6OZ4-JgoHs502.js";import{R as Ea}from"./TrendWithTransactions-DGrYER05-CzbDRqAW.js";import{u as Pa,c as _a,d as Na,m as Ua}from"./uploadAttachment-B4upGNxs-CyeMSH3w.js";import{o as Ma}from"./radio-default-CiSgisfh-Z5w0WcFM.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./TrendChart-BPx69s6w-C54caf00.js";import"./chartTypes-Cdcd3er7-GUhlIK4O.js";import"./toCOABalancesWithID-N0H1doqM-JpFsU7mj.js";import"./toChartData-BQrGasxp-CkdG-m8w.js";import"./NoDataChart-BqzaDL6U-CEm48KyS.js";import"./InsightsSection-Tqo7NTVV-DptTpQRV.js";import"./NavigationDots-CG19c5E0-CRwFuQ1r.js";import"./TransactionList-uOUugKVb-hYSSV3pD.js";import"./BoxItem-CDOSjQIf-DcmyzBMd.js";import"./commonDimensions-D2awlh2V-_OxUkEof.js";const Ba={headerMarginTop:new N(O[7],O[8])},qa=l(ye)`
1
+ import{aE as Mn,dP as Bn,u as Et,a as qn,e as ie,R as q,a2 as Qt,dQ as Fn,dR as Wn,ca as Hn,J as Gn,dS as tn,l as me,dT as Yn,j as i,W as F,F as Qn,aX as Jn,dU as Zn,dV as Kn,m as ai,dW as ki,a4 as Xn,C as N,dX as ea,dY as nn,dZ as an,d_ as on,d$ as Te,e0 as Oe,e1 as _e,e2 as Ke,e3 as Xe,e4 as kt,e5 as zt,e6 as et,e7 as ht,e8 as At,e9 as Vt,ea as Jt,eb as K,ec as Xt,ed as ue,ee as pe,U as ta,ef as Tt,eg as zi,eh as ia,Q as na,bV as aa,o as a,bJ as oa,ei as sa,q as O,I as xi,f as le,r as $i,ap as oi,az as la,ej as ra,bQ as ca,bO as si,a0 as Le,cn as ot,ek as da,el as Wt,a7 as sn,cs as ua,em as pa,bM as ma,bN as ha,x as ye,af as ga,cH as fa,en as ln,eo as Zt,ep as Kt,eq as pi,de as ya,aj as ba,b_ as xa,cv as Di,b as rn,er as ei,es as ti,et as cn,ct as dn,bp as Ti,eu as mi,dj as hi,ev as va,aO as wa,ew as Ca,ex as Ai,ey as Ia,B as $a,cw as Da,ez as Ta,X as un,eA as pn,b6 as Oa,eB as Vi,eC as mn,eD as hn,eE as gn,b4 as st,b2 as La,aD as ja,ds as Sa,v as fn,eF as ka,b1 as za,a3 as Aa,n as Va,eG as Ra,a9 as vi}from"./index-BgY2d5WE.js";import{b as w,n as l,f as Ot}from"./vendor-rkTZJa59.js";import{x as Ri}from"./LabeledControlledCheckBoxField-DOOc6OZ4-B9eOJRqI.js";import{R as Ea}from"./TrendWithTransactions-DGrYER05-CPtwIs65.js";import{u as Pa,c as _a,d as Na,m as Ua}from"./uploadAttachment-B4upGNxs-DgsHeZH9.js";import{o as Ma}from"./radio-default-CiSgisfh-Z5w0WcFM.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./TrendChart-BPx69s6w-Bsdmdm1p.js";import"./chartTypes-Cdcd3er7-DR1nsm-2.js";import"./toCOABalancesWithID-N0H1doqM-Co_NSAVF.js";import"./toChartData-BQrGasxp-BBK_kcLb.js";import"./NoDataChart-BqzaDL6U-Dk0pHuDv.js";import"./InsightsSection-Tqo7NTVV-DqOnr-bV.js";import"./NavigationDots-CG19c5E0-bRuIMHF0.js";import"./TransactionList-uOUugKVb-zO1FITPJ.js";import"./BoxItem-CDOSjQIf-CJCbwKlX.js";import"./commonDimensions-D2awlh2V-DGRJK6zD.js";const Ba={headerMarginTop:new N(O[7],O[8])},qa=l(ye)`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  `,Fa=l(ye)`
4
4
  margin-right: ${a.sp1};
@@ -1,4 +1,4 @@
1
- import{bJ as rt,e as B,j as e,aj as st,W as u,de as nt,R as y,df as lt,d9 as dt,dg as ct,o as a,f as Z,b_ as mt,C as V,l as m,m as ft,x as j,q as b,w as xt,dh as W,cz as J,a0 as _,n as ut}from"./index-DMdPrhoW.js";import{b as g,n,f as ht}from"./vendor-rkTZJa59.js";import{g as X}from"./BoxItem-CDOSjQIf-DcmyzBMd.js";import{o as E}from"./commonDimensions-D2awlh2V-_OxUkEof.js";const F=t=>t?24:125,pt={containerPaddingBottom:new V(b[9],b[8])},q=n.div`
1
+ import{bJ as rt,e as B,j as e,aj as st,W as u,de as nt,R as y,df as lt,d9 as dt,dg as ct,o as a,f as Z,b_ as mt,C as V,l as m,m as ft,x as j,q as b,w as xt,dh as W,cz as J,a0 as _,n as ut}from"./index-BgY2d5WE.js";import{b as g,n,f as ht}from"./vendor-rkTZJa59.js";import{g as X}from"./BoxItem-CDOSjQIf-CJCbwKlX.js";import{o as E}from"./commonDimensions-D2awlh2V-DGRJK6zD.js";const F=t=>t?24:125,pt={containerPaddingBottom:new V(b[9],b[8])},q=n.div`
2
2
  box-sizing: border-box;
3
3
  display: flex;
4
4
  flex: 1 1 auto;
@@ -1,4 +1,4 @@
1
- import{C as a,e as L,Y as N,K as ie,ab as ne,l as D,j as t,W as x,aj as re,R as w,q as n,v as ae,f as B,o,X as j,g as Q,aM as se,aN as le,w as de,r as ce,a0 as me,aO as pe,p as he,m as ge,Q as Y,I as G,aP as X,a6 as ee}from"./index-DMdPrhoW.js";import{b as U,n as i,f,j as ue}from"./vendor-rkTZJa59.js";import{G as xe,c as we}from"./AccountsPromoCardStack-HH2BRWDw-H6vNY8I5.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./SummaryCard-rwrE0c4q-HZZcrQE9.js";import"./ReloadCard-m4NkTIt8-qWxwr1pb.js";import"./NavigationArrow-Bq-6ZuNW-Dj4VkEQ9.js";import"./NavigationDots-CG19c5E0-CRwFuQ1r.js";const $e={textContainer:new j("extraSmallRegular","smallRegular")},ye=i.div`
1
+ import{C as a,e as L,Y as N,K as ie,ab as ne,l as D,j as t,W as x,aj as re,R as w,q as n,v as ae,f as B,o,X as j,g as Q,aM as se,aN as le,w as de,r as ce,a0 as me,aO as pe,p as he,m as ge,Q as Y,I as G,aP as X,a6 as ee}from"./index-BgY2d5WE.js";import{b as U,n as i,f,j as ue}from"./vendor-rkTZJa59.js";import{G as xe,c as we}from"./AccountsPromoCardStack-HH2BRWDw-7hFCLDxa.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./SummaryCard-rwrE0c4q-UeA5gLhZ.js";import"./ReloadCard-m4NkTIt8-B3zRQKXY.js";import"./NavigationArrow-Bq-6ZuNW-BFfOq0DY.js";import"./NavigationDots-CG19c5E0-bRuIMHF0.js";const $e={textContainer:new j("extraSmallRegular","smallRegular")},ye=i.div`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  cursor: default;
4
4
  `,be=i.div`
@@ -1,4 +1,4 @@
1
- import{u as A,aV as z,aW as M,j as o,W as u,aX as W,m as J,aY as V,o as n,x as X}from"./index-DMdPrhoW.js";import{b as r,n as l}from"./vendor-rkTZJa59.js";import{f as Z}from"./TransactionList-uOUugKVb-hYSSV3pD.js";import{t as _}from"./page-detail-CWX5S47F-BBa5wfAm.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BoxItem-CDOSjQIf-DcmyzBMd.js";import"./commonDimensions-D2awlh2V-_OxUkEof.js";const q=l.div`
1
+ import{u as A,aV as z,aW as M,j as o,W as u,aX as W,m as J,aY as V,o as n,x as X}from"./index-BgY2d5WE.js";import{b as r,n as l}from"./vendor-rkTZJa59.js";import{f as Z}from"./TransactionList-uOUugKVb-zO1FITPJ.js";import{t as _}from"./page-detail-CWX5S47F-BBa5wfAm.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BoxItem-CDOSjQIf-CJCbwKlX.js";import"./commonDimensions-D2awlh2V-DGRJK6zD.js";const q=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  height: 100vh;
@@ -1,4 +1,4 @@
1
- import{e as k,R as A,j as o,m as W,W as D,a4 as q,o as a,C as g,a3 as X,X as J,cB as U,a as Y,gB as F,gC as M,gD as R,ca as _,F as G,q as s,u as K,cd as Q,gf as z,gI as Z,am as ee,gM as oe,gN as te}from"./index-DMdPrhoW.js";import{b as I,n as d}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const L=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=A.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:v,selectedOwnerId:t,selectedVendorName:m,allAccounts:p,allClasses:C,allOwners:b,sectionId:h,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const l=k(),y=K(),$=N.labelWidth.value(l),j=N.controlWidth.value(l),P=n=>p.filter(O=>O.accountId===n)[0]?.coaId??"",r=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",S=n=>{const O=p.find(B=>B.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(se,{"data-testid":D("vendor-details-section",h),children:[o.jsx(re,{children:i.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Q,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:L(h,"vendorName"),placeholder:i.placeholders.vendor,defaultValue:m,autoComplete:"off",options:{required:!0}},isSaveError:c,showAdditionalInfoLabel:!1,additionalInfoLabel:i.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(h,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>P(n),defaultValue:{selectedOption:e,allOptions:M(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:S,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(h,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>r(n),defaultValue:{selectedOption:v,allOptions:F(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),b!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:L(h,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:R(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=d.div`
1
+ import{e as k,R as A,j as o,m as W,W as D,a4 as q,o as a,C as g,a3 as X,X as J,cB as U,a as Y,gB as F,gC as M,gD as R,ca as _,F as G,q as s,u as K,cd as Q,gf as z,gI as Z,am as ee,gM as oe,gN as te}from"./index-BgY2d5WE.js";import{b as I,n as d}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const L=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=A.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:v,selectedOwnerId:t,selectedVendorName:m,allAccounts:p,allClasses:C,allOwners:b,sectionId:h,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const l=k(),y=K(),$=N.labelWidth.value(l),j=N.controlWidth.value(l),P=n=>p.filter(O=>O.accountId===n)[0]?.coaId??"",r=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",S=n=>{const O=p.find(B=>B.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(se,{"data-testid":D("vendor-details-section",h),children:[o.jsx(re,{children:i.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Q,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:L(h,"vendorName"),placeholder:i.placeholders.vendor,defaultValue:m,autoComplete:"off",options:{required:!0}},isSaveError:c,showAdditionalInfoLabel:!1,additionalInfoLabel:i.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(h,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>P(n),defaultValue:{selectedOption:e,allOptions:M(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:S,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(h,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>r(n),defaultValue:{selectedOption:v,allOptions:F(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),b!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:L(h,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:R(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding-top: ${a.sp3};
@@ -1,4 +1,4 @@
1
- import{j as t,e as ue,W as A,gV as lt,R as I,a0 as J,Q as ve,h3 as ct,m as Ye,a4 as $e,o as a,C as c,a3 as Ne,T as dt,ao as ut,r as ft,c7 as De,w as be,x as fe,a2 as ce,f2 as pt,a as Xe,l as mt,ca as ht,ab as gt,a1 as wt,f as Q,F as qe,fb as ke,fc as Ae,fK as xt,bp as ye,fF as $t,h4 as Dt,q as o,d1 as bt,bO as Je,bw as yt,cG as Tt,b6 as Ct,n as Ge,f7 as St,ds as vt,by as Qe,fe as kt,fg as At}from"./index-DMdPrhoW.js";import{b as u,n}from"./vendor-rkTZJa59.js";import{v as Pt}from"./ZeniTransferAmountSlider-CP4DXRSQ-DYCbssXa.js";import{r as Lt}from"./AccountInfoPageContent-BjwKeIP_-BKfTuBa9.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./downloadPdf-DKAAiZ9Q-B-454ch_.js";import"./commonDimensions-D2awlh2V-_OxUkEof.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ze="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ke="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Ue=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:B,setTotalBalance:M,onSaveChangesToLocalStore:Z,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:K,onReviewClick:U}){const i=ue(),E=p.largeLabelWidth.value(i),[V,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),H=r.transferMoneyPartiesFetchState,oe=ce(H),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),He=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:He,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(mt.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&K?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&H==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const F={...h},le={amount:{amount:F[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===F[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===F[k].transferTo.selectedOption)};Z(le)}};u.useEffect(()=>{const s=P.watch((h,{name:F})=>{if(F!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:F})=>{F!=null&&h!=null&&ht(()=>at(F,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),U())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=gt(wt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[V?t.jsx(Bt,{children:t.jsxs(Rt,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Vt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Wt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Q.heroLight}})})]})}):null,t.jsx(Yt,{children:J("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:Ue(Ke),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Re,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Re,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ze),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Jt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:B,setTotalBalance:M})]}):null,t.jsxs(Gt,{windowSize:i,children:[t.jsx(Kt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Qt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${J("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Zt,{windowSize:i}),t.jsx(Ut,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${J("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Be,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Fe,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Be,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Fe,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ze]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Ft(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Ft=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Bt=n.div`
1
+ import{j as t,e as ue,W as A,gV as lt,R as I,a0 as J,Q as ve,h3 as ct,m as Ye,a4 as $e,o as a,C as c,a3 as Ne,T as dt,ao as ut,r as ft,c7 as De,w as be,x as fe,a2 as ce,f2 as pt,a as Xe,l as mt,ca as ht,ab as gt,a1 as wt,f as Q,F as qe,fb as ke,fc as Ae,fK as xt,bp as ye,fF as $t,h4 as Dt,q as o,d1 as bt,bO as Je,bw as yt,cG as Tt,b6 as Ct,n as Ge,f7 as St,ds as vt,by as Qe,fe as kt,fg as At}from"./index-BgY2d5WE.js";import{b as u,n}from"./vendor-rkTZJa59.js";import{v as Pt}from"./ZeniTransferAmountSlider-CP4DXRSQ-D-qI5RnK.js";import{r as Lt}from"./AccountInfoPageContent-BjwKeIP_-DK4Og01f.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./downloadPdf-DKAAiZ9Q-BrYmGqin.js";import"./commonDimensions-D2awlh2V-DGRJK6zD.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ze="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ke="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Ue=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:B,setTotalBalance:M,onSaveChangesToLocalStore:Z,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:K,onReviewClick:U}){const i=ue(),E=p.largeLabelWidth.value(i),[V,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),H=r.transferMoneyPartiesFetchState,oe=ce(H),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),He=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:He,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(mt.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&K?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&H==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const F={...h},le={amount:{amount:F[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===F[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===F[k].transferTo.selectedOption)};Z(le)}};u.useEffect(()=>{const s=P.watch((h,{name:F})=>{if(F!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:F})=>{F!=null&&h!=null&&ht(()=>at(F,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),U())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=gt(wt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[V?t.jsx(Bt,{children:t.jsxs(Rt,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Vt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Wt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Q.heroLight}})})]})}):null,t.jsx(Yt,{children:J("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:Ue(Ke),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Re,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Re,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ze),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Jt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:B,setTotalBalance:M})]}):null,t.jsxs(Gt,{windowSize:i,children:[t.jsx(Kt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Qt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${J("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Zt,{windowSize:i}),t.jsx(Ut,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${J("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Be,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Fe,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Be,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Fe,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ze]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Ft(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Ft=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Bt=n.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{e as C,u as M,b as Ke,bJ as Fe,j as t,R as L,a0 as V,bp as re,aX as We,v as ie,W as E,m as Ve,o as i,w as k,f as w,b6 as Ee,C as y,cV as _,X as B,l as W,q as p,gY as le,at as de,aw as ce,av as he,au as pe,b9 as Ue,bg as Le,a6 as Me,Y as Ge,fr as Xe,gs as Je,Q as _e,x as A,af as Qe,iB as qe,jc as Ze,aA as et,eK as tt,d7 as it,f7 as ot,kb as nt,ie as Ae,ig as Re,b_ as rt,ia as at,ib as st,bn as lt,n as U,c3 as xe,id as dt,c6 as ct}from"./index-DMdPrhoW.js";import{b as f,n as o,f as ht,j as ge}from"./vendor-rkTZJa59.js";import{s as pt}from"./commonDimensions-D2awlh2V-_OxUkEof.js";import{g as me}from"./BoxItem-CDOSjQIf-DcmyzBMd.js";import{l as ae,d as xt}from"./treasuryColorHelper-BQZcNhOr-BvktInAz.js";import{o as gt}from"./transaction-placeholder-CpOwZAMG-DYG2_sCF.js";import{o as mt}from"./shield-DOlUxcFf-bFVWRY1X.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ut={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new y(120,250,400,400,500)},yt={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new y(100,120,200,250,300)},ft={key:"amount",value:se.amount,sortOrder:"ascending",width:new y(80,100,150,180,200)},oe=()=>[ut,yt,ft],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new y(p[0],p[4]),headerLastColumnRightPadding:new y(p[3],p[11]),headerLastColumnBottomPadding:new y(p[0],p[4]),headerLastColumnLeftPadding:new y(p[3],p[11]),headerHeight:new y(Ae,Re),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function wt({companyNameSticky:e,sortConfig:n,onColumnSortConfigChanged:a}){const h=M(),l=C(),[r,u]=f.useState(oe());f.useEffect(()=>{const c=[...r];for(const s of c)s.key===n.sortKey?s.sortOrder=n.sortOrder:s.sortOrder="ascending";u(c)},[n.sortKey,n.sortOrder]);const d=(c,s)=>{let m=s;n.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),a(c,m)},g=r.find(c=>c.key===n.sortKey)??r[0],x=c=>r.find(s=>s.key===c)?.value??"",$=r.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(vt,{windowSize:l,children:[t.jsxs(Ct,{children:[t.jsx(Pt,{children:t.jsx(zt,{})}),t.jsx(lt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:n.sortKey,onPickerSelectionChanged:c=>{d(c,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4})]}),t.jsxs(Lt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":E("mobile-cards-list-sort-clicked",n.sortKey),children:[t.jsx(U,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:n.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:n.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(jt,{windowSize:l,children:t.jsx(bt,{children:r.map(c=>c.width.value(l)!==0&&t.jsxs(St,{companyNameSticky:e,sortDataValue:n.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Tt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":E("cards-list-sort-clicked",n.sortKey),children:[t.jsx(U,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:n.sortKey,headerdata:c,children:t.jsx(ye,{windowSize:l,isSelected:n.sortKey===c.key,children:t.jsx(xe,{})})})]}),t.jsx(Dt,{sortDataValue:n.sortKey,windowSize:l,isVisible:n.sortKey===c.key&&c.key!=="date",children:t.jsx(kt,{onClick:()=>d("date","ascending"),"data-testid":E("cards-list-sort-cancel",n.sortKey)})})]},c.key))})})}const $t=ht.memo(wt),jt=o.div`
1
+ import{e as C,u as M,b as Ke,bJ as Fe,j as t,R as L,a0 as V,bp as re,aX as We,v as ie,W as E,m as Ve,o as i,w as k,f as w,b6 as Ee,C as y,cV as _,X as B,l as W,q as p,gY as le,at as de,aw as ce,av as he,au as pe,b9 as Ue,bg as Le,a6 as Me,Y as Ge,fr as Xe,gs as Je,Q as _e,x as A,af as Qe,iB as qe,jc as Ze,aA as et,eK as tt,d7 as it,f7 as ot,kb as nt,ie as Ae,ig as Re,b_ as rt,ia as at,ib as st,bn as lt,n as U,c3 as xe,id as dt,c6 as ct}from"./index-BgY2d5WE.js";import{b as f,n as o,f as ht,j as ge}from"./vendor-rkTZJa59.js";import{s as pt}from"./commonDimensions-D2awlh2V-DGRJK6zD.js";import{g as me}from"./BoxItem-CDOSjQIf-CJCbwKlX.js";import{l as ae,d as xt}from"./treasuryColorHelper-BQZcNhOr-BuqUdy3E.js";import{o as gt}from"./transaction-placeholder-CpOwZAMG-DYG2_sCF.js";import{o as mt}from"./shield-DOlUxcFf-bFVWRY1X.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ut={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new y(120,250,400,400,500)},yt={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new y(100,120,200,250,300)},ft={key:"amount",value:se.amount,sortOrder:"ascending",width:new y(80,100,150,180,200)},oe=()=>[ut,yt,ft],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new y(p[0],p[4]),headerLastColumnRightPadding:new y(p[3],p[11]),headerLastColumnBottomPadding:new y(p[0],p[4]),headerLastColumnLeftPadding:new y(p[3],p[11]),headerHeight:new y(Ae,Re),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function wt({companyNameSticky:e,sortConfig:n,onColumnSortConfigChanged:a}){const h=M(),l=C(),[r,u]=f.useState(oe());f.useEffect(()=>{const c=[...r];for(const s of c)s.key===n.sortKey?s.sortOrder=n.sortOrder:s.sortOrder="ascending";u(c)},[n.sortKey,n.sortOrder]);const d=(c,s)=>{let m=s;n.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),a(c,m)},g=r.find(c=>c.key===n.sortKey)??r[0],x=c=>r.find(s=>s.key===c)?.value??"",$=r.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(vt,{windowSize:l,children:[t.jsxs(Ct,{children:[t.jsx(Pt,{children:t.jsx(zt,{})}),t.jsx(lt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:n.sortKey,onPickerSelectionChanged:c=>{d(c,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4})]}),t.jsxs(Lt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":E("mobile-cards-list-sort-clicked",n.sortKey),children:[t.jsx(U,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:n.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:n.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(jt,{windowSize:l,children:t.jsx(bt,{children:r.map(c=>c.width.value(l)!==0&&t.jsxs(St,{companyNameSticky:e,sortDataValue:n.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Tt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":E("cards-list-sort-clicked",n.sortKey),children:[t.jsx(U,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:n.sortKey,headerdata:c,children:t.jsx(ye,{windowSize:l,isSelected:n.sortKey===c.key,children:t.jsx(xe,{})})})]}),t.jsx(Dt,{sortDataValue:n.sortKey,windowSize:l,isVisible:n.sortKey===c.key&&c.key!=="date",children:t.jsx(kt,{onClick:()=>d("date","ascending"),"data-testid":E("cards-list-sort-cancel",n.sortKey)})})]},c.key))})})}const $t=ht.memo(wt),jt=o.div`
2
2
  top: ${i.sp0};
3
3
  left: ${i.sp0};
4
4
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{u as ae,e as A,Y as Ce,b as we,a2 as $e,l as fe,R as O,j as r,aX as ye,o as i,iB as ke,bp as je,w as j,Q as J,W as Q,X as $,r as F,f as a,C as z,x as R,d7 as be,br as Se,T as ze,n as ve,cP as Le,q as h,dM as Me,ay as Be,c7 as Pe,a3 as Ee,v as K,cB as Te}from"./index-DMdPrhoW.js";import{b as s,n as t,f as Ie}from"./vendor-rkTZJa59.js";import{x as We}from"./MeetingCalenderPopup-C-QdK1eB-rxe_L8BC.js";import{z as De}from"./VideoPlayer-DFyz7Puo-BlV3Z8cx.js";import{l as _e}from"./treasuryColorHelper-BQZcNhOr-BvktInAz.js";import{r as Re}from"./auto-transfer-rule-mbafm5D3-DsDlaCxy.js";import{o as He}from"./shield-DOlUxcFf-bFVWRY1X.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const Ge=({isOpen:e,onClose:C})=>{const c=A(),x=O.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Le,{anchor:"right",slotProps:{paper:{sx:{width:c==="small"||c==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:C,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Ne,{windowSize:c,children:[r.jsx(Ae,{children:r.jsx(qe,{onClick:C})}),r.jsxs(Oe,{children:[r.jsx(Fe,{windowSize:c,children:x.agreementDrawer.title}),r.jsx(Z,{children:x.agreementDrawer.intro}),r.jsx(G,{children:x.agreementDrawer.introBullets.map((p,w)=>r.jsx(re,{children:p},w))}),r.jsx(G,{children:x.agreementDrawer.documents.map((p,w)=>r.jsx(Ve,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Xe,{children:p.links.map((g,k)=>r.jsx(Ue,{children:g.link!==""?r.jsx(ee,{href:g.link,target:"_blank",rel:"noopener noreferrer",children:g.text}):g.text},k))}):r.jsx(ee,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(Z,{style:{marginTop:i.sp2},children:x.agreementDrawer.confirmTitle}),r.jsx(G,{children:x.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(re,{children:p},w))})]})]})})},Ne=t.div`
1
+ import{u as ae,e as A,Y as Ce,b as we,a2 as $e,l as fe,R as O,j as r,aX as ye,o as i,iB as ke,bp as je,w as j,Q as J,W as Q,X as $,r as F,f as a,C as z,x as R,d7 as be,br as Se,T as ze,n as ve,cP as Le,q as h,dM as Me,ay as Be,c7 as Pe,a3 as Ee,v as K,cB as Te}from"./index-BgY2d5WE.js";import{b as s,n as t,f as Ie}from"./vendor-rkTZJa59.js";import{x as We}from"./MeetingCalenderPopup-C-QdK1eB-I2FWDDt5.js";import{z as De}from"./VideoPlayer-DFyz7Puo-D3md354V.js";import{l as _e}from"./treasuryColorHelper-BQZcNhOr-BuqUdy3E.js";import{r as Re}from"./auto-transfer-rule-mbafm5D3-DsDlaCxy.js";import{o as He}from"./shield-DOlUxcFf-bFVWRY1X.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const Ge=({isOpen:e,onClose:C})=>{const c=A(),x=O.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Le,{anchor:"right",slotProps:{paper:{sx:{width:c==="small"||c==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:C,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Ne,{windowSize:c,children:[r.jsx(Ae,{children:r.jsx(qe,{onClick:C})}),r.jsxs(Oe,{children:[r.jsx(Fe,{windowSize:c,children:x.agreementDrawer.title}),r.jsx(Z,{children:x.agreementDrawer.intro}),r.jsx(G,{children:x.agreementDrawer.introBullets.map((p,w)=>r.jsx(re,{children:p},w))}),r.jsx(G,{children:x.agreementDrawer.documents.map((p,w)=>r.jsx(Ve,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Xe,{children:p.links.map((g,k)=>r.jsx(Ue,{children:g.link!==""?r.jsx(ee,{href:g.link,target:"_blank",rel:"noopener noreferrer",children:g.text}):g.text},k))}):r.jsx(ee,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(Z,{style:{marginTop:i.sp2},children:x.agreementDrawer.confirmTitle}),r.jsx(G,{children:x.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(re,{children:p},w))})]})]})})},Ne=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{b as Me,u as Ue,e as ae,a2 as se,a as re,ca as le,R as ce,a8 as te,j as t,cP as Re,f as He,C as u,aX as _e,m as Ne,F as de,dO as qe,aS as Ge,q as n,Q as Je,bp as Xe,W as Qe,cg as Ye,a4 as Ze,o as i,x as ue,c7 as Ke,a3 as et,X as tt,g as it}from"./index-DMdPrhoW.js";import{b as a,n as o}from"./vendor-rkTZJa59.js";import{D as ot}from"./HelpButton-D6-xnq8R-B7Esl1eN.js";import{r as nt}from"./verification-CW6uEyev-BVrJsi0i.js";import{q as ie}from"./SetUpDefaultSection-CDTf48Sb-CqmPuatn.js";import{f as at}from"./SpendMgmtSetupAccountSection-CvbRCGT3-fc81_dxr.js";import st from"./PortfolioAllocationFormPage-BqstPgzi-BbZ1uxQe.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./MeetingCalenderPopup-C-QdK1eB-rxe_L8BC.js";import"./ChargeCardUtils-BgCK0dfc-DrWgA1vt.js";import"./CreditCardPaymentPlgSection-DxNQ-KmN-BY4cRgv-.js";import"./ChaseOverlay-0vGEbm3S-Yd_KO12K.js";import"./PortfolioDetails-vFxtsdUm-Blvzf42n.js";import"./treasuryColorHelper-BQZcNhOr-BvktInAz.js";const rt=(e,f)=>`${e}.${f}`,E={labelWidth:new u(145,155),navBarContainerPaddingYaxis:new u(10,n[3]),containerPaddingLeft:new u(n[3],n[6],n[8]),containerPaddingRight:new u(n[3],n[6],n[8])},lt={stepTitle:new tt("h6Regular","h5Regular")},pe=ce.getLocalizedStrings(),{common:oe}=pe,h=pe.commonSetUp.businessVerification,J=h.sourceOfFundOptions,$="additionalVerificationFields",ct=({companyOfficer:e,companyDetails:f,updateStatus:c,isDetailsSubmitted:x,onClose:d,onAdditionalVerificationFieldsChanged:I,onSendForVerificationClick:B,onCloseOverlay:j})=>{const p=ae(),k=E.labelWidth.value(p),D=se(c.fetchState),C=re({mode:"all",reValidateMode:"onChange",defaultValues:a.useMemo(()=>({[$]:{sourceOfFunds:{selectedOption:f?.sourceOfFunds??"",allOptions:Object.keys(J)}}}),[f?.sourceOfFunds])}),W=m=>J[m]??m,M=C.handleSubmit(()=>{B(e?.officerType??"Officer_1")}),P=async(m,w)=>{I(w[$])};return a.useEffect(()=>{const m=C.watch((w,{name:O})=>{O!=null&&w!=null&&le(()=>P(O,w))});return()=>{m.unsubscribe()}}),D==="In-Progress"&&c.fetchState==="Completed"||x===!0?t.jsxs(gt,{children:[t.jsxs(xt,{children:[t.jsx(nt,{}),t.jsx(ht,{windowSize:p,children:h.submittedTitle}),t.jsx(ft,{children:h.submittedDescription})]}),t.jsx(Je,{label:h.submittedButton,onClick:j,variant:"primary"})]}):t.jsxs(dt,{windowSize:p,children:[t.jsx(ut,{windowSize:p,children:t.jsx(Xe,{title:"Back",enterTouchDelay:600,placement:"bottom",children:t.jsx(pt,{"data-testid":Qe("nav-bar-back-portfolio-allocation"),onClick:j||d})})}),t.jsxs(wt,{windowSize:p,children:[t.jsx(yt,{windowSize:p,children:h.verifyBusinessDetails}),t.jsx(bt,{children:t.jsxs(kt,{children:[t.jsx(Ct,{}),t.jsx(vt,{})]})})]}),t.jsx(he,{children:h.verifyBusinessDetailsDescription}),t.jsx(de,{...C,children:t.jsxs("form",{id:$,onSubmit:M,children:[t.jsx(mt,{children:t.jsx(Ye,{label:{label:h.sourceOfFundsLabel,width:k},style:{width:"auto"},additionalInfoLabel:h.sourceOfFundsAdditionalInfo,singleSelectField:{singleSelect:{name:rt($,"sourceOfFunds"),placeholder:h.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:W,showTickMark:!1,sortOptions:!1},defaultValue:{selectedOption:f?.sourceOfFunds??"",allOptions:Object.keys(J)},registerOptions:{required:!0,validate:m=>!!m?.selectedOption}},isFunctional:!0,errorInfoLabel:h.sourceOfFundsError.replace("_product_type_","business verification")})}),t.jsx(Ze,{formId:$,primaryBtn:{label:oe.footer.submit,style:{width:"auto",minWidth:p==="small"?"auto":"83px"},isLoading:c.fetchState==="In-Progress"},cancelBtn:{label:oe.footer.back,style:{width:p==="small"?"auto":"83px"},onClick:d},style:{position:"absolute",width:"100%",paddingTop:i.sp2,paddingBottom:i.sp2}})]})})]})},dt=o.div`
1
+ import{b as Me,u as Ue,e as ae,a2 as se,a as re,ca as le,R as ce,a8 as te,j as t,cP as Re,f as He,C as u,aX as _e,m as Ne,F as de,dO as qe,aS as Ge,q as n,Q as Je,bp as Xe,W as Qe,cg as Ye,a4 as Ze,o as i,x as ue,c7 as Ke,a3 as et,X as tt,g as it}from"./index-BgY2d5WE.js";import{b as a,n as o}from"./vendor-rkTZJa59.js";import{D as ot}from"./HelpButton-D6-xnq8R-B7Yjawto.js";import{r as nt}from"./verification-CW6uEyev-BVrJsi0i.js";import{q as ie}from"./SetUpDefaultSection-CDTf48Sb-SLC8HzQO.js";import{f as at}from"./SpendMgmtSetupAccountSection-CvbRCGT3-BHdPIEQr.js";import st from"./PortfolioAllocationFormPage-BqstPgzi-mMJXcrzt.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./MeetingCalenderPopup-C-QdK1eB-I2FWDDt5.js";import"./ChargeCardUtils-BgCK0dfc-C7i0IOoX.js";import"./CreditCardPaymentPlgSection-DxNQ-KmN-B_rlLzkl.js";import"./ChaseOverlay-0vGEbm3S-grITfH8J.js";import"./PortfolioDetails-vFxtsdUm-DGoDL6Fa.js";import"./treasuryColorHelper-BQZcNhOr-BuqUdy3E.js";const rt=(e,f)=>`${e}.${f}`,E={labelWidth:new u(145,155),navBarContainerPaddingYaxis:new u(10,n[3]),containerPaddingLeft:new u(n[3],n[6],n[8]),containerPaddingRight:new u(n[3],n[6],n[8])},lt={stepTitle:new tt("h6Regular","h5Regular")},pe=ce.getLocalizedStrings(),{common:oe}=pe,h=pe.commonSetUp.businessVerification,J=h.sourceOfFundOptions,$="additionalVerificationFields",ct=({companyOfficer:e,companyDetails:f,updateStatus:c,isDetailsSubmitted:x,onClose:d,onAdditionalVerificationFieldsChanged:I,onSendForVerificationClick:B,onCloseOverlay:j})=>{const p=ae(),k=E.labelWidth.value(p),D=se(c.fetchState),C=re({mode:"all",reValidateMode:"onChange",defaultValues:a.useMemo(()=>({[$]:{sourceOfFunds:{selectedOption:f?.sourceOfFunds??"",allOptions:Object.keys(J)}}}),[f?.sourceOfFunds])}),W=m=>J[m]??m,M=C.handleSubmit(()=>{B(e?.officerType??"Officer_1")}),P=async(m,w)=>{I(w[$])};return a.useEffect(()=>{const m=C.watch((w,{name:O})=>{O!=null&&w!=null&&le(()=>P(O,w))});return()=>{m.unsubscribe()}}),D==="In-Progress"&&c.fetchState==="Completed"||x===!0?t.jsxs(gt,{children:[t.jsxs(xt,{children:[t.jsx(nt,{}),t.jsx(ht,{windowSize:p,children:h.submittedTitle}),t.jsx(ft,{children:h.submittedDescription})]}),t.jsx(Je,{label:h.submittedButton,onClick:j,variant:"primary"})]}):t.jsxs(dt,{windowSize:p,children:[t.jsx(ut,{windowSize:p,children:t.jsx(Xe,{title:"Back",enterTouchDelay:600,placement:"bottom",children:t.jsx(pt,{"data-testid":Qe("nav-bar-back-portfolio-allocation"),onClick:j||d})})}),t.jsxs(wt,{windowSize:p,children:[t.jsx(yt,{windowSize:p,children:h.verifyBusinessDetails}),t.jsx(bt,{children:t.jsxs(kt,{children:[t.jsx(Ct,{}),t.jsx(vt,{})]})})]}),t.jsx(he,{children:h.verifyBusinessDetailsDescription}),t.jsx(de,{...C,children:t.jsxs("form",{id:$,onSubmit:M,children:[t.jsx(mt,{children:t.jsx(Ye,{label:{label:h.sourceOfFundsLabel,width:k},style:{width:"auto"},additionalInfoLabel:h.sourceOfFundsAdditionalInfo,singleSelectField:{singleSelect:{name:rt($,"sourceOfFunds"),placeholder:h.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:W,showTickMark:!1,sortOptions:!1},defaultValue:{selectedOption:f?.sourceOfFunds??"",allOptions:Object.keys(J)},registerOptions:{required:!0,validate:m=>!!m?.selectedOption}},isFunctional:!0,errorInfoLabel:h.sourceOfFundsError.replace("_product_type_","business verification")})}),t.jsx(Ze,{formId:$,primaryBtn:{label:oe.footer.submit,style:{width:"auto",minWidth:p==="small"?"auto":"83px"},isLoading:c.fetchState==="In-Progress"},cancelBtn:{label:oe.footer.back,style:{width:p==="small"?"auto":"83px"},onClick:d},style:{position:"absolute",width:"100%",paddingTop:i.sp2,paddingBottom:i.sp2}})]})})]})},dt=o.div`
2
2
  height: auto;
3
3
  padding-left: ${e=>`${E.containerPaddingLeft.valuePx(e.windowSize)}`};
4
4
  padding-right: ${e=>`${E.containerPaddingRight.valuePx(e.windowSize)}`};
@@ -1,4 +1,4 @@
1
- import{u as j,e as v,j as t,aX as z,R as C,aj as P,o as r,f as c,b_ as R,C as I,q as d,x as T}from"./index-DMdPrhoW.js";import{b as m,n as o}from"./vendor-rkTZJa59.js";import{$ as B}from"./BoxItem-CDOSjQIf-DcmyzBMd.js";import{o as E}from"./commonDimensions-D2awlh2V-_OxUkEof.js";import{O as L}from"./StatementItem-CWLkBF_T-WNVKfqND.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./downloadPdf-DKAAiZ9Q-B-454ch_.js";const h=C.getLocalizedStrings().spendManagement.treasury.statements,x={listItemMargin:new I(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:u,downloadEndPoint:w,statementListView:a,onBackClick:g})=>{const b=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>E.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(L,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:u,downloadEndPoint:w,documentType:"treasuryStatement",boxType:B(s,a.statements.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(N,{children:t.jsx(p,{windowSize:i,children:t.jsx(H,{children:h.noStatements})})})})};return t.jsxs(A,{children:[t.jsx(z,{title:h.title,backgroundColor:b.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(P,{children:({height:s,width:n})=>t.jsx(O,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},M=o.div``,p=o.div`
1
+ import{u as j,e as v,j as t,aX as z,R as C,aj as P,o as r,f as c,b_ as R,C as I,q as d,x as T}from"./index-BgY2d5WE.js";import{b as m,n as o}from"./vendor-rkTZJa59.js";import{$ as B}from"./BoxItem-CDOSjQIf-CJCbwKlX.js";import{o as E}from"./commonDimensions-D2awlh2V-DGRJK6zD.js";import{O as L}from"./StatementItem-CWLkBF_T-D1rtX1Ud.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./downloadPdf-DKAAiZ9Q-BrYmGqin.js";const h=C.getLocalizedStrings().spendManagement.treasury.statements,x={listItemMargin:new I(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:u,downloadEndPoint:w,statementListView:a,onBackClick:g})=>{const b=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>E.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(L,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:u,downloadEndPoint:w,documentType:"treasuryStatement",boxType:B(s,a.statements.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(N,{children:t.jsx(p,{windowSize:i,children:t.jsx(H,{children:h.noStatements})})})})};return t.jsxs(A,{children:[t.jsx(z,{title:h.title,backgroundColor:b.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(P,{children:({height:s,width:n})=>t.jsx(O,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},M=o.div``,p=o.div`
2
2
  margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{u as S,e as v,j as t,aX as L,R as z,aj as C,o as r,f as c,b_ as P,C as R,q as d,x as T}from"./index-DMdPrhoW.js";import{b as h,n as o}from"./vendor-rkTZJa59.js";import{$ as I}from"./BoxItem-CDOSjQIf-DcmyzBMd.js";import{o as B}from"./commonDimensions-D2awlh2V-_OxUkEof.js";import{O as E}from"./StatementItem-CWLkBF_T-WNVKfqND.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./downloadPdf-DKAAiZ9Q-B-454ch_.js";const p=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new R(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:u,taxLetterListView:a,onBackClick:g})=>{const b=S(),i=v(),f=h.createRef(),y=h.useRef(),$=a.taxLetters.length===0,k=()=>B.transactionItemHeightResponsive.value(i),j=({index:s,style:n})=>{const l=a.taxLetters[s];return $===!1?t.jsx(m,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:w,downloadEndPoint:u,documentType:"taxLetter",boxType:I(s,a.taxLetters.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(N,{children:t.jsx(m,{windowSize:i,children:t.jsx(H,{children:p.noTaxLetter})})})})};return t.jsxs(A,{children:[t.jsx(L,{title:p.title,backgroundColor:b.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(C,{children:({height:s,width:n})=>t.jsx(O,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},M=o.div``,m=o.div`
1
+ import{u as S,e as v,j as t,aX as L,R as z,aj as C,o as r,f as c,b_ as P,C as R,q as d,x as T}from"./index-BgY2d5WE.js";import{b as h,n as o}from"./vendor-rkTZJa59.js";import{$ as I}from"./BoxItem-CDOSjQIf-CJCbwKlX.js";import{o as B}from"./commonDimensions-D2awlh2V-DGRJK6zD.js";import{O as E}from"./StatementItem-CWLkBF_T-D1rtX1Ud.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./downloadPdf-DKAAiZ9Q-BrYmGqin.js";const p=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new R(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:u,taxLetterListView:a,onBackClick:g})=>{const b=S(),i=v(),f=h.createRef(),y=h.useRef(),$=a.taxLetters.length===0,k=()=>B.transactionItemHeightResponsive.value(i),j=({index:s,style:n})=>{const l=a.taxLetters[s];return $===!1?t.jsx(m,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:w,downloadEndPoint:u,documentType:"taxLetter",boxType:I(s,a.taxLetters.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(N,{children:t.jsx(m,{windowSize:i,children:t.jsx(H,{children:p.noTaxLetter})})})})};return t.jsxs(A,{children:[t.jsx(L,{title:p.title,backgroundColor:b.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(C,{children:({height:s,width:n})=>t.jsx(O,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},M=o.div``,m=o.div`
2
2
  margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{e as ge,J as $t,j as o,W as P,gV as bt,R as xe,a0 as W,Q as Ne,m as Ze,a4 as et,o as t,C as f,a3 as De,T as St,am as vt,u as jt,a2 as J,bp as At,cV as tt,X as R,l as z,g2 as kt,f as S,r as Tt,g as ot,w as Y,x as q,f2 as Pt,a as Ct,ca as zt,F as Dt,fK as Lt,q as c,bw as rt,d1 as nt,bO as it,cG as Ft,cx as Mt,fe as Rt,f6 as Bt,b as Ot,n as It,f7 as Et,ds as Nt,c3 as _t,c2 as Vt,aR as Wt,be as Yt,fg as qt,fp as Gt,ab as Xt}from"./index-DMdPrhoW.js";import{n as r,b as x}from"./vendor-rkTZJa59.js";import{V as at}from"./PortfolioDetails-vFxtsdUm-Blvzf42n.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./treasuryColorHelper-BQZcNhOr-BvktInAz.js";const Jt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Qt=1e3;function Kt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,m]=x.useState(a);x.useEffect(()=>{m(a)},[a]);const w=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Qt,value:l,onChange:w}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Ut(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Ht(i)},children:o.jsx(io,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Ut=e=>{const a=Xt("0,0.[00]a",e,"$").toUpperCase();return`${Jt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Ht=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),eo=r.input`
1
+ import{e as ge,J as $t,j as o,W as P,gV as bt,R as xe,a0 as W,Q as Ne,m as Ze,a4 as et,o as t,C as f,a3 as De,T as St,am as vt,u as jt,a2 as J,bp as At,cV as tt,X as R,l as z,g2 as kt,f as S,r as Tt,g as ot,w as Y,x as q,f2 as Pt,a as Ct,ca as zt,F as Dt,fK as Lt,q as c,bw as rt,d1 as nt,bO as it,cG as Ft,cx as Mt,fe as Rt,f6 as Bt,b as Ot,n as It,f7 as Et,ds as Nt,c3 as _t,c2 as Vt,aR as Wt,be as Yt,fg as qt,fp as Gt,ab as Xt}from"./index-BgY2d5WE.js";import{n as r,b as x}from"./vendor-rkTZJa59.js";import{V as at}from"./PortfolioDetails-vFxtsdUm-DGoDL6Fa.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./treasuryColorHelper-BQZcNhOr-BuqUdy3E.js";const Jt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Qt=1e3;function Kt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,m]=x.useState(a);x.useEffect(()=>{m(a)},[a]);const w=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Qt,value:l,onChange:w}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Ut(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Ht(i)},children:o.jsx(io,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Ut=e=>{const a=Xt("0,0.[00]a",e,"$").toUpperCase();return`${Jt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Ht=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),eo=r.input`
2
2
  width: 100%;
3
3
  &[type="range"]::-webkit-slider-runnable-track {
4
4
  height: 2px;
@@ -1,4 +1,4 @@
1
- import{R as w,j as s,l as u,u as R,W as Y,aj as Z,b7 as z,b8 as B,aw as F,v as k,av as P,ab as O,b9 as q,ax as _,bb as G,o as L,f as K,x as N}from"./index-DMdPrhoW.js";import{b as v,f as W,n as $}from"./vendor-rkTZJa59.js";import{d as V,g as T,p as D,u as J}from"./chartTypes-Cdcd3er7-GUhlIK4O.js";import{o as Q}from"./toCOABalancesWithID-N0H1doqM-JpFsU7mj.js";import{V as X}from"./toChartData-BQrGasxp-CkdG-m8w.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const H=$.div`
1
+ import{R as w,j as s,l as u,u as R,W as Y,aj as Z,b7 as z,b8 as B,aw as F,v as k,av as P,ab as O,b9 as q,ax as _,bb as G,o as L,f as K,x as N}from"./index-BgY2d5WE.js";import{b as v,f as W,n as $}from"./vendor-rkTZJa59.js";import{d as V,g as T,p as D,u as J}from"./chartTypes-Cdcd3er7-DR1nsm-2.js";import{o as Q}from"./toCOABalancesWithID-N0H1doqM-Co_NSAVF.js";import{V as X}from"./toChartData-BQrGasxp-BBK_kcLb.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const H=$.div`
2
2
  display: flex;
3
3
  `,I=$.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{e as D,j as i,m as R,o as t,R as F,C as c,W as S,aj as q,am as Y,c7 as E,q as a,x as W,a3 as K}from"./index-DMdPrhoW.js";import{b as k,n}from"./vendor-rkTZJa59.js";import V from"./TrendChart-BPx69s6w-C54caf00.js";import{C as _}from"./NoDataChart-BqzaDL6U-CEm48KyS.js";import{B as J}from"./InsightsSection-Tqo7NTVV-DptTpQRV.js";import{f as X}from"./TransactionList-uOUugKVb-hYSSV3pD.js";const Z=n.div`
1
+ import{e as D,j as i,m as R,o as t,R as F,C as c,W as S,aj as q,am as Y,c7 as E,q as a,x as W,a3 as K}from"./index-BgY2d5WE.js";import{b as k,n}from"./vendor-rkTZJa59.js";import V from"./TrendChart-BPx69s6w-Bsdmdm1p.js";import{C as _}from"./NoDataChart-BqzaDL6U-Dk0pHuDv.js";import{B as J}from"./InsightsSection-Tqo7NTVV-DqOnr-bV.js";import{f as X}from"./TransactionList-uOUugKVb-zO1FITPJ.js";const Z=n.div`
2
2
  display: inline-block;
3
3
  `,G=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{u as ce,e as se,Y as Xe,a2 as en,ga as R,hc as U,R as H,a as nn,hd as tn,he as Te,ca as on,j as t,aX as cn,bV as sn,bX as ln,bY as an,F as rn,l as J,hf as dn,m as un,hg as Z,hh as pn,a4 as mn,hi as Ve,C as u,x as gn,o as l,cn as ye,a8 as W,gf as oe,hj as ie,q as d,X as Ae,f as $e,fE as _e,w as Se,aC as xn}from"./index-DMdPrhoW.js";import{b as K,n as s}from"./vendor-rkTZJa59.js";import{D as hn}from"./HelpButton-D6-xnq8R-B7Esl1eN.js";import{h as wn}from"./VendorsAccountsSection-DZSmqIN2-DA223WXy.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./MeetingCalenderPopup-C-QdK1eB-rxe_L8BC.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},qe={title:new Ae("standardMedium","largeMedium")},bn=s.div`
1
+ import{u as ce,e as se,Y as Xe,a2 as en,ga as R,hc as U,R as H,a as nn,hd as tn,he as Te,ca as on,j as t,aX as cn,bV as sn,bX as ln,bY as an,F as rn,l as J,hf as dn,m as un,hg as Z,hh as pn,a4 as mn,hi as Ve,C as u,x as gn,o as l,cn as ye,a8 as W,gf as oe,hj as ie,q as d,X as Ae,f as $e,fE as _e,w as Se,aC as xn}from"./index-BgY2d5WE.js";import{b as K,n as s}from"./vendor-rkTZJa59.js";import{D as hn}from"./HelpButton-D6-xnq8R-B7Yjawto.js";import{h as wn}from"./VendorsAccountsSection-DZSmqIN2-MZuYfFku.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./MeetingCalenderPopup-C-QdK1eB-I2FWDDt5.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},qe={title:new Ae("standardMedium","largeMedium")},bn=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>C.rowGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{a2 as b,j as t,hl as R,hm as _,e as F,R as O,bV as N,d as C,bX as U,bY as z,a as H,F as M,cj as G,l as T,cf as D,C as g,cg as Q,f as A,p as J,m as K,Q as X,o as i,x as Y,q as B,r as Z,ap as ee}from"./index-DMdPrhoW.js";import{b as c,n as f}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(B[3],B[2]),width:new g(300,420,420)},te=f.div`
1
+ import{a2 as b,j as t,hl as R,hm as _,e as F,R as O,bV as N,d as C,bX as U,bY as z,a as H,F as M,cj as G,l as T,cf as D,C as g,cg as Q,f as A,p as J,m as K,Q as X,o as i,x as Y,q as B,r as Z,ap as ee}from"./index-BgY2d5WE.js";import{b as c,n as f}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(B[3],B[2]),width:new g(300,420,420)},te=f.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{a as M,fh as x,a2 as U,l as W,e as q,R as _,j as i,ca as A,F as G,W as J,fi as H,o as a,f as K,ck as Q,a4 as X,C as y,a3 as Y,c7 as Z,ap as ee,ao as te,q as c}from"./index-DMdPrhoW.js";import{b as m,n as l}from"./vendor-rkTZJa59.js";const F={marginRight:new y(c[3],c[8]),marginLeft:new y(c[3],c[8]),height:new y(c[5],62)},f="additionalDocumentsForm",s="ssnCard";function fe(e){const{filesEndPoint:w,authParams:E,companyOfficer:t,updateStatus:u,onClose:S,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=M({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,$]=m.useState(!1),[N,O]=m.useState(!1),b=U(u.fetchState),j=t?.deleteFileStatusById??{},B=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),L=W.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&u.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,u,n,t?.additionalFiles]);const r=q(),h=_.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{L.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),k=async(o,p)=>{const d=p[f].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),$(!0)):$(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&A(()=>k(d,p))});return()=>{o.unsubscribe()}}),i.jsx(G,{...n,children:i.jsxs("form",{id:f,onSubmit:R,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:S,"data-testid":J("upload-additional-documents-close",f)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(H,{name:f,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:Q,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${K.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:B,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onFileSizeError:o=>O(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(X,{formId:f,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:u.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:S},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
1
+ import{a as M,fh as x,a2 as U,l as W,e as q,R as _,j as i,ca as A,F as G,W as J,fi as H,o as a,f as K,ck as Q,a4 as X,C as y,a3 as Y,c7 as Z,ap as ee,ao as te,q as c}from"./index-BgY2d5WE.js";import{b as m,n as l}from"./vendor-rkTZJa59.js";const F={marginRight:new y(c[3],c[8]),marginLeft:new y(c[3],c[8]),height:new y(c[5],62)},f="additionalDocumentsForm",s="ssnCard";function fe(e){const{filesEndPoint:w,authParams:E,companyOfficer:t,updateStatus:u,onClose:S,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=M({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,$]=m.useState(!1),[N,O]=m.useState(!1),b=U(u.fetchState),j=t?.deleteFileStatusById??{},B=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),L=W.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&u.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,u,n,t?.additionalFiles]);const r=q(),h=_.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{L.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),k=async(o,p)=>{const d=p[f].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),$(!0)):$(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&A(()=>k(d,p))});return()=>{o.unsubscribe()}}),i.jsx(G,{...n,children:i.jsxs("form",{id:f,onSubmit:R,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:S,"data-testid":J("upload-additional-documents-close",f)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(H,{name:f,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:Q,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${K.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:B,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onFileSizeError:o=>O(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(X,{formId:f,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:u.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:S},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
2
2
  margin-top: 19px;
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  margin-bottom: ${a.sp2};
@@ -1 +1 @@
1
- import{a2 as o,R as v,j as i,hl as y,hm as b}from"./index-DMdPrhoW.js";import{b as e}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const G=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:g,newVendorState:V}=S,r=Object.assign({},g??V),[C,s]=e.useState(!1),[O,a]=e.useState(t.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(t.userVerificationStatus.fetchState),f=o(t.otpVerificationStatus?.fetchState),u=o(t.sendOtpStatus.fetchState),E=v.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&a(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,t.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(y,{showHelperText:!n,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?i.jsx(b,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?E:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:P=>h?.(P)}}):null})};export{G as default};
1
+ import{a2 as o,R as v,j as i,hl as y,hm as b}from"./index-BgY2d5WE.js";import{b as e}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const G=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:g,newVendorState:V}=S,r=Object.assign({},g??V),[C,s]=e.useState(!1),[O,a]=e.useState(t.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(t.userVerificationStatus.fetchState),f=o(t.otpVerificationStatus?.fetchState),u=o(t.sendOtpStatus.fetchState),E=v.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&a(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,t.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(y,{showHelperText:!n,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?i.jsx(b,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?E:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:P=>h?.(P)}}):null})};export{G as default};
@@ -1 +1 @@
1
- import{j as u}from"./index-DMdPrhoW.js";import{b as d}from"./vendor-rkTZJa59.js";import{f as k}from"./ACHDetailsPage-DDRe8R-F-D7h9irWQ.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BankAccountWarningSection-DYc9G8bV-BU4879fO.js";import"./MagicLinkTitleSection-Ch-kaM4i-CWaa0I1J.js";import"./BankAccountSection-Bw2NSgNV-M8H57xLs.js";const R=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:m,fetchBankNameByRoutingStatus:p}=t;return d.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),u.jsx(k,{bankAccountToCreate:m,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})};export{R as default};
1
+ import{j as u}from"./index-BgY2d5WE.js";import{b as d}from"./vendor-rkTZJa59.js";import{f as k}from"./ACHDetailsPage-DDRe8R-F-Bt-bp2i8.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BankAccountWarningSection-DYc9G8bV-C0-vT7q_.js";import"./MagicLinkTitleSection-Ch-kaM4i-s-NoId2m.js";import"./BankAccountSection-Bw2NSgNV-CQgv2w2R.js";const R=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:m,fetchBankNameByRoutingStatus:p}=t;return d.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),u.jsx(k,{bankAccountToCreate:m,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})};export{R as default};
@@ -1,4 +1,4 @@
1
- import{R as N,u as Re,e as ne,C as g,J as fe,l as se,cc as xt,a as yt,gB as Be,gC as Ae,gD as Ee,gE as be,gF as ft,a8 as bt,ca as wt,j as t,aX as Ct,F as $t,gG as St,gH as ue,q as l,cb as Dt,a4 as jt,o,bh as S,cn as Tt,gf as we,gI as Lt,cd as Vt,ce as kt,cf as Ot,gJ as It,fL as Pt,cl as zt,gK as Ft,gL as Mt,f as M,dr as Nt,dq as _t,cz as Wt,ab as de,am as qe,w as Ue,ds as Ht,af as Rt,gM as Bt,gN as At,x as Et,gO as qt,bO as Ye,gP as Ut,X as Ce,g as Ge}from"./index-DMdPrhoW.js";import{b as $,n as a,j as Yt}from"./vendor-rkTZJa59.js";import{k as Gt}from"./SubTabSwitcher-BewMmlvb-CLdrYWXx.js";import{f as Jt}from"./TransactionList-uOUugKVb-hYSSV3pD.js";import{R as Xt}from"./TrendWithTransactions-DGrYER05-CzbDRqAW.js";import{o as Kt,t as Qt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{C as Zt}from"./LabeledAddressValueField-T2zUztDN-BjlfdLij.js";import{Y as es}from"./LabeledDropDownFormattedTextField-aw4AWbJv-BtfYvR37.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BoxItem-CDOSjQIf-DcmyzBMd.js";import"./commonDimensions-D2awlh2V-_OxUkEof.js";import"./TrendChart-BPx69s6w-C54caf00.js";import"./chartTypes-Cdcd3er7-GUhlIK4O.js";import"./toCOABalancesWithID-N0H1doqM-JpFsU7mj.js";import"./toChartData-BQrGasxp-CkdG-m8w.js";import"./NoDataChart-BqzaDL6U-CEm48KyS.js";import"./InsightsSection-Tqo7NTVV-DptTpQRV.js";import"./NavigationDots-CG19c5E0-CRwFuQ1r.js";const ts=a.div`
1
+ import{R as N,u as Re,e as ne,C as g,J as fe,l as se,cc as xt,a as yt,gB as Be,gC as Ae,gD as Ee,gE as be,gF as ft,a8 as bt,ca as wt,j as t,aX as Ct,F as $t,gG as St,gH as ue,q as l,cb as Dt,a4 as jt,o,bh as S,cn as Tt,gf as we,gI as Lt,cd as Vt,ce as kt,cf as Ot,gJ as It,fL as Pt,cl as zt,gK as Ft,gL as Mt,f as M,dr as Nt,dq as _t,cz as Wt,ab as de,am as qe,w as Ue,ds as Ht,af as Rt,gM as Bt,gN as At,x as Et,gO as qt,bO as Ye,gP as Ut,X as Ce,g as Ge}from"./index-BgY2d5WE.js";import{b as $,n as a,j as Yt}from"./vendor-rkTZJa59.js";import{k as Gt}from"./SubTabSwitcher-BewMmlvb-DhZ9BjP8.js";import{f as Jt}from"./TransactionList-uOUugKVb-zO1FITPJ.js";import{R as Xt}from"./TrendWithTransactions-DGrYER05-CPtwIs65.js";import{o as Kt,t as Qt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{C as Zt}from"./LabeledAddressValueField-T2zUztDN-LGoET2XZ.js";import{Y as es}from"./LabeledDropDownFormattedTextField-aw4AWbJv-Cr-eZFo9.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BoxItem-CDOSjQIf-CJCbwKlX.js";import"./commonDimensions-D2awlh2V-DGRJK6zD.js";import"./TrendChart-BPx69s6w-Bsdmdm1p.js";import"./chartTypes-Cdcd3er7-DR1nsm-2.js";import"./toCOABalancesWithID-N0H1doqM-Co_NSAVF.js";import"./toChartData-BQrGasxp-BBK_kcLb.js";import"./NoDataChart-BqzaDL6U-Dk0pHuDv.js";import"./InsightsSection-Tqo7NTVV-DqOnr-bV.js";import"./NavigationDots-CG19c5E0-bRuIMHF0.js";const ts=a.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: center;
@@ -1 +1 @@
1
- import{j as S}from"./index-DMdPrhoW.js";import{b as C}from"./vendor-rkTZJa59.js";import{y as b}from"./DomesticWireDetailsPage-W4jaQzI6-rgDbsj9p.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BankAccountSection-Bw2NSgNV-M8H57xLs.js";import"./MagicLinkTitleSection-Ch-kaM4i-CWaa0I1J.js";import"./BankAccountWarningSection-DYc9G8bV-BU4879fO.js";import"./MailingDetailsSection-C3JqXSK_-D4ByIc-C.js";import"./LabeledAddressValueField-T2zUztDN-BjlfdLij.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};
1
+ import{j as S}from"./index-BgY2d5WE.js";import{b as C}from"./vendor-rkTZJa59.js";import{y as b}from"./DomesticWireDetailsPage-W4jaQzI6-BdaVfPFS.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BankAccountSection-Bw2NSgNV-CQgv2w2R.js";import"./MagicLinkTitleSection-Ch-kaM4i-s-NoId2m.js";import"./BankAccountWarningSection-DYc9G8bV-C0-vT7q_.js";import"./MailingDetailsSection-C3JqXSK_-BdbOUFR2.js";import"./LabeledAddressValueField-T2zUztDN-LGoET2XZ.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};
@@ -1,4 +1,4 @@
1
- import{e as oe,u as ze,R as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,aX as Be,W as Ee,F as Re,cd as C,o as s,ch as Oe,gJ as We,fL as qe,cl as Me,gK as He,gL as Ue,ct as Ke,a4 as Ge,cv as Ze,cE as Je,q as c,a3 as Ye,bh as D,c8 as _e,gR as Qe,f as I,eW as Xe,bO as et,x as ce,eF as tt,gS as st,gT as lt,gU as M,cF as it}from"./index-DMdPrhoW.js";import{b as y,n as a}from"./vendor-rkTZJa59.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-aw4AWbJv-BtfYvR37.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function at(e){const{loadingState:i}=e;return t.jsx(ot,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function ot({googleAPIKey:e,addressToEdit:i,sectionId:o,isDisabled:h,style:O}){const E=oe(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:O,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:h,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(o,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:M(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(o,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"state"),defaultValue:i?.state,placeholder:M(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:h,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(o,"country"),placeholder:u.address.countryPlaceholder,defaultValue:K(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(o,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=a.div`
1
+ import{e as oe,u as ze,R as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,aX as Be,W as Ee,F as Re,cd as C,o as s,ch as Oe,gJ as We,fL as qe,cl as Me,gK as He,gL as Ue,ct as Ke,a4 as Ge,cv as Ze,cE as Je,q as c,a3 as Ye,bh as D,c8 as _e,gR as Qe,f as I,eW as Xe,bO as et,x as ce,eF as tt,gS as st,gT as lt,gU as M,cF as it}from"./index-BgY2d5WE.js";import{b as y,n as a}from"./vendor-rkTZJa59.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-aw4AWbJv-Cr-eZFo9.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function at(e){const{loadingState:i}=e;return t.jsx(ot,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function ot({googleAPIKey:e,addressToEdit:i,sectionId:o,isDisabled:h,style:O}){const E=oe(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:O,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:h,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(o,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:M(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(o,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"state"),defaultValue:i?.state,placeholder:M(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:h,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(o,"country"),placeholder:u.address.countryPlaceholder,defaultValue:K(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(o,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=a.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-left: ${s.sp3};
@@ -1,4 +1,4 @@
1
- import{e as ae,Y as On,u as mn,a as nt,hw as Pe,ca as tt,B as Nn,hx as ie,hy as ve,hz as fe,hA as be,hB as me,R as je,j as n,hs as ot,F as rt,aX as it,_ as st,bV as at,bX as lt,bY as dt,br as ct,W as Y,bg as mt,bS as pt,aj as ut,dl as ht,b_ as gt,C as w,m as wt,I as Oe,o as t,a7 as In,x as De,a6 as xt,q as c,w as Re,c3 as vt,l as zn,dr as Pn,bh as ze,aB as Tn,c6 as ft,bv as bt,dE as $t,ap as Ye,aP as pn,f as F,az as Dn,fl as St,dh as wn,cz as rn,hC as yt,hD as sn,p as jt,bp as Fe,dO as Rt,eu as xn,b6 as Ct,dt as Vt,Q as vn,hE as kt,cn as Mt,cv as Ot,cw as Nt,ez as It,n as Ln,hF as zt,b4 as se,hG as fn,gh as Pt,b2 as Tt,aD as Dt,ds as Lt,v as _n,X as _t,eG as At,a9 as dn}from"./index-DMdPrhoW.js";import{b as f,n as o,j as cn}from"./vendor-rkTZJa59.js";import{r as Bt}from"./mui-C42whWwM.js";import{R as Ft}from"./Menu-Dwfvhfom-CwTCc3PN.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const An=({steps:e})=>{const s=ae();return n.jsx(Ut,{windowSize:s,children:e.map((m,d)=>n.jsxs(Et,{children:[n.jsx(qt,{children:d!==e.length-1?d+1:n.jsx(Ht,{})}),n.jsx(Gt,{children:m}),d<e.length-1?n.jsx(Wt,{}):null]},`step_${d}`))})},Et=o.div`
1
+ import{e as ae,Y as On,u as mn,a as nt,hw as Pe,ca as tt,B as Nn,hx as ie,hy as ve,hz as fe,hA as be,hB as me,R as je,j as n,hs as ot,F as rt,aX as it,_ as st,bV as at,bX as lt,bY as dt,br as ct,W as Y,bg as mt,bS as pt,aj as ut,dl as ht,b_ as gt,C as w,m as wt,I as Oe,o as t,a7 as In,x as De,a6 as xt,q as c,w as Re,c3 as vt,l as zn,dr as Pn,bh as ze,aB as Tn,c6 as ft,bv as bt,dE as $t,ap as Ye,aP as pn,f as F,az as Dn,fl as St,dh as wn,cz as rn,hC as yt,hD as sn,p as jt,bp as Fe,dO as Rt,eu as xn,b6 as Ct,dt as Vt,Q as vn,hE as kt,cn as Mt,cv as Ot,cw as Nt,ez as It,n as Ln,hF as zt,b4 as se,hG as fn,gh as Pt,b2 as Tt,aD as Dt,ds as Lt,v as _n,X as _t,eG as At,a9 as dn}from"./index-BgY2d5WE.js";import{b as f,n as o,j as cn}from"./vendor-rkTZJa59.js";import{r as Bt}from"./mui-C42whWwM.js";import{R as Ft}from"./Menu-Dwfvhfom-D7VO7Ohf.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const An=({steps:e})=>{const s=ae();return n.jsx(Ut,{windowSize:s,children:e.map((m,d)=>n.jsxs(Et,{children:[n.jsx(qt,{children:d!==e.length-1?d+1:n.jsx(Ht,{})}),n.jsx(Gt,{children:m}),d<e.length-1?n.jsx(Wt,{}):null]},`step_${d}`))})},Et=o.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{j as t,e as X,a as he,R as U,ca as ye,J as ge,l as J,bV as be,bX as fe,bY as xe,F as ve,a4 as we,C as p,cD as le,cE as Ce,o as y,ao as $e,cn as oe,u as ne,cF as De,cG as Y,ct as G,ah as H,cd as je,cH as Te,q as a,cv as Se,W as ke,f as V,m as Fe,X as Oe,bp as Ae,w as Le,b6 as We}from"./index-DMdPrhoW.js";import{b as R,n as g}from"./vendor-rkTZJa59.js";import{W as ze,A as Ie}from"./BankAccountWarningSection-DYc9G8bV-BU4879fO.js";import{T as Re}from"./MailingDetailsSection-C3JqXSK_-D4ByIc-C.js";import{S as Pe}from"./CurrencySelectField-BAHRdBQD-BBF_kb_9.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./LabeledAddressValueField-T2zUztDN-BjlfdLij.js";const O={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function Ee({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:j,showAdditionalInfoLabel:k=!0}){const C=X(),{formState:{errors:b}}=oe(),$=ne(),D=Se(b,l.name),m=()=>{if(n===!0)return t.jsx(He,{children:t.jsx(Fe,{size:"Small",start:!0})});if(k&&j||D){let c=null;return o===!0&&k&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(Ne,{children:t.jsx(Ue,{})})})),t.jsxs(qe,{size:C,isError:D,hasToolTip:o,isDisabled:e!=null,children:[c,j]})}};return t.jsxs(_e,{size:C,style:f,isDisabled:e!=null,isError:D,"data-testid":ke("labeled-currency-field",l.name),children:[t.jsx(G,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:O.labelMarginLeft.value(C),marginRight:O.labelMarginRight.value(C),marginTop:O.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Be,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:O.controlHeight.value(C)}}),D?t.jsx(Me,{windowSize:C,hasError:D,children:u}):null,m()]})]})}const _e=g.div`
1
+ import{j as t,e as X,a as he,R as U,ca as ye,J as ge,l as J,bV as be,bX as fe,bY as xe,F as ve,a4 as we,C as p,cD as le,cE as Ce,o as y,ao as $e,cn as oe,u as ne,cF as De,cG as Y,ct as G,ah as H,cd as je,cH as Te,q as a,cv as Se,W as ke,f as V,m as Fe,X as Oe,bp as Ae,w as Le,b6 as We}from"./index-BgY2d5WE.js";import{b as R,n as g}from"./vendor-rkTZJa59.js";import{W as ze,A as Ie}from"./BankAccountWarningSection-DYc9G8bV-C0-vT7q_.js";import{T as Re}from"./MailingDetailsSection-C3JqXSK_-BdbOUFR2.js";import{S as Pe}from"./CurrencySelectField-BAHRdBQD-DA5fvTQH.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./LabeledAddressValueField-T2zUztDN-LGoET2XZ.js";const O={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function Ee({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:j,showAdditionalInfoLabel:k=!0}){const C=X(),{formState:{errors:b}}=oe(),$=ne(),D=Se(b,l.name),m=()=>{if(n===!0)return t.jsx(He,{children:t.jsx(Fe,{size:"Small",start:!0})});if(k&&j||D){let c=null;return o===!0&&k&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(Ne,{children:t.jsx(Ue,{})})})),t.jsxs(qe,{size:C,isError:D,hasToolTip:o,isDisabled:e!=null,children:[c,j]})}};return t.jsxs(_e,{size:C,style:f,isDisabled:e!=null,isError:D,"data-testid":ke("labeled-currency-field",l.name),children:[t.jsx(G,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:O.labelMarginLeft.value(C),marginRight:O.labelMarginRight.value(C),marginTop:O.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Be,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:O.controlHeight.value(C)}}),D?t.jsx(Me,{windowSize:C,hasError:D,children:u}):null,m()]})]})}const _e=g.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -1 +1 @@
1
- import{j as l}from"./index-DMdPrhoW.js";import{b as B}from"./vendor-rkTZJa59.js";import{f as u}from"./InternationalWireSwiftDetailsPage-rBvmcx9N-BfCYTFwC.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BankAccountWarningSection-DYc9G8bV-BU4879fO.js";import"./MailingDetailsSection-C3JqXSK_-D4ByIc-C.js";import"./LabeledAddressValueField-T2zUztDN-BjlfdLij.js";import"./MagicLinkTitleSection-Ch-kaM4i-CWaa0I1J.js";const F=({vendorViewDetails:n,bankAccountContext:o,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onFetchBankNameBySwift:d,onAddressClick:c})=>{const{internationalBankAccountCreateStatus:a,internationalBankAccountToCreate:m,editVendorState:p,newVendorState:S,bankNameBySwift:f,fetchBankNameBySwiftStatus:k}=n,t={...p??S};return B.useEffect(()=>{(o==="vendor"&&a.fetchState==="Completed"||t?.saveStatus?.fetchState==="Completed")&&e()},[a,t?.saveStatus?.fetchState,e,o]),l.jsx(u,{bankAccountToCreate:m,bankAccountCreationState:a,bankNameBySwift:f,addressToEdit:t?.vendorNewAddressStatus?.addressToCreate,mailingAddress:t?.vendorAddress,addressType:"vendor_address",fetchBankNameBySwiftStatus:k,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onAddressClick:c,onFetchBankNameBySwift:d})};export{F as default};
1
+ import{j as l}from"./index-BgY2d5WE.js";import{b as B}from"./vendor-rkTZJa59.js";import{f as u}from"./InternationalWireSwiftDetailsPage-rBvmcx9N-BPv0XoYd.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BankAccountWarningSection-DYc9G8bV-C0-vT7q_.js";import"./MailingDetailsSection-C3JqXSK_-BdbOUFR2.js";import"./LabeledAddressValueField-T2zUztDN-LGoET2XZ.js";import"./MagicLinkTitleSection-Ch-kaM4i-s-NoId2m.js";const F=({vendorViewDetails:n,bankAccountContext:o,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onFetchBankNameBySwift:d,onAddressClick:c})=>{const{internationalBankAccountCreateStatus:a,internationalBankAccountToCreate:m,editVendorState:p,newVendorState:S,bankNameBySwift:f,fetchBankNameBySwiftStatus:k}=n,t={...p??S};return B.useEffect(()=>{(o==="vendor"&&a.fetchState==="Completed"||t?.saveStatus?.fetchState==="Completed")&&e()},[a,t?.saveStatus?.fetchState,e,o]),l.jsx(u,{bankAccountToCreate:m,bankAccountCreationState:a,bankNameBySwift:f,addressToEdit:t?.vendorNewAddressStatus?.addressToCreate,mailingAddress:t?.vendorAddress,addressType:"vendor_address",fetchBankNameBySwiftStatus:k,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onAddressClick:c,onFetchBankNameBySwift:d})};export{F as default};
@@ -1,4 +1,4 @@
1
- import{e as ie,u as oe,R as te,C as c,ga as w,a8 as k,j as i,hk as g,hj as m,o as n,X as re,f as ne,dy as se,w as le,q as a}from"./index-DMdPrhoW.js";import{n as l}from"./vendor-rkTZJa59.js";const s={labelWidth:new c(270,340,350),sectionWidth:new c(343,580,726),iconContainerMaxWidthHeight:new c(a[6],a[7]),iconContainerMarginRight:new c(12,a[3]),iconPadding:new c(10,12),rowGap:new c(a[2],a[3]),elementsMarginLeftRight:new c(a[3],a[4]),controlWidth:n.sp6},T={title:new re("standardMedium","largeMedium")},de=l.div`
1
+ import{e as ie,u as oe,R as te,C as c,ga as w,a8 as k,j as i,hk as g,hj as m,o as n,X as re,f as ne,dy as se,w as le,q as a}from"./index-BgY2d5WE.js";import{n as l}from"./vendor-rkTZJa59.js";const s={labelWidth:new c(270,340,350),sectionWidth:new c(343,580,726),iconContainerMaxWidthHeight:new c(a[6],a[7]),iconContainerMarginRight:new c(12,a[3]),iconPadding:new c(10,12),rowGap:new c(a[2],a[3]),elementsMarginLeftRight:new c(a[3],a[4]),controlWidth:n.sp6},T={title:new re("standardMedium","largeMedium")},de=l.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>s.rowGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{a2 as A,a as Q,R as N,j as r,bo as q,_ as d,l as B,F as U,bp as W,w as f,bq as X,o,Q as D,br as Z,x as P,bs as G,bt as C,b6 as J,f as y,ap as b,bu as K}from"./index-DMdPrhoW.js";import{b as c,n as t}from"./vendor-rkTZJa59.js";import{A as Y,Z as k}from"./AccountLockedInfoModal-xBjf45Td-Cdqxc8Af.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./handshake-BPg58FML-CVKh3Eii.js";const ee=e=>{if(!e)return"";try{const i=G(e);if(!i){const l=e.replace(/\D/g,"");if(l.length>=4){const g=l.slice(-4);return`+${l.slice(0,-4)||"1"} (•••) ••• ${g}`}return C(e)||e}const p=i.countryCallingCode,x=i.nationalNumber.slice(-4);return`+${p} (•••) ••• ${x}`}catch{const i=e.replace(/\D/g,"");if(i.length>=4){const p=i.slice(-4);return`+${i.slice(0,-4)||"1"} (•••) ••• ${p}`}return C(e)||e}},F=120,I=30,O=2,re="456px",te="256px",V=6,n=N.getLocalizedStrings().commonSetUp.twoFactorAuthentication,m="otpInputField",Le=e=>{const i=e.verifyOtpFetchState==="In-Progress",[p,x]=c.useState(!1),[l,g]=c.useState(!1),[j,L]=c.useState(0),[v,S]=c.useState(F),[h,w]=c.useState(I),E=A(e.verifyOtpFetchState),u=Q({mode:"all",reValidateMode:"onChange",defaultValues:{[m]:""}}),$=u.watch(m),T=()=>{e.onCancelVerifyDevice()},R=()=>{$.trim().length===V&&e.onVerifyOtp($)},M=n.footerHelperText.replace(/<button_text>/,n.verify);c.useEffect(()=>{E==="In-Progress"&&e.verifyOtpFetchState==="Error"&&(x(!0),L(s=>s+1),u.setValue(m,""))},[E,e.verifyOtpFetchState,u]),c.useEffect(()=>{if(v<=0){g(!0);return}const s=setInterval(()=>{S(a=>a<=1?0:a-1)},1e3);return()=>clearInterval(s)},[v]),c.useEffect(()=>{if(h<=0)return;const s=setInterval(()=>{w(a=>a<=1?0:a-1)},1e3);return()=>clearInterval(s)},[h]);const H=s=>{const a=Math.floor(s/60),z=s%60;return`${a}:${z.toString().padStart(2,"0")}`};return r.jsx(q,{open:!0,children:r.jsxs(oe,{children:[r.jsx(d,{controller:j>O,children:r.jsx(Y,{unlockDate:B.dateNow().add(1,"hour"),onSubmit:e.onCancelVerifyDevice})}),r.jsx(d,{controller:j<=O,children:r.jsx(U,{...u,children:r.jsxs(ge,{children:[r.jsxs(fe,{children:[r.jsx(ne,{children:n.verifyDeviceTitle}),r.jsx(se,{children:n.verifyDeviceDescription}),r.jsxs(le,{children:[r.jsx(ie,{children:ee(e.phoneNumber+"")}),r.jsx(W,{placement:"top",title:r.jsxs(f,{children:[n.changePhoneNumberHelperText,r.jsx(we,{href:`mailto:${k}`,children:k})]}),enterDelay:600,children:r.jsx(Se,{})})]})]}),r.jsxs(ce,{children:[r.jsx(X,{value:$,valueLength:6,hasError:l===!0||p===!0,style:{margin:o.sp0},onChange:s=>{u.setValue(m,s),x(!1)}}),r.jsx(d,{controller:l===!1,children:r.jsx(_,{children:r.jsxs($e,{children:[n.codeExpiresIn," ",H(v)]})})}),r.jsx(d,{controller:l===!0,children:r.jsx(_,{children:r.jsx(ye,{children:n.codeExpired})})})]}),p===!0&&l===!1?r.jsxs(r.Fragment,{children:[r.jsx(d,{controller:j>=1,children:r.jsx(ae,{children:n.incorrectCode})}),r.jsx(d,{controller:j===2,children:r.jsx(ve,{children:r.jsxs(f,{children:[r.jsx(be,{}),n.accountLockWarning]})})})]}):null,r.jsx(d,{controller:e.resendVerifyDeviceOTPFetchState.error?.details?.application_error_code!=="ERR_OTP_RESEND_LIMIT_EXCEEDED",children:r.jsxs(de,{children:[r.jsx(pe,{children:n.codeNotReceived}),r.jsx(ue,{disabled:h>0,onClick:()=>{h===0&&(e.onResendOtp(),x(!1),g(!1),u.setValue(m,""),S(F),w(I))},children:n.resend}),h>0&&r.jsxs(he,{children:[N.getLocalizedStrings().common.in.toLowerCase()," ",h,"s"]})]})}),r.jsxs(je,{children:[r.jsxs(xe,{children:[r.jsx(D,{label:n.cancel,onClick:T,style:{width:82}}),r.jsx(D,{variant:"primary",label:n.verify,onClick:R,style:{width:82},loading:i,disabled:$.trim().length!==V||l===!0})]}),r.jsx(me,{children:M})]})]})})})]})})},oe=t.div`
1
+ import{a2 as A,a as Q,R as N,j as r,bo as q,_ as d,l as B,F as U,bp as W,w as f,bq as X,o,Q as D,br as Z,x as P,bs as G,bt as C,b6 as J,f as y,ap as b,bu as K}from"./index-BgY2d5WE.js";import{b as c,n as t}from"./vendor-rkTZJa59.js";import{A as Y,Z as k}from"./AccountLockedInfoModal-xBjf45Td-BEOFFMGS.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./handshake-BPg58FML-CVKh3Eii.js";const ee=e=>{if(!e)return"";try{const i=G(e);if(!i){const l=e.replace(/\D/g,"");if(l.length>=4){const g=l.slice(-4);return`+${l.slice(0,-4)||"1"} (•••) ••• ${g}`}return C(e)||e}const p=i.countryCallingCode,x=i.nationalNumber.slice(-4);return`+${p} (•••) ••• ${x}`}catch{const i=e.replace(/\D/g,"");if(i.length>=4){const p=i.slice(-4);return`+${i.slice(0,-4)||"1"} (•••) ••• ${p}`}return C(e)||e}},F=120,I=30,O=2,re="456px",te="256px",V=6,n=N.getLocalizedStrings().commonSetUp.twoFactorAuthentication,m="otpInputField",Le=e=>{const i=e.verifyOtpFetchState==="In-Progress",[p,x]=c.useState(!1),[l,g]=c.useState(!1),[j,L]=c.useState(0),[v,S]=c.useState(F),[h,w]=c.useState(I),E=A(e.verifyOtpFetchState),u=Q({mode:"all",reValidateMode:"onChange",defaultValues:{[m]:""}}),$=u.watch(m),T=()=>{e.onCancelVerifyDevice()},R=()=>{$.trim().length===V&&e.onVerifyOtp($)},M=n.footerHelperText.replace(/<button_text>/,n.verify);c.useEffect(()=>{E==="In-Progress"&&e.verifyOtpFetchState==="Error"&&(x(!0),L(s=>s+1),u.setValue(m,""))},[E,e.verifyOtpFetchState,u]),c.useEffect(()=>{if(v<=0){g(!0);return}const s=setInterval(()=>{S(a=>a<=1?0:a-1)},1e3);return()=>clearInterval(s)},[v]),c.useEffect(()=>{if(h<=0)return;const s=setInterval(()=>{w(a=>a<=1?0:a-1)},1e3);return()=>clearInterval(s)},[h]);const H=s=>{const a=Math.floor(s/60),z=s%60;return`${a}:${z.toString().padStart(2,"0")}`};return r.jsx(q,{open:!0,children:r.jsxs(oe,{children:[r.jsx(d,{controller:j>O,children:r.jsx(Y,{unlockDate:B.dateNow().add(1,"hour"),onSubmit:e.onCancelVerifyDevice})}),r.jsx(d,{controller:j<=O,children:r.jsx(U,{...u,children:r.jsxs(ge,{children:[r.jsxs(fe,{children:[r.jsx(ne,{children:n.verifyDeviceTitle}),r.jsx(se,{children:n.verifyDeviceDescription}),r.jsxs(le,{children:[r.jsx(ie,{children:ee(e.phoneNumber+"")}),r.jsx(W,{placement:"top",title:r.jsxs(f,{children:[n.changePhoneNumberHelperText,r.jsx(we,{href:`mailto:${k}`,children:k})]}),enterDelay:600,children:r.jsx(Se,{})})]})]}),r.jsxs(ce,{children:[r.jsx(X,{value:$,valueLength:6,hasError:l===!0||p===!0,style:{margin:o.sp0},onChange:s=>{u.setValue(m,s),x(!1)}}),r.jsx(d,{controller:l===!1,children:r.jsx(_,{children:r.jsxs($e,{children:[n.codeExpiresIn," ",H(v)]})})}),r.jsx(d,{controller:l===!0,children:r.jsx(_,{children:r.jsx(ye,{children:n.codeExpired})})})]}),p===!0&&l===!1?r.jsxs(r.Fragment,{children:[r.jsx(d,{controller:j>=1,children:r.jsx(ae,{children:n.incorrectCode})}),r.jsx(d,{controller:j===2,children:r.jsx(ve,{children:r.jsxs(f,{children:[r.jsx(be,{}),n.accountLockWarning]})})})]}):null,r.jsx(d,{controller:e.resendVerifyDeviceOTPFetchState.error?.details?.application_error_code!=="ERR_OTP_RESEND_LIMIT_EXCEEDED",children:r.jsxs(de,{children:[r.jsx(pe,{children:n.codeNotReceived}),r.jsx(ue,{disabled:h>0,onClick:()=>{h===0&&(e.onResendOtp(),x(!1),g(!1),u.setValue(m,""),S(F),w(I))},children:n.resend}),h>0&&r.jsxs(he,{children:[N.getLocalizedStrings().common.in.toLowerCase()," ",h,"s"]})]})}),r.jsxs(je,{children:[r.jsxs(xe,{children:[r.jsx(D,{label:n.cancel,onClick:T,style:{width:82}}),r.jsx(D,{variant:"primary",label:n.verify,onClick:R,style:{width:82},loading:i,disabled:$.trim().length!==V||l===!0})]}),r.jsx(me,{children:M})]})]})})})]})})},oe=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  min-width: ${te};